summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/coreplugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* ProjectExplorer: Add "Open Terminal Here" as default entryAndre Hartmann2019-06-121-1/+1
| | | | | | | | | | | Most often, a terminal with system environment is needed. Provide it as direct context menu entry, and leave the additional entries for build and run environment (which are probably more seldom used) as sub-menu as before, but rename it to "Open Terminal with >". Change-Id: I148395ca1e62eafff8844ba91db269a12b053de9 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Make variable descriptions consistentRobert Loehning2018-10-221-2/+2
| | | | | | | | The others aren't in imperative form, either. Change-Id: I7af7b0ddcdf409d952223225bd901c84b9136bc6 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Fix macOS buildTim Jenssen2018-09-211-0/+2
| | | | | | | std::srand was not existing maybe an issue with older SDKs. Change-Id: Icd1af82d6e698da9f814ed0d96a839f46272c661 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Core: Avoid deprecated QDateTime::toTime_tOrgad Shaneh2018-09-211-1/+1
| | | | | Change-Id: I96364e5c0bfa478483614910025169ffb7369b51 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Make Core independent from QtHelpEike Ziller2018-09-041-2/+8
| | | | | | | | | | | | | | | | | | | We don't want various plugins to depend on the Help plugin, but we also do not want Core to depend on QtHelp. For example when turning the Help plugin off, documentation should actually no longer be registered through QtHelp. So we need parts of the interface in Core, which must then be delegated to the actual implementation in Help. As positive side-effects the interface in Core will be slimmer, and the code in the Help plugin can later be simplified, too, because then we don't have the "Core" and the "Gui" help engines separated in different plugins anymore, which should remove the need for some setup indirections. Task-number: QTCREATORBUG-20381 Change-Id: I634c5811c45d6a3dfd6ddc682cae270e38384cbf Reviewed-by: hjk <hjk@qt.io>
* Core: ModernizeAlessandro Portale2018-08-081-3/+0
| | | | | | | | | | | 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>
* CorePlugin: Switch split if remote command tries to open an already opened fileRazi Alavizadeh2018-06-221-1/+1
| | | | | | | | | It seems more natural that remote commands don't change current editor of active view if file is already opened in another view. Change-Id: Ie27de0d159cae6e63fa1d477fab59887a0e6d198 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Create PathDaniel Trevitz2018-06-051-16/+28
| | | | | | | | | | When the path listed in a PathChooser does not exist, instead of showing actions on non-existent paths show "Create Folder". Task-number: QTCREATORBUG-20532 Change-Id: I98d149129ad33d7be36bfe13b2c1ab57ee193cf0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Add more HostOS related information to MacroExpanderTobias Hunger2018-05-291-0/+6
| | | | | | | | | | * Add HostOS:PathListSeparator * Add HostOS:ExecutableSuffix Both should be useful e.g. for External Tools. Change-Id: I2a807b189eb2ace5ac093e50ff406ebcd3e497a1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: cancel async documentation registration on shutdownDavid Schulz2018-02-211-0/+1
| | | | | Change-Id: I46bc81cf6326e964309996e0e205fff011f596e7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Core: Simplify MainWindow::init() signaturehjk2018-02-121-7/+5
| | | | | | | And adapt its only user. Change-Id: Ifc1f6c7857951d6e1a68f5bc909146e9689c5428 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Replace an in-Core connection by a direct callhjk2018-02-011-3/+0
| | | | | Change-Id: Ic219a992658e080467a18d38121a41990cc377ce Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Move MenuBarFilter closer to its peershjk2018-01-291-3/+0
| | | | | Change-Id: I9d7eac297a06fae39ef7ee19841547e8b5bea45a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Locator: Do not use object pool for some filters and LocatorManagerhjk2018-01-261-1/+1
| | | | | | | | Also bundle lifetime management into one object. Also minor interfact cleanup. Change-Id: I60eec84b0b28a20ce353fcdbfdff1c4848686ba0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Do not put Edit mode in object poolhjk2018-01-261-6/+1
| | | | | | | After cf7f898 not needed anymore. Change-Id: I8d88ffe00b5a94cd9423dd2b9f3f60a2a745a924 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* DesignMode: Create only when neededhjk2018-01-231-9/+2
| | | | | | | | | | | | Postpone the Mode object creation until it is really necessary, the private data object may be needed before. In the QmlDesigner this patch moves the connection to the DesignMode instance back to delayedInitialize, essentially reverting part of e8b3b8140bd5d. Change-Id: I07146b0bc93eede09af8e824e916edb6de1817ef Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* DesignMode: Apply 'static pattern'hjk2018-01-231-2/+2
| | | | | | | | | | | | | | Also: - and replace some occurrences of DesignMode::instance()->id() by Core::Constants::MODE_DESIGN for less dependence on the lifetime of the DesignMode object (and less indirection) - remove storage if DesignMode::instance() values when direct use of the static functions suffice - remove some unused items from the interface - use member-initialization in DesignMode::Private. Change-Id: Ie66c06da0fc0a3ccc588b8079e51db6b39284152 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: add menu bar locator filterDavid Schulz2018-01-151-3/+6
| | | | | | | | Adding the possibility to trigger menu actions from the locator Change-Id: I70d595c167f5b43b02f8125eafbb83e5b45012c9 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove use of global state from InfoBarEike Ziller2017-11-011-1/+1
| | | | | | | | It is initialized by the core plugin anyhow, so give it enough information there to avoid accessing the global state later. Change-Id: I39e7a9f32ef5c7930faf9ba751e75bebf57b507e Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Make DocumentManager::projectsDirectory a FileNameEike Ziller2017-09-191-1/+1
| | | | | Change-Id: I9454c2148c398939c64bfa6b1fc182670a1d5f99 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* app_version.h: Make IDE name configurableTobias Hunger2017-09-051-5/+13
| | | | | | Change-Id: I993f452c8d09cf89e9a2958fc8e36b7d2c17ee6f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Replace QLatin1String, QStringLiteral ("") with QString()Nikita Baryshnikov2017-08-211-1/+1
| | | | | | Change-Id: I21e6165e7e8858df8436c04c9afcc1be5242bda4 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* Unit tests: Fix ProjectInfoGenerator.* testsNikolai Kosjar2017-07-271-1/+1
| | | | | | | | | | ...by adapting to recent mime type changes: commit e8e46ab553bce9aac9adcaf2ac4ee1207b69ac93 Plugins: Fix that mimetype definition was not valid JSON Change-Id: Iac416ab481814e4488fac4d818c51c647c1ec349 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Plugins: Fix that mimetype definition was not valid JSONEike Ziller2017-07-251-2/+3
| | | | | | | | | | | | | JSON officially does not support multiline strings, so we should use the same mechanism that we already use for the plugin description (i.e. additionally support arrays of strings which are interpreted as lines). This just happens to work because Qt's JSON parser eats it without choking. Change-Id: I25ef04600b209775c5a7af916c687fda4a8b1a4d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Core: Add the "resourcePath" to the global macro expanderAlessandro Portale2017-05-241-0/+2
| | | | | | | | | Example use case: Multiple wizard json files want to reference a shared resource file without using fragile relative paths. Change-Id: I2502083d4c371c25a8b66e7d5d3b4fb9d8697317 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Utils: Wrap MimeDatabase into static functionshjk2017-03-031-2/+1
| | | | | | | | To avoid repeating the 'MimeDatabase mdb; mdb.something(); ' mantra all over the place. Change-Id: I4bfef62e73275a991455141671d6071162788e9d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Move mimetype definitions to plugin specsEike Ziller2017-02-271-0/+13
| | | | | | | | | | | | - Avoids the hassle of QRC files and manually registering mime types - Avoids performance regressions because of mime types that are registered after mime database has been used - Makes it technically possible to detect that a disabled plugin could handle a mime type if it was enabled Change-Id: I373008b1b56e9c6b4853055f20b3eeb112a6eff9 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Utils: First step to extend search results for clang query supportMarco Bubke2016-11-231-0/+2
| | | | | | | | | We need multi line support, multi text range support. This is only adding enablers and adds later the multi line and multi text support because this triggers larger changes because you have to know the text document. Change-Id: I44e46d9d80d7d73b2650c69cc83657c20c85bfae Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Merge remote-tracking branch 'origin/4.2'Orgad Shaneh2016-11-021-37/+21
|\ | | | | | | Change-Id: Ibb932efece05a5f5613823fbc79c5b7601c73905
| * Core: Refactor argument handlingEike Ziller2016-11-021-37/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split up getting the data from the arguments list and actually applying the values, and move the details of theme creation and application to better places. This gets rid of ugly control flow details like that CorePlugin::initialize created the action manager before calling parseArguments, because that is needed to apply the presentation mode argument setting, and parseArguments created the main window because that needs to be created _after_ setting the theme (which can be overridden by command line argument), but _before_ applying the override color argument setting. Change-Id: I9c99305b6efbfcc4b37cea9e5c70d816a621963b Reviewed-by: David Schulz <david.schulz@qt.io>
* | Core: Add a reaper that will asynchronously clean up QProcessesTobias Hunger2016-10-281-0/+1
|/ | | | | Change-Id: Ic24dde261eac775d1a5854b8dbcbfeb002d0f729 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-05-091-0/+7
|\ | | | | | | | | | | | | | | | | Conflicts: src/plugins/autotest/testcodeparser.cpp src/tools/clangbackend/ipcsource/clangbackendclangipc-source.pri tests/unit/unittest/unittest.pro Change-Id: I9db4fbea6ea7c9fdd0d8e1703735af20c92e754b
| * OS X: Fix regression for opening projects from FinderEike Ziller2016-05-041-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | The kits are restored in delayedInitialize now, but the file open event from Finder was delivered before that. That lead to the projects mode being opened with the kit configuration screen, but mostly no kits in it, when double-clicking a .pro file while Qt Creator is not running. Delay the remote open file command until plugin initialization is really done. Change-Id: I1a75f6b1f7bcefb4c53d594de11df0d3a0d2e5d3 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Merge remote-tracking branch 'origin/4.0'Oswald Buddenhagen2016-03-221-1/+1
|\ \ | |/
| * Core: Use a constant for the default creator themeAlessandro Portale2016-03-181-1/+1
| | | | | | | | | | Change-Id: I53ba63cf55fb6918d959b0d396175a3188d62bd9 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* | Core: Apply 'static' pattern to Core::FindPluginhjk2016-03-151-6/+4
|/ | | | | | | Also, rename it to Core::Find. It hasn't been a plugin for a while. Change-Id: I845885ccf18bdc1440258d523b033758d5583881 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Rename ThemeSettingsWidget -> ThemeChooserOrgad Shaneh2016-01-211-1/+1
| | | | | Change-Id: Ie61dc07d9f8bc8639ff80368a0b2ad4dd62cacb3 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>
* Theme: Remove unused ThemeSettingsOrgad Shaneh2016-01-141-2/+2
| | | | | Change-Id: I5f3ee8f5afa2ef8618d9a43a10e37a30f771d0af Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* MacroExpander: Add a way to generate a new UUIDTobias Hunger2015-11-301-0/+3
| | | | | Change-Id: I5c43419f717d84bd9954a4921eb6e6723d331646 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Silence a warningNiels Weber2015-11-091-2/+0
| | | | | | | | | Commit 11f6162739fb85929cf6c359a0e3b5d7f8fdb87a removed the usage of userProvidedTheme leading to "unused variable" warning. Remove last traces of userProvidedTheme. Change-Id: I187d7ac335ec659a5e8a52e38ffe075a98446586 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* Themes: Fix issues with restoring themes.Eike Ziller2015-11-061-46/+26
| | | | | | | | | | | | | | | | | | Themes from the user config where not restored correctly. Improve error handling when no themes are found in case of broken installations. Cleanly differentiate between theme "id" (currently complete basename of theme file) and theme "displayName" (as specified as a property in the theme file). Remove convoluted broken code that tried to allow using an absolute file path for a theme on the command line and require themes to be installed either in Qt Creator globally or in the user settings path. In general stream line the code. Task-number: QTCREATORBUG-15113 Task-number: QTCREATORBUG-15233 Change-Id: I014a4314e8bea27422ed4c42462cf16f4220698b Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* Utils::PathChooser: Allow the core plugin to extend the context menuDaniel Teske2015-08-311-0/+26
| | | | | | | | | | | | | | | | And then use this to add the "Open in Graphical Shell" and "Open in Terminal" actions. Those actions cannot be implemented in Utils directly since the Core::FileUtils depends on the Options dialog. This affects all PathChoosers, and there's currently no way for a PathChooser to opt out or have a different context menu. That can be added at a later point. Change-Id: I22121c19d66f08785381c7e0bca5317628eb6342 Task-number: QTCREATORBUG-14736 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Core: Add HostOs information to MacroExpanderTobias Hunger2015-06-101-0/+8
| | | | | Change-Id: Ibed6302ce82fce984e42f45eb77a9bb9c1a81f7c Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Core: Expose DocumentManager data to MacroExpanderTobias Hunger2015-06-101-0/+5
| | | | | | | | Expose the last visited directory as well as the project directory stored by the DocumentManager to the MacroExpander. Change-Id: I7cdbe5e5471b5c96954c74f21187786de7bb9aa3 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* MacroExpander: Allow "comment" expansionTobias Hunger2015-06-041-0/+2
| | | | | | | | | | %{#: is now treated as a comment and expands to an empty string } This is useful to add comments about copyright, etc. into the wizard templates. Change-Id: I6e25c724edfa4b865d2d4f74b0f4900982d9ea47 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* WizardFactory: Trigger scan for wizards earlyTobias Hunger2015-05-271-0/+4
| | | | | | | | | | Trigger scan for wizards in delayedInitialize since we need to create commands for the wizards. Also make sure wizards are scanned for when opening the options page, so that the keyboard shortcut page can be fully populated. Change-Id: Iefe28dbcb17f43a7ed114f056012fe8f6e4ae352 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* IWizardFactory: Create wizards with factoryCreatorsTobias Hunger2015-05-261-0/+2
| | | | | | | | | | | | | Do not use the object pool to hold potential wizards. Register FactoryCreator functions with IWizardFactory instead and use those to create the wizards when necessary. This saves us a couple of cycles during startup since we can now delay construction of all wizards and it makes us more flexible wrt. managing the lifecycle of the wizard factories. Change-Id: I95d6a6dfcdf0fd995e1934a9fefcd96c6a676753 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Merge remote-tracking branch 'origin/3.4'Eike Ziller2015-04-151-0/+8
|\ | | | | | | | | | | | | | | Conflicts: src/libs/timeline/qml/MainView.qml src/plugins/git/gitclient.cpp Change-Id: I0b6ec7b9a592014deb0dd2e1145b19dd6753b1c3
| * Fix plugin error dialog modalityOrgad Shaneh2015-04-141-0/+8
| | | | | | | | | | | | | | | | | | | | When the dialog is displayed, the welcome mode becomes disabled. This happens because before the main loop begins, there is no active window, so the dialog has no parent to return focus to when it is closed. Change-Id: I2f8830c3c7bc6816d8483e05e81f5abfe5ee335f Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>