Commit Graph

116 Commits

Author SHA1 Message Date
Roy-043
b2a87d0be7 Update InitGui.py
Removed temp code.
2021-10-02 09:44:01 +02:00
Roy-043
da185295b2 Draft: fix shortcuts in menus and more (InitGui.py) 2021-09-28 14:49:22 +02:00
marioalexis
05f290f119 Draft: Make featureName attribute translation-independent
The translation for the task panel title is done in the Ui method call
2021-03-29 10:51:53 -03:00
carlopav
83b708127d Draft: Cleanup of Draft Edit 2020-05-25 13:37:55 +02:00
carlopav
3da68ba3c5 Draft: fix to statusbar import on wb Activated and Deactivated
Import statusbar related functions only if snapper is loaded
added new line at the end
2020-04-30 13:48:33 +02:00
carlopav
5b027dfa23 [Draft] Statusbar widgets, preferences to disable draft statusba
.


.


.


.
2020-04-20 12:38:06 +02:00
carlopav
77c385631b [Draft] Added Draft Snap Statusbar
.
2020-04-20 12:38:06 +02:00
vocx-fc
5b677151e6 Draft: move array commands to DraftTools
Previously they were imported directly in `InitGui.py`,
now they are collected in `DraftTools.py`, so that they
are imported at the same time as other modules.

Also provide an icon so this icon appears in the menu.
2020-04-16 11:40:58 +02:00
vocx-fc
02189fa973 Draft: new utility toolbar with some useful commands
These commands are useful but are "hiden"
inside the "Utilities" menu, so not many poeple know about them.
By placing them in a toolbar, they will be more discoverable.
2020-04-16 11:40:58 +02:00
vocx-fc
b3abe7efe9 Draft: update InitGui with context commands
The `ContextMenu` method defines commands that will be listed
when right clicking and opening the context menu in the 3D view
or the tree view.

This sets up the line GUI commands when either a line, wire,
polyline, spline, or bezier curve is active.

However, this currently doesn't work at all for unknown reasons.
Maybe some other functionality in the internal C++ code
needs to be changed first.
2020-04-16 11:40:58 +02:00
carlopav
00c0de6871 [Draft] Removed annotation styles objects
Removed Annotation styles current implementation.
As pointed out by yorik, in https://forum.freecadweb.org/viewtopic.php?f=23&t=44051&p=385710#p385179, this feature will be added using document Meta property.
2020-04-16 11:37:10 +02:00
carlopav
5bbf3ad6cf [Draft] Dimension style object
still have to split viewprovider from object.
[Draft] Dimension Style code cleanup

thx @vocx-fc for reviewing
further cleanup


[Draft] Dimension Style improvements

Added a property to the dimension object to link the dimension style.
Improved the update of dimensions when style changes. This can be done in 2 different ways: by setting AutoUpdate property to True or by activating Update function from the viewprovider context menu.
2020-04-16 11:37:10 +02:00
carlopav
9fcb4f94a0 [Draft] Annotation scale support and statusbar widget
Initial commit
Preliminary support for Draft Dimensions


[Draft] Statusbar Widget code cleanup
2020-04-16 11:37:10 +02:00
vocx-fc
d40bf0d5e8 Draft: moved some unit tests to TestDraftGui
Those unit tests that are registered in `Init.py` will always run,
while those that are registerd in `InitGui.py` will only run
when the graphical interface is available.

This allows us to more clearly distinguish functions that
should be able to run always, from those that may run only
when the interfce is available.
2020-04-08 11:07:51 +02:00
vocx-fc
4ed4e2d496 Draft: unit tests registered in Init.py
This means that now the unit tests will run from
the console mode when using
```
FreeCADCmd -t 0
FreeCAD --console -t 0
```

This will allow us to catch errors more easily,
as we separate better the behavior of non-GUI
and GUI-required modules.

Also small spacing fixes and position of the license.
2020-04-08 11:07:51 +02:00
vocx-fc
536e0ad133 Draft: move ShapeString to the creation tools
Previously it was placed in the `annotation` category
but since it creates a group of shapes, it is better
in the `creation` category.

Also small fixes in the menu text and tooltip.
2020-04-07 18:12:06 +02:00
vocx-fc
549ca9205b Draft: new Draft_OrthoArray command
It replaces the older `Draft_Array` command, and provides
a task panel to select the properties, similar to the
`Draft_PolarArray` and `Draft_CircularArray` commands.

It can also create `App::Links` directly from this task
panel, so it also replaces the `Draft_LinkArray`
introduced by the LinkMerge.
2020-03-03 21:27:31 +01:00
vocx-fc
adfc58580d Draft, Arch: group the array tools 2020-03-02 11:41:22 -03:00
vocx-fc
ccebb92258 Draft: added init_tools to create the toolbars 2020-02-10 11:02:28 +01:00
vocx-fc
a083fea057 Draft: explicitly import modules in the initialization
Also other small fixes: cleanup for getting the icon
of the workbench; we don't need to test for PySide because
it should already exist as part of the system
for the entire interface to work; cleanup of the printing
functions.
2020-02-10 11:02:28 +01:00
carlopav
21f8b80f55 [Draft] Context menu bugfix
If "Line" is not translated, the menu is not appended
2020-01-29 09:32:52 +01:00
carlopav
c5f2845eb5 [Draft] Reorganize menu & toolbars
According to what experimented in BIM WB.
2020-01-27 10:06:33 +01:00
vocx-fc
ab6976c5db Draft: add new command for Draft CircularArray
Added object, viewprovider, icon; gui command definition, task panel,
add command to InitGui; add callbacks, and delay system.
2020-01-08 15:16:07 +01:00
vocx-fc
1336381eec Draft: new command for Draft PolarArray
Added object, viewprovider, icon; gui command definition, task panel,
add command to InitGui; add callbacks, and delay system.
2020-01-07 07:18:39 -03:00
luz.paz
8cfa85cf18 Draft: [skip ci] Fix header uniformity
This PR fixes header uniformity across all Draft files
2019-12-27 00:16:12 +01:00
vocx-fc
6626b52b5f Draft: rename SubelementModify to SubelementHighlight 2019-11-11 18:04:10 -03:00
vocx-fc
b9a6c0dd2b Draft: renamed the command Draft_Edit_Improved to Draft_SubelementModify because the previous name was confusing; also provide a new icon 2019-10-10 19:13:28 -03:00
vocx-fc
eddbfc1e7d Draft: DraftFillet, improved the tool, now the radius of the tool can be selected when launched; the tool should work without needing to import DraftFillet manually 2019-09-04 23:14:55 -03:00
vocx-fc
4c5e719e45 Draft: added DraftFillet.py to the sources, also InitGui.py, Draft.py, DraftTools.py, and CMakeLists.txt 2019-08-22 10:54:41 -03:00
Zheng, Lei
88b5b2a845 Draft/Arch related changes
* Add Draft_LinkArray and Draft_PathLinkArray that uses link for both
  data and visualization, which supports linking external objects

* Add link group support for draft snap

* Fix ArchWindows expression ambiguity
2019-08-17 15:32:47 +02:00
Yorik van Havre
4d3f24a5b8 Draft: Reorganizing DraftEdit and future Draft command modules 2019-08-12 21:30:45 -03:00
vocx-fc
149c219e14 Draft: improved the style of the code, checked with flake8 2019-07-26 10:54:01 -03:00
carlopav
4ee893b78a [Draft] Update DraftEdit PR with Yorik suggestions
Cleanings of import at the beginning of new module.
Moved command setup in InitGui and removed import DraftEdit from DraftTools.
2019-06-17 16:39:56 -03:00
Yorik van Havre
2c918366e4 Draft: Introduced Layers system (former VisGroup) 2019-06-05 18:47:01 -03:00
Yorik van Havre
601b09bb83 Draft: Removed annoying an unuseful verbose command line output 2019-05-16 15:31:57 -03:00
carlopav
00daa50ee3 [Draft] Insert the arc group in the draft toolbar
small fix to add the arc group to the toolbar.
2019-05-14 11:20:27 -03:00
Dion Moult
bc0dc26b5a Add new edit tool icon, shortcut, and basic modes.
* It allows you to select multiple objects to edit instead of just one.
 * It highlights the object lines and the points in red.
 * It stays in the mode and allows you to run other modifiers.
 * A very hackish hook into the move modifier is added as a proof of concept.
2019-05-08 10:26:54 -03:00
carlopav
442ba9e2c1 Split the command in two
With this commit 2 commands are created, one for current bezier curve tool behaviour, the other for cubic bezier in inkscape style...
grouped in a dropdown button in the toolbar.
2019-04-08 17:17:21 -03:00
Yorik van Havre
05b7892109 Draft: Added 3-point arc command from BIM WB 2019-04-07 17:23:42 -03:00
Dion Moult
c3e73d925d Add split tool 2019-01-31 10:54:36 -02:00
Dion Moult
40c5dbf15f Add new draft join tool 2019-01-31 10:54:36 -02:00
wmayer
07b070c8c6 fixes 0003732: Menu groups in Draft menu are not translated even though translated strings exist 2018-12-16 17:20:26 +01:00
wmayer
844165c062 unit tests of Arch and Draft require GUI, improve output of units tests 2018-08-28 19:39:34 +02:00
ageeye
7d8f4f1a33 Add a new array type: PointArray. 2018-06-18 20:38:10 -03:00
Yorik van Havre
cddc22f24e Arch/Draft: Less clutter in output window 2018-03-02 12:29:58 -03:00
Yorik van Havre
d98c1640d1 Draft: Added a utility command to add selected objects tothe construction group 2017-11-27 13:38:30 -02:00
Yorik van Havre
28f315f4f6 Draft: First version of Draft Label object 2017-05-29 16:57:25 -03:00
Yorik van Havre
9daf12c6b2 Draft: Added utilities -> create Working Plane Proxy command 2017-02-25 20:34:43 -03:00
Yorik van Havre
009859ddf3 Draft: AutoGroup system 2017-01-25 14:55:14 -02:00
Yorik van Havre
72afcde8db Draft: Added stretch tool - fixes #1163 2017-01-13 11:25:25 -02:00