Commit Graph

43 Commits

Author SHA1 Message Date
0penBrain
c87c492ada [Gui] ActionGroup can declared being a "Mode" action
This will essentially not update the tooltip when an action is checked as it isn't suitable
As example, view DrawStyle command where the group tooltip is better than the selected action tooltip

Only UserEditMode is implemented in this commit, should be pushed to DrawStyle and maybe other after merge
2021-05-15 11:26:20 +02:00
Chris Hennes
50c7ee36bf [GUI] Remove code for Qt < 5.9 2021-04-02 10:10:37 +02:00
Zheng, Lei
bead9bb938 Gui: sync recent action file list from external modification 2021-01-31 18:14:18 +01:00
wmayer
3ed1248164 Gui: [skip ci] drop the hard limit of 50 allowed workbenches 2021-01-21 16:42:04 +01:00
Mateusz Skowroński
2559f2d29c Fix build warnings from deprecated Boost headers (they are used internally by Boost). Thanks @wwmayer for the hint. 2020-12-29 10:20:53 +01:00
Zheng, Lei
0e2ab08121 Gui: temporary fix of preference menu in macos
QAction defaults menu role to TextHeuristicRole, which causes qt to
guess the menu role based on action title. And titles start with
'Config', 'Options', 'Settings', etc. will be considered as preference
menu. It seems some non-english translation causes the wrong action be
chosen as preference, such as 'Treeview actions'.

This commit just applied a temporary fix to default to QAction::NoRole
for GroupCommand. If there is ever some GroupCommand need to be a
system menu item on macos, we could add some command bit flag for that
purpose.
2020-12-24 16:58:18 +01:00
luz paz
298c677873 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
mwganson
4a0d127dae [Macro Menu] add Recent macros to Macro menu + list size preference. Executes selected macro or if Shift+click opens macro in editor. 2020-09-03 11:29:37 +02:00
wmayer
f3b460e42e boost: fix for boost < 1.60 2020-06-15 19:38:39 +02:00
wmayer
eced0cb568 Qt5: QDesktopWidget is deprecated use QScreen [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
4ec45b545e 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
wmayer
40468da280 Gui: [skip ci] fixes: Std_DrawStyle button image: confusing update behavior 2020-05-01 17:36:00 +02:00
Zheng, Lei
b1c0de8dae Gui: Command API changes
* invoke(), distinguish between command triggering source. Also add
  support of auto transaction using App::AutoTransaction. Now all
  command will support undo/redo by default.

* setupCheckable(), a helper function to Improve support of
  PythonGroupCommand

* getObjectCmd(), helper function to output Python command to refer to
  an object without ambiguity. Because with introduction of external
  linking, an object can no longer be safely referred through the
  current active document.

* Support auto MacroManager command logger. For commands that does not
  log any output to MacroManager, a log entry of 'Gui.runCommand()' will
  be auto generated.

* Support linked object in copyVisual()

* Modified do/runCommand() to print calling file and line number.

* Add various helper macros for run command involving a document or
  object.
2019-08-17 14:52:10 +02:00
Mateusz Skowroński
082647b2d1 Remove unused non-trivial variables. [-Wclazy-unused-non-trivial-variable] Thanks Clazy! 2019-02-11 15:39:15 +01:00
wmayer
f898eafd64 move from deprecated boost.signals to boost.signals2 library 2018-10-30 19:09:03 +01:00
wmayer
d1ae93df8c save last accessed file directly in the user parameters 2017-10-26 11:57:45 +02:00
wmayer
74b7373e48 fixes #0002323: Workbench Start recent list of 3 files is - after a crash - not sync with recent list in File Menu Recent list of 4 files 2017-10-05 10:38:42 +02:00
Markus Lampert
5ea491bdba Pop-up action's tooltip if ActionGroup is expanded and the mouse hovers over an action. 2017-09-28 23:22:11 +02:00
wmayer
004324bbc5 fix scan coverity issues: uncaught exception 2017-04-11 14:03:08 +02:00
Kunda
19f8fd4c10 source typo fixes pt5
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
wmayer
51e23d854e issue #0002678: file names with underscores are not displayed correctly in recent files menu 2016-08-22 22:52:12 +02:00
wmayer
0e45008f9a + rework parameter dialog 2016-04-01 15:18:56 +02:00
triplus
cf842d569e Set QComboBox icon size 2016-02-29 20:14:49 +01:00
Yorik van Havre
e740a42075 Removed workbench keyboard shortcut W+0. Now only W+1-9 work. 2016-01-08 10:30:44 -02:00
Yorik van Havre
7886675faa Changed shortcuts of workbenches to W + number 2016-01-07 11:47:53 -02: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
Yorik van Havre
cfba4a3d5c Changed default shortcuts for 10 first workbenches from CTRL+number to ALT+CTRL+number 2015-12-18 10:39:27 -02:00
Yorik van Havre
3d6869bf68 Added automatic Ctrl+Number shortcuts for the 10 first woekbenches 2015-11-26 09:11:39 -02:00
wmayer
3268acf9a2 + set object name to tool buttons with popup menu 2015-11-17 18:39:23 +01:00
wmayer
cda9bf9ed5 + allow to set a default action for an exclusive group 2015-09-20 15:47:11 +02:00
wmayer
5040a97b0b + filter out removed workbenches 2015-06-11 00:19:20 +02:00
wmayer
4a7419c064 + fix whitespaces 2015-06-10 23:21:46 +02:00
Przemo Firszt
615d037de0 App: Add workbenches with unknown status to enabled list
Newly installed workbenches are not on enabled nor disabled list, so
they were treated as disabled. That behaviur could be confusing for
the user as a newly installed workbench was not shouwing up on the
workbench list. This commit changes that behaviour and new workbenches
are enabled by default.

Reported-by: r-frank
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-10 22:11:24 +02:00
Przemo Firszt
4c383527f8 App: Add dialog to pick preferred workbenches
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-18 22:25:59 +02:00
wmayer
72a0c490ac + use right iterator variable 2015-05-08 12:40:57 +02:00
wmayer
00daa1cbd2 + fixes #0001989: 'Open recent' not saved until exit. 2015-04-11 19:04:31 +02:00
wmayer
ce528d1c4a + fixes #0001719: Show current shortcuts (S) in menus and hover text. 2014-08-31 14:28:33 +02:00
Peter Lama
72314b1b57 fixes #0001485: 'About FreeCAD' disappears on Mac OS X 2014-03-20 16:47:35 -07:00
tanderson
3b8176535b implemented 2014-01-16 10:27:21 -02:00
wmayer
0473003fc9 Extend Action/Command framework to add arbitrary widgets 2012-11-22 15:17:32 +01:00
wmayer
605d567cc4 Set minimum height of workbench switcher to show all items when possible 2012-04-07 18:11:24 +02: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