Commit Graph

50 Commits

Author SHA1 Message Date
Paddle
346d0d7231 Core: Selection : Add possibility to set the style of selection between normal and greedy 2023-09-19 00:08:39 +02:00
wmayer
4f27591e67 Gui: fix some MSVC truncation warnings
See forum: https://forum.freecad.org/viewtopic.php?t=81051
2023-09-10 18:08:06 +02:00
wmayer
6beace8da6 Gui: modernize C++: use default member init 2023-08-23 19:51:44 +02:00
wmayer
888a33917d Gui: modernize C++: use equals default 2023-08-20 18:12:43 +02:00
wmayer
d038801aca Gui: move class SelectionObserverPython to its own source files 2022-11-22 15:44:26 +01: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
wmayer
23961706be Gui: modernize C++: replace 'typedef' with 'using' 2022-08-29 14:09:18 +02:00
berniev
3877fc62c3 Gui: Single arg ctors must be explicit (PR #7369) 2022-08-24 15:06:03 +02:00
berniev
75fa455c5d Gui: Use override etc 2 2022-08-09 12:43:23 +02:00
berniev
3d1f70765a Gui: redundant void 2 2022-08-08 10:21:44 +02:00
Uwe
0a67a39065 [Gui] [skip CI] Selection: a formatting style fix 2022-07-22 02:09:25 +02: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
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
wmayer
1178df06b4 Gui: modernize C++11
* use nullptr
2022-03-23 18:41:21 +01:00
Uwe
7484a06700 [Gui] intermediate compilation fix for Windows
as reported here: https://forum.freecadweb.org/viewtopic.php?p=577678#p577678
2022-03-08 03:17:27 +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
wmayer
a6838cf58f Gui: rename methods of SelectionObserver to clarify intention in client code 2021-12-07 14:17:07 +01:00
Mateusz Skowroński
98f63ba60f Fix build warnings from deprecated Boost headers (they are used internally by Boost). Thanks @wwmayer for the hint. 2020-12-29 10:20:53 +01:00
luz paz
38815b9550 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
wmayer
4807fd3b33 PVS: V730 Not all members of a class are initialized inside the constructor 2020-07-18 10:59:27 +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
luz.paz
30a717beac Fix typos and misc. formatting [skip ci]
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml`
2019-10-21 16:02:23 -03:00
Zheng, Lei
0d966e6777 Gui: improve SelectionSingleton::setVisible()
Change argument to enum type. Make setVisible() robust against
unexpected selection change.
2019-10-08 10:21:06 +02:00
Zheng, Lei
b583c2c9ac Gui: add document to Command and Selection 2019-10-08 10:14:41 +02:00
Zheng, Lei
71530bb1a6 Gui: allow SelectionSingleton::hasSubSelection() check for sub-element
This is used by relative link command activation for sub-element
selection
2019-08-30 14:43:04 +02:00
Zheng, Lei
c88e1335d8 Gui: Selection API changes
Mostly about API changes to SelectionSingleton. Also include related
changes to SelectionObject, SelectionChange, and SelectionView.

Please check out the summary of changes [here](https://git.io/fjimC)
2019-08-17 14:52:10 +02:00
Dion Moult
4bbfad7a10 Add python binding for setPreselect function via Selection.SetPreselection() 2019-05-08 10:26:55 -03:00
wmayer
07810aed49 fix blocking of SelectionObserver 2018-11-04 11:54:40 +01:00
wmayer
36271b4052 move from deprecated boost.signals to boost.signals2 library 2018-10-30 19:09:03 +01:00
wmayer
813c73c202 add convenience method addSelection(SelectionObject) 2018-09-17 17:06:58 +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
luz.paz
9c2e9884e2 More typos 2018-08-18 21:48:43 +02:00
wmayer
ddfa3c8843 remove kwd argument for functions only with flag METH_VARARGS 2018-08-08 17:39:32 +02:00
luz.paz
69b3b0b7f2 Misc. typos 2018-05-19 12:06:34 -04:00
wmayer
fea662ea71 notify selection node about cleared pre-selection 2017-12-25 01:19:02 +01:00
wmayer
7df9dcac7a allow to create SelectionObject from SelectionChanges structure 2016-10-21 14:56:29 +02:00
wmayer
7f1f9b1256 + fixes #0002518: Propertylink enhancement. 2016-05-05 17:12:17 +02:00
DeepSOIC
81592ea816 SelectionGate: add capability to display why not allowed. 2016-04-12 18:12:20 +02:00
DeepSOIC
4da2a4f21b Selection: add getAsPropertyLinkSubList method
Got tired of collecting selection into such properties over and over.
2016-04-12 18:12:13 +02:00
wmayer
7ee9bbcd8c + make Python API of Selection consistent to C++ API 2015-10-18 19:50:47 +02:00
wmayer
e5348c743d + rename signal to signalRelabelObject and remove unused code 2015-09-22 17:13:03 +02:00
wmayer
74efad8681 + Fix DLL warning with MSVC 2014-05-05 18:59:21 +02:00
wmayer
ad24c619d6 + Better support of clang, fix issues discovered by clang 2014-05-05 18:25:59 +02:00
wmayer
2d9f6e5a37 + Improve performance when selecting all edges of an edited fillet feature 2014-04-24 22:29:07 +02:00
wmayer
3a3aa29357 Method to get SelectionObject from string 2013-05-13 15:25:31 +02:00
wmayer
15f99d2df5 Python interface to count selected objects 2012-09-26 18:39:38 +02:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00