summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/CMakeSetup.cxx
Commit message (Collapse)AuthorAgeFilesLines
* cmake-gui: Add optional filename argument to --browse-manualKyle Edwards2023-02-091-3/+8
|
* cmDocumentationEntry: Drop all user provided ctors for C++ >= 14Alex Turbov2022-11-171-2/+3
| | | | | | | | | | | There is no need for them cuz: - the last field has a default value - all static instances use 2 arguments convertible to `std::string` - "dynamic" instances used for _Generator_ doc entries access fields diectly using default constructed instance Moreover, compiler may generate move ctor/assign when needed.
* cmDocumentation: `char*[][2]` → `cmDocumentationEntry[N]`Alex Turbov2022-11-171-15/+13
| | | | | | | | | | Use fixed size arrays of `cmDocumentationEntry` items instead of open arrays of two `char` pointers when describe program options help screens. Also, drop `const char*[][2]` overloads of methods of `cmDocumentation` and `cmDocumentationSection` classes in the sake of generic (template) appenders introduced earlier.
* CMakeSetup.cxx: Use anonymous namespace instead of `static`Alex Turbov2022-11-171-5/+9
|
* ctest.cxx: Eliminate redundand trenary operatorAlex Turbov2022-11-171-1/+1
|
* cmake: Honor CMAKE_GENERATOR env var in --help outputJuan Ramos2022-10-211-1/+1
|
* cmake-gui: Support non-ASCII chars on Windows with Qt6Mehdi Chinoune2022-06-101-30/+13
| | | | | | | | | | Since commit baead1e2a8 (Encoding: Remove option to use ANSI code page internally, 2016-11-01, v3.8.0-rc1~358^2), we always use UTF-8 strings internally. Using fromLocal8Bit/toLocal8Bit + QTextCodec is no longer needed. Convert to fromStdString/toStdString instead, which should work both with Qt5 and Qt6. Fixes: #23565
* Merge topic 'cmake-gui-locale'Brad King2022-05-311-0/+14
|\ | | | | | | | | | | | | ae13524e3b cmake-gui: Restore support for internationalization with Qt5 on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7303
| * cmake-gui: Restore support for internationalization with Qt5 on WindowsBrad King2022-05-271-0/+14
| | | | | | | | | | | | | | | | | | Restore the logic removed by commit 035078d847 (cmake-gui: Remove explicit locale setup, 2020-12-17, v3.20.0-rc1~205^2~6), but only with Qt5 on Windows. Leave a FIXME comment to support Qt6 later. Fixes: #23562 Issue: #23565
* | cmake-gui: Address deprecation warnings with Qt6Craig Scott2021-05-081-4/+7
|/
* cmake-gui: Remove explicit locale setupSankhesh Jhaveri2021-01-051-4/+0
| | | | Qt uses utf-8 encoding by default for versions >= Qt5.
* cmake-gui: Use icon from system theme if availableLoren Burkholder2020-12-151-1/+1
|
* Merge topic 'cmake-presets-help-flag'Brad King2020-10-281-1/+6
|\ | | | | | | | | | | | | c619be2784 ccmake: Don't list --preset in --help Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5428
| * ccmake: Don't list --preset in --helpKyle Edwards2020-10-271-1/+6
| | | | | | | | | | | | And show available options in cmake-gui. Fixes: #21313
* | CMake GUI: Add --browse-manual argumentKyle Edwards2020-10-271-1/+6
|/
* CMakePresets.json: Rework how --preset argument is handledKyle Edwards2020-10-261-2/+1
| | | | | | | | If a path argument with no -S or -B leads to a cache directory, use that directory as the binary directory. Otherwise, use the binary directory from the preset. Fixes: #21311
* CMake GUI: Add presets functionalityKyle Edwards2020-10-051-3/+22
|
* CMake GUI: Split up into libraries, add test shimKyle Edwards2020-09-231-2/+5
|
* QtDialog: remove Qt4-only codeBen Boeckel2020-06-091-8/+0
| | | | | The `reset()` method was actually deprecated for 5.0 which means it can now be removed here.
* Remove redundant calls to CollapseFullPathBrad King2020-03-241-4/+2
| | | | | Remove calls where it is known the input is already a collapsed full path.
* Revise include order using clang-format-6.0Kitware Robot2019-10-011-13/+16
| | | | | Run the `clang-format.bash` script to update our C and C++ code to a new include order `.clang-format`. Use `clang-format` version 6.0.
* clang-tidy: modernize-deprecated-headersRegina Pfeifer2019-09-161-2/+2
|
* cmStringAlgorithms: Move string functions to the new cmStringAlgorithms.hSebastian Holtermann2019-07-291-0/+1
| | | | | This adds the `cmStringAlgorithms.h` header and moves all string functions from `cmAlgorithms.h` to `cmStringAlgorithms.h`.
* Ensure stdin, stdout, and stderr pipes are always openBrad King2019-05-021-0/+1
| | | | | | | | | | | | | On non-Windows platforms libuv assumes that file descriptors 0-2 are always used for standard pipes and never for anything else. Otherwise, libuv may re-use one of these descriptors and then fail an assertion when closing it. Similarly, On Windows platforms our ConsoleBuf implementation assumes that the standard handles are always open. If CMake is run with any standard pipes closed, open them with `/dev/null` or `NUL` to satisfy these assumptions. Fixes: #19219
* cmake-gui: Fix theme on Windows with Qt >= 5.10mistersandman2019-04-081-0/+3
| | | | | | | In Qt 5.10 the theme support moved to a separate QWindowsVistaStyle plugin. Issue: #19147
* QtDialog: Clean up and document -S and -B optionsKyle Edwards2019-01-251-12/+43
|
* cmake: Return generator docs directlyArtur Ryt2019-01-181-2/+1
| | | | | | | | | The GetGeneratorDocumentation() function was not accurately named and required the vector to populate to be passed as a function argument. This commit makes the slightly renamed function return by value, making it a true getter as implied by its name. Some minor refactoring of the implementation also makes the steps of populating the vector clearer.
* Properties: Add CMAKE_ROLE global propertyKyle Edwards2019-01-171-1/+1
| | | | | This property allows scripts to determine whether they're in project mode, script mode, find-package mode, CTest, or CPack.
* Merge topic 'readability-static-accessed-through-instance'Brad King2018-11-281-6/+6
|\ | | | | | | | | | | | | 3e60580784 clang-tidy: Fix readability-static-accessed-through-instance Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2647
| * clang-tidy: Fix readability-static-accessed-through-instanceRegina Pfeifer2018-11-211-6/+6
| | | | | | | | Enable the check in .clang-tidy and fix all warnings.
* | clang-tidy: fix warnings in macOS-only codeBrad King2018-11-271-5/+4
|/
* CMake: Internally uses -S instead of -H to specify source directoryRobert Maynard2018-09-151-1/+1
|
* Revise C++ coding style using clang-format-6.0Kitware Robot2018-06-011-7/+8
| | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Extend libuv file translate mode workaround to all executablesBrad King2018-01-231-0/+1
| | | | | | | | | | | | | | | Since libuv commit v1.14.1~7 (win: add uv__once_init() calls, 2017-08-30) the libuv initialization of the file translate mode may take place even if we do not use a uv loop. This change was included in our libuv update commit f4a26c748b (libuv 2018-01-19). Therefore use of libuv even through `cmSystemTools::GetRealPath` in any executable may trigger its file translate mode setting. Factor out the logic added to `cmake.exe` by commit v3.9.0-rc4~10^2 (cmake: Fix default file translate mode when using libuv, 2017-06-13) and re-use to initialize all executables. Issue: #16962
* cmake-gui: Add build option to use Qt5 windows plugin staticallyBrad King2017-11-131-0/+4
| | | | This will enable builds against a static Qt5 on Windows.
* cmake-gui: Enable High DPI scalingLuis Caro2017-09-151-0/+4
| | | | | | | | | | This Qt flag enables UI scaling based on scale factor provided by the operating system. Only supported on versions of Qt >= 5.6. The flag has no effect on macOS, where high DPI support is already enabled as a setting in the bundle's info.plist. Fixes: #17026
* Use C++11 nullptrDaniel Pfeifer2017-08-241-8/+7
|
* cmake: initialize with Role that controls which commands to registerDaniel Pfeifer2017-05-081-1/+1
|
* Use quotes for non-system includesDaniel Pfeifer2017-04-111-3/+3
| | | | | | | | | | | | | Automate with: git grep -l '#include <cm_' -- Source \ | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g' git grep -l '#include <cmsys/' -- Source \ | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g' git grep -l '#include <cm[A-Z]' -- Source \ | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
* Add self-sufficient wrapper for <sys/stat.h>Daniel Pfeifer2017-03-241-1/+1
|
* Fix several include-what-you-use findingsDaniel Pfeifer2016-11-081-0/+2
|
* Encoding: Remove option to use ANSI code page internallyClinton Stimpson2016-11-021-2/+0
| | | | | | The switch to use UTF-8 encoding has been defaulted to on for quite some time since commit v3.2.0-rc1~116^2 (Encoding: Switch to use UTF-8 internally by default on Windows, 2014-12-26).
* Simplify CMake per-source license noticesBrad King2016-09-271-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* Merge topic 'qtdialog-lib-paths'Brad King2016-09-231-0/+2
|\ | | | | | | | | 48624b3c cmake-gui: Do not remove library paths for Qt5 plugins.
| * cmake-gui: Do not remove library paths for Qt5 plugins.Clinton Stimpson2016-09-221-0/+2
| | | | | | | | | | Not removing library paths is necessary for QFileDialog to function correctly on Linux when using Qt5.
* | QtDialog: fix clang-tidy warningsDaniel Pfeifer2016-09-061-7/+8
| |
* | fix a load of include-what-you-use violationsDaniel Pfeifer2016-09-031-0/+2
| |
* | Source/QtDialog: Run clang-formatBrad King2016-07-051-1/+1
| |
* | cmake-gui: Add build option to use Qt5 xcb plugin staticallyBrad King2016-06-301-0/+5
|/ | | | This will enable builds against a static Qt5.
* cmake-gui: Teach Qt5 where plugins are when launched through a symlinkRobert Maynard2016-06-091-0/+34
| | | | | | | | When we are on OSX and we are launching cmake-gui from a symlink, the application will fail to launch as it can't find the qt.conf file which tells it what the name of the plugin folder is. We need to add this path BEFORE the application is constructed as that is what triggers the searching for the platform plugins