Commit Graph

2776 Commits

Author SHA1 Message Date
Yorik van Havre
28d4afb324 Draft: Objects drawn on an existing face will no longer take it as support unless the face was already selected 2014-08-17 18:09:44 -03:00
wmayer
150b6343c2 + prepare property editor for items with unknown number of children 2014-08-17 18:36:27 +02:00
Yorik van Havre
608609eff7 Draft: Fixed small regression in Draft2Sketch 2014-08-16 19:40:35 -03:00
Bernd Hahnebach
23ae1841d3 Arch: fix in new ifc-importer 2014-08-16 12:37:06 -03:00
wmayer
f46ec01849 + fixes #0001689: Show name of the drawing page in the tab of the drawing 2014-08-16 15:08:55 +02:00
wmayer
3b0b92e0e0 + fixes #0001690: sketch.getPoint crashes FreeCAD if the point does not exist 2014-08-16 14:41:30 +02:00
Yorik van Havre
1003e556cb Draft - Allow to export Drawing pages to DXF - fixes #1686
* Uses DXF algos of the Drawing module instead of the Draft dxf library
* Uses a DXF template with the same name as the SVG template, if existing
* Only Draft, Arch, Part and Annotation views are currently supported
* Drawing module's projectToDXF() now returns only a fragment instead of a full DXF file
2014-08-15 18:14:17 -03:00
wmayer
b70d303612 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2014-08-15 14:37:25 +02:00
Sebastian Hoogen
716087ee46 fixes #0001684: Sweep ignores the list of subshapes 2014-08-15 14:35:59 +02:00
Yorik van Havre
4e3e51835e Draft: Fixed wrong preferences text 2014-08-14 19:51:31 -03:00
Johannes Reinhardt
5f11fb054f Use new curve discretization 2014-08-14 23:28:50 +02:00
Johannes Reinhardt
e8eb687e10 Revert "Arch: Turned jreinhardt's fix to webGL into an option"
This reverts commit 90f2fc2034.

Conflicts:
	src/Mod/Arch/Arch_rc.py
	src/Mod/Arch/Resources/ui/archprefs-import.ui
2014-08-14 23:28:50 +02:00
wmayer
b26ed2a3a9 + Support Quasi methods in discretize() 2014-08-14 19:11:51 +02:00
Yorik van Havre
f85c33202a Draft: clearer preference text for dimension style setting 2014-08-14 11:57:17 -03:00
wmayer
21ec6f0e6e + Give example for discretize() matching the shape type 2014-08-14 11:38:39 +02:00
wmayer
e4aa0049c1 + support First and Last keywords in discretize 2014-08-14 11:16:54 +02:00
wmayer
1619ff964e + fix and improve discretize() method 2014-08-13 23:33:27 +02:00
Yorik van Havre
f2bde70bd5 Arch: small bugfixes in Drawing projection stuff 2014-08-13 16:21:08 -03:00
wmayer
f85af9ef36 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2014-08-13 12:49:37 +02:00
wmayer
1d2ccdf0b7 + fixes #0001682: Crash after updating editable texts in drawing 2014-08-13 12:49:09 +02:00
Yorik van Havre
60d9335b8f Arch: Misc improvements to section planes 2014-08-13 00:28:27 -03:00
Sebastian Hoogen
56beac4967 bugfixes and feature enhancements in exportDRAWEXE
bugfix to Loft in exportDRAWEXE
added Extrusion
ability to clean shapes from teselation before export
support for Fillet in exportDRAWEXE
name shapes with restore command
remove trailing dot from decimals
include version information in output
allow to test if a suboject is supported
explode sections of loft and sweep and edges for fillet
2014-08-12 18:17:07 +02:00
wmayer
4bc153f1c0 + fixes #0001667: 'Save file' disabled when viewing a drawing 2014-08-11 22:59:16 +02:00
Yorik van Havre
5d1e487760 Draft: Fixed Offset tool - fixes #1634, #1635 2014-08-09 13:41:52 -03:00
Ian Rees
642aa33cf1 Sketcher: Don't change preselection during box selection 2014-08-09 07:34:04 +02:00
Yorik van Havre
26c49d4cd0 Arch: minor bugfixes 2014-08-08 19:07:26 -03:00
Yorik van Havre
031672e2f5 Draft: Setting the WorkingPlane from a quad face now also takes its x and y directions 2014-08-08 13:48:30 -03:00
Abdullah Tahiri
1803a1e28e 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
Yorik van Havre
b30517256e Draft: Removed leftovers from the macros menu 2014-08-08 11:21:37 -03:00
wmayer
1765741648 minor fixes in gear panel 2014-08-08 13:21:06 +02:00
Aglef Kaiser
3274bcb71b Involute gear script extended for internal gears 2014-08-08 12:10:38 +02:00
Yorik van Havre
af98add189 Raytracing: Using names instead of labels in exported files - fixes #1663 2014-08-07 22:24:57 -03:00
Yorik van Havre
e46fbcdb8e Drawing: Allow to select the page in which to create a view feature - fixes #1668 2014-08-07 22:00:31 -03:00
wmayer
bd743a82f6 + fix dir2qrc script to keep alphabetical order of file names, update Sketcher.qrc 2014-08-07 20:29:31 +02:00
Abdullah Tahiri
3d2d0aadbd 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
f632ae80bc 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
Yorik van Havre
80fe67584a Draft: removed macros menu - fixes #490
The macros menu code is on http://www.freecadweb.org/wiki/index.php?title=Macro_MacroMenu
2014-08-07 11:07:22 -03:00
Yorik van Havre
5a193f0e47 Fix in Drawing page object - fixes #1540
* Changing the editable texts updates the page automatically
* Added a doc.recompute() after creating a new page
2014-08-07 10:39:33 -03:00
Yorik van Havre
1041ce4c16 Draft: fix in SelectGroup tool - fixes #1568 2014-08-06 19:55:26 -03:00
Yorik van Havre
7fb849a9c8 Draft: small fix in Array object 2014-08-06 19:33:55 -03:00
wmayer
546841ccfd + implement save() function in PointKernel, fix icon issue in mesh workbench 2014-08-06 17:39:15 +02:00
Yorik van Havre
5dbb3fb803 Used Gui.addModule() instead of import in Draft & Arch 2014-08-05 19:38:40 -03:00
Yorik van Havre
f4dfea182b Draft: issue message if an object cannot be moved or rotated - fixes #1642 2014-08-05 18:28:26 -03:00
Yorik van Havre
8da3e7b9e8 Arch: improvements in Space object
* Better text control
* Text position editable with Draft Edit
* Additional properties such as finish types
2014-08-05 16:19:39 -03:00
wmayer
3924b63759 code review: move transaction to outside from loop, fix several bugs, fix whitespaces 2014-08-05 00:35:03 +02:00
wmayer
c4c04e3143 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
Yorik van Havre
e3e8f02e83 Arch: Enhanced Space tool - fixes #1610 2014-08-04 18:24:20 -03:00
Yorik van Havre
099d316809 Draft: Fixed offset in SelectPlane tool - fixes #1606 2014-08-04 13:53:38 -03:00
Yorik van Havre
41f4593070 Draft: adapted Draft2Sketch tool for macro recording - fixes #1661 2014-08-04 12:37:59 -03:00
Yorik van Havre
5a402d27df Draft: default Z to 1 in Scale tool - fixes #1660 2014-08-04 12:01:44 -03:00