ppphp
8863b9ac4c
fix: c++20 deprecate [=]
2024-03-31 10:47:32 +02:00
wmayer
888a33917d
Gui: modernize C++: use equals default
2023-08-20 18:12:43 +02:00
wmayer
e09d8aaba6
Gui: modernize C++: use range-based for loop
2023-08-14 19:42:18 +02:00
wmayer
9b944f4f20
Gui: fix -Wclazy-connect-by-name
2023-04-05 16:23:15 +02:00
0penBrain
1c5ea5f278
Use qOverload macro instead of QOverload
2023-03-31 17:17:34 +02:00
wmayer
a3ea47a58b
Gui: [skip ci] use full namespace of AccelLineEdit
2022-11-16 23:26:08 +01:00
wmayer
07224605dc
Gui: use new-style connect and add curly braces to improve readability
2022-11-10 23:20:18 +01:00
Zheng, Lei
d10a7aae7c
Gui: fix command completer selection on item activate
2022-11-10 23:20:18 +01:00
Zheng, Lei
7942ed61c5
Gui: fix Customize -> Keyboard shortcut priroity list
...
Add API Command::initAction() to force create action for all commands
with shortcut in order to register with ShortcutManager to obtain a
complete list of actions with the same shortcut.
2022-11-10 23:20:18 +01:00
Zheng, Lei
71449b1fec
Gui: remove command description label in Customize -> Keyboard
...
Because long description may cause undesired dialog layout changes. The
description is available through tool tip of the command tree widget.
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
516b60826d
Gui: fix macro command sync in Customize -> Keyboard/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
0penBrain
12e2985bf3
Gui: when customizing shortcuts, warn user if command isn't in use with message box
2022-09-14 15:01:54 -05: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
wmayer
3057abfae9
Gui: use expresion 'keyboard shortcut' to avoid incorrect translation
2022-06-09 13:15:41 +02:00
Uwe
b7a6c51cdb
[Gui] DlgEditor etc.: remove unused includes
2022-03-16 22:57:13 +01:00
wmayer
76da77f80e
Gui: add convenience function Command::translatedGroupName()
2021-09-29 15:25:46 +02:00
Chris Hennes
25f54a0f0e
Also set tooltip after Reset and ResetAll
2021-08-26 09:05:10 -05:00
Chris Hennes
f194ca7425
[GUI] Refactor tooltip code to rebuild shortcut
...
When the shortcut/accelerator key is changed, the tooltip should be
recalculated using the same code that calculated the original. Also
ensure this happens when the accelerator preferences are loaded.
Fixes #4664 .
2021-08-25 14:24:17 -05:00
Chris Hennes
098d7b9aee
[GUI] Remove code for Qt < 5.9
2021-04-02 10:10:37 +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
259580eaf6
Gui: [skip ci] fixes: Std_DlgCustomize: 2 shortcuts can be assigned to macro
2020-05-01 12:37:49 +02:00
wmayer
7c73868ff2
Gui: [skip ci] do some code refactoring in DlgCustomKeyboardImp to reduce code duplication
2020-05-01 11:46:55 +02:00
wmayer
2b2391fab2
Gui: [skip ci] print warning if Assign button cannot be activated
2020-04-28 21:43:06 +02:00
wmayer
011cc3f17f
Gui: [skip ci] when clearing ambiguous shortcut also remove the entry from the user parameters
2020-04-28 19:55:04 +02:00
wmayer
71818b466d
Gui: implementation classes don't inherit from UI classes any more
2020-01-09 14:30:45 +01:00
wmayer
47b822aafd
split question text from warning text
2019-02-11 17:03:51 +01:00
luz.paz
745f0cb3b4
Crowdin: Continuing to refine translation strings
2019-02-11 16:22:12 +01:00
Mateusz Skowroński
7ba96b5f02
Remove unused non-trivial variables. [-Wclazy-unused-non-trivial-variable] Thanks Clazy!
2019-02-11 15:39:15 +01:00
Mateusz Skowroński
ac508516da
Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy!
2019-02-11 15:39:14 +01:00
wmayer
be257336b9
fixes 0001673: Assign already assigned keyboard shortcuts without searching old assigned action
2019-01-18 00:55:34 +01:00
wmayer
5096f55ccb
port C++ code to Qt5
2016-12-13 14:22:59 +01:00
wmayer
c997180a47
Qt4/Qt5 neutral changes:
...
+ remove QCoreApplication::UnicodeUTF8/QApplication::UnicodeUTF8
+ remove QCoreApplication::CodecForTr/QApplication::CodecForTr
2016-12-12 14:52:09 +01:00
wmayer
1e6dcabefc
fix -Wextra in FreeCADGui
2016-09-21 20:54:52 +02:00
wmayer
a43870675d
+ fixes #0001674 : Allow clearing keyboard shortcuts for actions
2016-05-06 19:04:26 +02:00
wmayer
e7df101273
+ minor whitespace fix, fix warnings
2016-03-11 21:39:15 +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
78b16b2bf0
QKeySequence::operator QString() is obsolete in Qt5. Use toString(QKeySequence::NativeText) instead.
...
This change is Qt4/Qt5 neutral.
2016-01-05 16:08:31 +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
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
9124acde3a
+ if translation of group is done do not overwrite
2015-09-20 17:00:21 +02:00
wmayer
35c0acf671
+ fixes #0002160 : Customised keyboard shortcuts: D, U conflict
2015-09-13 18:29:21 +02:00
wmayer
7ea0cc478d
+ issue #0002053 : Support of themes
2015-07-12 23:59:26 +02:00
wmayer
c94403412d
+ fixes #0001719 : Show current shortcuts (S) in menus and hover text.
2014-08-31 14:28:33 +02:00
tanderson
450be825da
changing customize dialog icon settings
2012-01-24 22:18:13 +01:00