Commit Graph

516 Commits

Author SHA1 Message Date
Abdullah Tahiri
ca1eba6107 Sketcher: Element Widget enhancement: Support for external geometry
Python naming used is "ExternalEdge" for consistency with the name appearing in the status bar when selecting that object.

As discussed:
http://forum.freecadweb.org/viewtopic.php?f=10&t=6861&sid=bd9ad10357f8a7de146c4fbd2d53c23b&start=90
2014-10-14 18:33:21 +02:00
Sebastian Hoogen
a53a239f2f issue #1027 use unicode filepaths 2014-10-11 13:32:06 +02:00
Sebastian Hoogen
f1283cf24c fixes #1782 remove unused precsion parameters
from gp_Trsf::SetValues
2014-10-11 13:03:02 +02:00
wmayer
f02da38566 + fix Qt help problems 2014-10-01 17:16:43 +02:00
wmayer
ac010de9c9 + fix minor bug when adding coincidence constraint 2014-09-28 15:06:02 +02:00
wmayer
f0bf3cb6ab + Proper handling of sketch plane parallel to view direction 2014-09-27 15:53:21 +02:00
wmayer
032c893183 + fix warnings with clang 2014-09-24 17:46:04 +02:00
wmayer
003c2bf77d + fix warnings with clang 2014-09-24 15:55:36 +02:00
wmayer
3ff7d569c8 + fix build error 2014-09-23 12:51:31 +02:00
Stefan Tröger
72cab0c002 Adaption of FreeCAD to QuarterWidget
-removes all soqtviewer references
-create a quarter adaptor class which implements missing functionality
-adopts freecad code to make use of SoRenderManager and changed View3DInventorViewer  interface
2014-09-23 10:11:11 +02:00
Abdullah Tahiri
749abc5ed7 Sketcher fixes: Symmetry arrows properly scaled, fixed icon in constraint taskbar list contextual menu 2014-09-18 16:01:34 +02:00
Abdullah Tahiri
02cb12db52 Sketcher enhancement: Constraint icons visible over lines 2014-09-17 18:49:40 +02:00
Abdullah Tahiri
d562e1a389 Sketcher Art enhancement: New Symmetric constraint icon by Jim
There is more space in between the > < symbols now, so it is more clear as it overlaps less.

Thanks Jim!
2014-09-17 18:49:16 +02:00
Abdullah Tahiri
0adfa0a7ed Sketcher Bug fix: Arrows for symmetry constraint are back
The arrows were there in the code, but at a certain point, code was written to set the this->imgHeight value programatically, based on
whether it had text or not. As symmetry constraint does not have text the variable failed to initialize. Being zero, it did not pass
the ASSERT in the render function, so it was not rendered.

This includes Werner's fix for improver cast of a SoRayPickAction to SoGLRenderAction:
SbVec2s vp_size = static_cast<SoGLRenderAction*>(action)->getViewportRegion().getWindowSize();
to
SbVec2s vp_size = SoViewportRegionElement::get(state).getWindowSize();

At least sometimes tt is a SoRayPickAction because:

When you move with the mouse over the sketcher (when in edit mode) you enter the method ViewProviderSketch::mouseMove.
Inside there the method getPointOnRay is called to get a picked point underneath the cursor. Inside the latter method
an instance of SoRayPickAction is created to traverse the scene graph. After a long cascade of function calls you
finally enter SoDatumLabel::generatePrimitives(SoAction*).
2014-09-17 18:48:54 +02:00
Abdullah Tahiri
fdb7de1dda Sketcher visualization enhancement: Do not group sketcher symmetry icons.
Do not add a symmetry constraint icon to a group of icons, so that it lies on the line or point providing the symmetry (symmetry axis/point),
as it is more clear to the user which line this is.
2014-09-17 18:48:36 +02:00
Abdullah Tahiri
95c512d9a1 Sketcher feature enhancement: Symmetry constraint perpendicular to axis of symmetry
Solves Mantis ticket: http://www.freecadweb.org/tracker/view.php?id=1623
Unrelated minor fix: remove unused variable
2014-09-17 18:48:15 +02:00
Abdullah Tahiri
da2df00eea Sketcher visualization: Increase readability of redundant constraint solver message
Color changed to "OrangeRed" to improve readability.
2014-09-17 16:43:51 +02:00
Abdullah Tahiri
5f2670dbcf Sketcher Redundant/Conflicting art by Jim 2014-09-17 16:43:51 +02:00
Abdullah Tahiri
34cc7c3136 Sketcher new feature: Select Conflict and Redundant Constraints
Based (and solves) Mantis ticket:
http://www.freecadweb.org/tracker/view.php?id=1643

The ticket refers only to redundant, and ask for deletion.

Two commands are created, one for redundant constraints and other for conflicting constraints.

As usually removing one constraint of the "at least one" is sufficient, the implementation selects the constraints (but does not delete them).

The user therefore easily identify the constraints involved and decide to delete them.

This implementation takes into account the edit->Actsketch that ViewProvidedSketch creates for solving, as it is this instance the one that generates the messages in the Sketcher Taskbar.

No buttons in the toolbar by default (can be added by the user), but an hyperlink in the solver messages which triggers the selection of the appropriate command (conflicting or redundant).
2014-09-17 16:43:50 +02:00
Abdullah Tahiri
bdbf5140f9 Sketcher new feature: Selects the elements associated with the selected constraint(s)
Ex 1: User selects constraints from the list => right click => select "select elements" from the contextual menu => The elements (edges,vertex) involved in the constraint(s) are selected.

Ex 2: User selects (a) constraint(s) => Clicks button in toolbar (if included by the user) => The elements (edges,vertex) involved in the constraint(s) are selected.

Intended as visual aid to see which elements are being affected by a constraint.

Requested by Jim on thread:
http://forum.freecadweb.org/viewtopic.php?f=19&t=6875&start=10

Solving another Mantis ticket I can not find now.
2014-09-17 16:43:49 +02:00
Sebastian Hoogen
57db95a1c3 issue #1701 removed further except: statements 2014-09-17 11:57:32 +02:00
Sebastian Hoogen
ed66ada1cf issue #1700 replace PyExc_Exception 2014-09-17 11:15:57 +02:00
Abdullah Tahiri
4aa71db3c8 Sketcher Element Widget enhancement: Auto-switch to Edge (first valid type)
Feature requested by nahshon.
- In auto-switch to edge mode, actually switch to first valid type, which is always
edge, except for a point. It reduces the amount of clicks when dealing with points.
- Correction of a typo.
2014-09-16 10:12:53 +02:00
wmayer
d1fb7fa839 + do not add units to translation 2014-09-10 10:35:49 +02:00
wmayer
ce528d1c4a + fixes #0001719: Show current shortcuts (S) in menus and hover text. 2014-08-31 14:28:33 +02:00
jriegel
c1f0f70b88 Merge remote-tracking branch 'refs/remotes/origin/jriegel/NewWinBuild' into jriegel/review-NewLibPack
Conflicts:
	src/3rdParty/salomesmesh/CMakeLists.txt
2014-08-27 15:39:00 +02:00
wmayer
346e5c6a77 + fix more compiler warnings 2014-08-27 13:26:44 +02:00
wmayer
cc775f9254 + fix -Wnull-conversion, -Woverloaded-virtual, -Wlogical-not-parentheses, -Wsometimes-uninitialized 2014-08-26 19:14:13 +02:00
wmayer
d974d6897b + fixes #0001713: Allow Part.Arc to be used as Sketcher geometry 2014-08-26 13:09:37 +02:00
Itai Nahshon
e9ea1e2727 Fix automatic creation of tangent constriants.
a. Use scale to calculate max distance
b. Consider only circle/arc that actually touch the newly created line
c. Use of arc angles correctly
d. Find nearest touch point (not nearest center)
e. some optimization
2014-08-24 19:07:31 +02:00
Itai Nahshon
6eeaae57b8 Sketcher: Ignore small mouse moves after selection.
Switch to drag mode only after cursor moved 3 pixels.
2014-08-24 19:07:16 +02:00
wmayer
3c8a00dfec + fixes #0001703: Spreadsheet PropertyController 2014-08-23 14:38:30 +02:00
wmayer
1f2cd53bf7 + fix localization problems in PropertyConstraintListItem, + improve whitespaces 2014-08-22 21:32:19 +02:00
jriegel
d65a4e4ed7 some type clearification 2014-08-21 17:59:33 +02:00
Abdullah Tahiri
7cc5167623 Sketcher properties feature enhancement: Separated sublist for unnamed datum constraints 2014-08-21 14:11:51 +02:00
wmayer
e9100c7ddb + fix build failure on Windows, remove unused headers, whitespace improvements 2014-08-19 14:02:16 +02:00
Abdullah Tahiri
a9fef8412f New feature: Edit Sketch datum constraints from data Property view
This feature shows in the data properties associated to a TreeView element,
the datum constraints, i.e. those with an associated value.
2014-08-19 13:23:15 +02:00
wmayer
967566acf1 + improve OCC version macro, fix build failure with MinGW, fix build failure with Coin2 2014-08-18 11:34:02 +02:00
wmayer
8808b82371 + fixes #0001690: sketch.getPoint crashes FreeCAD if the point does not exist 2014-08-16 14:41:30 +02:00
Ian Rees
3a96bb60fe Sketcher: Don't change preselection during box selection 2014-08-09 07:34:04 +02:00
Abdullah Tahiri
37d5012647 Sketcher Elements widget - New feature -
- Remembers how the user left the "Auto switch to Edge" and the "Extended Name" checkboxes
and restores the values on next use of the Sketcher WB.
2014-08-08 18:32:54 +02:00
wmayer
28490532f5 + fix dir2qrc script to keep alphabetical order of file names, update Sketcher.qrc 2014-08-07 20:29:31 +02:00
Abdullah Tahiri
e2db94facd updated icons for sketcher
- Selection icons added.
- Art by Jim
- Clean up sketcher xpm small icons: Only constraint icons seem to be necessary
2014-08-07 19:49:51 +02:00
Abdullah Tahiri
b5002dc6fe changes in sketcher
- Varios minor bug fixes.
- Added the other commands to the toolbar.
- Bug fix: missing AbortCommand().
- Mode Auto-switch to edge (Sponssi mode) has selection combo disabled to avoid interferring with this mode.
However, if auto-switch checkbox is unchecked (Jim-Abdullah mode), the combo is enabled and selection of
element type can be effected via the combo with the mouse.

In any case "z" shortcut iterates round robin the "valid types" of the preselected (hovered) element.
2014-08-07 19:49:51 +02:00
wmayer
be3299a46d code review: move transaction to outside from loop, fix several bugs, fix whitespaces 2014-08-05 00:35:03 +02:00
wmayer
1011dd4175 Squashed commit of the following:
commit 695becbbfff961b13e3edb5a4e1e4487bc53b4bb
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Mon Aug 4 15:24:33 2014 +0200

    - Making combo disable state.
    - Updating Art (Thanks Jim!)

commit d5391d40ace450fa2e65fe2b4ab8029ad37cacf8
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Fri Aug 1 00:40:15 2014 +0200

    - Adaptation of code to Workbench's new Template structure.
    - Minor adaptation of new ViewProvideSketch code to new constraint code (only in code extensions needed for element Widget)

commit ecdec20afa33c9a950e6054e80e4aa9c72aad8b6
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Thu Jul 31 15:31:38 2014 +0200

    Fix so that when applying a coincident constraint to a plurality of points,
    if one constraint on a couple of points exists, no new coincident constraint is
    added to this couple.

    Fixes: http://forum.freecadweb.org/viewtopic.php?f=3&t=6890

commit 32ef59d76e6c63356f5d36598ca11eb47c2e52af
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Thu Jul 31 14:13:58 2014 +0200

    Add some placeholder art for icons to avoid having a cross icon and annoying icon not found messages.

commit ccb60a3a7e71a0eb8ad5d896542314a98ef314a8
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Mon Jul 28 20:15:29 2014 +0200

    - Fixed Length Constraint accelerator (D) to SHIFT+D to avoid colision with other higher level FreeCAD accelerator assignment.
    - Selection Accelerators now toggle on shortcut execution, and act when no other element is selected (fixed bug)

    TODO: Art+Toolbar

commit 791358d046e8eeb03fa00272f5627c75254c48eb
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Mon Jul 28 15:12:07 2014 +0200

    Fixing shortcut system:
    - Take shortcuts automatically from CommandManager.
    - Fixed two shortcuts in CommandConstraints (Point on Object - O and
    Parallel Constraint - P to SHIFT+O and SHIFT+P to avoid collision with other constraints)
    - Fixed shortcuts in CommandConstraintAccel to non-already-existing combinations
    - Fixed Sketcher Menu to show accelerators

commit 12d366406a45038ce1a4f725a98e4f570475084b
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Mon Jul 28 11:53:37 2014 +0200

    Implemented SHIFT multiple selection functionality in listwidget.

commit 0606ea7dfe38fdf8924f65f14382f1b327145c80
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Mon Jul 28 11:02:02 2014 +0200

    Added Sketcher Accelerators for:
    - Selection of H Axis
    - V Axis
    - Origin

    Main TODO: Shortcuts and Shift in list widget implementation

commit 297464807fc56fbcf31efadff9625fc05bb20c41
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Wed Jul 23 11:37:21 2014 +0200

    Implementation of:
    - Switch on 'Z' instead of 'Shift'
    - Checkbox to select whether element internal name (e.g. Edge10) should be presented on list or not (Sponssi requested)
    - Checkbox to force going back to "Edge" type on change from one element to the next (Sponssi requested)

commit c8764b116acdcfdc7ef7658dc6009fb8db807906
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Wed Jul 23 07:57:11 2014 +0200

    TaskSketcher Elements:
    - Store Vertex within elements for optimization (reduce loops searching for vertex in every function call)
    - Added the accelerators described below + Toggle Construction as context menu commands
    - Fixed bug (Thanks sponssi!): After some element has been preselected from the list and the cursor moved to the drawing area,
    the preselection doesn't seem to be resetted in the widget or whereever it is handled.
    Tapping shift still swaps the preselection between the points of the previously selected element.
    The left mouse button has to be clicked in the draw area to get rid of this.
    http://forum.freecadweb.org/viewtopic.php?f=10&t=6861&sid=7eea4adc7ecf4cebd561b357601866a2&start=20
    - Extended naming of elements, to facilitate writing python code (as requested by sponssi).
    - Minor modifications (creation of utility fuctions, code readibility, ...)

    Sketcher Workbench:
    - First effort to add a toolbar with the accelerators.

    Sketcher Accelerators: (Perform actions on existing elements, as opposed to Geometry Creation, not restricted to applying constraints)
    - Close Shape : of selected edges (i.e. lines and arcs)
    - Connect : selected edges (connect endpoint edge with starting point of next edge according to selection order)
    - Select Constraints : associated with currently selected edges

commit 1dc18204a4e2e38f71d729a7692383f50a7d4654
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Sat Jul 12 16:06:48 2014 +0200

    New alternative implementation of the Sketch Element List.

    This version comprises:
    - Identification via icon of type of geometric element (Point, Arc, Line, Circle) and
      Type of selection (Edge, Starting Point, End Point, Center Point)
    - Corrected a bug where upon selection from the combobox, the icons were not updated (Thanks Jim!)
    - Implementation of jump to next valid type of last preselected element (aka fast-forward) for all the types.

commit 4d472ef796362405c3982355f86489fa92cbfe6d
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Thu Jun 26 17:15:51 2014 +0200

    Feature request by jmaustpc
    - When an object does not have an element, lets put a different icon.
    - Currently the constraint lock icon is used until availability of a new one.

commit 6d15478f6533ff3805520a8ca36d1c41908cb0af
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Thu Jun 26 14:54:23 2014 +0200

    Bug fix (preselection not disappearing on changing element without the element Type).

commit e33043e17781fcf6399257696f115f68ab4580ec
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Thu Jun 26 14:39:20 2014 +0200

    New nicer icons by jmaustpc. They look much nicer :-)

commit 2ce2d6ff1ad2d81b0b1e30ffcbe9f2cc445f2e5b
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Thu Jun 26 14:37:21 2014 +0200

    Fast-Forward functionality:
    - If an element not having "midpoint" is preselected, then on pressing SHIFT the
    Type will jump from EndPoint to Line skipping midpoint.
    - This is intended as a productivity feature, as most sketch elements usually are lines

commit 1865d06d06582a49da10ddc123133807a4593060
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Wed Jun 25 15:47:22 2014 +0200

    Bug fix (thanks jmaustpc)
    - Preselection is maintained even though the geometric element does not have the "Type".
    - Fix involves calling for remove preselection in TaskSketcherElement
    - Implementing the response to the message RmvPreselection in ViewProviderSketch

commit 14e21da4b4ed0e9a2b3e846a4e51f6745d5e0ab7
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Mon Jun 23 14:25:35 2014 +0200

    Fix Bug with null pointer (thanks jmaustpc!)
    Clean up code

commit 0d99eb633f1bca45d4e7bb22c57bd4892767a390
Author: Abdullah Tahiri <abdullah.tahiri.yo@gmail.com>
Date:   Wed Jun 11 16:32:48 2014 +0200

    New widget for the Taskbar of the Sketcher WB.

    The objectives of this widget are:
    1. Allow editing of sketches when they have (partially) overlapping lines of any type
       (construction/external/normal).
    2. Allow the construction of sketches using the keyboard (less mouse intensive)

    The widget works as follows:
    1. A QListWidget presents a list of elements, element is here a geometric element
    formed Types edges, starting points, end points and midpoints (e.g. circles, arcs)
    2. On hovering/Entering one item in the list, it is preselected for easy identification.
    3. The selection can be switched from one type to another using the SHIFT key
    (press and release) in a round-robin fashion (or you can select it using the droplist)
    4. Selection of different types is possible (e.g. two points and a line).
    5. The contextual menu accessible by right click allow to apply a constraint to the
    selection.
    6. The constraints in the contextual menu have shortcuts, so you can actually use the
    shortcut directly from the QListWidget.

    Additional features introduced to other parts during development...
    - New color introduced for Types that are selected and preselected at the same time
    - Edges is a SoLineSet. You can not apply many So modifiers (width,offset) to parts of a SoLineSet.
    An edge part of a SoLineSet that is drawn after another one, covers it unless it is closer to the
    camera. The system of manual offsets already in place for points has been extended to properly
    handle (i.e. show) overlapping lines part of a SoLineSet.
2014-08-05 00:35:02 +02:00
jriegel
ec2198107b move build specifier in own cMake group 2014-08-03 20:53:19 +02:00
wmayer
578fbbefa4 + fix bug when releasing button after dragging point or curve 2014-08-02 17:52:12 +02:00
Ian Rees
c836dab53d Removed some debugging stuff that was accidentally pushed earlier 2014-08-02 20:04:56 +12:00
wmayer
a252471625 + fix author notes, fix memory leak, fix build failure under Windows 2014-07-30 10:05:13 +02:00
wmayer
6ca580456b Squashed commit of the following:
commit 8853bf442b6e1a98699fa90fca5eb30b3f6d3a5e
Author: Ian Rees <ian.rees@gmail.com>
Date:   Tue Jul 29 15:46:59 2014 +1200

    Refactoring and small fix in constraint icon bounding boxes

commit c03e4c13d8fd657e18e3c78d16bbdef209f8c779
Author: Ian Rees <ian.rees@gmail.com>
Date:   Mon Jul 28 15:41:15 2014 +1200

    Implemented picking of individual constraints from combined icons

commit 254aaab450fe6646bee7542c532c454af91b6597
Author: Ian Rees <ian.rees@gmail.com>
Date:   Mon Jul 28 13:04:18 2014 +1200

    Added bounding boxes for combined constraint icons

commit 4f0738ec30220fbf1abdea14dd121d0a134e5dfd
Author: Ian Rees <ian.rees@gmail.com>
Date:   Sat Jul 26 18:53:33 2014 +1200

    Added screenCoordsOfPath() to View3DInventorViewer

commit 14e2dc7b4aa79db97cbacd2c848728a66276d644
Author: Ian Rees <ian.rees@gmail.com>
Date:   Sun Jul 20 14:24:27 2014 +1200

    Bit of code to make constraint icon text rendering nicer.

    This won't be useful unless the font changes, but wanted to add it while
    I was thinking about it.

commit 8020d2d62214d71875cbae101d5ac5e96d998201
Author: Ian Rees <ian.rees@gmail.com>
Date:   Sun Jul 20 13:54:51 2014 +1200

    Fixed an off-by-one in ViewProviderSketch::combineConstratintIcons

    Bug resulted in icons occasionally not being combined into groups,
    when they should've been.

commit 20d92a3ccc1f795be1cb86f6f92045518dc8eb81
Author: Ian Rees <ian.rees@gmail.com>
Date:   Tue Jul 15 19:38:20 2014 +1200

    Fixed a bug that was introduced two commits ago.

commit 69e1ea848e3bc3c8c372c539f30a7b4d2a563aa2
Author: Ian Rees <ian.rees@gmail.com>
Date:   Tue Jul 15 15:33:30 2014 +1200

    Fixed dumb copy-and-paste error

commit a998b75a905cc31e1f4f49869e81ecaef5858b69
Author: Ian Rees <ian.rees@gmail.com>
Date:   Sun Jul 13 18:39:22 2014 +1200

    Fixed crash reported by sponssi

    More info at http://forum.freecadweb.org/viewtopic.php?f=10&t=6965&p=56590

commit 27b7b804790dda5164c7ef0b9418f6c160228859
Author: Ian Rees <ian.rees@gmail.com>
Date:   Thu Jul 10 13:32:16 2014 +1200

    Cleaning up my git repo for FreeCAD.

    This branch now has just the Sketcher icon fixes, plus a few random comment edits.
2014-07-30 10:05:12 +02:00
wmayer
65c974ed2d Squashed commit of the following:
commit 6e78052d325eadcb212a6d50c6cd09cc29ac7870
Author: Johan K <johankristensen@gmail.com>
Date:   Tue Jul 29 14:52:08 2014 +0200

    Adding missing file RegularPolygon.py

commit 416396283032a31a1ea307df23d33ecfccf37935
Author: Johan K <johankristensen@gmail.com>
Date:   Mon Jul 28 22:51:28 2014 +0200

    Replaced sketcher implementation of RegularPolygons with a Python script version.
2014-07-29 17:26:28 +02:00
Johan K
7fadaa0a55 Added more regular polygons to the sketcher gui 2014-07-27 00:25:40 +02:00
Johan K
4528b31d6e Added more regular polygons to the sketcher gui 2014-07-27 00:08:49 +02:00
wmayer
6b1e6a66ad + Make destructor virtual for classes with virtual methods (based on DevJohan's patch) 2014-07-26 19:17:12 +02:00
wmayer
f0eb27f710 + let user decide to use equality constraint or independent radii 2014-07-24 19:09:41 +02:00
wmayer
996af8d808 + fixes #0001633: Allow adding radius constraints to several circles at once. 2014-07-24 13:32:47 +02:00
wmayer
0fda229597 + add missing files to install target of Sketcher module 2014-07-17 12:26:52 +02:00
wmayer
d7fafdb2b6 + split create/edit sketch command into two commands 2014-07-13 10:17:50 +02:00
wmayer
4ae29bc2e3 + implement solve() in Python API of SketchObject 2014-07-12 17:13:05 +02:00
wmayer
39bda90514 + change comment 2014-06-07 10:56:45 +02:00
Abdullah Tahiri
63ab2d7f12 Fixed Datum Filter showing Named non-datum variables 2014-06-07 10:50:14 +02:00
wmayer
2fcce866a7 + change order of tangent and coincident constraints of slot 2014-06-06 00:33:56 +02:00
wmayer
dfda6704d7 + abort slot creation in error case 2014-06-06 00:08:26 +02:00
wmayer
c07358073a + whitespace improvements 2014-06-05 23:24:59 +02:00
wmayer
409285d53f + optimize creation of hexagonal sketch profile, add icon 2014-06-04 12:05:41 +02:00
wmayer
5917d21395 + implement hexagon sketch 2014-06-03 14:54:27 +02:00
wmayer
c05801d6ed + fixes for sketcher 2014-06-03 11:24:49 +02:00
Yorik van Havre
940f7e69ba Updated translations 2014-05-24 17:35:20 -03:00
wmayer
17b7003ea7 + fixes #0001549: crash with Draft move tool while sketch is in edit mode 2014-05-20 15:25:03 +02:00
wmayer
81bfcc8717 + fix issues with angle constraints 2014-05-17 18:27:56 +02:00
Johannes Reinhardt
641a2a75bf fix typos in Sketcher 2014-05-16 19:27:13 +02:00
wmayer
624537e5b6 + do not accept objects with no sub-elements selected if this is required 2014-05-16 19:09:15 +02:00
wmayer
007bcbdc7f + fix crash in CmdSketcherMapSketch 2014-05-16 15:34:26 +02:00
Stefan Tröger
8106f8437c fix sketcher arrow size and make them independend from window size 2014-05-14 22:43:31 +02:00
Stefan Tröger
e451efd9c4 fix inverted sketcher font-size issue and make font size undependend of window size 2014-05-13 18:20:38 +02:00
Johannes Reinhardt
2b28d41134 fixed a few small typos 2014-05-12 14:32:27 +02:00
Yorik van Havre
ec442507e1 Updated ts files 2014-05-11 14:49:24 -03:00
wmayer
6b89c03181 Add initial support for different libdir (jobermayr) 2014-05-10 12:57:38 +02:00
wmayer
a5efc53bfc + fix transparency issue, disable sample buffers when using front buffer 2014-05-09 19:20:30 +02:00
wmayer
6d17bbb7f6 + fixes #0001535: Remove conflict between min/max macros and std::min/max 2014-05-08 17:30:23 +02:00
wmayer
3b5cdda879 + fix flaws found with code analyzer tool 2014-05-07 13:09:44 +02:00
wmayer
3b6d07833d + compile with clang 2014-05-05 16:24:01 +02:00
wmayer
cb720fae50 + fixes #0001517: Problem with constraint menu not displaying properly if moved (overwrites the background) 2014-05-03 23:39:04 +02:00
mdinger
337f05d56e Move python module prefix and suffix properties into macro to be set together 2014-05-03 16:00:30 +02:00
wmayer
07f3f8257b + Remove external geometry when changing support face 2014-05-02 12:03:52 +02:00
wmayer
ec7573da42 Reorient sketch loses constraints (fix from chrisf) 2014-05-01 18:04:33 +02:00
wmayer
a17116f465 + Add action to modify current item in constraint view 2014-05-01 16:12:03 +02:00
wmayer
3f9640908b + Add context-menu to constraint view for renaming and deleting items, fix edit mode 2014-05-01 15:36:52 +02:00
wmayer
1a7cea9b59 + Fix prefix of Python extensions built with MinGW 2014-04-30 18:22:52 +02:00
mdinger
a17cce3559 Remove unnecessary quotes. 2014-04-30 13:41:16 +02:00
mdinger
1942bb7906 Apply SET_BIN_DIR macro to Mod 2014-04-30 13:41:13 +02:00
wmayer
5370e20ce8 + fixes #0001514: Padding a sketch inside a group fails with error message 2014-04-25 17:28:32 +02:00
jriegel
55d0ad5c5c Some fixes for ProfileLib 2014-04-17 06:33:58 +02:00
jriegel
faf406fa2b fix wrong cursor icon in Slot 2014-04-17 06:33:57 +02:00
jriegel
39f7353663 Implement Constraint creation on Slot 2014-04-17 06:33:57 +02:00
jriegel
9c07f81240 Start profile lib in sketcher 2014-04-16 07:49:09 +02:00
jriegel
1f0d427ed3 further implementing slot 2014-04-16 07:49:09 +02:00
jriegel
87bed7d5c4 start slot draw handler for Sketcher 2014-04-15 07:00:17 +02:00
jriegel
ca642bb546 InputField for Grid-Size in Sketcher 2014-04-15 07:00:16 +02:00
wmayer
95bda08764 + fix crash when closing sketch while external geometry handler is still active 2014-04-08 12:07:03 +02:00
wmayer
f255948f1e + fixes: #0001475: Implement a 3 point arc similar to solidworks in sketcher (mdinger) 2014-03-29 12:20:32 +01:00
wmayer
ce7a3ecaa2 + fixes #0001490: Implement a perimeter circle (3 point circle) similar to solidworks in sketcher (mdinger) 2014-03-29 12:03:17 +01:00
wmayer
ca6d372025 + fixes #0001479: 'Escape' key dismissing dialog cancels Sketch editing 2014-03-18 14:18:55 +01:00
wmayer
498032f958 + fixes #0001480: Crash when editing sketch with Pad hidden 2014-03-18 13:14:04 +01:00
wmayer
13cdc1cd39 + issue #0001475: Implement a 3 point arc similar to solidworks in sketcher 2014-03-17 09:41:51 +01:00
wmayer
a7aca65e77 + issue #0001475: Implement a 3 point arc similar to solidworks in sketcher 2014-03-17 09:37:56 +01:00
wmayer
d1341f36f7 + issue #0001475: Implement a 3 point arc similar to solidworks in sketcher 2014-03-16 16:03:32 +01:00
wmayer
35b10d68aa + issue #0001475: Implement a 3 point arc similar to solidworks in sketcher 2014-03-16 13:29:44 +01:00
wmayer
3ea41ff0c9 + fixes #0000844: Cannot use edge hidden by sketch axis as external geometry 2014-03-15 19:53:14 +01:00
wmayer
e6bd7e8de3 + fixes #0001188: Change the word 'datum' as the label for the entry field for arcs and circles. 2014-03-15 17:11:44 +01:00
wmayer
7bc6e74115 + ignore v/h axes and grid of sketcher on view fit 2014-03-15 16:08:24 +01:00
wmayer
ea4abcb57a + issue #0001475: Implement a 3 point arc similar to solidworks in sketcher 2014-03-15 12:50:24 +01:00
wmayer
b7cb49c3e3 + issue #0001474: crash selecting constraint 2014-03-15 11:32:03 +01:00
wmayer
06239e9a57 + fixes #0001049: Sketcher preferences in preferences editor 2014-03-14 19:39:11 +01:00
wmayer
bea4c44240 + sketcher settings 2014-03-14 15:29:00 +01:00
Yorik van Havre
3a8d83bed9 Updated ts files from source 2014-03-10 20:36:59 -03:00
wmayer
b9f284cb42 + fixes #0001131: Crash when trying to edit sketch 2014-03-10 17:16:47 +01:00
wmayer
e7b44d2866 + fixes #0001339: Crash when giving sketch with external geometry a new support (face) after the original support was deleted 2014-03-10 13:35:41 +01:00
wmayer
0513cf06d3 + issue #0001049: Sketcher preferences in preferences editor 2014-03-09 21:44:37 +01:00
wmayer
b68bb653c8 + fixes #0001393: Allow the user to set desired font size in pixels (used by sketcher constraints) in preferences 2014-03-09 18:29:26 +01:00
wmayer
2aaa63c5eb + move sketcher related settings into own page 2014-03-09 18:07:46 +01:00
wmayer
53816ba779 + fix typo, fixes #0001310: Amend tooltip for Sketcher symmetry constraint 2014-03-09 11:17:33 +01:00
wmayer
947a030e37 + fixes #0001112: Changing sketch size that contains arcs after padding will create an artifact on bottom side 2014-03-09 11:02:33 +01:00
wmayer
8e711fc391 + fixes #0001423: Crash on draw on face 2014-03-06 09:33:35 +01:00
wmayer
c50c30c320 + fixes #0001330: Cannot link edge to external geometry 2014-03-03 18:50:43 +01:00
wmayer
874f61e165 + fixes #0001356: Error message displays value in Radians (adding reduntant/conflicting angle constraint) 2014-03-03 17:19:33 +01:00
logari81
4d918d1f8f Sketcher: fix polyline closing when coincident points are involved 2014-02-12 22:23:43 +01:00
wmayer
d81803de05 + fixes #0001380: Allow to set user-defined names for constraints 2014-02-10 15:36:58 +01:00
logari81
fa33bcae4a + fixes #0000928: Change selection numbering base in the Sketcher from 0 to 1 2014-02-08 23:51:15 +01:00
wmayer
ca00665421 + fixes #0001380: Allow to set user-defined names for constraints 2014-02-04 18:32:05 +01:00
wmayer
1441021541 + fixes #0001380: Allow to set user-defined names for constraints 2014-02-03 14:45:41 +01:00
wmayer
6c6340312c + Resort edit nodes of sketch view provider 2014-01-19 18:34:47 +01:00
wmayer
7eeebbed53 fixes #0001191: Cannot manipulate length if moved away from between the 'red lines' 2014-01-14 11:48:34 +01:00
wmayer
847b6b79e0 + Replace math.h with cmath 2014-01-05 11:25:40 +01:00
wmayer
e91e3b241f + Patched applied to fix flipped arcs when adding as external geometry 2014-01-04 12:59:07 +01:00
jriegel
152ecf2df9 More choices in Sketcher grid and later switching to um 2013-12-21 19:15:28 +01:00
jriegel
253910ec36 small fix 2013-12-18 18:19:25 +01:00
jriegel
9c1c94c64e fix radius bug and add new imperial sketch grid cascading... 2013-12-18 18:18:39 +01:00
wmayer
32134f64f0 + Fix build failure with gcc 2013-12-17 10:58:04 +01:00
jriegel
53f74153ea Imperial Sketcher grid in Dialog 2013-12-16 15:09:43 +01:00
jriegel
d5d9ea9c30 Add unti support to Sketcher 2013-12-15 22:47:47 +01:00
jriegel
401cb13035 Switching Quantity parser to UTF8 2013-12-09 23:50:52 +01:00
wmayer
5e628aedf1 + fixes #0001327: Crash in System::initSolution() 2013-12-09 13:41:38 +01:00
wmayer
b6025019df + Allow also int when a float is expected in sketcher constraints 2013-12-08 14:18:50 +01:00
jriegel
3a3afa0783 Switching the UnitsApi to the new Quantity system 2013-12-03 19:03:08 +01:00
wmayer
b8f94cbbd6 + allow to set custom tolerances on validate sketch tool 2013-11-18 14:09:52 +01:00
wmayer
97a2b516bb Allow user to choose tolerance in validate sketch tool 2013-11-13 11:12:02 +01:00
Yorik van Havre
782cae1d22 Updated forum links to the new subdomain 2013-11-11 11:42:34 -02:00
jriegel
3e8a20ab7c Merge branch 'refs/heads/dev-quantity' 2013-11-09 11:15:09 +01:00
jriegel
3d6743a13b implementing UnitsCalculator and disable changes in Sketcher 2013-11-09 07:34:56 +01:00
Yorik van Havre
355942355f Updated links to the new forum 2013-11-06 19:32:45 -02:00
jriegel
2fb6e75899 implementing InputField UseCase in Sketcher EditDatumDialog 2013-11-05 19:00:42 +01:00
Yorik van Havre
a81604b9be Updated links to the new bugtracker location 2013-11-04 17:07:35 -02:00
wmayer
5e05f55a53 0001291: plane offset precision is limited to 0.1 2013-10-30 10:28:50 +01:00
wmayer
e8f752ec2d 0001246: Constraint datum dimension label shown as gray box vice number in transparent background. 2013-10-21 10:05:23 +02:00
wmayer
b29fbc5f93 + Improve sketch validation tool 2013-10-16 17:28:04 +02:00
wmayer
957cedc1ff + Add a sketch validation panel 2013-10-15 17:11:49 +02:00
wmayer
5bee772e49 + Fix memory leak in Python interface of Constraint class 2013-10-15 11:26:41 +02:00
wmayer
629e76426f 0000971: Tracing over a background image in Sketcher: image is overwritten by first dimensional constraint text 2013-10-13 18:35:27 +02:00
wmayer
622228d59e 0001258: Constraint application to all selected objects at once 2013-10-12 15:16:46 +02:00
wmayer
9af4f7ee73 + Fix compiler warnings 2013-10-11 12:24:49 +02:00
wmayer
c6f7fd7462 0000750: Endless loop in sketch solver 2013-10-06 13:11:11 +02:00
wmayer
ee77154e6a 0001264: add function Sketch.setConstruction() 2013-10-02 10:47:29 +02:00
jriegel
66ee73f54b Further doubel suggestions from Jan
Moved Gui/InputVector,Placement,Transform from float to double
Moved Sketcher from float to double
more suggestions for moving float -> double
2013-09-24 11:01:01 +02:00
wmayer
80e7f52b5f 0001245: Wrong grid size shown in task dialog 2013-09-21 12:01:16 +02:00
wmayer
f1f3151345 +Relicense from GPL to LGPL 2013-09-19 11:21:03 +02:00
wmayer
89a5d06926 0001216: Unable to Loft Sketches with Radiused Corners 2013-08-16 12:59:00 +02:00
wmayer
e1b4fc60ac Fix inconsistency of order of points of an arc 2013-08-14 12:01:02 +02:00
wmayer
5259ad3d24 0001201: Highlight coincident constraint in sketch view when clicking on (coincident) constraint in constraints list 2013-08-13 20:12:08 +02:00
wmayer
b7992ed76f 0001105: disable grid in sketcher 2013-07-14 18:14:18 +02:00
wmayer
c44158f90b 0000846: [Sketcher] Dragging + ESC 2013-07-12 15:30:47 +02:00
wmayer
93827f68e8 0001175: pressing escape in datum editing dialog closes sketch 2013-07-12 11:28:54 +02:00
wmayer
6fde5d764b + in setPyObject() only use classes derived from Base::Exception 2013-07-05 15:29:04 +02:00
wmayer
f5d091fc96 0000849: [Sketcher] Small inconsistency with update 2013-07-01 13:08:47 +02:00
wmayer
2e31e177a8 Apply fix from mrlukeparry for datum labels 2013-05-27 11:25:50 +02:00
wmayer
6551cc4d81 Command to reorient sketch 2013-04-29 21:12:45 +02:00
wmayer
9f0b1ac66e Improve performance of box selection in sketcher 2013-04-27 20:45:16 +02:00
wmayer
420d10face Add a GLPainter class to do all the OpenGL drawing stuff 2013-04-27 19:24:39 +02:00
Yorik van Havre
5fff0f0fb8 0001056: Better tooltip for Sketcher Polyline tool 2013-03-16 23:21:45 -03:00
Yorik van Havre
0ea6862601 Sketcher: small fix to allow to use SoDatumLabel in python 2013-03-04 15:56:17 -03:00
wmayer
540bf6e655 + Fix for subelements of SelectionObject, fix for SketchObjectPy::fillet() 2013-03-02 17:34:34 +01:00
jrheinlaender
b328943698 0000437 Sketcher: ask for value immediately after creating a length constraint 2013-02-22 11:09:31 +01:00
jriegel
11b4abf24a Log in FemMesh view provider and some warnings fixed 2013-02-18 22:29:02 +01:00
logari81
3cdf8f4350 Sketcher, 0000944: Fix crash when the equality constraint is activated with a wrong selection 2013-01-10 15:48:38 +01:00
logari81
525cddaaf3 PartDesign: Refactor pattern features and gui
- remove StdDirection,StdAxis and StdMirrorPlane properties
- support sketch H_Axis, V_Axis, N_axis as valid references in patterns
- polish reference selection gui (unified for standard axes and custom references)
2013-01-09 23:18:38 +01:00
wmayer
5dd72b9501 Fix box selection in sketcher 2013-01-05 13:29:39 +01:00
Yorik van Havre
f4a47f089c Updated with latest crowdin translations 2012-12-18 13:28:11 -02:00
wmayer
bd5359f542 Some little fixes 2012-12-10 14:02:37 +01:00
logari81
5fa6db222a Sketcher: Accept selection of a line and a symmetry point for creating a symmetry (midpoint) constraint 2012-12-09 00:29:00 +01:00
logari81
65b8457a9c Sketcher: Avoid unnecessary updates in the ViewProviderSketch 2012-12-08 23:51:24 +01:00
logari81
8df4a29831 Sketcher: Include root point in box selections 2012-12-08 23:49:48 +01:00
logari81
2a401ee895 Sketcher: Fix deletion of coincident constraints on the root point 2012-12-08 23:48:35 +01:00
logari81
db901921db Sketcher: Fix reverting of geometry on undoing a new constraint 2012-12-08 23:45:21 +01:00
wmayer
d838f44e3c Make automake distcheck ready 2012-12-08 15:45:17 +01:00
Yorik van Havre
71b1777e8a Updated translation strings 2012-12-07 10:56:57 -02:00
wmayer
14cdb9cd40 Add icons for sketcher commands 2012-12-03 12:50:31 +01:00
wmayer
0b5212e46b Show auto-constraints symbol in point mode 2012-12-02 13:27:50 +01:00
logari81
77c4da539b Sketcher: reenable directional autoconstraints 2012-11-30 22:29:06 +01:00
logari81
afcaa8b980 Sketcher: Implement symmetry with respect to a point constraint, aka midpoint constraint 2012-11-29 22:46:11 +01:00