wmayer
3cd81b9bb3
Gui: add an image view
2023-03-22 15:45:38 +01:00
wmayer
8d42b6f93c
Gui: move to new style connect()
2023-02-01 13:49:35 +01:00
Uwe
2b9a28e0ec
remove some unnecessary Boolean checks
...
- checks for true/false and nullptr
2022-12-12 21:17:49 -06:00
Zheng, Lei
b141f8f491
Gui: split out TreeParams into its own source files
...
Auto generated using TreeParams.py
2022-12-03 17:08:17 -06:00
wmayer
bc3c81e138
Gui: fix warnings reported by GH Actions:
...
* Fix trailing spaces
* Replace tabs
* Mark constructors with one argument explicit
* Fix typos
* Include FCGlobal.h to fix parsing errors
2022-11-11 09:56:43 +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
wmayer
6118dfd7bd
Qt: replace deprecated methods of QMessageBox
2022-11-03 09:54:00 +01:00
wmayer
fac648fff5
Qt6 port:
...
* Explicitly include some missing headers
* Use 'static const char*' for XPM icon
* Skip template parameters for qMakePair
* Constructor of QFileInfo is marked as 'explicit' now
* QString::fromLatin1() also accepts a QByteArray
* QDateTime::fromTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::fromSecsSinceEpoch()
* QDateTime::toTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::toSecsSinceEpoch()
* QApplication::globalStrut() is deprecated. Don't use it any more.
* QWidget::isTopLevel() is deprecated, use QWidget::isWindow()
2022-11-02 15:16:41 +01:00
wmayer
36bf3896d3
Gui: depending on parameter settings open a transaction when changing visibility or selectability
2022-10-07 22:06:01 +02:00
0penBrain
186d671a0c
Gui: add 2 commands to store and recall working view in 3D viewport
2022-09-28 17:29:11 +02:00
marioalexis
ff1b4eff05
Gui: Replace C cast
2022-09-18 11:06:51 -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
75fa455c5d
Gui: Use override etc 2
2022-08-09 12:43:23 +02:00
berniev
3d1f70765a
Gui: redundant void 2
2022-08-08 10:21:44 +02:00
berniev
2db561561e
Gui: use empty
2022-08-06 16:35:45 +02:00
wmayer
76c993baae
Fix several clazy issues:
...
* Don't call ... on temporary [-Wclazy-detaching-temporary]
2022-07-25 00:18:42 +02:00
wmayer
85bd6b5c6b
Fix several clazy issues:
...
* C++11 range-loop might detach Qt container [-Wclazy-range-loop-detach]
2022-07-24 23:48:37 +02:00
Uwe
c40e476a5b
[Gui] remove some more superfluous nullptr checks
2022-07-18 13:15:38 +02:00
andrea
7886d3cbf4
Remove unused code into GUI
2022-07-17 03:53:11 +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
d5340a82ab
Gui/Mod: replace several reinterpret_cast with static_cast
2022-06-25 11:36:55 +02:00
mosfet80
c48a569696
Boost version <=1.60 is never used in freecad 0.20 ( #7038 )
...
* Boost version 1.60 is never used in freecad 0.20
2022-06-24 02:20:26 +02:00
Uwe
0828d769e8
[Gui] remove unnecessary Boolean comparisons
2022-06-19 15:17:01 +02:00
Uwe
c44a15d3d9
[GUI] fix screenshot watermark
...
as reported here: https://forum.freecadweb.org/viewtopic.php?p=601651#p601651
2022-06-12 18:39:14 +02:00
Chris Hennes
5edcb47683
Gui: Fix Stereo view disabling
...
Fixes #6799 .
2022-04-26 22:31:34 -05:00
wmayer
0b2c73cf32
Gui: clean-up Selection API
...
Replace the int of the 'resolve' argument of several functions with a proper enum class.
* This avoids the inconsistencies in client code where often true/false is passed when an int is expected
* This avoids the use of magic numbers like 0, 1, 2 or the undocumented 3
2022-04-09 17:03:43 +02:00
Chris Hennes
5df3dbae6f
Gui: PR6497 move return statement to new line
2022-03-29 12:33:50 -05:00
wmayer
1178df06b4
Gui: modernize C++11
...
* use nullptr
2022-03-23 18:41:21 +01:00
wmayer
5fd93b7d3b
Fix several coverity issues:
...
* CID 350617: Dereference after null check
* CID 350585: Out-of-bounds read
* CID 350624: Resource leak
* CID 332701: Uncaught exception
* CID 350642: Uninitialized scalar field
* CID 350590: Uninitialized scalar field
* CID 350629: Uninitialized scalar variable
* CID 350602: Uninitialized scalar variable
* CID 350564: Uninitialized scalar variable
* CID 350548: Uninitialized scalar variable
2022-03-13 12:12:49 +01:00
wmayer
8f786ea6ef
Gui: Optimize includes to reduce compile time
2022-03-07 20:29:18 +01:00
Uwe
2152367ad9
[Gui] CommandView and Tree: remove unused headers
2022-02-19 01:24:24 +01:00
wmayer
a87e33258d
Gui: remove support of using deprecated Qt OpenGL API
2022-01-26 14:46:41 +01:00
luz paz
6c265d0453
Use correct name spacemouse so it's uniform and searchable in our code
...
Make all mentions of `spacemouse` in the code a single word (with no whitespace) so we can parse the source code more accurately to find mentions of it if necessary.
2021-12-06 10:31:06 +01:00
wmayer
b2c1b574d4
Gui: fix C++20 warning: bitwise operation between different enumeration types [-Wdeprecated-enum-enum-conversion]
2021-12-02 09:59:31 +01:00
Chris Hennes
ded7adb798
Revert "Merge pull request #4626 from pavltom/GUI_TreeView_Item_Ordering"
...
This reverts commit b0452667c72f330323f6b3366f45bf039d05feef, reversing
changes made to b2d99f3fa7b4c7c305aed4a8d975a8624a6d590f.
See forums discussion: https://forum.freecadweb.org/viewtopic.php?p=549120
2021-11-24 09:03:35 -06:00
Tomas Pavlicek
17f328c7a9
[Gui] Issue #3923 - Arbitrary Tree item ordering + tests
2021-10-26 19:09:34 +02:00
wmayer
9eedb17b70
App: use consistent spelling of SubElement
2021-10-06 18:09:53 +02:00
wmayer
6f20e3e4d8
Gui: remove QT_TR_NOOP from command group names and use "CommandGroup" as context string
2021-09-29 16:31:55 +02:00
Yorik van Havre
b84c2c7f09
Merge pull request #4178 from uLeonis/master
...
[v0.20][Gui] Consolidate Std view modes
2021-09-09 12:22:27 +02:00
0penBrain
1088952709
[Gui] Declare Std_DrawStyle as being a 'Mode' command
...
With this tooltip isn't updated with the current item value
but instead keeps the general command tooltip text which more explanatory
2021-09-02 16:39:07 +02:00
wmayer
f66bc8fc90
Gui: use public methods in Command sub-classes
2021-04-21 19:34:50 +02:00
Chris Hennes
098d7b9aee
[GUI] Remove code for Qt < 5.9
2021-04-02 10:10:37 +02:00
donovaly
8e3c5dbbdb
[GUI] fix missing Std_AxisCross icon
...
in commit cece88c164 the icon was not also added to the used Std_AxisCross menu entry
2021-01-06 01:41:01 +01:00
bitacovir
4cb28ce96f
Add SVG icons for eight Std View commands
2021-01-05 16:14:57 +01:00
bitacovir
7ae4b581d0
Add SVG icons of eight Std View menu commands
2021-01-02 11:55:58 -03:00
bitacovir
6e535d9ac3
Replace SVG icons of six Std View commands
2020-12-30 20:38:03 +01:00
Marcel Althaus
b7f819f22c
Code cleanup.
2020-12-21 19:40:38 +01:00
uLeonis
cbe1050441
MeasureDistance
...
- Abort mode via ESCAPE added
BoxZoom, BoxSelection and BoxElementSelection
- Change the cursor to give the user feedback about active mode.
- Abort mode via ESCAPE
2020-12-21 17:32:33 +01:00
wmayer
ac5c22bfc7
Gui: [skip ci] improve commands Std_ViewSaveCamera & Std_ViewRestoreCamera to save/restore camera per view
...
Implement resetToHomePosition() for Blender style
2020-11-27 12:27:25 +01:00