Commit Graph

140 Commits

Author SHA1 Message Date
Wayne Stambaugh 6a26a7f9bf Use logical cursor position and other minor changes.
* Remove unused member variable m_SizeVisu from base screen object.
* Move nearest grid position code into base screen object.
* Add get cursor position method to base screen object.
* Add position parameter to OnHotKey method in base draw frame and all
  derived objects.
* Pass logical position on left mouse button click and double click
  events instead of device position.
* Pass logical position to on right mouse button click instead of device
  position.
* Use logical event position parameter for locating items in EESchema
  instead of the stored position.
* Remove unused position parameter when displaying component edit dialog
  in EESchema.
* Comment out debugging macro in eeschema/template_field_names.cpp that was
  preventing debug builds using wxWidgets 2.8.x.
2011-02-02 14:01:21 -05:00
Wayne Stambaugh 85ae0373e3 Global variable removal and coordinate fixes.
* ActiveScreen global variable is gone, yeah!
* Use drawing coordinates instead of screen coordinates when calling
  GeneralControle().
2011-02-01 10:46:25 -05:00
Wayne Stambaugh d657b43052 Use wxDC for all coordinate manipulations.
* Remove all occurrences if #ifdef USE_WX_ZOOM and all associated code within
  the #else/#endif block ( old zoom code ).
* Removed the build option for USE_WX_ZOOM from CMakeList.txt and config.h.in.
* Removed all scaling code in base screen object.
* Fixed buffered paint and buffered client DC on Windows.  Buffering works
  properly on Linux and Windows.
* Modified kicad_device_context.h to automatically uses buffering on platforms
  where double buffering is supported natively.
* Remove all of the scaled versions of the drawing functions in gr_basic.cpp
  and any support code.
* Removed all traces of ActiveScreen global variable from eeschema and
  gerbview.
* Renamed Recadre_Trace to RedrawScreen in draw frame object.
* Renamed PostDirtyRect to RefreshDrawingRect in draw panel object.
* Lots of code cleaning an Doxygen comment improvements.
2011-01-30 17:22:38 -05:00
Wayne Stambaugh e560573c5e Schematic object encapsulation and other minor improvements.
* Encapsulate file name member of base screen object.
* Encapsulate associated screen member of schematic sheet object.
* Create add screen method to schematic sheet object to simplify setting
  the associated screen.
* Move the change file name code in the schematic sheet object to the edit
  sheet method in the schematic editor frame object to eliminate message
  dialogs.
* Improve reference counting in schematic screen object.
* Add helper type definitions for changing schematic object storage to C++
  containers.
2011-01-20 11:34:57 -05:00
Marco Serantoni 81b3fdf157 Mac: OVERLAY FIXES for WX2.8 and Enhancements 2010-12-17 23:57:09 +01:00
Wayne Stambaugh c79077c9a2 Minor fixes and lots of coding policy changes. 2010-12-08 15:12:46 -05:00
Marco Serantoni ea812ef5c9 Zones drawing optimization with WXGrapchisContext + Fix bug #612132 2010-10-09 10:08:29 +02:00
Marco Serantoni 148baffdd9 OSX implementation of wxOverlay (speedups board operations) and cleanup 2010-09-22 01:46:02 +02:00
Marco Serantoni bf67eed7eb OSX adjustments - grid fix - speedup of refresh 2010-09-19 12:23:53 +02:00
jean-pierre charras 7774d684c7 Pcbnew: Added move and rotate hot keys in board editor. hotkeys.cpp code cleaned. Fixed a bug that can crashes Pcbnew when switching track posture. 2010-08-17 12:41:44 +02:00
Wayne Stambaugh 5ce9c9a9d7 Open file dialog fixes and minor code cleaning.
* Fix a minor problem with wxFileDialog to open a file that no longer
  exists in PCBNew.
* Make GerbView open file behavior the same as PCBNew.
* Remove redundant PCB file wild card definition.
* Add open file refactor task to the todo list.
* Fix some minor code formatting issues.
2010-05-17 16:35:46 -04:00
stambaughw aab2f8a775 USE_WX_ZOOM clean up and other minor improvements.
* Make USE_WX_ZOOM clipping routine actually clip rather than just test
  if line needs drawn.
* Clean up as many USE_WX_ZOOM #ifdefs as possible.
* Minor coordinate rounding improvements.
* Minor scrolling and panning improvements.
* Remove unused KicadGraphicContext object code.
2010-02-22 16:45:35 +00:00
charras a70a580596 committed newfont patch. Pcbnew: board date automatically updated at each change. 2010-02-19 13:23:58 +00:00
stambaughw 3066c70559 Implement wxDC coordinate handling and wxGCDC.
* Implement code to allow wxDC to handle coordinate conversions between
  device and drawing units.
* Add build settings to enable wxGCDC for wxGraphicsContext testing.
* Remove wxAUI conditional build cruft as it is now required to build
  Kicad.
* Fix scroll increment size regression to prevent jumping around the
  zoom center position.
* Add find GDI+ cmake module for building on WXMSW when wxGraphicsContext
  is enabled.
2010-02-08 18:15:42 +00:00
charras 6efce74c96 Eeschema: fixed bug when edit a component reference using the component dialog editor
Code cleaning and using DrawPanel->Refresh() instead of ReDraw() when possible.
2010-01-13 13:43:36 +00:00
dickelbeck d21bf859ae visibility of button text, resizable on dialog 2009-11-23 14:40:29 +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 56059efd8a Netclasses work continued
Fixed problems in libedit and crashes when no component loaded
2009-10-10 17:27:53 +00:00
dickelbeck b4fe26a31f Isaac's next color/layer work step 2009-10-10 01:25:53 +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
dickelbeck 362b6b53f6 NETCLASS work, see CHANGELOG.txt 2009-09-10 15:22:26 +00:00
charras 42022adb3f code cleaning 2009-07-30 11:04:07 +00:00
charras 8ec8cf3f43 Rework on undo/redo and block functions 2009-07-25 04:53:39 +00:00
charras 9edace2f5f Code clarification about 3 confusing functions to display info: DisplayInfo (displaying a message info) and class members DisplayInfo and Display_Infos doing the same thing (see changelog) 2009-04-17 08:51:02 +00:00
stambaughw 689579bde1 Global variable unobfuscation, new library path search, and lots of other changes. See CHANGELOG.txt. 2009-04-05 20:49:15 +00:00
charras 0d6c62a9ef Bug (only in my last commit) fixed under Windows. Removed some warnings in compilation 2009-02-10 12:37:12 +00:00
charras aee56a936e Change grid size type from integer to double (using wxRealPoint insteed of wxSize).
Mandatory in Pcbnew to handle without error metric grid used now for some footprints (BGA, connectors)
Not fully tested
2009-02-07 08:33:25 +00:00
stambaughw 80e03c8c1b Build optimizations and cursor movement key bug fix. 2009-02-05 20:53:08 +00:00
stambaughw b833a46bad More header file realignments to reduce recompiling and general code cleaning. 2009-02-04 15:25:03 +00:00
charras f83bc3e3fa pcbnew: solved: info not displayed when clicking on a module. Removed: gcc 4.2.1 warning in moduleframe.cpp 2009-01-31 21:42:05 +00:00
stambaughw 2e5a57e100 New zoom implementation and some build optimizations. 2009-01-29 14:26:20 +00:00
stambaughw 21faf9d370 Integrate wxFileHistory, add missing header files to fix Linux build, initial search path work, and general housekeeping. 2009-01-17 20:31:19 +00:00
stambaughw 4a489895a3 More zoom clean ups and code cleaning. 2009-01-07 15:59:49 +00:00
stambaughw 1ecea828c2 Initial ground work for zoom improvements and minor build updates. 2008-12-19 13:51:48 +00:00
charras 9dae370c1f cleanup, cosmetic enhancements. enhancements about display zones options 2008-12-12 21:30:07 +00:00
dickelbeck aab39d1de7 injected DLIST<> into many list heads, see change_log.txt 2008-12-04 04:28:11 +00:00
dickelbeck e7ece9c017 SetToolbars() sanity 2008-04-29 16:14:25 +00:00
dickelbeck 9e46a77975 SetToolbars() fixes 2008-04-29 13:35:26 +00:00
dickelbeck c25e5c31e1 bug fixes 2008-04-29 03:18:02 +00:00
dickelbeck 721d878fcf GetScreen() work, menu capitalization, beautifying 2008-04-17 16:25:29 +00:00
dickelbeck 920ea81061 dirty stuff 2008-03-10 13:33:12 +00:00
dickelbeck 9ddeffe749 Remove DEBUG printf 2008-03-05 22:40:07 +00:00
dickelbeck 2d2ed2a915 Magnetism 2008-03-04 21:10:18 +00:00
dickelbeck 79eca85bd5 Magnetism 2008-03-04 19:17:19 +00:00
lifekidyeaa 0dc3be8806 added an option to enable/disable magnetic tracks in the general options dialog of PCBnew (same as the magnetic
pads option.)  Haven't fixed the via issue 
(since I don't quite understand why it is doing this, nor does it occur in 100% of the cases), but now you can just 
turn 
off magnetic tracks when I desire to move vias by small increments.  Magnetic tracks are on by default.  Original 
via complaint here: 
http://tech.groups.yahoo.com/group/kicad-devel/message/1155

Also mostly gotten rid of the annoying "Unable to drag this segment: two collinear segments" error.  Now, if two 
(or more) segments are collinear, they are merged into one equivalent segment when you try to drag them while 
maintaining slope.  I can't imagine any cases where this would be a bad thing (and I have plenty of experience where 
the error was not desired!).  Note I say *mostly* because there still seem to be some length=1 (e.g. 0.003mm) segments 
at the end of valid-length segments.  I do not want to remove them because this would change the board layout, though 
in a basically imperceptible way.  We could maybe have an option to clean & remove these minimal-length segments, but 
I worry that they serve to connect things slightly off grid & those things on-grid; also, removal may cause DRC 
errors. It would be good if we could avoid their creation.(?)
2008-03-04 05:40:15 +00:00
dickelbeck fcc86fb007 fix for magnetic tracks for parallel case, cleanup of original patches 2008-02-29 23:01:30 +00:00
dickelbeck 4b04d6c287 fix for magnetic tracks for parallel case, cleanup of original patches 2008-02-29 20:35:11 +00:00
dickelbeck 1dbf5e21f7 beautify 2008-02-27 15:26:16 +00:00
dickelbeck 30932a4607 Werner Almesberger's patches 2008-02-26 21:12:08 +00:00
plyatov f942690930 Additions to the menu (see changelog). 2008-02-17 21:19:13 +00:00
dickelbeck cfb67ec45c removed debug printfs 2007-12-07 00:04:47 +00:00
dickelbeck 628be5d1c1 chasing a bug 2007-12-05 17:56:57 +00:00
CHARRAS 45cdad8b2d changes in track connectivity computation 2007-10-16 19:05:33 +00:00
dickelbeck 3cd47555ca see 2007-Oct-12 change_log.txt 2007-10-13 06:18:44 +00:00
dickelbeck ed0677b422 pcbnew's onrightclick behavior 2007-10-10 04:45:26 +00:00
CHARRAS 1f842ae14c bug in move pad fixed (could crash pcbnew).Other minor changes 2007-10-07 18:24:15 +00:00
CHARRAS ee68d20e58 create new file cross-probing.cpp Move RemoteCommand() and SendMessageToEESCHEMA() to it 2007-10-06 16:16:48 +00:00
CHARRAS 06c9f9c855 enhancements in pcbnew to eeschema cross-probing. removed change in drc.cpp 2007-10-01 15:37:42 +00:00
dickelbeck b707a8336f OnLeftClick() test case 2007-09-26 20:10:12 +00:00
CHARRAS b128acfc17 fixed: pcbnew crashes when clicking on a zone 2007-09-26 12:15:55 +00:00
dickelbeck 64f12ffe5d gerberview & pcbnew fixes 2007-09-25 15:10:01 +00:00
CHARRAS 5e448ec475 pcbnew: locate zones added (forgotten in new PcbGeneralLocateAndDisplay() ); Add class_board_item.cpp 2007-09-25 08:23:53 +00:00
dickelbeck 00bda3c9a0 beautification 2007-09-21 13:23:51 +00:00
dickelbeck 664a1f727b see my 2007-Sep-20 change_log.txt 2007-09-20 21:06:49 +00:00
CHARRAS 542b944196 hotkeys handling finished 2007-09-19 15:29:50 +00:00
dickelbeck ef3d04912d see change_log.txt 2007-Sep-14 UPDATE 2007-09-15 04:25:54 +00:00
dickelbeck df754ad508 AllAreModulesAndReturnSmallestIfSo() 2007-09-14 16:15:27 +00:00
CHARRAS d1effbf4e2 EDA_BaseStruct.SetType() and EDA_BaseStruct.ReturnClassName() removed. 2007-09-13 11:28:58 +00:00
dickelbeck cb49ea8989 see change_log.txt for 2007-Sep-11 UPDATE 2007-09-12 02:14:07 +00:00
dickelbeck 74a635c127 see 2007-Sep-4 change_log.txt 2007-09-05 04:48:47 +00:00
dickelbeck 726a8ab4df collector work 2007-08-30 22:20:52 +00:00
CHARRAS f5eae50680 more work on hotkeys. many features are ok. 2007-08-30 08:15:05 +00:00
CHARRAS 077a570bc0 Display grid in mils or mm in popup menus 2007-08-27 08:07:44 +00:00
dickelbeck 2e13ccf048 see change_log.txt's 2007-Aug-23 UPDATE 2007-08-24 03:40:04 +00:00
dickelbeck 49e32e096e unified m_Flags, EDA_BaseStruct::Display_Infos(), and ~GetEquipot() 2007-08-20 19:33:15 +00:00
CHARRAS 9414bf676b more work on hotkeys 2007-08-20 10:55:09 +00:00
dickelbeck 5c3b480afe center PCBNEW parts on screen when tracking clicks and parts from EESCHEMA 2007-08-20 01:49:24 +00:00
dickelbeck 6acce67a64 made m_CurrentItem private, beautification 2007-08-20 01:20:48 +00:00
dickelbeck 2823022b9d added a @todo comment about repositioning the window when chosen part scrolled off screen 2007-08-14 19:39:38 +00:00
dickelbeck 51fc26e178 mouse synchronization from PCBNEW to EESCHEMA 2007-08-14 19:24:48 +00:00
dickelbeck 8a8377ff6a beautification, hit test improvements 2007-08-10 19:14:51 +00:00
dickelbeck f3cd8f57d3 fixed a bug in "ratsnest on module or pad", and beautification 2007-08-04 04:40:07 +00:00
dickelbeck 8bb93b8d48 beautified 2007-08-04 01:12:30 +00:00
lifekidyeaa 163ba39823 pcbnew: added ctrl-o,s,f
added buttons for insert and replace module in the module editor 
with a new bitmap.  restored JP's original functionality for the insert 
button, replace linked to the new code.
2007-06-21 15:14:38 +00:00
charras 1a30862de5 minor changes. update GUI french translation 2007-06-15 12:04:24 +00:00
charras 89b3eb5aa5 bug fixes and merging my development with svn rep. 2007-06-13 15:35:40 +00:00
lifekidyeaa 713d01751e added the following features (mostly hotkey type stuff):
* backspace key now deletes segments and vias both while editing a new track and while 
modifying old ones
* internal layers can be accessed via F5-F8
* when creating a new trace, switching between layers with the Pageup, PageDown, and 
F5-F8 hotkeys inserts a via. (warning: i did not test this with blind vias; however, it 
calls Other_Layer_Route, so should still work)
* spelling fix
2007-06-11 21:21:00 +00:00
raburton dedb0228dc add files not currently available in source (e.g. docs, modules, etc.)
set svn:eol-style property to native for all ascii files to support cross platform development
2007-06-05 12:10:51 +00:00
dickelbeck ae74527bc2 Jean-Pierre's changes for kicad-2007-05-25 release 2007-05-28 18:09:49 +00:00
plyatov 23c40f7e86 Initial import of KiCad. 2007-05-06 16:03:28 +00:00