vocx-fc
ee11678a58
Draft: migrate Layer object and function to the new structure
...
Move `make_layer` to `draftmake`; `Layer` and `LayerContainer`
to `draftobjects`; `ViewProviderLayer` and `ViewProviderLayerContainer`
to `draftviewproviders`.
The make function and the classes are imported in `Draft.py`
to support the usage of the older `VisGroup`.
2020-07-20 14:21:15 +02:00
vocx-fc
ff4cb41860
Draft: move GuiCommand for Draft Layer to its own module
2020-07-20 14:21:15 +02:00
Mateusz Skowroński
06f72637d7
Mod/Web: Use of deprecated not thread-safe setter, use setUrlRequestInterceptor instead.
2020-07-20 14:18:12 +02:00
paul lee
f8584455f8
[ArchWall] Failed if Sketch as Base has Point, now OK
...
FC Forum Discussion -
https://forum.freecadweb.org/viewtopic.php?f=23&t=48668&sid=ba6dd68ad32eefbad6ae95d8fadc30e6#p416779
2020-07-20 14:17:28 +02:00
mwganson
2e6133f63f
avoid saving to parameters if new shortcut is the default, better check for if setting shortcut was success
2020-07-20 14:11:14 +02:00
mwganson
9052be3e74
return false when unable to set shortcut
2020-07-20 14:11:14 +02:00
Mark Ganson TheMarkster
4e70a108f4
convert tab to spaces
2020-07-20 14:11:14 +02:00
Mark Ganson TheMarkster
488e8e4e6a
move preprocessor directives back to column 1
2020-07-20 14:11:14 +02:00
Mark Ganson TheMarkster
e329e6ee03
remove some commented lines
2020-07-20 14:11:14 +02:00
mwganson
dd8b1c0d1f
[Python Gui] add new command Gui.setCommandShortcut(), fix bug in Gui.getCommandShortcut() and Gui.getCommandInfo() where user has changed shortcut via customize dialog, but these 2 commands returned previous default information
2020-07-20 14:11:14 +02:00
mwganson
07dd96beb2
[Standard Views] change preference label to default camera orientation
2020-07-20 13:48:37 +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
Bernd Hahnebach
a860aac641
FEM: elmer tasks, comment regression added with bf209daba4d1
2020-07-20 08:09:52 +02:00
mwganson
283ef3ce86
[Sketcher] add python command sketch.getGeoVertexIndex(int index) -- returns tuple (geoId, posId) of vertex at that index in the sketch. usage example: (geoId, posId) = App.ActiveDocument.Sketch.getGeoVertexIndex(int(Gui.Selection.getSelectionEx()[0].SubElementNames[0][6:])-1)
2020-07-19 05:50:12 +02:00
wmayer
32a7aec18e
Gui: [skip ci] add some security checks before dereferencing pointer to QTreeWidgetItem
2020-07-18 12:05:02 +02:00
mwganson
7fdb6ac13b
[crash fix] Edit Parameters right click was causing crash unless right clicking on item
2020-07-18 11:55:24 +02:00
wmayer
cba06a2ed5
PVS: V571 Recurring check. A condition was already verified in previous line
2020-07-18 10:59:28 +02:00
wmayer
bd58cfe81a
PVS: V506 Pointer to local variable '_value' is stored outside the scope of this variable. Such a pointer will become invalid.
2020-07-18 10:59:28 +02:00
wmayer
2db95da274
PVS: V1016 Value is out of range of enum values. This causes unspecified or undefined behavior.
2020-07-18 10:59:28 +02:00
wmayer
380a448dd1
PVS: V560 A part of conditional expression is always true
2020-07-18 10:59:28 +02:00
wmayer
70c3cc7c03
PVS: V646 Consider inspecting the application's logic. It's possible that 'else' keyword is missing.
2020-07-18 10:59:28 +02:00
wmayer
4bbdfb5f7b
PVS: V768 The expression is of enum type. It is odd that it is used as an expression of a Boolean-type.
2020-07-18 10:59:28 +02:00
wmayer
46a7a68064
PVS: V1046 Unsafe usage of the 'bool' and 'int' types together in the operation '&='.
2020-07-18 10:59:28 +02:00
wmayer
af42f439d9
PVS: V612 The '(4) / 3' expression was implicitly cast from 'int' type to 'float' type. Consider utilizing an explicit type cast to avoid the loss of a fractional part
2020-07-18 10:59:28 +02:00
wmayer
67a986bb2d
PVS: V601 The bool type is implicitly cast to the double type
2020-07-18 10:59:28 +02:00
wmayer
05d4496d96
PVS: V688 The local variable possesses the same name as one of the class members, which can result in a confusion
2020-07-18 10:59:28 +02:00
wmayer
6c94ed51ab
PVS: V690 The copy constructor is declared as private in the 'PropertySheet' class, but the default copy assignment operator will still be generated by compiler. It is dangerous to use such a class.
2020-07-18 10:59:28 +02:00
wmayer
2a50ac2252
PVS: V595 A pointer was utilized before it was verified against nullptr
2020-07-18 10:59:28 +02:00
wmayer
d8ee57c0a1
PVS: V590 Consider inspecting this expression. The expression is excessive or contains a misprint.
2020-07-18 10:59:28 +02:00
wmayer
103f094088
PVS: V1762 It is possible a virtual function was overridden incorrectly
2020-07-18 10:59:28 +02:00
wmayer
50e5495ce3
PVS: V1023 A pointer without owner is added to the container by the 'emplace_back' method. A memory leak will occur in case of an exception.
2020-07-18 10:59:28 +02:00
wmayer
13c2fae81c
PVS: V575 The null pointer is passed into 'strcpy' function. Inspect the first argument
2020-07-18 10:59:28 +02:00
wmayer
6426161ed8
PVS: V572 It is odd that the object which was created using 'new' operator is immediately cast to another type
2020-07-18 10:59:28 +02:00
wmayer
9424395afc
PVS: V1004 A pointer was used unsafely after it was verified against nullptr
2020-07-18 10:59:27 +02:00
wmayer
9ee3cd222b
PVS: V678 An object is used as an argument to its own method. Consider checking the first actual argument of the 'setupUi' function.
...
Avoid to include ui generated header files within other header files but use forward declarations instead. This reduces dependencies between files and compile time considerably
2020-07-18 10:59:27 +02:00
wmayer
9e2dc54094
PVS: V560 A part of conditional expression is always true
2020-07-18 10:59:27 +02:00
wmayer
b09d02a576
PVS: V570 A variable is assigned to itself
2020-07-18 10:59:27 +02:00
wmayer
1b2a7ef6fc
PVS: V547 Expression is always true/false
2020-07-18 10:59:27 +02:00
wmayer
02f45721d6
PVS: V529 Odd semicolon ';' after 'for' operator.
2020-07-18 10:59:27 +02:00
wmayer
07d2e08920
PVS: V524 It is odd that the body of 'getLastUKnotIndex' function is fully equivalent to the body of 'getFirstUKnotIndex' function
2020-07-18 10:59:27 +02:00
wmayer
8ceac9cf55
PVS: V523 The 'then' statement is equivalent to the 'else' statement
2020-07-18 10:59:27 +02:00
wmayer
1ae38aea04
PVS: V522 There might be dereferencing of a potential null pointer
2020-07-18 10:59:27 +02:00
wmayer
e005972466
PVS: V519 A variable is assigned values twice successively.
2020-07-18 10:59:27 +02:00
wmayer
8a7b4a145b
PVS: V773 The exception was thrown without releasing the pointer. A memory leak is possible.
2020-07-18 10:59:27 +02:00
wmayer
94dbcc83ce
PVS: V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected.
2020-07-18 10:59:27 +02:00
wmayer
2ebd1c3518
PVS: V501 There are identical sub-expressions to the left and to the right
2020-07-18 10:59:27 +02:00
wmayer
4807fd3b33
PVS: V730 Not all members of a class are initialized inside the constructor
2020-07-18 10:59:27 +02:00
vocx-fc
72b8d36457
Draft: add module getSVG to the proper Doxygen group
...
Only one module `getSVG` added to the `getSVG` Doxygen group.
Probably at some point the module will be broken into smaller
modules to organize the code better.
2020-07-17 13:01:45 +02:00
vocx-fc
8e9fb40fa3
Draft: add modules of draftviewproviders to the proper Doxygen group
...
This includes `view_array`, `view_base`, `view_bezcurve`,
`view_bspline`, `view_circulararray`, `view_clone`, `view_dimension`,
`view_draft_annotation`, `view_draftlink`, `view_facebinder`,
`view_fillet`, `view_label`, `view_orthoarray`, `view_point`,
`view_polararray`, `view_rectangle`, `view_text`, `view_wire`,
`view_wpproxy`.
These are added to the `draftviewproviders` Doxygen group
so that the functions and classes contained in each module
are listed appropriately in the automatically generated
documentation.
2020-07-17 13:01:45 +02:00
vocx-fc
dd70caa723
Draft: add modules of draftutils to the proper Doxygen group
...
This includes `gui_utils`, `init_draft_statusbar`, `init_tools`,
`messages`, `todo`, `translate`, `utils`.
These are added to the `draftutils` Doxygen group
so that the functions contained in each module are listed
appropriately in the automatically generated documentation.
2020-07-17 13:01:45 +02:00