summaryrefslogtreecommitdiff
path: root/src/libs/utils/pathchooser.h
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Rename FilePath::rawFileName to rawFilePathhjk2020-05-221-1/+1
| | | | | Change-Id: Idf8cad2b18087f511aa1efe54adbb5a427660016 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* PathChooser: Allow for chooser-only selection of files/directoriesTobias Hunger2020-04-211-0/+4
| | | | | | | | | | | | | Makes the line edit disabled and read-only in that case. We also need to change the custom context menu from the line edit to the path chooser itself, because disabled widgets do not show a context menu, but we still want to see the select & copy, and the special items for opening explorer or terminal. Task-number: QTCREATORBUG-23798 Change-Id: Ib653b4eaaedfbe54c614377795ddc52d21ac12c0 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Utils: Replace FileChooser::path() by filePath().toString()hjk2020-04-091-5/+5
| | | | | | | | | | | Keep the old method for now to ease downstream porting. The change is kept mechanical, there's a lot of cleanup possible now on the user code side. Change-Id: I936baedd45b7ba057f1c789a1bec896886f48eff Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Utils: Rename PathChooser::{f,setF}ileName() to {f,setF}ilePath()hjk2020-04-091-3/+10
| | | | | | | | | | It's returning a FilePath, so it's a better fit. Keep the old versions as inline function now to ease downstream migration. Change-Id: I535887928018f42b92895c8b0c82527f0d55e5ca Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* Utils: Remove "ok" and "error" colors accessors for FancyLineEditAlessandro Portale2019-12-191-8/+0
| | | | | Change-Id: I4e6706f284182226da8c9815394f36e9764feab2 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Use FilePath for PathChooser::m_baseDirectoryhjk2019-12-191-7/+3
| | | | | | | ... and collapse the two accessor versions to one. Change-Id: I282753a0092601cff073684053ff914016452645 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Rename FileName to FilePathhjk2019-05-281-7/+7
| | | | | | | | More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Expand QTC variables from PathChooserAlexis Jeandet2018-09-111-0/+6
| | | | | | | | This would allow to use QTC variables in settings using this widget such as Extra Debugging Helpers. Change-Id: I8ac6de46f359f58a501f09774d992a19b48d7d5f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Remove superfluous qualificationsOrgad Shaneh2018-07-191-3/+3
| | | | | Change-Id: I36e17dac0cff87f82f0ddaf97bc613389110f218 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Use override consistentlyTobias Hunger2018-05-131-1/+1
| | | | | | | clang-tidy fixes from modernize-use-override check. Change-Id: I89d27f359b6ee507153cb3712f61f81471ff0858 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* PathChooser: ModernizeAndre Hartmann2017-08-221-2/+2
| | | | | | | | | * Range-for * Remove QLatin1{Char|String} * Member-init Change-Id: I8c928a21cd1187e83264c88e1c62d81d82ed088f Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Wholesale conversion to #pragma oncehjk2016-03-301-5/+1
| | | | | | | Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* TextEditor: Use PathChooser for FindInFilesOrgad Shaneh2016-01-211-1/+1
| | | | | Change-Id: I17058cd41eec1cfea41ddbf2cae1a7c70a4e3a10 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* PathChooser: Provide static way to expand a directory...Christian Stenger2016-01-201-0/+3
| | | | | | | | ...to be able to fetch working directory even for non-active targets. Change-Id: I563e9b56e8a8393b998811e0fb364078d4c37d03 Reviewed-by: hjk <hjk@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update remaining files in src Change-Id: I1896f17fcf34f71c3310c87899fb5171b8e4afb1 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* ProjectExplorer: Use FileName in WorkingDirectoryAspectOrgad Shaneh2016-01-061-0/+1
| | | | | | | + use native separators for user visible strings Change-Id: Id6e4e27db369314f70e355a395cfddca12b8ea90 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* PathChooser: Add interface to set ok/error color for lineeditTobias Hunger2015-10-141-0/+8
| | | | | Change-Id: I4fcd72e8b9281d1cdb404ccc268c453417ec35db Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Utils: Rename PathChooser::changed() signal.Christian Kandeler2015-09-031-1/+1
| | | | | | | | | The name is overly generic, particularly with a pathChanged() signal also present. Rename to "rawPathChanged", which adequately describes the semantics. Change-Id: Ia62b8b0a97a794cb6d5ad6b8ce0abcd36b5f5cdb Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Utils::PathChooser: Allow the core plugin to extend the context menuDaniel Teske2015-08-311-0/+7
| | | | | | | | | | | | | | | | 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>
* PathChooser: Use a std::function as callbackhjk2015-05-071-6/+3
| | | | | | | ... instead of a SLOT(...) Change-Id: I32ed3ea014d1efde54bac2d5153f3083e37ef7ec Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Get rid of FancyLineEdit::validateEike Ziller2015-05-061-6/+4
| | | | | | | | Use aggregation instead of inheritance for customization of validation. Gets rid of a few additional classes. Change-Id: Iaf8f12026c40a55bfde98b3786100f8ac431d750 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Merge remote-tracking branch 'origin/3.4'Eike Ziller2015-03-091-1/+0
|\
| * Utils: Modernize connectionsOrgad Shaneh2015-03-061-1/+0
| | | | | | | | | | Change-Id: I4650abc84e7c82a4054197319f6c849af9e5b8ce Reviewed-by: hjk <hjk@theqtcompany.com>
* | PathChooser: Replace virtual function with function object.Christian Kandeler2015-03-021-1/+7
|/ | | | | | | | | | | | | | | | | | | | | | | | This allows calling code to add its own path validation without creating a derived class. Some notes on API decisions: - Since all current users of this functionality call the base class implementation in their derived function, no functionality is provided to completely replace the path validation function (as opposed to merely add checks). In the unlikely case that this is ever needed, we can easily add it. - The member function is called "setAdditionalValidator" rather than the shorter "addValidator" because the latter might suggest that repeated calls will chain the provided functions. - There is also no functionality to conveniently remove the additional validator, because such dynamic behavior was not needed so far. This patch only does the minimum changes to the calling sites that are required for them to continue compiling and working. Removal of the derived classes that are no longer needed happens in a follow-up patch. Change-Id: I5282835b5dd227149748a7f567006beb288d8aa3 Reviewed-by: hjk <hjk@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Update LicenseEike Ziller2015-01-161-6/+6
| | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* License updateEike Ziller2014-10-091-7/+8
| | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Utils: Remove unneeded namespace qualificationsOrgad Shaneh2014-07-161-4/+4
| | | | | | Change-Id: Iacab8410ab4d3b63f96e7541b450e3cc729ab662 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
* Project: Use Utils::FileName as return type for projectDirectory(...)Tobias Hunger2014-05-061-0/+1
| | | | | Change-Id: I3ea10aa204b1ea41702edab09884b416cd6d9e06 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
* PathChooser: Provide more direct access to button labelhjk2014-02-191-1/+1
| | | | | | Change-Id: I1489f40432acd3b70cedac6aded40738dddca941 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Incremented year in copyright infoRobert Loehning2014-01-081-1/+1
| | | | | | Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* PathChooser: Grant direct access to lineEdit's history keyhjk2013-10-281-0/+3
| | | | | Change-Id: I889b5cd0dbc27144253a9c82567eee59554725a3 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Improve property offering in Utils::PathChooserAndrew Knight2013-07-151-1/+4
| | | | | | | | Add notifier to path property. Add promptDialogFilter to property list. Change-Id: Ic0e5dbdc1a2c1ac64477baeee5f55bc4416bc526 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Merge remote-tracking branch 'origin/2.7'Eike Ziller2013-04-111-0/+1
|\ | | | | | | | | | | | | | | Conflicts: src/plugins/cpptools/cppchecksymbols.h src/plugins/qmldesigner/components/formeditor/resizecontroller.cpp Change-Id: I887ba071fa637ad44e39bcae581738fa078a6612
| * Add SaveFile functionality to Utils::PathChooserRafael Roquetto2013-04-091-0/+1
| | | | | | | | | | Change-Id: I4e35c15a16eda924af217a668159cf2f65af0e94 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* | Clean headers in Utils.Friedemann Kleint2013-03-191-3/+1
|/ | | | | | | | | | Forward-declare QGraphicsOpacityEffect in DetailsButton, QProcessEnvironment in Environment, QFileInfo in fileutils, QUrl in IWelcomePage, FancyLineEdit in PathChooser and remove unneeded headers. Change-Id: I7d5f273530dd2059bbdaf0899f0a3bc7e49e8482 Reviewed-by: hjk <hjk121@nokiamail.com>
* Merge remote-tracking branch 'origin/2.6'Oswald Buddenhagen2013-01-311-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in src/plugins/debugger/qtmessageloghandler.cpp src/plugins/debugger/qtmessagelogwindow.cpp src/plugins/madde/maemodeployconfigurationwidget.cpp src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp src/plugins/qmldesigner/designercore/include/widgetqueryview.h src/plugins/qmldesigner/designercore/metainfo/metainfoparser.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.h src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp src/plugins/qnx/bardescriptormagicmatcher.h src/plugins/qt4projectmanager/profilekeywords.cpp src/plugins/remotelinux/deployablefilesperprofile.cpp src/plugins/remotelinux/deployablefilesperprofile.h src/plugins/remotelinux/deploymentinfo.cpp src/plugins/remotelinux/deploymentsettingsassistant.cpp src/plugins/remotelinux/profilesupdatedialog.cpp tests/auto/icheckbuild/ichecklib.cpp tests/auto/icheckbuild/parsemanager.cpp tests/auto/icheckbuild/parsemanager.h Change-Id: Ie465a578446a089e1c502d1cb1096e84ca058104
| * Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | | | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Qt4ProjectConfigWidget: Update build directory line edit on buildDaniel Teske2013-01-171-0/+1
|/ | | | | | | | That line edit shows a red text if the directory does not exist, building triggers a recheck and removes the red if the directory exists. Change-Id: I50e87816a3e1b4ee9ef6ccb91e66eec8f7783242 Reviewed-by: Robert Loehning <robert.loehning@digia.com>
* Adjust license headershjk2012-10-051-21/+20
| | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* utils: base PathChooser on FancyLineEdithjk2012-08-241-1/+2
| | | | | Change-Id: Ibf5e7ca866dca0816efda9f75af2cd17ac61c7c7 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Target options layout fixes.Eike Ziller2012-06-231-0/+1
| | | | | | | | * smaller icon button (waste less space) * align manage/choose buttons Change-Id: Idb2cb111a40353f2405cd964c2ec4f5cf8b24d78 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
* Pathchooser: Add method to get/set base dir using a FileNameTobias Hunger2012-03-271-0/+3
| | | | | Change-Id: I29f09197f98ad12f3508ff2357dc294b2f820050 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* Do not mark up unknown types as designableTobias Hunger2012-03-271-1/+2
| | | | | | | | Do not mark up properties using types that are not known to designer as designable. Change-Id: I45b702dc0e441998f6afa7989f8c12a3b068899e Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* Removed module names from #include directives.Erik Verbruggen2012-02-151-1/+1
| | | | | | | | Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* Add API for FileName to PathChooserTobias Hunger2012-01-171-0/+5
| | | | | | | Add a API to enable use of Utils::FileName in the PathChooser. Change-Id: I787ef0e23001188fda10497c8ee22a5c2352de4d Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-031-2/+2
| | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* all: some m_d -> d stylehjk2011-09-081-1/+1
| | | | | | Change-Id: Iac1f12980bf47666007817cfb2c64a6d1e9b780e Reviewed-on: http://codereview.qt-project.org/4477 Reviewed-by: hjk <qthjk@ovi.com>
* Remove unneeded defines.hjk2011-07-141-1/+0
| | | | | | | | | Mostly Q_DISABLE_COPY that were covered by the un-copy-ability of the respective base classes. Includes a few "stylistic" whitespace changes. Change-Id: I31ca0e7bada5ed0f34776976efe22ddc444a5bf2 Reviewed-on: http://codereview.qt.nokia.com/1609 Reviewed-by: hjk <qthjk@ovi.com>