Commit Graph

44 Commits

Author SHA1 Message Date
Chris Hennes
50c7ee36bf [GUI] Remove code for Qt < 5.9 2021-04-02 10:10:37 +02:00
Zheng, Lei
d45122f45f Gui: add 'Donate' to Help menu 2021-01-04 10:43:37 +08: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
bitacovir
1d3113ebda Add SVG icons for ten Std File Menu Commands
This commit adds SVG files with icons for these commands. Also, it makes the necessary changes on CommandDoc.cpp, CommandWindow.cpp, CommandStd.cpp and resource.qrc files.
2020-12-06 18:25:20 -03:00
luz paz
74ab516494 Gui: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the src/Gui code.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
2020-12-01 14:53:35 +01:00
luz paz
298c677873 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
bitacovir
acf9b1f0de 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
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
53b01f08f9 Gui: improve usability of text document object 2020-03-17 11:36:03 +01:00
wmayer
13db5b0560 Add GUI command to insert a text document into the active document 2019-12-11 16:01:31 +01:00
wmayer
b50b21576e core system
force strict ISO C++ (-Wpedantic)
TODO: still a lot of variadic macros are not valid ISO C++
2019-09-18 01:01:14 +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
Peter Lama
c3423ad8d8 Fix duplicate about entries in mac app menu
Clearing the menu bar does not remove the actions from the app menu,
but setting the action role allows Qt to take care of duplicates.
2018-03-30 10:47:19 -07:00
luz.paz
a86c0fe137 sWhatsThis fixes
ref: https://forum.freecadweb.org/viewtopic.php?f=10&t=26687
2018-01-31 19:07:07 +01:00
Kunda
364f53aa89 Replace new Short URLs with old wiki URLs pt2
Continuing to replace URLS
2017-02-08 23:38:54 -05:00
wmayer
d2cb4e4af9 Qt4/Qt5 neutral changes:
+ remove QCoreApplication::UnicodeUTF8/QApplication::UnicodeUTF8
+ remove QCoreApplication::CodecForTr/QApplication::CodecForTr
2016-12-12 14:52:09 +01:00
wmayer
f19d424d8b fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
wmayer
2a9be8abb8 issue #0002486: Menu 'Preferences...' entry changes depending on language 2016-07-17 14:20:53 +02:00
Yorik van Havre
5c1ab74329 Target URLs in Help menu are now translatable - fixes #2394 2016-01-11 13:36:42 -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
Mateusz Skowroński
43a4a5938c Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
wmayer
de7c8fcbbf + issue #0002053: Support of themes 2015-06-30 13:14:56 +02:00
wmayer
cd0b369425 + issue #0002053: Support of themes 2015-06-28 23:30:42 +02:00
wmayer
6b6070281e + whitespacee/typo fixes 2015-04-30 23:16:57 +02:00
wmayer
55d124255e + fixes #0001851: Qt Assistant loads Error 404 2015-01-05 18:02:15 +01:00
wmayer
d66fc092e1 + better exception handling in Part module 2014-11-04 11:03:51 +01:00
wmayer
7602b8f20c + make help system more flexible 2014-10-21 21:41:07 +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
wmayer
c19e42cb7b + Read/Write FreeCAD website urls from/to user.cfg 2014-01-07 13:39:56 +01:00
wmayer
1028c365e1 + Apply Jim's fix of typos 2013-12-02 17:22:30 +01:00
Yorik van Havre
782cae1d22 Updated forum links to the new subdomain 2013-11-11 11:42:34 -02:00
jriegel
3e8a20ab7c Merge branch 'refs/heads/dev-quantity' 2013-11-09 11:15:09 +01:00
jriegel
1f96611b76 Add UnitsCalculator 2013-11-07 16:16:17 +01:00
Yorik van Havre
355942355f Updated links to the new forum 2013-11-06 19:32:45 -02:00
Yorik van Havre
ff9e4b1adf New help menu 2013-08-30 13:00:27 -03:00
wmayer
afc84ed8f7 Add measure distance tool to toolbar in Complete workbench, disable unused command 2012-08-15 10:24:49 +02:00
wmayer
1b45282e90 Enhance Branding 2012-07-02 17:04:13 +02:00
wmayer
c0a864c1fa Fix typo 2012-03-17 14:40:28 +01:00
wmayer
04cdad1db4 0000620: Help -> About FreeCAD crashes program 2012-03-11 10:52:29 +01:00
wmayer
d6511969cd Extend application branding 2012-02-23 20:25:33 +01:00
wmayer
aab04bd85e 0000502: Help -> "Python Manuals" displays missing file dialog(windows) / does nothing(ubuntu)
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5333 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-21 15:24:19 +00: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