wwmayer
7b0a23337c
Gui: Prepare for clang-format ( #16051 )
...
* Gui: Prepare for clang-format
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-02 17:48:55 +02:00
wmayer
888a33917d
Gui: modernize C++: use equals default
2023-08-20 18:12:43 +02:00
wmayer
7d0926d0b3
Qt6 port:
...
Fix deprecation warnings with version 6.3 or 6.4
2023-08-04 21:23:14 -06:00
wmayer
9b944f4f20
Gui: fix -Wclazy-connect-by-name
2023-04-05 16:23:15 +02:00
wmayer
2f41f652c8
Gui: fix regression: show commands of selected category in Toolbar tab
2022-11-10 23:20:18 +01:00
wmayer
07224605dc
Gui: use new-style connect and add curly braces to improve readability
2022-11-10 23:20:18 +01:00
wmayer
ee4e64328e
Gui: restore fixes of DlgKeyboard.ui and DlgToolbars.ui and fix build failure
2022-11-10 23:20:18 +01:00
Zheng, Lei
a2d886b7ea
Gui: fix missing separator item in Customize -> Toolbar
2022-11-10 23:20:18 +01:00
Zheng, Lei
028c30e56d
Gui: move CommandCompleter into its own source file
2022-11-10 23:20:18 +01:00
Zheng, Lei
775452cbc0
Gui: add ShortcutManager to unify shortcut handling
...
Support longest key sequence match with user defined delay (configurable
through 'Customize -> Keyboard -> Key sequence delay').
Support user defined priority to resolve shortcut conflict through
'Customize -> Keyboard')
Add 'All' category in 'Customize -> Keyboard' to list all command and
showing their shortcuts
Unify macro command shortcut setting (BaseApp/Preferences/Shortcut).
2022-11-10 23:20:18 +01:00
berniev
ae53c9b0a4
Gui: Use auto and range-based for ( #7481 )
...
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto.
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
wmayer
23961706be
Gui: modernize C++: replace 'typedef' with 'using'
2022-08-29 14:09:18 +02:00
berniev
3877fc62c3
Gui: Single arg ctors must be explicit (PR #7369 )
2022-08-24 15:06:03 +02:00
Uwe
bb2b49fb1f
[Gui] remove superfluous nullptr checks
2022-07-18 03:17:42 +02:00
wmayer
82a6241fc5
fix (Qt) issues found by clang's clazy tool:
...
+ -Wclazy-incorrect-emit
+ -Wclazy-strict-iterators
+ -Wclazy-overloaded-signal
+ -Wclazy-qstring-arg
+ -Wclazy-unused-non-trivial-variable
+ -Wclazy-container-anti-pattern
+ -Wclazy-range-loop-reference
+ -Wclazy-const-signal-or-slot
+ -Wclazy-detaching-temporary
+ -Wclazy-qfileinfo-exists
2022-06-29 21:00:54 +02:00
wmayer
1178df06b4
Gui: modernize C++11
...
* use nullptr
2022-03-23 18:41:21 +01:00
Uwe
4e619ee4d7
[Gui] DlgWorkbenches etc.: remove unused includes and sort headers
2022-03-16 04:28:13 +01:00
wmayer
76da77f80e
Gui: add convenience function Command::translatedGroupName()
2021-09-29 15:25:46 +02:00
Chris Hennes
098d7b9aee
[GUI] Remove code for Qt < 5.9
2021-04-02 10:10:37 +02:00
Chris Hennes
533814dd0f
Silence Qt/Windows setGeometry Warning
...
Add the optional Qt::MSWindowsFixedSizeDialogHint parameter to all uses of the QInputDialog::getX static functions to silence a Qt/Windows debug mode warning about QWindowsWindow::setGeometry: Unable to set geometry. Increase the size of the unit calculator to eliminate the same warning. Finally, call adjustSize() on the "Unsaved Changes" dialog to silence the warning.
2020-12-11 09:58:09 +01:00
luz paz
38815b9550
Gui: Fix header uniformity, whitespace, and doxygen fixes
2020-11-26 10:14:56 +01:00
wmayer
e9ce75d544
LGTM: [skip ci] fix: Empty branch of conditional
...
An empty block after a conditional can be a sign of an omission and can decrease maintainability of the code.
Such blocks should contain an explanatory comment to aid future maintainers.
2020-07-26 15:49:14 +02:00
triplus
ffde2b9fa0
Icon themes toolbar customization dialog
2020-06-22 11:58:06 +02:00
wmayer
ca327b6f25
Qt5: 'bool QTreeWidget::isItemSelected(const QTreeWidgetItem*) const' is deprecated: Use QTreeWidgetItem::isSelected() instead [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
wmayer
a9ae47a8be
Qt5: 'void QTreeWidget::setItemExpanded(const QTreeWidgetItem*, bool)' is deprecated: Use QTreeWidgetItem::setExpanded() instead [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
wmayer
bdd6329cd6
Gui: [skip ci] fixes: Std_DlgCustomize: commands can get dropped from custom toolbars
2020-05-01 00:04:44 +02:00
wmayer
71818b466d
Gui: implementation classes don't inherit from UI classes any more
2020-01-09 14:30:45 +01:00
wmayer
c3aaa69f51
Fix some regressions of PR 2330
...
fix file chooser in macro dialog
do not remove GUI text from translation
remove friend class declaration, use Qt's introspection mechanism
create dialogs on the stack because they are modal
some minor optimizations
2019-07-21 15:53:14 +02:00
mwganson
eb2ebe5bbf
[macros toolbar walkthrough] Use command manager to check for existing macro action rather than looking through user parameters
2019-07-21 13:57:30 +02:00
wmayer
5096f55ccb
port C++ code to Qt5
2016-12-13 14:22:59 +01:00
Mateusz Skowroński
6942c23895
Qt4's qglobal.h defined TRUE and FALSE. Qt5 does not do it anymore. Replace it with true and false.
...
158f39ec78
This change is Qt4/Qt5 neutral.
2016-01-05 16:43:33 +01:00
Mateusz Skowroński
c275b35d48
QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
...
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Mateusz Skowroński
0695552cff
QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
...
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
wmayer
e6cafe2206
+ set object name to tool buttons with popup menu
2015-11-17 18:39:23 +01:00
wmayer
c5192299f7
+ fix warning
2015-10-10 09:48:45 +02:00
wmayer
19bbce6413
+ when running a bound macro check if file exists, proper unicode handling of macros in customize dialog
2015-10-08 12:37:30 +02:00
wmayer
60cffb685e
+ When adding new commands to custom toolbar set user data if required in order to move them up/down
2015-10-08 11:13:10 +02:00
wmayer
9124acde3a
+ if translation of group is done do not overwrite
2015-09-20 17:00:21 +02:00
wmayer
7ea0cc478d
+ issue #0002053 : Support of themes
2015-07-12 23:59:26 +02:00
wmayer
45d793a1af
+ include missing header files
2015-06-30 17:48:03 +02:00
wmayer
b0c8156697
+ move up/down commands with action group
2015-06-28 17:32:44 +02:00
wmayer
0343deb30a
+ fixes #0002085 : Only one Toolbar Separator
2015-05-03 21:32:24 +02:00
wmayer
06706a1940
+ when checking for custom toolbars do not auto-create sub-groups in user parameters
2014-12-06 14:46:08 +01:00
wmayer
4844d9c48c
+ support global custom toolbars
2014-12-06 13:21:36 +01:00
wmayer
9fc5f6cf63
+ fixes #0001542 : 4 empty / blank buttons - Customize / Toolbars Tab / Move buttons (right,left,up,down) missing icons
2014-05-14 15:46:52 +02:00
wmayer
44c34b1ce8
0001104: Toolbar Customizer Move Buttons enabled but inactive
2013-07-06 17:48:30 +02:00
tanderson
450be825da
changing customize dialog icon settings
2012-01-24 22:18:13 +01:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00