Commit Graph

585 Commits

Author SHA1 Message Date
charras 4b2f33a9d2 eeschema: fixed: filled graphic body items drawn as non filled 2009-10-23 08:06:49 +00:00
stambaughw 11bf0ad76f Merge component library draw item and field list.
* Use single list for component library draw item and fields to simplify
  component library object.
* Add field manipulation helper methods to component library object.
* Make component library draw item edit dialog sizable.
2009-10-21 20:02:25 +00:00
stambaughw 53870013e7 Replace component library editor draw item dialog box.
* Created new component library editor draw item dialog box with
  wxFormBuilder.
* Removed previous DialogBlocks version of the draw item dialog box.
* Removed some additional global variables used in component library
  editor.
* Add IsFillable() method to draw item base object.
2009-10-20 19:36:58 +00:00
charras 9880975eb0 LibEdit: fixed a bug (bad format in a Printf) that crashes libedit when testing a component with duplicate pins.
Also cleaned and enhanced WinEDA_LibeditFrame::OnCheckComponent() code
2009-10-20 09:17:24 +00:00
stambaughw 502f3160cb Global variable reduction and minor code cleaning.
* Remove global variables used by the library editor.
* Add SetWidth() method to library draw objects.
2009-10-19 19:00:47 +00:00
charras 07ae161527 fixed problem in Eeschema when canceling the add component command 2009-10-18 13:12:00 +00:00
charras e4467d4d9a fixed minor problem in Eeschema library viewer 2009-10-18 11:41:05 +00:00
charras 7af67a8943 fixed compil error, and a display problem in eeschema 2009-10-17 06:23:18 +00:00
stambaughw 7e24e43890 wxWidgets 2.9 string fixes and other minor updates.
* Replace all known instances of (const wxChar*) casts to GetChars() for
  wxWidgets 2.9 compatibility.
* Cleaned up get component dialog so last part gets saved on wild card
  selections.
* Remove redundant schematic component drawing code.
* Added SCH_COMPONENT constructor to create new component from library
  component object.
* Add message panel helpers to WinEDA_DrawFrame and update old message
  panel access code.
* Using library viewer to add component to schematic now respects unit
  and body style selection.
2009-10-16 17:18:23 +00:00
charras 64032f34bb Commit hotkeys patch from Jonas Diemer 2009-10-16 10:44:44 +00:00
charras 1833ff2476 eeschema: fixed: incorrect position of texts fields in some components orientations 2009-10-16 07:48:26 +00:00
charras 5c7c2fafa1 minor problems fixed 2009-10-15 11:35:53 +00:00
stambaughw 92064f1dbf Fix save last grid size and other minor updates.
* Create single event handler for grid size events.
* Fix all frame windows to use new grid size event handler.
* Use offset relative to ID instead of ComboBox index to save last grid size.
* Move last grid size load/save setting into WinEDA_DrawFrame.
* Add equality and assignment operators the GRID_TYPE.
* Add current grid helper methods to BASE_SCREEN.
* Add GetPins helper to LIB_COMPONENT to replace GetNextPin where applicable.
* Add AppendMsgPanel helper to WinEDA_DrawFrame.
* Improve rounding for display of coordinates when millimeter units are selected.
2009-10-14 19:43:31 +00:00
charras 657325be33 Changed some c_str and GetData functions to GetChars in .Printf functions 2009-10-13 09:00:46 +00:00
charras b1a8a0749a All: better look when displaying items info on messages panel 2009-10-11 15:13:39 +00:00
charras ccbce931d2 All: better look when displaying info on messages panel 2009-10-11 13:04:47 +00:00
charras 56059efd8a Netclasses work continued
Fixed problems in libedit and crashes when no component loaded
2009-10-10 17:27:53 +00:00
charras 12fa5f020c eeschema: fixed minor problem when displaying pin info in schematic 2009-10-09 06:58:10 +00:00
charras 1fec58e8c2 eeschema: fixed bugs in netlist generation and drag components 2009-10-08 16:45:59 +00:00
stambaughw ee918d7d29 Replace library editor new component dialog and minor updates.
* Replace component library editor new component dialog using wxFormBuilder.
* Rename component library draw items to conform to current coding standards.
* Add GetWidth() method to component library draw objects.
* Add regular expression key word search capability to component library object.
2009-10-08 13:19:28 +00:00
charras 6c3968a178 code easier to understand 2009-10-06 13:52:43 +00:00
charras c974c42daf eeschema: 2 bugs fixed
pcbnew: more about netclass work
2009-10-06 13:19:40 +00:00
stambaughw e39e3d5314 Fix component library ordering bug. 2009-10-05 19:17:32 +00:00
stambaughw 76d04d6a85 Library component and draw object improvements and compile warning fix.
* Library component draw items now stored in Boost ptr_vector.
* Updated draw item object comparison to include greater and less than condition.
* Moved set parts per package code from component edit dialog to component object.
* Moved set alternate body style code from component edit dialog to component object.
* Tweaked component library file draw item sort order for improved file readability.
* Documented component object draw item sort ordering.
* Moved plot code to the appropriate library component and draw item objects.
* Fixed compiler type conversion warning in plot_common.h.
2009-10-05 17:52:41 +00:00
charras 9b4d215b52 eeschema: bug fix. Removed unused file 2009-10-01 18:48:25 +00:00
charras fd27b26271 pcbnew: minor work about netclasses. eeschema: bug fix 2009-10-01 16:46:13 +00:00
stambaughw 9861941de2 Component library editor and viewer improvements and library draw object changes.
* Component library viewer restores state between uses.
* Fixed automatic zoom calculations in library viewer.
* Make library entry list dialog restore previous selection.
* Fix bounding box calculation for vertical field and text draw objects.
* Changed library draw object comparison to test for greater and less than.
* Initial preparation for merging separate library component draw item lists.
2009-10-01 14:17:47 +00:00
faa bc047ad769 eeschema: segfault at add/del alias in libedit 2009-09-30 09:01:16 +00:00
stambaughw b762f6aab7 Component library editor improvements.
* Eliminate external direct manipulation of component draw item pointer.
* Add draw item remove, add, and locate methods to library component object.
* Remove redundant locate pin, field, and draw item code.
* Fix add new pin drawing bug that left initial pin draw in place.
* Improved best zoom calculations for small components.
* Library component bounding box calculation now includes fields.
* Removed unnecessary header file "libcmp.h".
* Fixed potential locate draw item bug in library editor hot key handler.
2009-09-29 18:38:21 +00:00
charras fb3a12adc6 fixed typo and minor problems. updated German translation 2009-09-28 19:28:22 +00:00
charras f3590e51ff pcbnew: fixed a crash when removing A netclass. More about netclass work. 2009-09-28 16:14:45 +00:00
dickelbeck 8b3d5a69cf Øyvind's patch 2009-09-27 14:09:26 +00:00
charras ee6615252d minor enhancements and fixed minor bug in field editor dialog 2009-09-26 17:22:47 +00:00
stambaughw 8570d3311a Component library editor improvements and minor bug fixes.
* Component library objects renamed for improved readability.
* Fields now move when selected in library editor.
* Add copy constructor to all library draw and library component objects.
* Added copy constructor to EDA_BaseStruct.
* Delete base screen in WinEDA_DrawFrame destructor to prevent potential memory leak.
* Fixed memory access bug when replacing and adding a component to library.
* Moved library component block manipulation code into component object.
* Removed all of the global variables used by the library editor main window object.
* The usual code cleaning and refactoring.
2009-09-25 18:49:04 +00:00
faa fb52997c85 eeschema: plot minor bug 2009-09-25 13:59:42 +00:00
charras f4eeb4dfd6 fixed problem in modedit when creating a new footprint. Minor others changes 2009-09-23 05:53:12 +00:00
stambaughw 43d6c685b5 Command ID refactoring and other minor improvements.
* Split out application specific command IDs to prevent unnecessary rebuilding.
* Eliminate duplicate menu and tool bar command IDs.
* Split component library editor and viewer definitions to separate header files.
* More component library and document file merge code.
* A bunch of minor string readability and consistency fixes.
2009-09-22 12:27:57 +00:00
stambaughw f7452ce131 Component library object and other minor improvements.
* Create static component library methods to manage library list.
* Rename component library, component, and alias objects to more readable name.
* Use pointer to component instead of root name to prevent redundant library searches.
* Add append message helper to message panel that calculates string length.
* Initial ground work for merging library and library document files.
* Improved component library file load error checking.
* Minor component library editor improvements.
2009-09-18 14:56:05 +00:00
charras 7776dd61eb use kbool 2.1 in zones calculations. see CHANGELOG for others changes and more info 2009-09-17 17:48:40 +00:00
stambaughw 3803b79ac5 Component library editor improvements, build fix, and bug fixes.
* Add offset and block hit testing to library component objects.
* Improved search for library entries.
* Fixed library component editor component removal and addition.
* Library editor now uses wxUpdateUIEvents for updating all UI objects.
* Added version check to cmake find boost macro.
* Removed unused code in file libalias.cpp.
* Added method to WinEDA_DrawPanel to take mouse out of managed mode.
2009-09-14 13:24:17 +00:00
dickelbeck 362b6b53f6 NETCLASS work, see CHANGELOG.txt 2009-09-10 15:22:26 +00:00
charras ef2e41e347 2009-09-10 13:04:04 +00:00
stambaughw 7c7d675cbf Component library object improvements.
* Library component objects can now draw themselves without external drawing code.
* Fix all the library drawing and field objects to support component drawing code.
* Provide proper file dialog wild card for symbol libraries and us wxFileDialog.
* Update component library editing code to reflect component drawing changes.
2009-09-04 18:57:37 +00:00
stambaughw 79c9be258a Replace PriorQue with boost::ptr_vector for component library entries.
* Replaced WinEDAListBox buttons with wxStdDialogButtonSizer.
* Moved library draw entries GenCopy method to base class.
* Remove priorque.cpp and priorque.h from CMakeLists.txt.
* The usual code cleaning and uncrustification.
2009-09-02 18:12:45 +00:00
faa 27a0c73c2a minor bug russian GOST 2009-09-01 10:26:43 +00:00
charras c3fde30419 code cleaning. Pcbnew: Minor enhancements in Plot dialog 2009-08-29 10:20:48 +00:00
charras 3806557ff9 Eeschema: fixed: root components non found in schematic 2009-08-28 07:11:56 +00:00
stambaughw f54a9e58c1 Fixed find library entry bug and applied missing bezier curve load patch. 2009-08-27 19:44:13 +00:00
charras b6e8c338c5 Eeschema: fixed: bad undo/redo for Drag commands 2009-08-27 13:51:02 +00:00
stambaughw ab74cfeda8 Component library object improvements.
Moved all library entry manipulation code scattered throughout EESchema into
the component library object itself.  Adding, removing, and searching is now
handled by the library object.  This is the precursor to replacing the current
priority queue code.
2009-08-27 11:41:56 +00:00