summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/CMakeSetupDialog.cxx
Commit message (Collapse)AuthorAgeFilesLines
* cmake-gui: avoid undefined font in recent macOSCarlo Marcelo Arenas Belón2022-04-151-1/+2
| | | | | | | | | | | | | | Since commit 8fb74f97ef (ENH: Use fixed pitch font in output window, 2008-03-07), cmake-gui has been using a "Courier" font to print mono spaced text in the output window, but at least in macOS 12, Courier is no longer availablemand therefore will print the following warning in the invoking terminal: qt.qpa.fonts: Populating font family aliases took 175 ms. Replace uses of missing font family "Courier" with one that exists to avoid this cost. Change it to use "Courier New" instead, which has been provided as an automatically selected alternative in Windows and comes preinstalled in both systems, and add a hint to pull another monospaced font if not.
* Refactor: Rename cmCMakePresetsFile to cmCMakePresetsGraphKyle Edwards2022-01-061-2/+2
| | | | And change all references to "file" to say "graph" instead.
* cmake-gui: Address deprecation warnings with Qt6Craig Scott2021-05-081-0/+4
|
* CMake GUI: Don't use QToolButtonMatthew Woehlke2021-01-151-1/+0
| | | | | | | | Replace QToolButton instances with QPushButton. QToolButton is only meant to be used on tool bars and some other special situations. Worse, we had a mix of QToolButton and QPushButton for things that clearly should be using the same widget. This will improve visual consistency and may fix some rendering issues.
* CMake GUI: Improve signal specificationMatthew Woehlke2021-01-151-10/+12
| | | | | | | Don't use subclasses to connect to QAbstractButton::clicked. This is slightly dodgy, but of more immediate importance, tweaking it will allow us to change the widget type of some QToolButton instances that should be QPushButton.
* CMake GUI: Add --browse-manual argumentKyle Edwards2020-10-271-13/+16
|
* CMakePresets.json: Split cmakeGeneratorConfig fieldKyle Edwards2020-10-221-1/+3
| | | | | | | | Make this field separate for both architecture and toolset. Allow architecture and toolset to be either strings or objects with value and strategy fields. Fixes: #21317
* CMake GUI: Disable preset fields instead of hiding themKyle Edwards2020-10-161-3/+10
|
* CMake GUI: Add presets functionalityKyle Edwards2020-10-051-2/+84
|
* CMake GUI: Add "CMake Reference Manual" help itemKyle Edwards2020-09-301-2/+16
| | | | And switch the ordering of "Help" and "About".
* CMake GUI: Add environment editorKyle Edwards2020-09-281-0/+17
|
* CMake GUI: Modernize signal-slot connectionsKyle Edwards2020-09-271-115/+137
| | | | | | | Qt5 supports passing function pointers to QObject::connect(), and prefers this over SIGNAL() and SLOT(). Modernize the connections, stop using a deprecated signal from QComboBox, and modernize a few QKeySequence's.
* cmake: Remove broken '--warn-unused-vars' optionBrad King2020-06-291-6/+0
| | | | | | | | | | | | | This option has been broken since commit b9f9915516 (cmMakefile: Remove VarUsageStack., 2015-05-17, v3.3.0-rc1~52^2). That commit removed the check that an initialized variable has actually been used and caused the option to warn on every variable ever set. This was not caught by the test suite because the test for the feature only checked that warnings appear when needed and not that they do not appear when not needed. The option was never very practical to use. Remove it to avoid the runtime cost of usage tracking and checks for every variable (which we were doing even when the option was not used).
* CursesDialog: resolve clang-tidy warningsBen Boeckel2020-06-021-8/+1
| | | | | | | | | Fixes: - unnecessary bool expression (cmCursesMainForm) - removes a duplicate if/else branch (RegexExplorer) - collapses redundant if/else branch logic (CMakeSetupDialog and cmCursesStringWidget)
* QtDialog: avoid using deprecated APIsBen Boeckel2020-06-021-0/+4
|
* cmake-gui: Do not pass CMAKE_{C,CXX}_COMPILER items to cmake if emptyJiri Malak2020-04-271-4/+8
| | | | | | | If C or C++ compiler is not specified in the initial dialog, do not pass `CMAKE_C_COMPILER` or `CMAKE_CXX_COMPILER` cache entries for cross-compilation setup. Instead allow the normal search for the compiler to proceed.
* cmake-gui: Pass CMAKE_SYSTEM_PROCESSOR to from gui to cmakeJiri Malak2020-04-131-0/+3
| | | | | Add missing `CMAKE_SYSTEM_PROCESSOR` cmake cache entry to passed options for first configure. We already pass `CMAKE_SYSTEM_{NAME,VERSION}`.
* Modernize memory managementMarc Chevrier2020-03-051-7/+6
| | | | Update internals of various classes.
* Revise include order using clang-format-6.0Kitware Robot2019-10-011-4/+6
| | | | | 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.
* cmake-gui: Update Qt copyright holder in About dialogBrad King2019-06-121-1/+1
| | | | Qt is now copyright "The Qt Company Ltd.".
* cmake-gui: Fix icon overlay on windowsJulien Jomier2019-04-111-1/+0
| | | | | | | | | Since commit 9175a378f5 (QtDialog: Add windows taskbar progress, 2018-11-17, v3.14.0-rc1~330^2) we've added a missing overlay icon. This results in Windows falling back to a default overlay icon. Simply drop this line. Fixes: #19160
* cmake-gui: Add field for generator platform selectionJulien Jomier2019-01-181-0/+1
| | | | | | | Extend the "first configure" dialog with a field for the user to select a value for `CMAKE_GENERATOR_PLATFORM`. Fixes: #17343
* QtDialog: Add windows taskbar progressJulien Jomier2018-11-201-0/+24
|
* Replace occurrences of "Mac OS X" with "macOS" in commentsBartosz Kosiorek2018-09-101-1/+1
| | | | | | | | Apple's main Operating system changed their name from OS X to macOS: https://www.engadget.com/2016/06/13/os-x-is-now-macos/ Revise source comments accordingly.
* Revise C++ coding style using clang-format-6.0Kitware Robot2018-06-011-3/+4
| | | | | | | | | | | | 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.
* cmake-gui: Use cmake::Open to open generated projectGregor Jasny2017-10-131-27/+9
|
* Use C++11 nullptrDaniel Pfeifer2017-08-241-2/+2
|
* CMakeSetupDialog: Pass QPoint by valueDaniel Pfeifer2017-06-081-1/+1
|
* CMakeSetupDialog: use multi-argDaniel Pfeifer2017-05-051-6/+3
|
* QtDialog: add reference in foreachDaniel Pfeifer2017-05-051-3/+3
|
* Simplify CMake per-source license noticesBrad King2016-09-271-12/+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.
* cmake-gui: Add button to open the generated projectNico Heßler2016-09-131-0/+37
| | | | | | Look for VS or Xcode project files at the top of the build tree. If present, enable an "Open Project" button to open them through the OS desktop services.
* QtDialog: fix clang-tidy warningsDaniel Pfeifer2016-09-061-2/+2
|
* cmake-gui: Reference LGPLv3 when redistributing QtBrad King2016-06-171-4/+5
| | | | | | | | | Download http://www.gnu.org/licenses/lgpl.txt and place it as Licenses/LGPLv3.txt in our source tree. When building cmake-gui, use option CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL to enable notification in the "About" dialog of how the distribution of Qt is licensed. Install the license file as ${CMAKE_ROOT}/Licenses/LGPLv3.txt so that the dialog can display a path to it.
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-434/+361
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * 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.
* Format include directive blocks and ordering with clang-formatBrad King2016-04-291-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sort include directives within each block (separated by a blank line) in lexicographic order (except to prioritize `sys/types.h` first). First run `clang-format` with the config file: --- SortIncludes: false ... Commit the result temporarily. Then run `clang-format` again with: --- SortIncludes: true IncludeCategories: - Regex: 'sys/types.h' Priority: -1 ... Commit the result temporarily. Start a new branch and cherry-pick the second commit. Manually resolve conflicts to preserve indentation of re-ordered includes. This cleans up the include ordering without changing any other style. Use the following command to run `clang-format`: $ git ls-files -z -- \ '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' | egrep -z -v '(Lexer|Parser|ParserHelper)\.' | egrep -z -v '^Source/cm_sha2' | egrep -z -v '^Source/(kwsys|CursesDialog/form)/' | egrep -z -v '^Utilities/(KW|cm).*/' | egrep -z -v '^Tests/Module/GenerateExportHeader' | egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' | xargs -0 clang-format -i This selects source files that do not come from a third-party. Inspired-by: Daniel Pfeifer <daniel@pfeifer-mail.de>
* Source: Stabilize include orderBrad King2016-04-291-0/+1
| | | | | Each source file has a logical first include file. Include it in an isolated block so that tools that sort includes do not move them.
* cmake-gui: Add options to control warning messagesMichael Scott2015-12-101-6/+9
| | | | | | | | | Create a new dialog window for the cmake-gui that provides controls for setting the state of suppression of developer and deprecated warning messages. This replaces the previous single checkbox for setting the state of suppression of developer warnings. Added a note for the new functionality to the release notes.
* cmake-gui: Add regex explorer windowGregor Jasny2015-12-031-0/+10
|
* cmake-gui: Add option to specify generator toolsetRobert Dailey2015-11-171-0/+1
| | | | | | | | | | The -T parameter to CMake may now be specified through cmake-gui via a new text field in the first-time configure wizard (below the generator chooser). The generator factories specify whether or not they support toolsets. This information is propagated to the Qt code and used to determine if the selected generator should also display the optional Toolset widgets.
* cmake-gui: Change --install to use /usr/local/bin by default (#15627)Brad King2015-06-241-1/+1
| | | | | | | | | | In commit v3.3.0-rc1~49^2~2 (cmake-gui: Add --install option to add command-line tools on OS X, 2015-05-19) the option default was set to /usr/bin because that is where the old command line install dialog placed the symlinks. A better default is /usr/local/bin because it is meant for locally installed software rather than Apple-installed tools. Also, as of OS X El Capitan, special privileges are required even for root to modify /usr/bin but not /usr/local/bin.
* cmake-gui: Make command-line install help text selectableClinton Stimpson2015-06-081-0/+1
| | | | | This will allow users to cut-n-paste the instructions over to a command prompt.
* cmake-gui: Replace command-line install dialog with information boxBrad King2015-05-211-4/+32
| | | | | | | | | | The QMacInstallDialog infrastructure no longer works on modern OS X versions. Drop it and replace the dialog with a simple info box that explains to the user how to run 'cmake-gui --install' to add symlinks. Also suggest simply modifying the PATH. This approach is similar to the Xcode 'xcode-select --install' method of installing Xcode Command Line Tools.
* cmake-gui: Fix install menu to be available for Qt5 builds on OS X.Kevin Wojniak2015-01-261-1/+1
|
* cmake-gui: Pass CMAKE_SYSTEM_VERSION from cross-compile configurationGilles Khouzam2014-08-131-0/+3
| | | | | Although this value can be configured in the dialog, it was simply not passed to the project as CMAKE_SYSTEM_VERSION. Fix that.
* Merge topic 'cmake-credits'Brad King2014-06-031-1/+1
|\ | | | | | | | | 8da0a75b Simplify and clarify credit text and link
| * Simplify and clarify credit text and linkBrad King2014-06-031-1/+1
| | | | | | | | | | Use the name "Kitware" rather than "Kitware, Inc." to simplify the text. Provide a CMake-specific URL.
* | cmake-gui: Don't resolve symlinks with using file dialog.Clinton Stimpson2014-03-301-2/+4
|/ | | | | This fixes bug #14274 where a clang++ symlink was resolved to a clang executable.
* cmake-gui: Remember variable type in Add EntrySergey Zolotarev2014-01-161-10/+16
| | | | | | | | | | | Store variable types together with their names in the variable completion list so that the type is automatically recovered when you select a variable. Keep variable names and types in separate lists. This removes the :TYPE string from completion list and the Name field and makes variable search easier. The variable names and types are now kept in two different settings - AddVariableNames and AddVariableTypes. Drop the old AddVariableCompletionEntries setting.
* Merge topic 'cmake-credits'Brad King2013-11-221-0/+11
|\ | | | | | | | | 8ad8a9b cmake-gui: Reference LGPLv2.1 when redistributing Qt