Commit Graph

3447 Commits

Author SHA1 Message Date
Maciej Suminski 21a86dc646 Modules inserted from the module editor are instantly visible in GAL.
Ratsnest is updated after exporting changes from the module editor to the layout editor.
2014-07-09 15:10:32 +02:00
Maciej Suminski 0b51dd7e01 Added support for changing the cursor size. 2014-07-09 15:10:32 +02:00
Maciej Suminski d4487f1925 Fixed autozooming with empty board/module. 2014-07-09 15:10:32 +02:00
Maciej Suminski 30ea3b7962 Fixed module viewer crash. 2014-07-09 15:10:32 +02:00
Maciej Suminski 82ff9ceca7 Introduced SELECTION_CONDITIONS to determine which menu entries should be visible in the SELECTION_TOOL context menu, depending on the selection. 2014-07-09 15:10:32 +02:00
Maciej Suminski c68bea5a6b Moved SELECTION out of SELECTION_TOOL class. 2014-07-09 15:10:32 +02:00
Maciej Suminski 53660ad91f Pad Enumeration tool support for SMD pads. 2014-07-09 15:10:32 +02:00
Maciej Suminski c9d72036d8 Added settings dialog for Pad Enumeration tool. 2014-07-09 15:10:32 +02:00
Maciej Suminski a961961105 Initial version of the Pad Enumeration tool. 2014-07-09 15:02:56 +02:00
Maciej Suminski fb7b8fd9b1 Removed redundant accessor calls in MODULE_TOOLS. 2014-07-09 15:02:56 +02:00
Maciej Suminski d87232f652 Moved module editor-specific tools to a separate class (MODULE_TOOLS). 2014-07-09 15:02:56 +02:00
Maciej Suminski f5e9774d55 Added support for graphics on Edge.Cuts layer in modules. Tested functionality that works fine:
- zone filling algorithm
- printing
- plotting (pdf & gerbers)
- SVG export
- Specctra export
- 3D viewer
2014-07-09 15:02:56 +02:00
Maciej Suminski 417dc0a9dc Drawing tools used to crash when the drawing tool was interrupted - fixed. 2014-07-09 15:02:56 +02:00
Maciej Suminski 7fc5a9bc60 Fixed anchor placement tool in module editor (GAL). 2014-07-09 15:02:56 +02:00
Maciej Suminski 66bbbec394 Module anchors are visible in GAL canvas. 2014-07-09 15:02:56 +02:00
Maciej Suminski 31f6420197 Renamed "Placement" context menu to "Align/distribute". 2014-07-09 15:02:56 +02:00
Maciej Suminski 55a08a0bda Changes in display options are handled by PCBNEW_CONTROL (GAL). 2014-07-09 15:02:56 +02:00
Maciej Suminski 7091e285e6 Added support for module edge splitting with double click. 2014-07-09 15:02:56 +02:00
Maciej Suminski 422be4badb DXF drawing placement tool for GAL. 2014-07-09 15:02:56 +02:00
Maciej Suminski 7c7ab6f2ad Created dialog_dxf_import.h. Cleaned up some unnecessary stuff and fixed file open dialog DIALOG_DXF_IMPORT. 2014-07-09 15:02:56 +02:00
Maciej Suminski 4f0e03bcc0 Fixed a few memory leaks and Valgrind warnings. 2014-07-09 15:02:56 +02:00
Maciej Suminski 069dac5407 DXF files import is supported by module editor. 2014-07-09 15:02:56 +02:00
Maciej Suminski b4b7f947a9 Refactored DXF import routines:
- DIALOG_DXF_IMPORT works with PCB_BASE_FRAME instead of PCB_EDIT_FRAME
- imported items are not immediately added to a BOARD
- imported items are held in a list, instead of vector
- imported items are instantly visible in GAL view
- added DIALOG_DXF_IMPORT::GetImportedItems()
- code formatting
2014-07-09 15:02:56 +02:00
Maciej Suminski 8c1f783dd9 Code formatting. 2014-07-09 14:41:52 +02:00
Maciej Suminski 8bddf33ab5 Context menu for the Placement Tool. 2014-07-09 14:23:13 +02:00
Maciej Suminski 3dd651cf22 Initial version of the Placement Tool. 2014-07-09 14:23:13 +02:00
Maciej Suminski 21b3eb98b6 Fixed wrong reference point for copied items in subsequent module editor invocations (GAL). 2014-07-09 14:23:13 +02:00
Maciej Suminski 327c8594c5 Pasted module texts are rotated in the right way. 2014-07-09 14:23:13 +02:00
Maciej Suminski cfddb40d79 Reference point is selected for copied items. Enabled autopanning for copy & paste operations (module editor/GAL). 2014-07-09 14:23:13 +02:00
Maciej Suminski bba31a43eb wxWidgets 2.8 compatibility fix. 2014-07-09 14:23:13 +02:00
Maciej Suminski 73245e5930 Copy & paste for module editor (GAL). 2014-07-09 14:22:29 +02:00
Maciej Suminski d2c78c8bb7 Added MODULE::Add( BOARD_ITEM* )/Remove( BOARD_ITEM* )/Delete( BOARD_ITEM* ).
Removed MODULE::AddPad().
2014-07-09 14:22:29 +02:00
Maciej Suminski 0b4b0f7b0d Added support for placing the footprint anchor. 2014-07-09 14:01:06 +02:00
Maciej Suminski e5b868cf73 Added support for pads, texts and graphics removal in module editor (GAL). 2014-07-09 14:01:06 +02:00
Maciej Suminski cdeb700f70 Added pad placement tool for module editor (GAL). 2014-07-09 14:01:06 +02:00
Maciej Suminski 0f3f219ed2 MInor fixes. 2014-07-09 14:01:06 +02:00
Maciej Suminski 17e082088b Fixed the legacy module editor. 2014-07-09 14:01:06 +02:00
Maciej Suminski bd22ab3df5 Adapted graphics tools to cooperate with module editor. 2014-07-09 14:01:06 +02:00
Maciej Suminski d373ffa551 Added "edit modules" mode for DRAWING_TOOL. 2014-07-09 14:01:06 +02:00
Maciej Suminski 803c05992c Fixed DRAWING_TOOL::PlaceTextModule() method. 2014-07-09 14:01:06 +02:00
Maciej Suminski e5158c7635 Created a header file for DialogEditModuleText class. 2014-07-09 14:01:06 +02:00
Maciej Suminski 51d2061edf Refactored drawing tools: lines, circles and arcs. 2014-07-09 14:01:06 +02:00
Maciej Suminski 2c19954d19 Updated POINT_EDITOR to handle module edges. 2014-07-09 13:50:27 +02:00
Maciej Suminski ada02bce97 Added a handler for not implemented toolbar buttons functionality in GAL. 2014-07-09 13:50:27 +02:00
Maciej Suminski 06361eb2c1 Added AF_ACTIVATE flag for TOOL_ACTIONs.
Reworked the way of processing events in TOOL_MANAGER class.
Added GetCommandStr() for TOOL_EVENT class.
2014-07-09 13:50:27 +02:00
Maciej Suminski 3ce4e4d356 Improved way of translating wxEvent commands to TOOL_ACTIONs. 2014-07-09 13:50:27 +02:00
Maciej Suminski 6b61ea547f Corrected names of common tool actions. 2014-07-09 13:50:27 +02:00
Maciej Suminski cc7d97319a Module editor: modules are shown in GAL mode when loaded from file/library. 2014-07-09 13:50:27 +02:00
Maciej Suminski d4ae51d024 Module editor loads the last edited footprint in GAL mode. 2014-07-09 13:50:27 +02:00
Maciej Suminski 7a5d144d9d SELECTION_TOOL in edit module mode does not try to select MODULEs. 2014-07-09 13:50:27 +02:00