aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/runconfigurationaspects.h
Commit message (Collapse)AuthorAgeFilesLines
...
* ProjectExplorer: Let user provide default for "run in terminal"Christian Kandeler2019-03-151-1/+4
| | | | | | | | | | | | | We enable the "Run in terminal" checkbox for all applications that declare themselves console apps, but that's not necessarily what the user wants. So let them opt out of this mechanism via a global setting. [ChangeLog] There now is a global setting for "Run in terminal". Change-Id: Ieeed72fdd01144d9aec0a7c7d4a12b9e5a94cd1d Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Move Base{Bool,String}Aspect to new fileshjk2018-09-191-91/+1
| | | | | | | | | | Create projectconfigurationaspect.{h,cpp} for re-usable aspects. Also pimpl the two exported classes. Task-number: QTCREATORBUG-19985 Change-Id: Id1d44b551c5dc2cf6eb4fbc3a2a505d4a83ae53f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* ProjectExplorer: Split IRunConfigurationAspecthjk2018-09-181-7/+7
| | | | | | | | | ... into items that can be used generically in project configurations (ProjectConfigurationAspect) and items that have a choice between global and project settings (GlobalOrProjectAspect) Change-Id: I94831237bdbb18c339eb76eba131bf7f928933d6 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* ProjectExplorer: Add default value handling to BaseBoolAspecthjk2018-09-171-0/+4
| | | | | | | | Will be useful e.g. for "Incremental deployment" in RL's GenericDirectUploadStep. Change-Id: Idb07db2d9f075cda8f4cbb905f1e04fc24342ce0 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* ProjectExplorer: Remove IRunConfigurationAspect::runConfigurationhjk2018-09-131-10/+9
| | | | | | | | ... and adapt constructors to not take the now-unneeded RunConfiguration pointer. Change-Id: I53ff338f51334ff7b0c22d4bed92bfcfc8225ea7 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* ProjectExplorer: Pass macro expander to ArgumentsAspect::argumentshjk2018-09-131-1/+1
| | | | | | | To remove the last user of IRCAspect::runConfiguration. Change-Id: I1390166730112008a4050877f96bb29f274e7ef1 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* ProjectExplorer: Pass macro expander to WorkingDirectoryAspecthjk2018-09-121-1/+1
| | | | | | | ... when needed to avoid a use of IRCAspect::runConfiguration. Change-Id: I0bdae0a2a1aad4475dd3225e6ae71da7bfd9513f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* ProjectExplorer: Make WorkingDirectoryAspect less dependent on runconfighjk2018-09-101-1/+4
| | | | | | | | | | This was one of the genuine users of the run config pointer in the aspect base class. Instead of using that stored pointer to retrieve the relevant environment aspect pointer later, pass and store this env aspect pointer at construction time. Change-Id: Icbdeb9ad0fe341e4003fb544c542064801aa170f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* ProjectExplorer: Allow labels with pixmaps in string based aspectshjk2018-09-041-0/+2
| | | | | | | Can be used to show warning icons etc. Change-Id: I3ec845c11ea8147482ed90a0fac3c008bcffdec3 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Unify key names for various fields in stored RunConfigurationshjk2018-08-211-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | This replaces various versions of the key name of the arguments, working directory, use terminal and use dyld image suffix fields by unified versions ("RunConfiguration.Arguments", "RunConfiguration.WorkingDirectory", "RunConfiguration.UseTerminal", "RunConfiguration.UseDyldImageSuffix"). The different names for the fields are technically not needed (as proven by several cases that already now used the same key), partially outdated ("Qt4ProjectManager.MaemoRunConfiguration.Arguments") make RunConfiguration constructors less uniform and more complex than needed. The "RunConfiguration." prefix in the new names is not needed, but used by several other settings, so having it there looks more uniform now. In (the unexpected case) that different keys would ever be necessary, the default key name could still be overridden by using setSettingsKey from user code. Change-Id: Ifb74ad74e0a9c724c8bf5e71e1bb2424d5d1831b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Remove ApplicationLauncher::Modehjk2018-06-051-3/+0
| | | | | | | | | | | | | | | | | | The actual remaining use was to pop up a terminal in some setups where Mode == Console, with a default of Gui meaning "no console". In some downstream uses it was used set to Console (probably to mean "this helper process does not need a gui") but then luckily ignored when actually starting the helper processes. All cases where the console is useful and requested are nowadays RunWorkers belonging to RunConfigurations with a TerminalAspect, so they can directly get the relevant bit from their RunConfiguration without having it part of all StandardRunnables. Change-Id: I1368d5968da5cf672656aebf200ccac8d45335d0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Enhance IRunConfigurationAspect base interfacehjk2018-05-081-18/+6
| | | | | | | | | | Move some commonly used functions to the base, The plan is to identify aspects by Id instead of type more often, so avoid casts proactively. Change-Id: I1b94b858a4491a0e31cedc788ded643a82242b2a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Make BaseStringAspect signal changeshjk2018-04-261-0/+6
| | | | | | | Useful in boot2qt runconfig widgets. Change-Id: If5557cf3e444d5d9fe0552b5917f0dafab05e423 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* RemoteLinux: Fix custom runconfig executable path chooserhjk2018-04-251-0/+1
| | | | | Change-Id: I9725151eb8496c9af58b9ae9f22de3aa2fd11165 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Add destructors to some run config aspectshjk2018-04-251-0/+3
| | | | | | | BaseStringAspect and ExecutableAspects were leaking their extras. Change-Id: I6dc2a66e4f3e9910f1c460d40056d68cf12b9774 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: Fix saving of modifiable ExecutableAspectshjk2018-04-251-0/+1
| | | | | | | | | | The settings key decides on saving, the underlying BaseStringAspect needs to know it. This only affected RemoteLinuxCustomRunConfig so far. Change-Id: Ic4af9fa752b0b1ae107779d88978495e511cf98c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Make string based aspect widgets more flexiblehjk2018-04-241-5/+10
| | | | | | | | By making some of the underlying PathChooser etc. functions accessible. Change-Id: Iaea1543af8b6711bd7594a029e0612d6c6fc4b4b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Simplify runconfiguration aspect addTo... interfacehjk2018-04-241-6/+6
| | | | | | | | The parent widget is always given by the layout, no need to pass it as separate parameter. Change-Id: I9e7ed3a89eb63b78a549471d839060131737ff78 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: Rework executable display handling in runconfigshjk2018-04-231-28/+90
| | | | | | | | | | | | | | | | | | | | The basic idea is to provide an easy-to-configure reusable building block to provide an "Executable" in a run configuration. This patch here extracts some generic from the previous ExecutableAspect into a BaseStringAspect and bases the new ExecutableAspect implementation on it. It also adds the the ability to make it editable or to manually override an executable, and adds a SymbolFile aspect for the accompanying sources of debug information. Use in RemoteLinux and Qnx for starters and demonstration purposes. In the end the Qnx runconfiguration widget does not depend on the RemoteLinux implementation anymore by replacing the previous code-sharing-by-inheritance by direct (and less) code. Change-Id: I91b55820455256a8526e39458364b6cb74e63cd7 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* ProjectExplorer: Introduce runconfig aspects for some bool valueshjk2018-04-131-0/+41
| | | | | | | | | | And use it to handle adding extra library path for qbs and qmake and and the DYLD debug suffix for qmake. Could possibly be used more uniformly at some stage e.g. for CMake. Change-Id: I0c4581b4e36960fc76d056c65c487d7c43a1be08 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Introduce and use a ExecutableAspecthjk2018-03-291-0/+24
| | | | | | | | | | | | | | | ... to hold the label with the executable's name in the RunConfiguration widgets. This basically follows suit on {WorkingDirectory,Arguments}Aspect, allowing for some centralized handling of decorations on invalid names etc. Implementation is even simpler as this is read-only and not saved in settings envisioned use cases. Change-Id: I20c5c19e5f19ba8367afc0d04ed2ac3681e6491d Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* ProjectExplorer: Fix copying of RunConfigurationAspectshjk2017-11-101-17/+4
| | | | | | | | | | | Moving aspect data closer to real Value semantics fixes the regression introduced by 890c1906e. Task-number: QTCREATORBUG-19186 Task-number: QTCREATORBUG-19192 Change-Id: Ieaeef3995ae06a817f266c1e2514f9e5793bd4e8 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* TerminalAspect: Initialize boolsTobias Hunger2017-02-091-2/+2
| | | | | | | | | This fixes the problem where sometimes you need to visit the project page to make run in terminal work. Task-number: QTCREATORBUG-17608 Change-Id: I681378cdaa19becf532666401e8695c246e1f5bd Reviewed-by: hjk <hjk@qt.io>
* WorkDirectoryAspect: Small improvementsTobias Hunger2016-03-181-0/+2
| | | | | | | | | | * Do only enable the reset button when there is something to reset * Do not print the default directory in red Task-number: QTCREATORBUG-15644 Change-Id: I05cdd02751dce2c4faeb97358d654251dd9dbfa4 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
* ProjectExplorer: ModernizeTobias Hunger2016-02-031-5/+3
| | | | | | | | | * Use override where appropriate * Use pragma once * Make more constructors explicit Change-Id: I2865fe10f288e3de570826058e43b70a0cb4ee37 Reviewed-by: Orgad Shaneh <orgads@gmail.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>
* ProjectExplorer: Use FileName in WorkingDirectoryAspectOrgad Shaneh2016-01-061-6/+8
| | | | | | | + use native separators for user visible strings Change-Id: Id6e4e27db369314f70e355a395cfddca12b8ea90 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* ProjectExplorer: Avoid updates from the environmenthjk2015-12-181-1/+0
| | | | | | | ... to the working directory widget if that's not present anymore. Change-Id: I242d128b0241735dc6cac84290c9cee66a989067 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* QbsProjectManager: Fix working directory handling.Christian Kandeler2015-08-241-2/+5
| | | | | | | | | | | | | | | | | | Commit 2dbc5b1032 introduced usage of WorkingDirectoryAspect into the qbs run configurations for Desktop targets. However, the design of that class was not suitable for the way our working directory logic works: There typically is a user-provided value and, as a fallback if the user does not provide anything, a default value managed by (build system specific) code. The WorkingDirectoryAspect class could not differentiate between these two values and so the value stayed forever at the initial default if the user did not override it, instead of adapting to the location of the executable. This patch makes the necessary changes to the WorkingDirectoryAspect class so that it matches the actual use case. Task-number: QTCREATORBUG-14891 Change-Id: I7555d0a9cb4b04b75c9215a988278db32eb1ca10 Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
* ProjectExplorer: Remove ExecutableAspecthjk2015-06-101-26/+0
| | | | | | | It's unused, wrong, and unwanted. Change-Id: I1ee5474338b4d7ea9455fa2c3b9671d6a83042c9 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
* ProjectExplorer: Fix connection lifetime in WorkingDirectory aspecthjk2015-05-271-2/+5
| | | | | | | Also add some sanity checks before accessing related pointers. Change-Id: Ic9576ad3b28333210adc1187d4a0a26d52b0538e Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
* ProjectExplorer: Remove IRunConfigurationAspect::addToMain*Widget basehjk2015-05-201-4/+4
| | | | | | | | | | Not needed in the current use cases. The original plan was to use a loop in the *RunConfigurationWidgets constructors, making them less dependent on the actual RunConfiguration they serve (and potentially have a one or few generic RunConfigurationWidget). Change-Id: I2209213414248a1e13b50447f05e8f189620a6f1 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
* QtSupport: Use ArgumentsAspect in CustomExecutableRunConfigurationhjk2015-05-191-1/+4
| | | | | Change-Id: I739d41d917cd72f7be093ceb5200b8c947d09f4a Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
* Qbs: Use TerminalAspect in QbsRunConfigurationhjk2015-05-181-0/+2
| | | | | | Change-Id: I6f1ddec10abda39149dd3743bdff1d0186d1de31 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* ProjectExplorer: Use covariant return types for aspect creationhjk2015-05-181-8/+8
| | | | | | | | ... and cloning. Most aspects already did, it does no harm, might save a cast later, so follow suit. Change-Id: Id6275806657b723d4352a4b772b220cb9a2d9a5f Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
* Add TerminalAspect convenience accessorhjk2015-05-121-0/+4
| | | | | | | Unbreaks build after 90f19ce. Change-Id: I0f1ddec10abda39149dd3743bdff1d0186d1de31 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
* ProjectExplorer: Rename TerminalAspect::m_isForced -> m_userSethjk2015-05-121-2/+2
| | | | | Change-Id: I209abef3e6682b2d3725e0e58e0289cd5757c497 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
* ProjectExplorer: Merge terminalaspect.* into runconfigurationaspects.*hjk2015-04-291-0/+28
| | | | | Change-Id: I24c61feac5e25171f5878c4f87e760481eff7996 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* ProjectExplorer: Introduce more RunConfigurationAspectshjk2015-04-291-0/+129
- WorkingDirectory - Arguments - Executable Change-Id: I6bc83b32d33ec3b27b04ec1b334f75ae3b9d13cb Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>