Commit Graph

2044 Commits

Author SHA1 Message Date
DeepSOIC
2cb1bad660 GestureNavigationStyle: fix interaction with SoClipPlaneManip 2018-09-11 00:38:06 +03:00
wmayer
63e8241e64 fix inconsistencies between default action of context menu and double-click 2018-09-10 17:32:39 +02:00
wmayer
2dd876c082 auto-expand/collapse a tree item when activating it 2018-09-10 15:47:48 +02:00
wmayer
34a0c7bce2 by default show highlighted object in bold text, a document's active object is not in bold text any more 2018-09-10 14:24:37 +02:00
wmayer
3b9a9e02bc close all top-level widgets when about to quit event loop 2018-09-10 12:32:14 +02:00
wmayer
fd2befe7a7 when leaving dragger edit mode make sure to release the grabbed node 2018-09-06 12:42:08 +02:00
looooo
599e59059b reduce line-length to 80 characters 2018-09-05 11:06:26 +02:00
looooo
b20d1bc09c new style modules: print traceback as error and as log. 2018-09-05 11:06:12 +02:00
wmayer
9e5b31fe2a add missing comma separator in list 2018-09-03 21:33:06 +02:00
wmayer
acbbcbcb00 enable VBO support for Intel graphic drivers if UseVBO is activated 2018-09-03 16:57:33 +02:00
wmayer
b385387797 enable VBO support for Intel graphic drivers if UseVBO is activated 2018-09-03 16:46:54 +02:00
Mark Ganson TheMarkster
689765da1b Revert unintended change
Not sure how that happened...
2018-09-03 11:08:16 -03:00
Mark Ganson TheMarkster
43d16fc87a Add Duplicate button to Execute Macro dialog
With the Duplicate button a macro is duplicated with a new name, e.g. duplicate a macro named "MyMacro.FCMacro" and you get a new duplicate file named "MyMacro@001.FCMacro", but the user has opportunity to override the new name with a name of his own or to cancel the operation.

Functionality is similar to already existing ability to create copies of the .FCStd file, only for macros, and this must be done manually for each new file.  Will be useful to coders mostly.  Expected use case could be to save a history of the macro periodically as changes are made or perhaps to duplicate the macro first, and then make changes to the duplicate, eventually replacing the original once satisfied with the changes.

New code is based largely on existing code from rename operation, but with QFile.copy() instead of QFile.rename() used, along with other changes needed, such as generating the new suggested filenames.

link to forum discussion and demonstration video:
https://forum.freecadweb.org/viewtopic.php?f=8&p=254014&sid=98243801791920b69086a3fcd4699e34#p254014

Not sure how to make the Duplicate button label text translate when changing languages.
2018-09-03 11:08:16 -03:00
Zheng, Lei
4231194a37 GLBuffer: fix isVBOSupported() 2018-09-03 12:59:27 +02:00
Michal Ulianko
faf8834484 py3.7 fix
PyUnicode_AsUTF8() returns const char* in py3.7 instead of char*. Making
changes to reflect that which should also be safe in
other Python versions.
2018-09-01 22:44:39 +02:00
Mark Ganson TheMarkster
591c1d32cd Add link button to Addon Manager to Macros dialog
Adds a button labeled Addons... to the macros dialog below the create, edit, delete, and rename buttons.  Clicking the Addons... button will open the same dialog available from Tools -> Addon Manager menu.
Convenience for experienced users, but new users who might not know about the addon manager will be able to see it here, too.
2018-09-01 22:21:33 +02:00
wmayer
b79e1bfee4 get rid of private function _PyImport_FixupBuiltin for FreeCAD and FreeCADGui modules 2018-09-01 19:57:15 +02:00
wmayer
fb1a0be846 exit application when running unit tests raised a system exception 2018-08-31 22:21:15 +02:00
wmayer
3d70f9ed4f number of used decimals in UnitsApi must already be set when initializing App 2018-08-29 23:35:38 +02:00
wmayer
96771a07b0 use a widget's current font as default in the list of available families 2018-08-29 19:33:02 +02:00
wmayer
16e709a682 do not explicitly use extesnion modules in SelectionView::getModule 2018-08-28 14:11:31 +02:00
wmayer
904aef5551 use abstract interface to access geometry in transform dialog 2018-08-27 16:19:56 +02:00
luz.paz
55e93745fa Misc. typo fixes
Found via `codespell`
2018-08-26 17:30:44 +02:00
Zheng, Lei
69efa47374 Selection: handle exception in observer callback
Selection callback are sometimes called while traversing Coin node tree.
If any unhandled exception is thrown while traversing the tree, FC 3D
rendering will become unstable and non-usable thereafter.
2018-08-26 17:29:14 +02:00
wmayer
5eaf2e6387 fixes #0003564: Python objects: updateData calls to proxy instance that should have been deleted 2018-08-25 16:33:22 +02:00
wmayer
bb9d737ba1 when adding a dynamic property to the editor then move it to the correct group or create a new group 2018-08-25 13:26:14 +02:00
wmayer
24579fff32 Py3: fix PropertyStringListItem::setValue 2018-08-23 17:46:27 +02:00
wmayer
93163b28d0 Improve usability of expression dialog:
+ add signal showFormulaDialog to QuantitySpinBox in order to indicate whether the formula dialog opens or closes
+ when formula dialog opens then hide the button box in the parent dialog, show it again when the formula dialog closes
2018-08-23 12:22:57 +02:00
wmayer
afd5249563 add static function isVBOSupported to OpenGLBuffer to check for the GL_ARB_vertex_buffer_object extension 2018-08-21 10:29:55 +02:00
wmayer
a1b0c2ff32 Gui: Better visualization of the Active Object 2018-08-19 18:14:06 +02:00
wmayer
4686f27f64 fix -Wimplicit-fallthrough 2018-08-19 12:35:57 +02:00
wmayer
e701f75c25 generic wrapper/unwrapper for PySide and PyQt classes 2018-08-18 22:12:00 +02:00
luz.paz
321b159f27 More typos 2018-08-18 21:48:43 +02:00
wmayer
3c999f563e fix several reference counting bugs 2018-08-18 16:01:55 +02:00
wmayer
271cdcb19e clear selection node when destroying viewer 2018-08-18 11:32:32 +02:00
wmayer
4d9ee645ce use consistently cc_glglue functions in OpenGLBuffer class 2018-08-16 13:38:46 +02:00
wmayer
c842f0b8b5 fix build failure if pch is on 2018-08-16 01:50:54 +02:00
wmayer
a5515527e9 move OpenGLBuffer class to core system 2018-08-16 01:30:23 +02:00
wmayer
2b02b07538 let pass events of a progress dialog in event filter of WaitCursor 2018-08-14 23:49:00 +02:00
wmayer
56e6d58291 add comment about regression in ProgressBar 2018-08-14 23:47:43 +02:00
wmayer
90ad845396 for Qt5 no explict event processing after creating a 3d view 2018-08-09 18:57:21 +02:00
wmayer
2e35941efc add some convenience methods for initialization process 2018-08-09 18:41:40 +02:00
wmayer
1d83e15e3f quit event loop after closing main window if not started by an extern host application 2018-08-09 17:03:01 +02:00
wmayer
241f85569c fix typo 2018-08-09 17:00:41 +02:00
wmayer
a9c4bcb5d6 remove kwd argument for functions only with flag METH_VARARGS 2018-08-08 17:39:32 +02:00
Zheng, Lei
436d04fe3e ViewProviderDocumentObject: forbid recursive call of updateView() 2018-08-08 13:44:36 +02:00
luz.paz
baa6d89328 Typos and whitespace fixes 2018-08-07 11:13:31 -04:00
wmayer
9faa7fc57f fix exception raised on project load for invalid enums 2018-08-07 15:23:56 +02:00
wmayer
dc54f67d03 fix infinite recursion in case of non-DAG documents 2018-08-06 18:52:48 +02:00
wmayer
2e4d2dff03 fix possible UNICODE related build failure due to OCCT cmake flags 2018-08-06 12:29:43 +02:00