Commit Graph

2759 Commits

Author SHA1 Message Date
wmayer
be0192a0e2 add option to disable auto-deactivation of property view for inactive document 2018-09-14 16:30:26 +02:00
Markus Lampert
333dfe92d7 Disable property editor if none of the selected objects is in the active document. 2018-09-13 22:18:28 -07:00
wmayer
aef87aeec5 Ignore key events in dialogs and let parent task panel handle them
The affected dialogs are:
* Texture mapping
* Cross-sections
* Extrusion
* Revolution
2018-09-13 11:13:33 +02:00
wmayer
adb2fb6e04 move document mode command further uo in the View menu 2018-09-13 01:23:52 +02:00
wmayer
0c8cc7efcf fix regression wrt to bold text in multi-document mode when activating document by tabs 2018-09-13 01:19:49 +02:00
wmayer
ef42cfb5d6 add method to activate 3d view when setting active object list 2018-09-12 15:38:28 +02:00
wmayer
aee9359da1 ignore key events in placement dialog and let parent task panel handle them 2018-09-11 21:12:04 +02:00
wmayer
90258a47f0 move check for grabbed node and releasing it from ViewProviderDragger::unsetEditViewer to View3DInventorViewer::resetEditingViewProvider 2018-09-11 17:27:17 +02:00
wmayer
8f3c135a5c minor fixes:
make QtCreator happy by removing const & when connecting signal/slots
fix typo in comment
2018-09-11 15:50:27 +02:00
Zheng, Lei
652e9314bd PropertyEditor: improve editing experience 2018-09-11 14:51:03 +02:00
Markus Lampert
22838a95ce Added collapse/expand option to the document tree view. 2018-09-11 11:38:58 +02:00
Markus Lampert
b475b01686 Changed tree view document hiding boolean to integer to support arbitrary number of views. 2018-09-11 11:38:38 +02:00
Markus Lampert
71175748fc Added option to hide inactive documents in tree view. 2018-09-11 11:38:20 +02:00
Markus Lampert
3caa2fe467 Added icon to TaskPanel tab in CombiView to indicate if an edit session is in progress. 2018-09-11 07:42:46 +02:00
luz.paz
69d46d1b43 Misc. typo and whitespace fixes
`codespell -q 3 -I ../fc-word-whitelist.txt --skip=".git,*.ts,*.po,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/zipios++"`
2018-09-11 07:27:22 +02:00
DeepSOIC
dadf0e80a9 GestureNavigationStyle: fix interaction with SoClipPlaneManip 2018-09-11 00:38:06 +03:00
wmayer
0388fa4bf9 fix inconsistencies between default action of context menu and double-click 2018-09-10 17:32:39 +02:00
wmayer
4e3b929fc8 auto-expand/collapse a tree item when activating it 2018-09-10 15:47:48 +02:00
wmayer
9d3304e1b5 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
e214315d93 close all top-level widgets when about to quit event loop 2018-09-10 12:32:14 +02:00
wmayer
a5805c412f when leaving dragger edit mode make sure to release the grabbed node 2018-09-06 12:42:08 +02:00
looooo
acb5fb83af reduce line-length to 80 characters 2018-09-05 11:06:26 +02:00
looooo
4d82b87c20 new style modules: print traceback as error and as log. 2018-09-05 11:06:12 +02:00
wmayer
141a2ad138 add missing comma separator in list 2018-09-03 21:33:06 +02:00
wmayer
f2ec0eaca3 enable VBO support for Intel graphic drivers if UseVBO is activated 2018-09-03 16:57:33 +02:00
wmayer
b761262dc3 enable VBO support for Intel graphic drivers if UseVBO is activated 2018-09-03 16:46:54 +02:00
Mark Ganson TheMarkster
29d26ce311 Revert unintended change
Not sure how that happened...
2018-09-03 11:08:16 -03:00
Mark Ganson TheMarkster
788873fc65 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
3f0c474a71 GLBuffer: fix isVBOSupported() 2018-09-03 12:59:27 +02:00
Michal Ulianko
2e2b8cba6a 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
f721dd9a17 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
8f1ef0d90c get rid of private function _PyImport_FixupBuiltin for FreeCAD and FreeCADGui modules 2018-09-01 19:57:15 +02:00
wmayer
6d315fceb7 exit application when running unit tests raised a system exception 2018-08-31 22:21:15 +02:00
wmayer
78efe74229 number of used decimals in UnitsApi must already be set when initializing App 2018-08-29 23:35:38 +02:00
wmayer
609d1c8fbf use a widget's current font as default in the list of available families 2018-08-29 19:33:02 +02:00
wmayer
da7447979d do not explicitly use extesnion modules in SelectionView::getModule 2018-08-28 14:11:31 +02:00
wmayer
1d32828b29 use abstract interface to access geometry in transform dialog 2018-08-27 16:19:56 +02:00
luz.paz
53e122a75a Misc. typo fixes
Found via `codespell`
2018-08-26 17:30:44 +02:00
Zheng, Lei
00312a39f9 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
74c0ba5fcf fixes #0003564: Python objects: updateData calls to proxy instance that should have been deleted 2018-08-25 16:33:22 +02:00
wmayer
25a7131e03 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
d139602512 Py3: fix PropertyStringListItem::setValue 2018-08-23 17:46:27 +02:00
wmayer
448408c28a 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
7a5a17c744 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
6e697ddebf Gui: Better visualization of the Active Object 2018-08-19 18:14:06 +02:00
wmayer
c3f945a287 fix -Wimplicit-fallthrough 2018-08-19 12:35:57 +02:00
wmayer
3ea8ae06ff generic wrapper/unwrapper for PySide and PyQt classes 2018-08-18 22:12:00 +02:00
luz.paz
9c2e9884e2 More typos 2018-08-18 21:48:43 +02:00
wmayer
721e37d888 fix several reference counting bugs 2018-08-18 16:01:55 +02:00
wmayer
74ac2e76f1 clear selection node when destroying viewer 2018-08-18 11:32:32 +02:00