Commit Graph

1824 Commits

Author SHA1 Message Date
Markus Lampert
3a23ea25bb Added search path and preferences support for tools 2019-11-28 17:31:35 -08:00
Markus Lampert
9178c670c4 Add support for ToolBit to ToolController 2019-11-28 17:31:35 -08:00
Markus Lampert
c452447bd4 Added ToolBit sources to installation files 2019-11-28 17:31:35 -08:00
markus
8a3694efc4 Added storing and loading of tools in json files 2019-11-28 17:31:35 -08:00
markus
85c4e4f626 Updated readme 2019-11-28 17:31:35 -08:00
markus
9fa4c9f826 Add separator after path context menues 2019-11-28 17:31:35 -08:00
markus
ba769396be Load template during editing but unload it afterwards 2019-11-28 17:31:35 -08:00
Markus Lampert
92cdc3d78a Fixed typo 2019-11-28 17:31:35 -08:00
Markus Lampert
35275d3a8d Added editing functionality to the tool editor 2019-11-28 17:31:35 -08:00
Markus Lampert
a4d5ab37c7 Set property editor mode on creation. 2019-11-28 17:31:35 -08:00
Markus Lampert
cf8c0fadd1 Basic editor and shape update. 2019-11-28 17:31:35 -08:00
Markus Lampert
9a7db28819 Added tool bits concept and some initial templates 2019-11-28 17:31:35 -08:00
asapelkin
8bc5b585c8 Used single quotes for single character in string::find algorithm, more efficient 2019-11-21 18:59:43 +01:00
asapelkin
f13a7627ae used make_shared and make_unique for creating shared pointers 2019-11-21 18:51:43 +01:00
asapelkin
e951094af9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
howetuft
fb64a860e6 Fix -Wredundant-move warnings, 2nd try
std::move is redundant when it is used to return a local object from a function (eg return std::move(local)): indeed, returning a local object from a function implicitly moves it. Moreover using std::move this way
See https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rf-return-move-local
However, in order to avoid -Wreturn-std-move as well, a Base object is move-constructed
from Derived when required.
2019-11-18 13:44:40 +01:00
howetuft
4b5ca31149 Fix -Wclass-memaccess warning
Replace C-style memset with C++ value-initialization/assignment (smarter and safer: see https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#slcon3-avoid-bounds-errors)
2019-11-18 12:32:27 +01:00
wmayer
e117679922 [skip ci] suppress -Wgnu-zero-variadic-macro-arguments 2019-11-17 19:19:02 +01:00
Markus Lampert
eecb2651fc Fixed circular dependency for boundary dressup 2019-11-10 20:19:52 -08:00
Markus Lampert
1572519067 Added PathBoundary task panel tool tips and tab order. 2019-11-05 19:18:39 -08:00
Markus Lampert
4a897d3f4f Fixed typo in onDelete 2019-11-05 19:18:39 -08:00
Markus Lampert
eb35e8a553 Added new boundary dressup files to CMakeLists 2019-11-05 19:18:39 -08:00
Markus Lampert
421e50ae87 PathBoundary editor filled with life. 2019-11-05 19:18:39 -08:00
Markus Lampert
a27a00064a Added boundary dressup to restrict path to another shape. 2019-11-05 19:18:39 -08:00
Gabriel Wicke
5a055fec0d [path] Fix ignoreWasteFlag option
The code was trying to iterate over a `range(0, pntsPerLine)`, but
pntsPerLine was a float resulting from a division.

Convert pntsPerLine to an int, and only ignore waste if this was
successful.
2019-11-01 17:12:42 -03:00
luz.paz
1bc33025d6 LGTM: various fixes for using string operator instead of numeric 2019-10-25 10:33:12 -03:00
luz.paz
1c981e8f14 Fix typos and misc. formatting [skip ci]
Found via `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,currenty,dof,doubleclick,dum,eiter,elemente,feld,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`
2019-10-21 16:02:23 -03:00
howetuft
b858757bb2 Fix -Wdeprecated-copy warnings (rule of 5/3/0)
Fix -Wdeprecated-copy warnings in various places. Consists in enforcing
rule of five/three/zero (https://en.cppreference.com/w/cpp/language/rule_of_three)
mainly by deleting redundant copy constructors or copy assignment operators
that replicate default constructors/operators, or more rarely by adding
missing copy/move constructors/operators.
See also https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c20-if-you-can-avoid-defining-default-operations-do
2019-10-20 17:02:17 +02:00
Markus Lampert
453f80f71a Added support for copying holding tags from another holding tags dressup. 2019-10-15 23:44:37 -07:00
Markus Lampert
4dc50edf55 Fixed holding tags restore 2019-10-14 11:11:16 -07:00
Markus Lampert
641f615bf5 Restrict loading of ocl and PathSurface to enabling experimental features. 2019-10-14 10:09:05 -07:00
Zheng, Lei
71c54272a0 Fix various Py::Object leak 2019-10-08 17:53:20 +02:00
wmayer
e1b0df9386 remove PCH from header file 2019-10-03 10:18:23 +02:00
luz.paz
7b7797f4f3 Fix various (doxy) typos and whitespace issues
Found via `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,currenty,dof,doubleclick,dum,eiter,elemente,feld,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`
2019-10-03 07:57:13 +02:00
wmayer
0aa0f1c31f fix build failure: add export mscro, add header 2019-10-03 01:32:33 +02:00
Markus Lampert
e1e095da35 Added copyright notice to source files. 2019-09-30 22:20:54 -07:00
Markus Lampert
84b23d3e90 Add BoundBox property to Path, usable without a gui. 2019-09-30 18:34:57 -07:00
Markus Lampert
66e9cf900a Split walking and segmenting a path into its own class so it can be used by other algorithms, not just visualisation 2019-09-30 18:34:57 -07:00
Markus Lampert
450cc894be Fixed first screen on job creation 2019-09-27 14:29:15 +02:00
Markus Lampert
6e38c10862 Prevent endless loop through negative step down values in engraver. 2019-09-27 14:18:43 +02:00
markus
4230fe5f98 Fixed engrave for non-closed wires for multi step down ops 2019-09-27 14:18:27 +02:00
markus
65a4b27047 Added unit tests for orientWire. 2019-09-27 14:18:09 +02:00
sliptonic
644fb4739d Merge pull request #2503 from Russ4262/fix_pocketshape_popup
[Path] Fix PocketShape pop-up warning window issue
2019-09-24 15:36:23 -05:00
luz.paz
a8b1c56fe8 fix misc. source comment typos
Found via `codespell`
2019-09-18 21:07:12 +02:00
wmayer
a247b7e6a5 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
wmayer
f7c3cba415 fix possible vulnerability 2019-09-18 11:06:41 +02:00
Daniel Wood
dad96e2713 fix typo 2019-09-10 14:27:49 +02:00
Daniel Wood
3b4c5549e8 Don't try deleting tool tables when none exist. 2019-09-09 20:26:55 +01:00
Daniel Wood
bdf929533f Make sure the tool current tool table gets set. 2019-09-09 20:19:46 +01:00
Daniel Wood
4858d917b1 Check there is preference data before attemping to load it. 2019-09-09 18:52:47 +01:00