Commit Graph

131 Commits

Author SHA1 Message Date
Mateusz Skowroński
9ade68e9bf Fix CMake warning: qt5_make_output_file is not part of the official API, and might be removed in Qt 6. 2021-04-19 15:10:53 +02:00
wmayer
bd587a8a45 Surface: re-implement closed() in TaskFilling 2021-02-05 16:37:00 +01:00
Chris Hennes
a6b689f57c Fix Surface task panel shortcut use to use Widget context
The Delete key shortcut of the three different panels in the
Surface Workbench TaskFilling sidebar conflicted between
the panels if multiple were showing. This is resolved by
making the QAction's context the widget, rather than the window.
2021-02-01 19:40:33 -06:00
bitacovir
e5135dc820 [UI] Replace SVG icons for Surface WB commands 2021-01-25 16:23:54 -03:00
luz paz
67890c94f1 Surface: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the Surface Wb.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
2020-12-01 14:53:35 +01:00
luz paz
ae48d4afb2 Surface: Fix header uniformity, whitespace, and doxygen header 2020-11-19 13:41:43 +01:00
tomate44
0ffa0279c6 Surface: prevent GeomFillSurface to produce C0 rational BSpline surface 2020-11-06 07:52:40 +01:00
vocx-fc
36f103d74c Surface, MeshPart: update CurveOnMesh command tooltip and task panel
* Add new icon `MeshPart_CurveOnMesh`, which is the same as
the `Surface_CurveOnMesh` icon but in green color.
The surface icon is used in the Surface Workbench, while the MeshPart
version is currently not used.
* Make the tooltip of the command shorter; the longer instructions
are added in the `TaskCurveOnMesh` task panel.
2020-10-19 13:18:12 +02:00
vocx-fc
0f5d6ea096 Surface: updated task panel for Surface_Filling
`Fill Surface` becomes `Boundaries`. A label is added
explaining that it is possible to reorder the items
in the list of boundary edges.
2020-10-19 13:18:12 +02:00
vocx-fc
6834a41a60 Surface: update tooltip of Filling 2020-10-19 13:18:12 +02:00
wmayer
f53871780c Surface: automatically start "Add edge" mode when starting the fill surface tool. Moving the order of edges is supported now. 2020-10-13 17:32:20 +02:00
wmayer
43638ec0a5 Surface: rename TaskFillingUnbound to TaskFillingEdge 2020-10-13 16:23:58 +02:00
vocx-fc
6e4cc131a2 Surface: better titles for the task panels, and tooltips 2020-10-13 15:53:32 +02:00
vocx-fc
c0d1e90920 Surface, MeshPart: add more information to the CurveOnMesh command
In the Surface Workbench, the command is called `Surface_CurveOnMesh`
and the only thing it does is call the corresponding command
in the MeshPart Workbench, where it is defined
under the name `MeshPart_CurveOnMesh`.

Currently the MeshPart Workbench is not exposed on the graphical user
interface but it is loaded at startup, and its commands
are in fact used from the Mesh Workbench and, in this case,
the Surface Workbench.

Also improve the tooltip of the other commands in the Surface Workbench:
`Cut`, `Filling`, `GeomFillSurface`, `ExtendFace`, and `Sections`.
The `Cut` command does not do anything at this moment
so it is not visible in the interface.
2020-10-13 15:14:12 +02:00
vocx-fc
e99b46de88 Surface: new icon for existing Surface_CurveOnMesh command
Add this command to the Surface toolbar.
2020-10-13 15:09:12 +02:00
vocx-fc
7750c4dfbf Surface: ViewProviderExtend for Surface::Extend object
This is created by the Surface_ExtendFace command.
2020-10-13 14:52:02 +02:00
vocx-fc
3ec05cefcb Surface: new Extend icon for existing Surface_ExtendFace command
The icon is added to the `.qrc` resource file.

The command is added to the Surface toolbar.
2020-10-13 14:42:20 +02:00
luz paz
df93939be3 Fix various typos [skip-ci]
Found via `codespell v2.0.dev0`  
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-10-08 18:21:15 +02:00
vocx-fc
0ff058ca94 Surface: Vertices instead of Vertexes in the task panel 2020-09-30 12:32:36 +02:00
vocx-fc
c6d2d37773 Surface: new Sections icon
The `Surface_Sections` command was recently introduced in v0.19
(9c34952, c6fb8df) so its icon is updated as well.
2020-09-30 12:32:36 +02:00
vocx-fc
6a9c644383 Surface: upgraded Surface icons
The `Surface_Workbench` icon is the same as `Surface_Surface`,
which is now an SVG and not XPM.
The lines are thicker and the colors have been adjusted
with a gradient, instead of being solid and plain looking.

Also the following were updated: `BSplineSurface`,
`BezierSurface`, `Cut`, `Filling`, `Sewing.

The `BezierSurface`, `Cut`, and `Sewing` icons are not currently used
in the workbench, but they were still updated in case
a future command uses them.
2020-09-30 12:32:36 +02:00
vocx-fc
1d486dc669 Surface: new SVG icon for the workbench, rename others
Replace the hard-coded XPM icon in `InitGui.py` for the workbench
with an SVG file, which at this time is identical to the `Surface` icon.
Change `CMakeLists.txt` to properly install this new icon.

Rename all icons, so that all have the `Surface_` prefix.

Use the new icon names in the viewproviders and task panels.
2020-09-30 12:32:36 +02:00
wmayer
db645a6ea8 Surface: [skip ci] add icon for sections command 2020-09-28 07:57:00 +02:00
wmayer
ed7cdd4c2c Surface: add command to create surface from sections 2020-09-26 16:32:42 +02:00
wmayer
45e0673645 LGTM: [skip ci] fix: Declaration hides parameter
A local variable hides a parameter. This may be confusing. Consider renaming one of them.
2020-07-27 10:57:34 +02:00
wmayer
a128272364 LGTM: [skip ci] fix: Accidental rethrow 2020-07-24 20:57:14 +02:00
wmayer
bac752b012 Surface: replace std::mutex with a boolean to avoid extra overhead 2020-07-03 16:08:02 +02:00
wmayer
4722571a5a Surface: optimize Extend::onChanged 2020-07-03 16:08:02 +02:00
wmayer
1bfd5c81cd Surface: remove superfluous function call 2020-07-03 16:08:01 +02:00
wmayer
9dd57ddee9 Surface: in Extend::onChanged call the function of its direct parent class Part::Spline 2020-07-03 16:08:01 +02:00
wmayer
711d473a6d Surface: handle old project files using Extend feature 2020-07-03 16:08:01 +02:00
wmayer
dbce4dc5ee Surface: fix -Winconsistent-missing-override 2020-07-03 16:08:01 +02:00
MA-LAPTOP\apeltauer
4d24229e5c adding 4 spaces instead of 2 spaces 2020-07-03 16:08:01 +02:00
MA-LAPTOP\apeltauer
47d6a54da8 Add the possibility to set the uv values for all four sides indepented.
Extending the face symetric is the default behaviour.
2020-07-03 16:08:01 +02:00
luz.paz
c8cb520887 [skip ci] fix follow-up typos 2020-03-06 14:50:35 +01:00
wmayer
12b944984c [skip ci] fix header uniformity
Set a real email address for headers in inspection and surface module
2019-12-21 16:12:54 +01:00
asapelkin
ced8100ab9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
wmayer
e48c52c480 force strict ISO C++ (-Wpedantic)
for Drawing, Image, Inspection, Mesh, MeshPart, Part, Path, Points, Raytracing, ReverseEngineering, Spreadsheet, Start, Surface, Web

TODO: fix several -Woverflow in area
2019-09-18 11:32:42 +02:00
triplus
92efd5fbe9 Improved icon themes support 2019-02-13 10:42:46 -02:00
luz.paz
cb4a0adf71 Misc. typos
Found via `codespell`
2019-02-08 11:01:24 -02:00
wmayer
465325668e add GUI functions to flip orientation of input curves 2018-09-07 23:03:07 +02:00
wmayer
d14e900342 add boolean list to handle orientation of boundary curves 2018-09-07 11:48:11 +02:00
wmayer
6462d98bf9 CMP0050: make Surface module aware of cmake policy 2018-08-20 14:56:30 +02:00
Markus Lampert
e13c09235f Changed all catch types to references for polymorphic exceptions. 2018-08-08 15:45:30 +02:00
wmayer
5ff6945577 fix compiler warnings with py3 and msvc 2018-04-16 18:24:53 +02:00
tomate44
4bc8bd178f add comments 2018-04-02 15:51:39 +02:00
tomate44
7aca082cb5 fix crash when boundary edges are not ordered 2018-04-02 15:51:16 +02:00
luz.paz
69216f3604 sWhatsThis fixes
ref: https://forum.freecadweb.org/viewtopic.php?f=10&t=26687
2018-01-31 19:07:07 +01:00
wmayer
72f08f3fc8 fix compiler warning due to unused variable 2018-01-14 16:32:44 +01:00
Unknown
e3eca59173 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00