Commit Graph

42 Commits

Author SHA1 Message Date
wmayer
888a33917d Gui: modernize C++: use equals default 2023-08-20 18:12:43 +02:00
wmayer
e09d8aaba6 Gui: modernize C++: use range-based for loop 2023-08-14 19:42:18 +02:00
wmayer
c2e17824fa modernize C++: raw string literal 2023-08-07 19:51:15 -06:00
wmayer
76860143f7 Gui: replace slots with member function pointers 2023-02-03 00:21:38 +01:00
wmayer
8d42b6f93c Gui: move to new style connect() 2023-02-01 13:49:35 +01:00
wmayer
4b08850edb Qt6 port:
* QApplication::setFallbackSessionManagementEnabled has been removed
* QString::medRef() has been removed. Use QString::mid() again.
* QTextStream::setCodec has been removed
* Use operator QVariant of the QFont class to make code Qt5 and Qt6 compatible
* Signature of QTreeWidget::mimeData() has changed in Qt6. Remove TreeWidget::mimeData() because it doesn't change the implementation
* QLayout::setMargin() is deprecated in Qt5 and has been removed in Qt6. Use QLayout::setContentsMargins()
* QDateTime::toTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::toSecsSinceEpoch()
* QDesktopWidget is deprecated in Qt5 and has been removed in Qt6. Use QScreen
2022-11-01 16:55:40 +01:00
berniev
3d1f70765a Gui: redundant void 2 2022-08-08 10:21:44 +02:00
wmayer
916c814219 Fix several clazy issue:
* Use multi-arg instead [-Wclazy-qstring-arg]
* Use an empty QLatin1String instead of an empty QStringLiteral [-Wclazy-empty-qstringliteral]
* getter Gui::ProgressBar::canAbort possibly mismarked as a slot [-Wclazy-const-signal-or-slot]
* Missing emit keyword on signal call [-Wclazy-incorrect-emit]
2022-07-24 20:07:04 +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
f1f68db55b App: Optimize includes to reduce compile time 2022-03-07 15:53:58 +01:00
Uwe
7184f2b93b [Gui] Selection: remove unused includes 2022-03-05 04:21:58 +01:00
wmayer
b35623e680 App: Bugfix for NULL-Pointer dereference of Property->getName() 2022-01-16 14:30:51 +01:00
Chris Hennes
e3344a8c2e Merge branch 'master' into selection2021SelectionViewAutoShow 2021-08-20 00:00:44 -05:00
Chris Hennes
098d7b9aee [GUI] Remove code for Qt < 5.9 2021-04-02 10:10:37 +02:00
Chris Hennes
086c2778f9 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
983939b32d Coverity: Uninitialized scalar/pointer field 2020-07-20 17:34:30 +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
Mateusz Skowroński
ac508516da 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
d478c3057b Selection view: only select search results when enter is pressed 2018-11-14 15:11:54 -02:00
wmayer
da7447979d do not explicitly use extesnion modules in SelectionView::getModule 2018-08-28 14:11:31 +02:00
wmayer
1839adc7bf 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
def4152640 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
ec067c77d2 Display the number of selected elements in Selection View 2017-05-21 19:10:19 -03:00
wmayer
61ad4c5e8d make creation of sub-elements in selection view more flexible 2017-05-10 15:01:36 +02:00
Yorik van Havre
97e93f01ed Added a 'show' option to the Selection View's context menu 2017-05-09 19:55:40 -03:00
wmayer
1e6dcabefc fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
Yorik van Havre
cd4bdceba9 Added Touch action to context menu of selection view 2016-06-16 14:03:46 -03:00
Mateusz Skowroński
c275b35d48 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
0695552cff 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
05f95c0506 Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
wmayer
343bb91450 + issue #0002053: Support of themes 2015-07-12 22:54:56 +02:00
wmayer
28c92a1bfa + issue #0002053: Support of themes 2015-06-30 13:14:56 +02:00
Yorik van Havre
ae191886ea 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
85bc04f0a0 + fix problems on unit tests, open transaction when creating distance object, layout warning, ... 2015-01-25 14:04:33 +01:00
wmayer
b8bc0b57c4 + fixes #0001896: Selection View widget don't display latin characters for label. 2015-01-05 21:46:51 +01:00
wmayer
d796750cb8 + fix a couple of issues in selection view 2015-01-05 19:48:43 +01:00
wmayer
2b8b11c71f + build with Qt < 4.7 and OCC < 6.5 2014-09-20 17:49:29 +02:00
Yorik van Havre
514df2d9bb 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
a50743041b + 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