Jarek Kobus
2c6adc1e74
VCS: Replace QToolButtons in VCS toolbar with QActions
...
Change VcsBaseEditorParameterWidget to add actions/widgets to an
existing toolbar, instead of being a widget itself.
The class is renamed in a follow-up commit.
Task-number: QTCREATORBUG-14934
Change-Id: I473a439d12a096f4cbb64f06faa0598ee72000de
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io >
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io >
2016-10-24 16:23:33 +00:00
Orgad Shaneh
1b34f2a4b8
Merge remote-tracking branch 'origin/4.1'
...
Change-Id: Ia90424d479936a898705c433e5810c77ae088b2c
2016-07-22 15:18:00 +03:00
Orgad Shaneh
9fd5d64194
Remove unneeded QSignalMapper includes
...
Change-Id: Idec6b1357d7c1db316c8cb29e82c7c9a62e4f6d5
Reviewed-by: Eike Ziller <eike.ziller@qt.io >
2016-07-20 08:12:30 +00:00
Tobias Hunger
ca7a924a06
VCS: VcsBaseClient::vcsFullySynchronousExec returns a SynchronousProcessResponse
...
Change-Id: Ic155da2ed1fd36f1f91327ac90f34a5cad3c210e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io >
2016-07-15 14:16:29 +00:00
Orgad Shaneh
3845c833fc
VCS: Return the editor in VcsBaseClient::annotate
...
Will be used in a follow-up commit for setting base line number
for limited range blame.
Change-Id: Ibae90f3ac982ebe9f53aa282f70c2c703e9eeb9d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io >
2016-06-14 07:56:55 +00:00
Orgad Shaneh
94f0839f3f
VcsBaseClient: Make some functions const
...
Change-Id: Ia82f4ca25b59adfbc96c03c1aaed873a572e4785
Reviewed-by: André Hartmann <aha_1980@gmx.de >
2016-05-08 19:03:11 +00:00
Eike Ziller
967177d3d8
SynchronousProcess: Change exit code interpreter to function object
...
Change-Id: Ic48d4f5810f171c070f0980581fb6e45f6fe6b4a
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io >
2016-04-27 08:48:32 +00:00
Orgad Shaneh
a63681c1d2
VCS: Simplify editor/command connections
...
* Move all the connections to setCommand()
* Move gotoLine logic to reportCommandFinished
Change-Id: I67ad74820b3d20b2b5fa97edad92f0f30111166f
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2016-03-29 09:19:01 +00:00
Tobias Hunger
397e7f4843
Update License according to agreement with Free Qt Foundation
...
* Update files in src/plugins
Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2016-01-19 15:57:01 +00:00
Orgad Shaneh
ab80f512a0
VCS: Fix encoding for editor-related commands
...
For example Git Log.
Change-Id: I1d838f86dc70f000e66443eece60adc07310c8b8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com >
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-09-17 10:52:47 +00:00
Orgad Shaneh
1b0e5d787a
VCS: Abort previous command for the same editor
...
Broken by e0c5ff03ec
.
Task-number: QTCREATORBUG-14630
Change-Id: I123d86b45c6fbc05c7f4cfb52c0be705f75abb75
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com >
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-06-25 09:05:04 +00:00
Tobias Hunger
e0c5ff03ec
Vcs: Do not crash when stopping running commands
...
Drop the connect once the editor gets killed. Remove the QSignalMapper
and replace it with a lambda to facilitate that change.
Task-number: QTCREATORBUG-14613
Change-Id: I1a5990bf37af88092933143ebb78dd5ceb9c1222
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-06-23 09:17:45 +00:00
Tobias Hunger
f2be797696
ShellCommand: Allow setting working directory per job
...
Change-Id: I6d541f87b76bdc7f1503f202792079f833e8932c
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-06-10 13:04:42 +00:00
Tobias Hunger
a44c403b5f
ShellCommand: Rename some signals
...
Rename the signals used to report stdout/stderr to make it clearer
what they actually do. Remove some unimplemented private member
functions while at it.
Change-Id: I7e856f906ccb45964f3b1b64336d4d8ebca7b9ee
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-05-07 13:07:14 +00:00
Tobias Hunger
eec0a03212
Vcs: Split up VcsCommand
...
Move the biggest chunk into Utils::ShellCommand, add some Qt Creator
specific magic in Core::ShellCommand and leave the rest in
VcsBase::VcsCommand.
Change-Id: I5fe6f7076e96023ad2164bcfaacfb3b65a7ff8a8
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-05-04 15:27:25 +00:00
Tobias Hunger
c7c785ace3
Vcs: Push the binary into the Jobs of VcsCommand
...
This is the first step to generalizing the class for wider use.
Change-Id: I40ccb5bec4fdcb9d0a67388160c867799331007b
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-04-29 08:40:46 +00:00
Orgad Shaneh
ec2d13641b
Git: Suppress stderr output for fully synchronous executions
...
Broken by dcdcf54048
.
Change-Id: I32f56bb432dfd3ce26397fd41908c6823cd4d7f1
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-04-15 12:48:54 +00:00
Tobias Hunger
d45dea6cf8
Git: Move executeGit into VcsBaseClientImpl
...
and rename it to vcsExec. Accept a QVariant to set as cookie on the
command instead of a int for the linenumber.
Change-Id: I8240b53e775ac3883f92bdbf7b111abeeeb39426
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-04-15 12:24:20 +00:00
Orgad Shaneh
7668d4388b
VCS: Remove superfluous metatype declarations for QVariant
...
Change-Id: Ib3d48607a66199255fbcfc90815d104bc9cd0402
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-04-15 10:39:43 +00:00
Orgad Shaneh
24e3445a35
VCS: Assert pointer before using it
...
Change-Id: Idfc99f79c04473ee5d432cb64b6bfbdde2847802
Reviewed-by: André Hartmann <aha_1980@gmx.de >
2015-04-14 20:40:34 +00:00
Tobias Hunger
3ddb751be8
Vcs: Move method around in vcsbaseclient.cpp, no code change
...
Change-Id: I72ec25e5e98b162779a101534d511cb786d99426
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-04-14 11:22:06 +00:00
Tobias Hunger
5954506d19
Vcs: Move vcsSynchronousExec into VcsBaseClientImpl
...
Use it in favor of git's synchronousGit method.
Change-Id: I1fc8031cb6d258073b64163aeeeaeac84443fb8c
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-04-14 11:22:00 +00:00
Tobias Hunger
085d4a900d
Vcs: Move method around in vcsbaseclient.cpp, no code change
...
Change-Id: Ia815179f3bb8c13b05c271f2ce82c3736e6a7b79
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-04-14 11:21:29 +00:00
Tobias Hunger
dcdcf54048
Vcs: Move vcsFullySynchronousExec into VcsBaseClientImpl
...
Use that in the gitplugin in favor of fullySynchronousGit.
Change-Id: Ifd981f3fc5e87e16ad52caf32c204f81acffe586
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-04-14 11:21:21 +00:00
Tobias Hunger
5c4a025d75
Vcs: Extend vcsFullySynchronousExec to have flags
...
Change-Id: I4c4174d8a2b8989d59750c57dc6a0b5aae375670
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-04-13 13:42:16 +00:00
Tobias Hunger
7c083eadee
Vcs: Make VcsBaseClient return stderr on fullySynchronous execution
...
Change-Id: I7a72a2f865148d7cf375897ec944a45f4b440818
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-04-13 10:48:01 +00:00
Tobias Hunger
60f5372b67
Vcs: Get rid of second implementation to run commands fully synchronously
...
Change-Id: I996e4292a751f6570e3e645bfcabf00f8a168a59
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-04-13 10:47:36 +00:00
Tobias Hunger
7719fb669c
Vcs: Standardize on second based timeouts
...
Change-Id: Ia273fda05a4c4a1934819f26e5dc1b6b80a89f6f
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-04-13 10:47:08 +00:00
Tobias Hunger
a55fb4a378
Vcs: Move annotate and annotateRevisionRequested into VcsBaseClientImpl
...
... and use that in the Git client.
Change-Id: Ie70ec0d5908776d11eb69613d45f565d4f0ce32b
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-04-13 10:40:58 +00:00
Tobias Hunger
e7616f8769
Vcs: Move createVcsEditor into VcsBaseClientImpl
...
... and use that in Git as well.
Change-Id: I81c85fcf5a7da7e9f756f117ea6c38c15294a401
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-04-13 09:08:35 +00:00
Orgad Shaneh
31cc61e209
VCS: Join 2 short lines
...
Change-Id: I06bc75aa6d7b1026ebe1194a565093dd2ab8403a
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-04-12 20:10:02 +00:00
Tobias Hunger
088e5b6462
Vcs: WS cleanup
...
Change-Id: Ie5a436904ec787910ae6e4d01778ee615909feef
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-04-10 14:16:43 +00:00
Tobias Hunger
68045c1d0d
Vcs: Move resetCachedVcsInfo into VcsBaseClientImpl
...
Change-Id: I544472d2024bd82039908c67ab133556617b4fdb
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-04-10 09:58:39 +00:00
Tobias Hunger
07d6757ca8
Vcs: Move createCommand and enqueueJob into VcsBaseClientImpl
...
Change-Id: I86a4ddfd6c53a3be61c56579d8eaf5d49258a8f1
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-04-10 09:49:47 +00:00
Tobias Hunger
2ccae82b5c
Vcs: Move vcsBinary and vcsTimeout into VcsBaseClientImpl
...
Change-Id: Ib14432c85f42606a0437f3848b9dfa2fe63fb2f3
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-04-09 07:25:17 +00:00
Tobias Hunger
90ce38da39
Vcs: Move handling of settings from VcsBaseClient to VcsBaseClientImpl
...
... and update users of that functionality accordingly.
Unexpected plus: Now every supported VCS actually saves their setting
when requested.
Change-Id: I02db7b2ce14e5f52d26409b2a01aea290c2a294a
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-04-08 09:30:44 +00:00
Tobias Hunger
3718dfce98
Git: Add enqueueJob method to GitClient
...
That makes it more similar to the VcsBaseClient.
Change-Id: Iabdd177d0734a6c1001c9bc5c5a0e2375ec169bc
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-03-26 14:21:29 +00:00
Tobias Hunger
f44161bb9a
Vcs: Add vcsBinary and vcsTimeout methods to VcsBaseClient
...
Change-Id: I966a76ee4c1e5c45ac7332613e90cf511afc584c
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-03-26 14:20:54 +00:00
Friedemann Kleint
fe2addf515
Clean exported headers of the TextEditor plugin.
...
Change-Id: I1e7dd34ba5a51fb0b34d137dc03add4457b32ed1
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-26 13:15:29 +00:00
Eike Ziller
9926fc2ab1
Merge commit '3c85058694ee2e41658d17f524fb48f0b187d2fe'
...
Conflicts:
src/libs/utils/tooltip/tipcontents.cpp
src/libs/utils/tooltip/tipcontents.h
src/plugins/android/androiddeployqtstep.cpp
src/plugins/baremetal/baremetalconstants.h
src/plugins/baremetal/baremetaldevice.cpp
src/plugins/baremetal/baremetaldevice.h
src/plugins/baremetal/baremetaldeviceconfigurationwidget.cpp
src/plugins/baremetal/baremetaldeviceconfigurationwidget.h
src/plugins/baremetal/baremetaldeviceconfigurationwizard.cpp
src/plugins/baremetal/baremetaldeviceconfigurationwizardpages.cpp
src/plugins/baremetal/baremetaldeviceconfigurationwizardpages.h
src/plugins/baremetal/baremetalplugin.cpp
src/plugins/baremetal/baremetalplugin.h
src/plugins/baremetal/baremetalruncontrolfactory.cpp
src/plugins/baremetal/baremetalruncontrolfactory.h
src/plugins/cppeditor/cppcodemodelinspectordialog.cpp
src/plugins/cppeditor/cppdoxygen_test.cpp
src/plugins/cppeditor/cppdoxygen_test.h
src/plugins/debugger/breakpointmarker.cpp
src/plugins/debugger/debuggeritemmodel.cpp
src/plugins/debugger/debuggeritemmodel.h
src/plugins/debugger/loadcoredialog.cpp
src/plugins/genericprojectmanager/cppmodelmanagerhelper.cpp
src/plugins/projectexplorer/addnewmodel.cpp
src/plugins/projectexplorer/addnewmodel.h
src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp
src/plugins/qmlprofiler/abstracttimelinemodel.cpp
src/plugins/qmlprofiler/abstracttimelinemodel.h
src/plugins/qmlprofiler/notesmodel.cpp
src/plugins/qmlprofiler/qml/CategoryLabel.qml
src/plugins/qmlprofiler/qml/MainView.qml
src/plugins/qmlprofiler/qml/Overview.js
src/plugins/qmlprofiler/qml/Overview.qml
src/plugins/qmlprofiler/qml/TimeDisplay.qml
src/plugins/qmlprofiler/qml/TimeMarks.qml
src/plugins/qmlprofiler/qmlprofilertimelinemodelproxy.cpp
src/plugins/qmlprofiler/sortedtimelinemodel.cpp
src/plugins/qmlprofiler/sortedtimelinemodel.h
src/plugins/qmlprofiler/timelinemodelaggregator.cpp
src/plugins/qmlprofiler/timelinemodelaggregator.h
src/plugins/qmlprofiler/timelinerenderer.cpp
src/plugins/qmlprofiler/timelinerenderer.h
src/plugins/qmlprojectmanager/QmlProjectManager.json.in
src/plugins/texteditor/findinfiles.cpp
src/plugins/vcsbase/vcsconfigurationpage.cpp
src/shared/qbs
src/shared/scriptwrapper/interface_wrap_helpers.h
src/shared/scriptwrapper/wrap_helpers.h
tests/auto/qmlprofiler/abstracttimelinemodel/tst_abstracttimelinemodel.cpp
tests/system/suite_debugger/tst_debug_empty_main/test.py
tests/system/suite_debugger/tst_qml_js_console/test.py
tests/system/suite_debugger/tst_qml_locals/test.py
Change-Id: I67540b648f8b162496f4aa606b04d50c7c9125c6
2015-02-12 17:29:21 +01:00
Orgad Shaneh
8b5dcc13c5
Replace QFileInfo::fileName() with FileName::fileName()
...
Change-Id: I4852ff215abf25649fc5eac1e922ae901839ca3d
Reviewed-by: hjk <hjk@theqtcompany.com >
2015-01-29 11:15:43 +00:00
Tobias Hunger
9f6e8aa921
VcsBase: Fix build
...
... broken by the last build fix:-( Sometimes you should just wait
for the build to finish before rushing out a build fix, even if
it seemed trivial.
Change-Id: Ifaaf962b289e6131fb9cfd4820e2582ace7a3972
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-01-22 16:10:28 +01:00
Tobias Hunger
d20833364a
VcsBaseClient: Fix build on windows
...
Windows does pick ::log in favor of this->log in the lambda.
Change-Id: Ib3037606dfe70de955b10e69e2bc513b99b82fca
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-01-22 16:03:22 +01:00
Tobias Hunger
bd87b09072
VcsBaseClient: Remove unneeded member
...
and small cleanups.
Change-Id: I9db6d7d5de32acd2ec1d757f27e4e3095dd5b1eb
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-01-22 15:42:12 +01:00
Hugues Delorme
9b13e407ee
VcsBase: use Qt5 new connect syntax
...
For VcsBaseClient and VcsBaseEditorParameterWidget
Change-Id: Ib80110c904ee0d1153bc1c602c385f9cb8b0be50
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-01-22 14:29:13 +01:00
Hugues Delorme
4b5d2ccef7
Vcs: in VcsBaseClient use functors to create log/diff parameter widgets
...
Also API of VcsBaseEditorParameterWidget was changed to take benefit of C++11 lambdas.
Slot executeCommand() is no longer virtual and only fires signal commandExecutionRequested().
The Vcs client just has to bind a lambda to this signal instead of some boiler-plate code
like keeping track of the arguments of diff/log with "struct XxxDiffParameters", etc.
Change-Id: I347c97d84a8324e9c661df4e6d9a6075980b020f
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-01-22 14:28:35 +01:00
Tobias Hunger
e29a49ca24
VcsBase: Sprinkle with auto
...
Change-Id: Icd1e1ec16b1ff918162d3c6f564348d47177ffc7
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-01-22 14:19:24 +01:00
Tobias Hunger
f3220dd408
Vcs: Delete commit message file after commit
...
Change-Id: I5786fb49d99c793319d28d5a14460f962f416ab5
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-01-20 15:44:46 +01:00
Tobias Hunger
93732f23cd
Vcs: Bind commit output to output window
...
Change-Id: Ia141def650ad4ac765c18317267a87a1cf50f512
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-01-20 11:18:45 +01:00
Eike Ziller
3c85058694
Update License
...
Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com >
2015-01-16 12:37:56 +01:00