Commit Graph

47 Commits

Author SHA1 Message Date
wmayer
c016f1c1fb Gui: modernize C++: use equals default 2023-08-20 18:12:43 +02:00
wmayer
5621a0089f Qt6 port:
Fix deprecation warnings with version 6.3 or 6.4
2023-08-04 21:23:14 -06:00
wmayer
ef63a35e0f Gui: fix -Wclazy-connect-by-name 2023-04-05 16:23:15 +02:00
wmayer
84d0f4fb6f Gui: fix regression: show commands of selected category in Toolbar tab 2022-11-10 23:20:18 +01:00
wmayer
a95aefdb18 Gui: use new-style connect and add curly braces to improve readability 2022-11-10 23:20:18 +01:00
wmayer
1147758787 Gui: restore fixes of DlgKeyboard.ui and DlgToolbars.ui and fix build failure 2022-11-10 23:20:18 +01:00
Zheng, Lei
a067f477fd Gui: fix missing separator item in Customize -> Toolbar 2022-11-10 23:20:18 +01:00
Zheng, Lei
2a5190f67f Gui: move CommandCompleter into its own source file 2022-11-10 23:20:18 +01:00
Zheng, Lei
2328284884 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
75acacd1b7 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
ba8d5ab055 Gui: modernize C++: replace 'typedef' with 'using' 2022-08-29 14:09:18 +02:00
berniev
a909df7f39 Gui: Single arg ctors must be explicit (PR #7369) 2022-08-24 15:06:03 +02:00
Uwe
316a869b26 [Gui] remove superfluous nullptr checks 2022-07-18 03:17:42 +02:00
wmayer
d5921e08ec 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
96adb98f46 Gui: modernize C++11
* use nullptr
2022-03-23 18:41:21 +01:00
Uwe
f6ef0d1095 [Gui] DlgWorkbenches etc.: remove unused includes and sort headers 2022-03-16 04:28:13 +01:00
wmayer
bc57ba6027 Gui: add convenience function Command::translatedGroupName() 2021-09-29 15:25:46 +02:00
Chris Hennes
50c7ee36bf [GUI] Remove code for Qt < 5.9 2021-04-02 10:10:37 +02:00
Chris Hennes
ea3ecf4054 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
298c677873 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
wmayer
dc65b055e5 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
d117505013 Icon themes toolbar customization dialog 2020-06-22 11:58:06 +02:00
wmayer
da6cb8a963 Qt5: 'bool QTreeWidget::isItemSelected(const QTreeWidgetItem*) const' is deprecated: Use QTreeWidgetItem::isSelected() instead [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
45017ec839 Qt5: 'void QTreeWidget::setItemExpanded(const QTreeWidgetItem*, bool)' is deprecated: Use QTreeWidgetItem::setExpanded() instead [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
607c3a6395 Gui: [skip ci] fixes: Std_DlgCustomize: commands can get dropped from custom toolbars 2020-05-01 00:04:44 +02:00
wmayer
625d252cb1 Gui: implementation classes don't inherit from UI classes any more 2020-01-09 14:30:45 +01:00
wmayer
5e7fa0d37b 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
ffeb83870e [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
57e71e5d55 port C++ code to Qt5 2016-12-13 14:22:59 +01:00
Mateusz Skowroński
7d0e892d36 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
cd2db00f22 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
d5c074f80d 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
3268acf9a2 + set object name to tool buttons with popup menu 2015-11-17 18:39:23 +01:00
wmayer
f295ac470a + fix warning 2015-10-10 09:48:45 +02:00
wmayer
c133457da5 + 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
52957ffcb5 + 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
ee59f1263c + if translation of group is done do not overwrite 2015-09-20 17:00:21 +02:00
wmayer
a369791665 + issue #0002053: Support of themes 2015-07-12 23:59:26 +02:00
wmayer
2b53da4eee + include missing header files 2015-06-30 17:48:03 +02:00
wmayer
0765dc1aae + move up/down commands with action group 2015-06-28 17:32:44 +02:00
wmayer
477b3ce3f2 + fixes #0002085: Only one Toolbar Separator 2015-05-03 21:32:24 +02:00
wmayer
ec4a496866 + when checking for custom toolbars do not auto-create sub-groups in user parameters 2014-12-06 14:46:08 +01:00
wmayer
2347d677dd + support global custom toolbars 2014-12-06 13:21:36 +01:00
wmayer
9e5ed987cc + 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
efd0274d47 0001104: Toolbar Customizer Move Buttons enabled but inactive 2013-07-06 17:48:30 +02:00
tanderson
b028fa6bc9 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