aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/icore.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Core/Utils: Migrate further to Utils::Idhjk2020-07-061-0/+1
| | | | | | | | The coreplugin/id.h header is kept for downstream for now. Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66 (cherry picked from commit 430a33dcd9ac80ddb848e41f8f059102857c88aa) Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Move InfoBar to UtilsEike Ziller2020-06-181-1/+1
| | | | | | | | | The only reason it was required to be in Core plugin, was its use of Id, which now is available in Utils. Change-Id: I66ce863c24924e6448d339b3422538a7fe167336 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Fix "Header" documentation in Core pluginEike Ziller2020-06-151-0/+2
| | | | | Change-Id: If3cbe51b47a3acba32429894dfb5154cd573967d Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Fix and complete documentation for ICoreEike Ziller2020-05-291-23/+214
| | | | | Change-Id: Id7517ced928e7b4eefb1822f5e9381187169486a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Core: Report MSVC 2019 when built with MSVC 2019Cristian Adam2020-05-281-0/+2
| | | | | Change-Id: I1c360b76d6d9f9b59e2ce563c5ca9a9c7fdeafa1 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Unregister deleted IContext objects automaticallyEike Ziller2020-05-271-0/+1
| | | | | Change-Id: I7b84c02c8fe1e7201431116e3d993792370fb942 Reviewed-by: hjk <hjk@qt.io>
* Add "Install Plugin" buttonEike Ziller2020-03-231-2/+20
| | | | | | | | | Shows a wizard. Select a library file or zip file, and if you want to install in user location or Qt Creator install. For zip files it requires "unzip", "7z" or "cmake" in the PATH. Change-Id: I191079046cbd2cb6ab181bc044a00488af41b349 Reviewed-by: David Schulz <david.schulz@qt.io>
* Doc: Fix QDoc warnings in Core plugin classesLeena Miettinen2020-03-181-207/+132
| | | | | | Task-number: QTCREATORBUG-23620 Change-Id: Idf1fb2b3f930812c3cf18b9f8ced03fb8e0947be Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Doc: Fix QDoc warnings in Find classesLeena Miettinen2020-02-171-5/+22
| | | | | | | | | | | - Document BaseTextFind and FindSupport - Mark undocumented classes and namespaces \internal - Add and fix docs for IFindFilter, SearchResult, and SearchResultWindow Fixes: QTCREATORBUG-23600 Change-Id: Ic9445f7f15562f114f4cbd9fe16988d7249d48db Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Provide "Restart Now" functionalityEike Ziller2020-01-071-0/+5
| | | | | | | | And use it for the plugin dialog and when changing the UI language. Change-Id: Ic767837d2526409f7ec46d7e4612a1499f19459e Reviewed-by: hjk <hjk@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* ClangTools: Add UI for specifying executablesNikolai Kosjar2019-09-121-0/+5
| | | | | | | | | | | | Add a new group box "Executables" for this. Hide the UI for clazy-standalone unless QTC_USE_CLAZY_STANDALONE_PATH is set as there is no released version with the needed -export-fixes option. Rename the previous group box from "General" to "Run Options". Change-Id: Ia9daf66c40d3a7eea98b31d9c086886d29466490 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* ClangTools: Invoke clang-tidy instead of clangNikolai Kosjar2019-09-121-3/+13
| | | | | | Change-Id: Ibcc53cf8cb8bbaf262757bec52f15936506dad50 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Add global notification area and use for UI Tour infoEike Ziller2019-08-121-0/+5
| | | | | | | | | | | | Adds a global info bar display above the main window's status bar that can be accessed via ICore::infoBar(). Replace the blocking "Take UI Tour" dialog by a notification there. Fixes: QTCREATORBUG-22819 Change-Id: I733f1bfd2d1db0295754ed2e28bb202f927d0edb Reviewed-by: hjk <hjk@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* Core: Give a hint why saving of settings are requestedhjk2019-06-031-3/+3
| | | | | | | | | | | Not all requests are the same, handling code might want to act differently on different request reasons. Main driver here is the handling of the debugger/analyzer main window state savings which depends on actual visibility of certain windows. Change-Id: I87b2a9149e3d09d27bc14b44aace9f2e0686db04 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Unit tests: Print a warning at the end if not all tests passedChristian Kandeler2019-03-141-1/+4
| | | | | | | | | It's easy to overlook that Creator returned with a non-zero exit code, particularly if the last test succeeded. Change-Id: I6975014aec36c7a267dc88cde41f830d314c90af Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Add ICore::cacheResourcePath()Marco Bubke2019-03-041-0/+6
| | | | | | | | | | We need some directory where we save the index database and the precompiled headers. This files should be persistent but the user can delete them if he wants because we will rebuild them. Task-number: QTCREATORBUG-22012 Change-Id: I9f25eb48a9992d6385a96427ef9c10bc739a3567 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Move documentationPath() from Core::ICore to Core::HelpManagerEike Ziller2018-09-201-5/+0
| | | | | | | | It is documentation related API, so it belongs there. Change-Id: I5d1676f251e6deb92050ddedac19bf3c332aab54 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Fix context of Locator inputEike Ziller2018-08-091-0/+5
| | | | | | | | | | | | | | | - In the main window, the locator input (actually the status bar) visually feels like being part of the mode widget, so give it its context. - In extra editor windows, the whole editor window should have "editor manager" context, so that is also active for the locator input. Task-number: QTCREATORBUG-20626 Task-number: QTCREATORBUG-20071 Change-Id: Ib68d6a8177446572ea59c3cc057eca0706173e11 Reviewed-by: Xing Xiong Reviewed-by: David Schulz <david.schulz@qt.io>
* Core: ModernizeAlessandro Portale2018-08-081-2/+2
| | | | | | | | | | | modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init (partially) Change-Id: Idf10d7ffb1d98a04edc09a25c35e4e9e3abe87b5 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Clang: Move clang paths helper functions to Core pluginIvan Donchevskii2018-08-061-0/+22
| | | | | | | | | | These functions require core plugin so they can't go to utils library. At the same time to use them in ProjectExplorer plugin there are not too many choices where to put them without introducing new dependencies. Change-Id: I3cccccffaae8ac4bbce924fd809b5423da5dc503 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Core: Minimize directly accessible SettingsDialog interfacehjk2018-02-141-7/+1
| | | | | | | | | | | | | Only the getSettingsDialog + exec combination was ever used. Make that accessible by a free function, move everything else to settingdialog.cpp. Take the opportunity for some code cosmetics and remove a few indirections by using direct members instead of pointers where appropriate. Change-Id: I14bc47395a85045ab439d418da0bc459add844bb Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Compile fix after 974022c77b722hjk2018-02-011-1/+2
| | | | | Change-Id: Idd26b1da785deec81772dff3134c4c23e63762bb Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Core: Remove the now-unused ICore::optionsDialogRequested() signalhjk2018-02-011-2/+0
| | | | | Change-Id: I5b712c8f01170d406b2a1e5cb969ff2e4ffe16d4 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Replace an in-Core connection by a direct callhjk2018-02-011-0/+2
| | | | | Change-Id: Ic219a992658e080467a18d38121a41990cc377ce Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Reduce code path ping-pong between ICore and MainWindowhjk2018-02-011-2/+25
| | | | | | | | | | Public entry points for displaying settings dialog were in ICore, diverting to MainWindow, and back in some cases. Move implementation to icore.cpp instead. Change-Id: I02cbf1dcfe6241c665d7d701b4b4af1a8a242af5 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Do not construct settings/resource paths from QSettings objectEike Ziller2018-01-111-0/+6
| | | | | | | | | | | | These paths are controlled by ICore. Add ICore::installerResourcePath() to replace constructions with settings(SystemScope) Replace constructions with settings()->fileName() by usage of ICore::userResourcePath(). Change-Id: I5a9fa9d09f2563c39dc5d11a4586da825c62f9ac Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Core: return QMainWindow * from Core::mainWindowDavid Schulz2018-01-111-1/+1
| | | | | | | ... instead of QWidget * Change-Id: Ibe38814ae26524a9ffa4c14d170d5aa487a40931 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use IDE_ID for user resource pathEike Ziller2018-01-101-1/+1
| | | | | | | We should not share these settings with a different IDE_ID Change-Id: If50102606722f40ab64c9c7fe01c74a9f0dda06e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Add "Remove File" to file system viewEike Ziller2017-12-121-0/+6
| | | | | | Task-number: QTCREATORBUG-19208 Change-Id: Iacf1e1468018fa8dd3426bc1325f36bb39a4b4e2 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Add some mechanism to help screenshot creationhjk2017-11-161-0/+51
| | | | | | | | | | If QTC_SCREENSHOTS_PATH points to a writable directory, each widget that has been registered with ICore's setupScreenShooter(const QString &name, QWidget *w) will dump a screen shot to this directory as soon as the widget is shown. Change-Id: I2dec12064f1bb3c510d2fd9d27c1b79f7b7d5f30 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* app_version.h: Make IDE name configurableTobias Hunger2017-09-051-2/+3
| | | | | | Change-Id: I993f452c8d09cf89e9a2958fc8e36b7d2c17ee6f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Specify Qt Creator's "display version" in qtcreator.pri/qtc.qbsEike Ziller2017-04-211-4/+3
| | | | | | | | | | | | | | Currently it is set by passing defines to qmake, which complicates package build setups. Set the display version where the numerical version is defined. This also makes it available to developer builds. Also switch around the display version and numerical version in the about dialog, since e.g. "4.3.0-rc1" is more descriptive than "4.2.83". Change-Id: I26dda427975acdc6cc169f8d625f57918167cf19 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Fix compiler display name for MSVC2017Orgad Shaneh2017-04-181-5/+3
| | | | | Change-Id: I0a0a6e2899373241dac0cdec5154ea7f22efd0c2 Reviewed-by: David Schulz <david.schulz@qt.io>
* Add defines for relative data pathsEike Ziller2016-12-011-21/+3
| | | | | | | | | Derive the relative paths used in code from the paths used by the build system. Change-Id: I208ee55d3c1ee76921734f5c1c6c40d3fcb9724c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* File > New: Bring existing dialog to foregroundEike Ziller2016-09-301-6/+15
| | | | | | Task-number: QTCREATORBUG-16932 Change-Id: I1a90ab01825b5cd2f439395cbdf4400075943dc4 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* ICore: Make sure main window is initializedEike Ziller2016-09-301-3/+3
| | | | | | | | Initialize main window even if no ICore instance is created, so in that case methods like raiseWindow and dialogParent will still work. Change-Id: I7b435dedac574bcc120e996c198c413fd5ccfe6f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* ICore: Remove unused methodsEike Ziller2016-09-301-2/+0
| | | | | | | Some didn't even have implementations anymore Change-Id: I376cb12006c9b3ec8f6b2a75c38275cd92d2bbf6 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Core: Fix that core settings like shortcuts were only saved at shutdownEike Ziller2016-09-121-0/+1
| | | | | | | | | Save them also whenever a settings save is requested, which e.g. also happens when closing the options dialog. Change-Id: Ic20f1007381a4d0a8157f17fd24c0d8ea24907ee Task-number: QTCREATORBUG-16576 Reviewed-by: David Schulz <david.schulz@qt.io>
* Fix buildEike Ziller2016-09-061-2/+2
| | | | | | Change-Id: Ie23ae9e462dff66206759bacda13876dce8264a0 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* Add a menu entry for copying system informationEike Ziller2016-09-051-1/+14
| | | | | | | | | Which outputs the information from qtdiag, installed plugins, and general Qt Creator build information. Task-number: QTCREATORBUG-16135 Change-Id: I618b9883369bae45006bb109f8757e89b091b882 Reviewed-by: David Schulz <david.schulz@qt.io>
* Core: Use Qt5-style connectsOrgad Shaneh2016-02-031-4/+4
| | | | | | | The heavy lifting was done by clazy. Change-Id: I2dde14919d917816d02117338205f8f861d8af0a Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Merge remote-tracking branch 'origin/3.6'Eike Ziller2016-01-191-0/+4
|\ | | | | | | | | | | | | | | Conflicts: src/plugins/clangcodemodel/clangassistproposalmodel.cpp src/plugins/clangcodemodel/clangassistproposalmodel.h Change-Id: Iba30d2f4d95fa0f551afe58890d15f5835dfb715
| * Fix display of MSVC2015 in compilerString().Friedemann Kleint2016-01-191-0/+4
| | | | | | | | | | | | | | | | Display values of _MSC_VER >= 1900 (currently displayed as MSVC 2014) as MSVC2015 and larger values as unknown. Change-Id: Id23b0f9342e6ad6d776bb44743e5e4ce91462c8f Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* | Core: Replace ICoreListener by std::functionshjk2015-11-041-0/+17
|/ | | | | | | | | | | | | | | | ICoreListener::coreAboutToClose() remains in the core, ICoreListener::editorAboutToClose() is handled by a new EditorManager::addCloseEditorListener() function. This removes the need for some boiler plate code resulting from the need to implement the interface in custom classes (DesignModeCoreListener, EditorClosingCoreListener, PojectEplorer::CoreListener and VcsBase::CoreListener). EditorManager::addCloseEditorListener Change-Id: Ie554c987b5455b555be6d77b77e4013639201d22 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Core: Allow adding additional information to about dialog.Eike Ziller2015-10-091-0/+10
| | | | | | | | Purpose is to get rid of hard coded license information string in the Qt Creator binary. Change-Id: I867e2aed010f8a622adfbb89ac96dccbc8229161 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Fix wrong context help if tool tip was not shown for focus widgetEike Ziller2015-09-301-5/+6
| | | | | | | | | | | | | The tool tip never has focus, so it cannot become the IContext that is checked for context help. So, integrate the help id into Utils::ToolTip and check the tool tip first when checking for context help. As a side effect the [F1] button and help id for the tool tip is now also available for use outside of the text editors. Task-number: QTCREATORBUG-5345 Change-Id: Id975703caf161d1183c247e8ad8bb693b90fd306 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* ICore: Consistently use NewItemDialog to refer to File>New dialogTobias Hunger2015-09-241-3/+3
| | | | | Change-Id: I28fba1e7cca3f9885d14c6e58d693046a4c0ea33 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* ICore: Don't split context in contextChanged signalEike Ziller2015-09-231-4/+3
| | | | | | | | This way the order of the context doesn't get lost between context from the focus widget and additional contexts Change-Id: I371c411a5d9c9f31ae1f8631a6ede4eda100b0c5 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Merge remote-tracking branch 'origin/3.5'Eike Ziller2015-08-061-0/+4
|\ | | | | | | Change-Id: I1ce0fa92e5c469d591d3030d1a4f168dcee232ba