Commit Graph

29 Commits

Author SHA1 Message Date
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
wmayer
b548d3b1ef Partially revert "Remove unused code into GUI" 2022-07-17 12:32:03 +02:00
andrea
3018985f80 Remove unused code into GUI 2022-07-17 03:53:11 +02:00
wmayer
d5921e08ec fix (Qt) issues found by clang's clazy tool:
+ -Wclazy-incorrect-emit
+ -Wclazy-strict-iterators
+ -Wclazy-overloaded-signal
+ -Wclazy-qstring-arg
+ -Wclazy-unused-non-trivial-variable
+ -Wclazy-container-anti-pattern
+ -Wclazy-range-loop-reference
+ -Wclazy-const-signal-or-slot
+ -Wclazy-detaching-temporary
+ -Wclazy-qfileinfo-exists
2022-06-29 21:00:54 +02:00
wmayer
96adb98f46 Gui: modernize C++11
* use nullptr
2022-03-23 18:41:21 +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
Zheng, Lei
b00a8aa056 Gui: fix property view synchronization of property status 2022-03-06 13:20:08 -05:00
Uwe
57fe294c3e [Gui] PropertyEditor: remove unused includes 2022-03-03 03:59:48 +01:00
Zheng Lei
b42462ba14 Gui: improve PropertyEditor refresh (#3535)
* Gui: fix PropertyView 'Add property' action

* Gui: fix property view font color for linked property

* Gui: improve PropertyEditor refresh

* Gui: show real property name in property view tool tip

* Gui: improve property view tool tip

* Gui: fix auto recompute in property view

* Gui: remove duplicated PropertyModel signal of dataChanged()

* Gui: fix property view update on property change
Including changes in document properties

* Gui: fix transaction closing on property editor change
On editing row removal and on model reset.

* Gui: fix property view auto expansion of previous selected item

* Gui: improve property editor navigation using tab/shift+tab
2022-02-21 12:26:21 +01:00
Zheng, Lei
2bd4795e80 Gui: property view related changes
* Display property from linked object, colored green,

* Change DlgPropertyLink to support external linking and sub-object
  selection

* Improve large selection performance by using a timer

* Improve TAB key behavior in property editor

* Add context menu to show hidden properties, change property status,
  set expression on any and property, and add/remove dynamic properties

* Optimize expression completer model construction, as the original
  implementation gets prohibitively slow for moderate number of objects.
2019-08-17 15:08:33 +02:00
wmayer
bb9d737ba1 when adding a dynamic property to the editor then move it to the correct group or create a new group 2018-08-25 13:26:14 +02:00
wmayer
bd4736bf0d implement PropertyConstraintListItem::assignProperty to add item for each datum constraint 2017-12-30 19:49:34 +01:00
wmayer
d2677d4c17 allow to translate property names 2016-12-29 14:20:55 +01:00
wmayer
bb7e662e7c issue #0002673: Not memorize the rotation 2016-12-19 17:32:39 +01:00
wmayer
b2487828f0 Qt4/Qt5 neutral changes:
+ change inheritance of PropertyItem to not derive from BaseClass (and QObject) any more to fix crashes with Qt5
2016-12-12 17:01:26 +01:00
wmayer
e2345374ca use lower epsilon for double value in property editor 2016-08-15 10:59:27 +02:00
wmayer
0ec81d2760 + add properties with 'hidden' mode to property editor but hide the item 2016-03-05 18:24:58 +01:00
Mateusz Skowroński
ab26271756 QAbstractItemModel::reset() is obsolete in Qt5. Use beginResetModel() and endResetModel() instead.
This change is Qt4/Qt5 neutral.
2016-01-05 16:09:12 +01: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
wmayer
a839a13b59 + fix build failure with gcc 2015-11-16 23:21:47 +01:00
wmayer
1225a7ac06 + support of adding/removing dynamic properties in property editor 2015-11-16 22:47:29 +01:00
wmayer
ba21766096 + property editor handles case when dynamic property is removed 2015-11-16 15:24:36 +01:00
wmayer
53d323b5e0 + make isReadOnly & isHidden of PropertyContainer non-virtual 2015-11-14 02:07:57 +01:00
wmayer
9f5283d001 + fixes #0001941: Refresh Property Editor 2015-09-13 15:53:59 +02:00
wmayer
043dc1616d + fixes #0002197: Buggy Placement dialog when using Euler angles 2015-09-13 15:17:44 +02:00
wmayer
bfae053eb4 + fix a couple of issues with InputField used in property editor 2014-06-14 16:22:56 +02:00
wmayer
2bfb120ff7 + fixes #0001484: Do not sort properties in alphabetical order 2014-03-21 15:04:35 +01:00
jriegel
664c1d4862 Integrate Werners & Jans double branch
Move from float to double
Further suggestions for float -> double move
Moved Tools2D from float to double
More suggestions for float->double move from Gui subdirectory
Changes to FEM constraint visuals for float->double move
Suggested changes for float -> double move
Suggestions for Part module moving float -> double
2013-09-24 11:00:57 +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