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
4977e55e51
App: Optimize includes to reduce compile time
2022-03-07 15:53:58 +01:00
Uwe
fe3feb30df
[Gui] Selection: remove unused includes
2022-03-05 04:21:58 +01:00
wmayer
f147986fa9
App: Bugfix for NULL-Pointer dereference of Property->getName()
2022-01-16 14:30:51 +01:00
Chris Hennes
434525f0ad
Merge branch 'master' into selection2021SelectionViewAutoShow
2021-08-20 00:00:44 -05:00
Chris Hennes
50c7ee36bf
[GUI] Remove code for Qt < 5.9
2021-04-02 10:10:37 +02:00
Chris Hennes
f9881584a9
Add option to auto-show selection view
...
The SelectionView dock window was already an observer of the current selection
when it was showing. This changes it to continuously monitor the selection even
when invisible. If the user sets the parameter
BaseApp/Preferences/Selection/AutoShowSelectionView to true, when there is an item
selected, the view will show itself if it was hidden, and will re-hide itself when
the selection is cleared. The option has no effect if the user had chosen to manually
show the selection view prior to beginning a selection.
2021-01-12 21:24:23 -06:00
wmayer
b25dee58d5
Coverity: Uninitialized scalar/pointer field
2020-07-20 17:34:30 +02:00
Zheng, Lei
49b6944a20
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
Mateusz Skowroński
317bcd59c9
Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy!
2019-02-11 15:39:14 +01:00
Yorik van Havre
f6205c6b93
Selection view: only select search results when enter is pressed
2018-11-14 15:11:54 -02:00
wmayer
16e709a682
do not explicitly use extesnion modules in SelectionView::getModule
2018-08-28 14:11:31 +02:00
wmayer
26f8cb6f88
in selection view do not extract element names from item text but set and get user data
2017-08-15 19:51:41 +02:00
wmayer
9ccb01e95f
fix bug with multiple object names in selection view when selecting in tree view
2017-06-19 14:59:32 +02:00
Yorik van Havre
a0da4b16a8
Display the number of selected elements in Selection View
2017-05-21 19:10:19 -03:00
wmayer
980145c495
make creation of sub-elements in selection view more flexible
2017-05-10 15:01:36 +02:00
Yorik van Havre
84a9f74633
Added a 'show' option to the Selection View's context menu
2017-05-09 19:55:40 -03:00
wmayer
f19d424d8b
fix -Wextra in FreeCADGui
2016-09-21 20:54:52 +02:00
Yorik van Havre
f6c7587857
Added Touch action to context menu of selection view
2016-06-16 14:03:46 -03:00
Mateusz Skowroński
cd2db00f22
QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
...
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Mateusz Skowroński
d5c074f80d
QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
...
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
Mateusz Skowroński
43a4a5938c
Fix files encoding. Go from ISO8859-1 to UTF-8.
2015-09-21 19:50:49 -03:00
wmayer
f7644fc9f3
+ issue #0002053 : Support of themes
2015-07-12 22:54:56 +02:00
wmayer
de7c8fcbbf
+ issue #0002053 : Support of themes
2015-06-30 13:14:56 +02:00
Yorik van Havre
5d0bc520b9
Gui: Added entry to Selection View's context menu, to use selected objects in the python console
2015-04-08 14:08:14 -03:00
wmayer
97987db462
+ fix problems on unit tests, open transaction when creating distance object, layout warning, ...
2015-01-25 14:04:33 +01:00
wmayer
296c07142a
+ fixes #0001896 : Selection View widget don't display latin characters for label.
2015-01-05 21:46:51 +01:00
wmayer
489f2451fa
+ fix a couple of issues in selection view
2015-01-05 19:48:43 +01:00
wmayer
26e01e0900
+ build with Qt < 4.7 and OCC < 6.5
2014-09-20 17:49:29 +02:00
Yorik van Havre
ce0f2452c8
Mis upgrades for the selection window - fixes #1737
...
* Added a search box that searches through object labels
* Added a context menu to selected items
* Allow to double-click an item to isolate
2014-09-13 12:02:45 -03:00
wmayer
cc775f9254
+ fix -Wnull-conversion, -Woverloaded-virtual, -Wlogical-not-parentheses, -Wsometimes-uninitialized
2014-08-26 19:14:13 +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