Commit Graph

144 Commits

Author SHA1 Message Date
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
wmayer
ed3394cce3 Gui: [skip ci] add commands to save & restore camera positions so that they can be bound to a space mouse button 2020-11-27 12:09:04 +01:00
luz paz
38815b9550 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
bitacovir
50bc63e80d Add SVG icons for five Std Tool commands
This commit adds SVG files with icons for these commands. Also, it makes the necessary changes on CommandStd.cpp, CommandDoc.cpp, CommandView.cpp and resource.qrc files. 
Forum Discussion: https://forum.freecadweb.org/viewtopic.php?f=34&t=51502&start=10
2020-11-22 11:58:14 +01:00
wmayer
67e80c7d6a Qt5: fix deprecation warnings for Qt 5.15
+ QByteArray::append is deprecated
+ QPixmap* QLabel::pixmap() is deprecated
+ overloaded version of QString::split is deprecated
+ QSysInfo::windowsVersion()/QSysInfo::MacVersion() is deprecated
2020-10-18 14:45:31 +02:00
wmayer
961d9145e2 Qt5: 'endl' manipulator is deprecated with 5.15. Replace it with newlines. 2020-10-15 15:22:28 +02:00
vejmarie
704d4d9945 Big update to remove deprecation warning from Qt 5.15.0
That is need on MacOS build as travis log is bigger than 50k lines
which breaks travis rules
And by the way deprecations are real
All file contains the same modification replace 0 to Qt::WindowFlags() when needed
as the class needs to be instantiated

Signed-off-by: vejmarie <jmverdun3@gmail.com>
2020-09-24 12:56:43 +02:00
wmayer
e9b744b2a6 Gui: make Clipping widget a dockable widget so that it can be used while a task dialog is open 2020-09-04 11:54:52 +02:00
Roy-043
fb9c6b7872 Update CommandView.cpp 2020-09-01 20:22:26 +02:00
mwganson
99585f3a85 [Standard Views] add Home view command. Default shortcut is 'Home' key. Restores camera orientation to current home view, configurable in edit menu -> preferences -> display -> navigation -> New Document Camera Orientation / Home view. 2020-07-20 13:48:37 +02:00
wmayer
d6169d6478 boost: fix for boost < 1.60 2020-06-15 19:38:39 +02:00
wmayer
2641746808 Qt5: 'void QFileDialog::setConfirmOverwrite(bool)' is deprecated: Use setOption(DontConfirmOverwrite, not enabled) instead [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
8dbe26a95f Qt5: 'int QFontMetrics::width' is deprecated since Qt 5.11: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
730154a684 boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated 2020-06-12 17:51:33 +02:00
Adrian
1f63355c06 Improve Axis Cross behavior and expose parameter to 3D View preferences 2020-05-30 11:17:38 +02:00
wmayer
9394da9132 Gui: [skip ci] fixes #0004310: Std_FreezeViews command: The settings of frozen views resulting from loading a *.cam file will not be saved in a new *.cam file. 2020-05-01 16:14:51 +02:00
wmayer
501b11a03d Gui: [skip ci] fixes #0004330: The Std_WhatsThis command does not work for 2 submenus of the View menu. 2020-04-30 14:53:37 +02:00
vocx-fc
b2e63db460 Gui: add sWhatsThis to Std_DrawStyle 2020-04-30 13:06:45 +02:00
carlopav
bc17a8b3fa [Gui] Reorder Drawstyle menu bugfix
bugfix
2020-03-12 09:10:41 -03:00
carlopav
a3dfd14c2a [Gui] New Icons for HiddenLine and NoShading
Just an experiment, didn't try to compile
Gui: Changed icons in Draw Style menu

And also saved old icons in pure svg.
2020-03-12 09:10:41 -03:00
luz.paz
c8cb520887 [skip ci] fix follow-up typos 2020-03-06 14:50:35 +01:00
wmayer
71818b466d Gui: implementation classes don't inherit from UI classes any more 2020-01-09 14:30:45 +01:00
wmayer
a441cb95c8 fixes #0004244: Std_SetAppearance always appears on a corner of the secondary monitor 2020-01-09 11:26:30 +01:00
wmayer
96380368ad Gui: [skip ci] DlgDisplayPropertiesImp doesn't inherit from its UI class any more 2020-01-09 11:00:16 +01:00
wmayer
570d9a5149 Gui: set image creation method in settings dialog 2020-01-08 12:49:56 +01:00
Zheng, Lei
cdca061ca1 Gui: fix box selection 2019-10-20 14:56:58 +02:00
wmayer
84648aea62 improve strict ISO C++11 (-Wpedantic) 2019-10-14 10:54:57 +02:00
wmayer
77d3c19573 fix typo 2019-10-08 10:36:19 +02:00
Zheng, Lei
0d966e6777 Gui: improve SelectionSingleton::setVisible()
Change argument to enum type. Make setVisible() robust against
unexpected selection change.
2019-10-08 10:21:06 +02:00
Zheng, Lei
9a1723179f Gui: assign default guesture to Std_SelBack/Forward 2019-10-08 10:16:20 +02:00
Zheng, Lei
3b1aa19f05 Gui: add class GroupCommand help with grouped command
As an example usage, changed StdCmdTreeViewActions to be derived from
GroupCommand
2019-10-08 10:16:00 +02:00