wmayer
948cbfccd9
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
52e1c7c33b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
wmayer
7a3106d31b
modernize C++: use bool literals
2023-08-06 01:35:39 +02:00
wmayer
d038801aca
Gui: move class SelectionObserverPython to its own source files
2022-11-22 15:44:26 +01:00
wmayer
31da72fa17
Gui: change Selection.getCompleteSelection() to return a list of SelectionObject instead of DocumentObject
2022-09-29 17:13:56 +02:00
marioalexis
6bff8ee833
Gui: Check Python types using Base::PyTypeCheck
2022-09-24 05:10:34 +02:00
marioalexis
ff1b4eff05
Gui: Replace C cast
2022-09-18 11:06:51 -05:00
berniev
ae53c9b0a4
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
3d1f70765a
Gui: redundant void 2
2022-08-08 10:21:44 +02:00
berniev
2db561561e
Gui: use empty
2022-08-06 16:35:45 +02:00
berniev
066656f62a
Gui: use emplace_back
2022-08-05 10:33:41 +02:00
Uwe
d5b227e6a6
[Gui] remove more superfluous nullptr checks
2022-07-18 03:34:22 +02:00
Uwe
bb2b49fb1f
[Gui] remove superfluous nullptr checks
2022-07-18 03:17:42 +02:00
andrea
7886d3cbf4
Remove unused code into GUI
2022-07-17 03:53:11 +02:00
wmayer
ab6c75fad9
Core: replace PyObject_IsTrue with Base::asBoolean
2022-07-16 14:04:05 +02:00
marioalexis
ae56fb62a7
Gui: Use PyObject_IsTrue in combination with conditional ternary operator
2022-06-22 19:50:03 -04:00
wmayer
c84c2fb6eb
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
6f2167e0f2
Gui: add enum class to Selection Python API
2022-04-09 18:03:45 +02:00
wmayer
0b2c73cf32
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
5df3dbae6f
Gui: PR6497 move return statement to new line
2022-03-29 12:33:50 -05:00
wmayer
1178df06b4
Gui: modernize C++11
...
* use nullptr
2022-03-23 18:41:21 +01:00
wmayer
e4d1ed8366
Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError
2022-03-17 14:45:48 +01:00
wmayer
1f12dca2b4
Py: replace BaseExceptionFreeCADError with more suitable exception types
2022-03-17 13:54:23 +01:00
Uwe
99191c6679
[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
8f786ea6ef
Gui: Optimize includes to reduce compile time
2022-03-07 20:29:18 +01:00
Uwe
7184f2b93b
[Gui] Selection: remove unused includes
2022-03-05 04:21:58 +01:00
Uwe
a8c912d6f8
[App] Expression and Extension: remove unused includes
2022-02-25 18:06:57 +01:00
Uwe
60bbd420ee
[Gui] Selection and MainWindow: remove unused headers
2022-02-19 04:55:50 +01:00
marioalexis
7cc5cc8d74
Gui: Fix some docstrings in Selection module
2022-01-29 23:53:33 +01:00
marioalexis
9f1a62da29
Gui: Change signature in some Python Selection module functions
2022-01-29 11:09:33 +01:00
marioalexis
4b0067e3f0
Gui: Improve docstrings of Python Selection module functions
2022-01-29 11:09:33 +01:00
wmayer
a6838cf58f
Gui: rename methods of SelectionObserver to clarify intention in client code
2021-12-07 14:17:07 +01:00
flachyjoe
30d277b27a
format Selection API doc
2021-05-13 13:10:40 +02:00
luz paz
a213071c87
Gui: remove Py2 code from several src/Gui .cpp files
2021-04-14 14:56:02 +02:00
luz paz
38815b9550
Gui: Fix header uniformity, whitespace, and doxygen fixes
2020-11-26 10:14:56 +01:00
wmayer
050b20fa30
Part: [skip ci] fix crash when closing document while face colors panel is open
2020-08-06 11:26:24 +02:00
wmayer
45e0673645
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
9b2a6edeb0
Coverity: Uncaught exception
2020-07-20 17:34:29 +02:00
wmayer
1b2a7ef6fc
PVS: V547 Expression is always true/false
2020-07-18 10:59:27 +02:00
wmayer
d6169d6478
boost: fix for boost < 1.60
2020-06-15 19:38:39 +02:00
wmayer
2571b8591c
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
730154a684
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
515250485e
Gui: [skip ci] fix unicode handling when showing units in status bar
2020-06-04 16:27:58 +02:00
Zheng, Lei
02ac923ca5
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
0d4f196c60
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
c374a6faa9
Gui: implement a static function schemaTranslatePoint to avoid code duplication
2020-05-30 16:46:35 +02:00
0penBrain
01e21f2f11
[FC] Status bar preselection coordinates are aware of user unit setting ; fixes #4148
2020-05-30 12:29:58 +02:00
Zheng, Lei
76617fd582
Gui: check object existence before SelBack/Forward
2020-05-03 19:18:46 +02:00
Zheng, Lei
e4978be7a4
App: add new convenient class SubObjectT
...
Derived from App::DocumentObjectT to add support of sub object
Also some minor changes to App::DocumentObjectT
Changed Gui::SelectionChanges to make use of SubObjectT
2020-02-11 15:40:27 -05:00
luz.paz
04ba2872f0
src/Gui: [skip ci] fix header uniformity
...
This PR fixes header uniformity across all `src/Gui` files
2019-12-25 11:39:17 +01:00