Commit Graph

29 Commits

Author SHA1 Message Date
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
wandererfan
e8bc9af344 [TD]prevent object deletion outside dialog 2023-05-24 10:15:45 -04:00
wandererfan
27ef8a598d [TD]fix fail on object deleted during dialog (#9626) 2023-05-24 10:15:45 -04:00
wandererfan
f970a321b2 [TD]fix StackTop and StackBottom 2022-09-24 08:18:38 -04:00
wandererfan
d8be4398e3 [TD]implement view stacking 2022-09-07 16:06:54 -04:00
wandererfan
aa2b1b8392 [TD]CI clang warnings 2022-09-05 17:48:38 -04:00
berniev
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
Benjamin Bræstrup Sayoc
17bcd06464 [TechDraw] Use inherited unsetEdit
Remove uneeded redefinitions of inherited functions
2022-08-04 10:02:47 -04:00
Benjamin Bræstrup Sayoc
aed0346cdb [TechDraw] Remove uneeded redefinitions of inherited functions 2022-08-04 10:02:47 -04:00
Benjamin Bræstrup Sayoc
f30c30b06f [TechDraw] Simplify code getting default line weights 2022-08-02 16:13:01 -04:00
Benjamin Bræstrup Sayoc
2cd5adc0f9 [TechDraw] Improve readability of ViewProviderBalloon.cpp 2022-07-15 11:31:11 -04:00
wmayer
0f5725b34a modernize C++: replace boost::function with std::function 2022-06-30 20:31:55 +02:00
Wanderer Fan
a799a5db66 [TD]fix Dimension/Balloon movement 2022-06-02 16:33:25 -04:00
wmayer
ccc0d54d97 TD: [skip ci] activate PCH of TechDraw (Gui) and use forward declarations
For MSVC this reduces compile time by ~20%
2022-03-25 13:54:47 +01:00
Uwe
9b14bf80d1 [TD] ViewProviders: remove unused includes
- also sort the includes
2022-02-18 04:43:32 +01:00
wmayer
a12695e44f Gui: move methods startDefaultEditMode() and addDefaultAction() to ViewProviderDocumentObject 2021-12-06 19:24:26 +01:00
wmayer
fa86b0216e Mod: make sure to call the base class' handleChangedPropertyType 2021-09-15 14:07:32 +02:00
wmayer
77c6eb91e3 TechDraw: [skip] fixes for balloon feature:
* reimplement ViewProviderBalloon::setupContextMenu() to show item to start editing it
+ fix TaskBalloon::accept() and TaskBalloon::reject()
2021-02-12 15:36:21 +01:00
donovaly
12c9aa00cf [TD] update balloon dialog
2 weeks ago the properties EndTypeScale and LineVisible were added but not to the dialog.

This PR adds them t the balloon dialog-

It also took the opportunity to cleanup the code:
- add missing tooltips
- uniform tooltips in App and Gui
- uniform the UI element names
2021-01-02 11:49:20 +01:00
Aapo
294136e9bd [TD] Balloon, move property LineVisible to View tab and fix a refresh bug. 2020-12-18 12:45:34 +01:00
donovaly
4bae944950 [TD] make LineGroup selectable
At the moment one has to specify the LineGroup as string. But one doesn't know what groups exist. So one has to check the Wiki, learn there where the groups are defined and then open the definition file with a text editor.

This PR simplifies this by reading the existing groups out of the definition file and fill the combobox accordingly.
It also give the user info what the selected LineGroup defines via the tooltip.

A nice side effect is that no typos can occur since you don't have to enter the LineGroup name as text.
2020-12-03 17:24:49 +01:00
wandererfan
a3029fec74 [TD]Centralize preference getters 2020-04-24 11:13:49 -04:00
donovaly
e68116f448 - add missing update on changed color
- some minor code rearrangements and wording changes
2020-03-20 11:34:03 -04:00
donovaly
76fb23d69f [TD] Balloon fixes
- remove the unused property OriginIsSet
- refurbish TaskDialog and add new settings:
  - use SpinBox for Shape Scale
  - add Font Size
  - add Text Color
  - add Line Width
  - add Kink Length
- correct and add tooltips
2020-03-20 11:34:03 -04:00
donovaly
fa8d809268 CanDelete is necessary for dimensions
- therefore revert commit bd0bf690b53f8355400278a127524029d225dffb.
- handle balloons the same way
- fix line ending in ViewProviderProjGroupItem.cpp
2020-03-04 08:24:17 -05:00
donovaly
f44eeae863 [TD] Use PropertyLength for LineWidths
- contributed by @uwe

- also assure that the LineStyle is restricted to the range 0-5

fix another conversion routine mistake
2020-01-27 09:09:25 -05:00
Tomas Pavlicek
3e7249318f TechDraw: Fix font size issues when exporting to SVG 2019-05-27 22:18:14 -04:00
Franck Jullien
bcfbd990a7 [TD] Add TaskPanel for Balloons
TaskPanel can be open by double clicking either Balloon label on drawing
page or Balloon object in tree view.
2019-05-22 12:50:47 -04:00
Franck Jullien
c5942d6a78 TechDraw: add Balloons 2019-04-01 23:24:17 +02:00