wmayer
54bb9c9c62
Gui: modernize C++: return braced init list
2023-08-18 00:36:24 +02:00
marioalexis
05df2da6b4
Gui: Change SelectionFilterPy to new PyCXX extension type
2023-08-16 08:39:14 +02:00
wmayer
2725c3a54f
Gui: modernize C++: use range-based for loop
2023-08-14 19:42:18 +02:00
wmayer
d150fa7164
modernize C++: avoid bind
...
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
68d22d864b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
wmayer
2a88c7c7df
modernize C++: use bool literals
2023-08-06 01:35:39 +02:00
wmayer
924e7fc484
Gui: move class SelectionObserverPython to its own source files
2022-11-22 15:44:26 +01:00
wmayer
10e9e3b9b5
Gui: change Selection.getCompleteSelection() to return a list of SelectionObject instead of DocumentObject
2022-09-29 17:13:56 +02:00
marioalexis
fa6cf56020
Gui: Check Python types using Base::PyTypeCheck
2022-09-24 05:10:34 +02:00
marioalexis
0382f276a2
Gui: Replace C cast
2022-09-18 11:06:51 -05:00
berniev
75acacd1b7
Gui: Use auto and range-based for ( #7481 )
...
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto.
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
berniev
656ef8961f
Gui: redundant void 2
2022-08-08 10:21:44 +02:00
berniev
d88729d2c4
Gui: use empty
2022-08-06 16:35:45 +02:00
berniev
6ac4d8392e
Gui: use emplace_back
2022-08-05 10:33:41 +02:00
Uwe
1d95c26e2e
[Gui] remove more superfluous nullptr checks
2022-07-18 03:34:22 +02:00
Uwe
316a869b26
[Gui] remove superfluous nullptr checks
2022-07-18 03:17:42 +02:00
andrea
3018985f80
Remove unused code into GUI
2022-07-17 03:53:11 +02:00
wmayer
201f4c9a5a
Core: replace PyObject_IsTrue with Base::asBoolean
2022-07-16 14:04:05 +02:00
marioalexis
f78412c75b
Gui: Use PyObject_IsTrue in combination with conditional ternary operator
2022-06-22 19:50:03 -04:00
wmayer
aea110ba15
Gui: clean-up Selection API
...
Replace the int of the SubType of SelectionChanges with an enum class.
The meaning of it is nowhere documented and some magic numbers like 0,1,2 are used in several places in the code.
2022-04-09 23:07:02 +02:00
wmayer
d0485c6bef
Gui: add enum class to Selection Python API
2022-04-09 18:03:45 +02:00
wmayer
9eac35cf5d
Gui: clean-up Selection API
...
Replace the int of the 'resolve' argument of several functions with a proper enum class.
* This avoids the inconsistencies in client code where often true/false is passed when an int is expected
* This avoids the use of magic numbers like 0, 1, 2 or the undocumented 3
2022-04-09 17:03:43 +02:00
Chris Hennes
bedf920702
Gui: PR6497 move return statement to new line
2022-03-29 12:33:50 -05:00
wmayer
96adb98f46
Gui: modernize C++11
...
* use nullptr
2022-03-23 18:41:21 +01:00
wmayer
9160f06e1c
Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError
2022-03-17 14:45:48 +01:00
wmayer
d69defaa3c
Py: replace BaseExceptionFreeCADError with more suitable exception types
2022-03-17 13:54:23 +01:00
Uwe
c4f5628899
[Gui] So headers: remove unused includes
...
- also sort out some headers to be used in precompiled headers
- also move a boost header to precompiled headers
2022-03-16 02:01:32 +01:00
wmayer
1ca7429705
Gui: Optimize includes to reduce compile time
2022-03-07 20:29:18 +01:00
Uwe
fe3feb30df
[Gui] Selection: remove unused includes
2022-03-05 04:21:58 +01:00
Uwe
b4fff07d9e
[App] Expression and Extension: remove unused includes
2022-02-25 18:06:57 +01:00
Uwe
862047010b
[Gui] Selection and MainWindow: remove unused headers
2022-02-19 04:55:50 +01:00
marioalexis
062e30d42f
Gui: Fix some docstrings in Selection module
2022-01-29 23:53:33 +01:00
marioalexis
0620911da1
Gui: Change signature in some Python Selection module functions
2022-01-29 11:09:33 +01:00
marioalexis
cf2e1a0aa5
Gui: Improve docstrings of Python Selection module functions
2022-01-29 11:09:33 +01:00
wmayer
ca5c799ce2
Gui: rename methods of SelectionObserver to clarify intention in client code
2021-12-07 14:17:07 +01:00
flachyjoe
6f0662c716
format Selection API doc
2021-05-13 13:10:40 +02:00
luz paz
6a7184139d
Gui: remove Py2 code from several src/Gui .cpp files
2021-04-14 14:56:02 +02:00
luz paz
298c677873
Gui: Fix header uniformity, whitespace, and doxygen fixes
2020-11-26 10:14:56 +01:00
wmayer
ad7fbee066
Part: [skip ci] fix crash when closing document while face colors panel is open
2020-08-06 11:26:24 +02:00
wmayer
44f42a8e2c
LGTM: [skip ci] fix: Declaration hides parameter
...
A local variable hides a parameter. This may be confusing. Consider renaming one of them.
2020-07-27 10:57:34 +02:00
wmayer
b480a207c0
Coverity: Uncaught exception
2020-07-20 17:34:29 +02:00
wmayer
a0d51baaf2
PVS: V547 Expression is always true/false
2020-07-18 10:59:27 +02:00
wmayer
f3b460e42e
boost: fix for boost < 1.60
2020-06-15 19:38:39 +02:00
wmayer
033ddff089
cast between incompatible function types from 'PyObject* (*)(PyObject*, PyObject*, PyObject*)' {aka '_object* (*)(_object*, _object*, _object*)'} to 'PyCFunction' {aka '_object* (*)(_object*, _object*)'} [-Wcast-function-type]
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
3df91974b8
Gui: [skip ci] fix unicode handling when showing units in status bar
2020-06-04 16:27:58 +02:00
Zheng, Lei
3f2f8ce039
Gui: fix crash on selecting removing object
...
The crash happens if some code calls Gui::Selection().addSelect() of a
removing object in response to App::Document::signalDeletedObject.
2020-06-04 09:34:27 +02:00
wmayer
08dca736e3
Gui: let each coordinate use its own unit to avoid that the displayed values can become very huge
2020-05-30 17:16:32 +02:00
wmayer
0821649a7f
Gui: implement a static function schemaTranslatePoint to avoid code duplication
2020-05-30 16:46:35 +02:00
0penBrain
b0084cd43d
[FC] Status bar preselection coordinates are aware of user unit setting ; fixes #4148
2020-05-30 12:29:58 +02:00