- 20 Mar, 2014 1 commit
-
-
Dick Hollenbeck authored
! The initial testing of this commit should be done using a Debug build so that all the wxASSERT()s are enabled. Also, be sure and keep enabled the USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it off is senseless anyways. If you want stable code, go back to a prior version, the one tagged with "stable". * Relocate all functionality out of the wxApp derivative into more finely targeted purposes: a) DLL/DSO specific b) PROJECT specific c) EXE or process specific d) configuration file specific data e) configuration file manipulations functions. All of this functionality was blended into an extremely large wxApp derivative and that was incompatible with the desire to support multiple concurrently loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects. An amazing amount of organization come from simply sorting each bit of functionality into the proper box. * Switch to wxConfigBase from wxConfig everywhere except instantiation. * Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD, PGM_SINGLE_TOP, * Remove "Return" prefix on many function names. * Remove obvious comments from CMakeLists.txt files, and from else() and endif()s. * Fix building boost for use in a DSO on linux. * Remove some of the assumptions in the CMakeLists.txt files that windows had to be the host platform when building windows binaries. * Reduce the number of wxStrings being constructed at program load time via static construction. * Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that these functions are useful even when the wxConfigBase comes from another source, as is the case in the KICAD_MANAGER_FRAME. * Move the setting of the KIPRJMOD environment variable into class PROJECT, so that it can be moved into a project variable soon, and out of FP_LIB_TABLE. * Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all its child wxFrames and wxDialogs now have a Kiway() member function which returns a KIWAY& that that window tree branch is in support of. This is like wxWindows DNA in that child windows get this member with proper value at time of construction. * Anticipate some of the needs for milestones B) and C) and make code adjustments now in an effort to reduce work in those milestones. * No testing has been done for python scripting, since milestone C) has that being largely reworked and re-thought-out.
-
- 26 Dec, 2013 1 commit
-
-
Dick Hollenbeck authored
-
- 14 Oct, 2013 1 commit
-
-
Maciej Suminski authored
template<> -> template <> Some more reformatting according to uncrustify results.
-
- 20 Sep, 2013 1 commit
-
-
Maciej Suminski authored
-
- 06 Sep, 2013 1 commit
-
-
Maciej Suminski authored
-
- 03 Aug, 2013 1 commit
-
-
Dick Hollenbeck authored
*) add hotkey for setting the grid origin as 'S', in board editor, module editor. *) re-position the function interface for cursor movement from BASE_SCREEN into class EDA_DRAW_FRAME. This is a prelude to getting rid of BASE_SCREEN or splitting it up.
-
- 07 Jul, 2013 1 commit
-
-
Maciej Sumiński authored
-
- 25 Jun, 2013 1 commit
-
-
Maciej Suminski authored
-
- 15 Apr, 2013 1 commit
-
-
Maciej Suminski authored
Moved switching canvas routines to pcbnew, as they are used only there right now (otherwise libgal would have to be linked to every Kicad application).
-
- 02 Apr, 2013 1 commit
-
-
Maciej Suminski authored
New classes: - VIEW - represents view that is seen by user, takes care of layer ordering & visibility and how it is displayed (which location, how much zoomed, etc.) - VIEW_ITEM - Base class for every item that can be displayed on VIEW (the biggest change is that now it may be necessary to override ViewBBox & ViewGetLayers method for derived classes). - EDA_DRAW_PANEL_GAL - Inherits after EDA_DRAW_PANEL, displays VIEW output, right now it is not editable (in opposite to usual EDA_DRAW_PANEL). - GAL/OPENGL_GAL/CAIRO_GAL - Base Graphics Abstraction Layer class + two different flavours (Cairo is not fully supported yet), that offers methods to draw primitives using different libraries. - WX_VIEW_CONTROLS - Controller for VIEW, handles user events, allows zooming, panning, etc. - PAINTER/PCB_PAINTER - Classes that uses GAL interface to draw items (as you may have already guessed - PCB_PAINTER is a class for drawing PCB specific object, PAINTER is an abstract class). Its methods are invoked by VIEW, when an item has to be drawn. To display a new type of item - you need to implement draw(ITEM_TYPE*) method that draws it using GAL methods. - STROKE_FONT - Implements stroke font drawing using GAL methods. Most important changes to Kicad original code: * EDA_ITEM now inherits from VIEW_ITEM, which is a base class for all drawable objects. * EDA_DRAW_FRAME contains both usual EDA_DRAW_PANEL and new EDA_DRAW_PANEL_GAL, that can be switched anytime. * There are some new layers for displaying multilayer pads, vias & pads holes (these are not shown yet on the right sidebar in pcbnew) * Display order of layers is different than in previous versions (if you are curious - you may check m_galLayerOrder@pcbnew/basepcbframe.cpp). Preserving usual order would result in not very natural display, such as showing silkscreen texts on the bottom. * Introduced new hotkey (Alt+F12) and new menu option (View->Switch canvas) for switching canvas during runtime. * Some of classes (mostly derived from BOARD_ITEM) now includes ViewBBox & ViewGetLayers methods. * Removed tools/class_painter.h, as now it is extended and included in source code. Build changes: * GAL-based rendering option is turned on by a new compilation CMake option KICAD_GAL. * When compiling with CMake option KICAD_GAL=ON, GLEW and Cairo libraries are required. * GAL-related code is compiled into a static library (common/libgal). * Build with KICAD_GAL=OFF should not need any new libraries and should come out as a standard version of Kicad Currently most of items in pcbnew can be displayed using OpenGL (to be done are DIMENSIONS and MARKERS). More details about GAL can be found in: http://www.ohwr.org/attachments/1884/view-spec.pdf
-
- 24 Feb, 2013 1 commit
-
-
jean-pierre charras authored
-
- 12 Feb, 2013 1 commit
-
-
Emmeran authored
-
- 02 Feb, 2013 1 commit
-
-
Emmeran authored
added option to allow zooming around the crosshair instead of the center; can be enabled via options or by holding alt while using the mousewheel
-
- 22 Sep, 2012 1 commit
-
-
jean-pierre charras authored
All: remove macros MAX, MIN, ABS from macros.h and replace these macros by std::max, std::min and std::abs (mainly found in old code).
-
- 07 May, 2012 1 commit
-
-
Dick Hollenbeck authored
-
- 06 May, 2012 1 commit
-
-
Dick Hollenbeck authored
-
- 05 May, 2012 1 commit
-
-
Jerry Jacobs authored
-
- 23 Apr, 2012 1 commit
-
-
Dick Hollenbeck authored
as a starting point * Make double Distance() take double arguments and remove internal range checking. * Start on EDA_DRAW_FRAME::AdjustScrollBars() and use "double" for most all calculations in anticipation of setting INT_MAX INT_MIN limits eventually.
-
- 13 Apr, 2012 1 commit
-
-
Wayne Stambaugh authored
* Move all convert from internal to user units functions into separate file. * Remove internal units parameter from all moved conversion functions. * Revise all source code that calls the moved conversion functions. * Compile these conversion routines separately for the appropriate pcb or schematic internal units. * Move internal units specific status bar update code into the appropriate application for updating the status bar. * Move millimeter user units rounding function to common.cpp.
-
- 09 Apr, 2012 1 commit
-
-
jean-pierre charras authored
Enhancements in AddMenuItem (that accepts now a menu type) Partial use of the Edwin van den Oetelaar's patch (patch not fully working or correct)
-
- 23 Jan, 2012 1 commit
-
-
Dick Hollenbeck authored
-
- 22 Dec, 2011 1 commit
-
-
Wayne Stambaugh authored
* EDA_DRAW_FRAME completely encapsulated. * Encapsulate the the low hanging fruit in EDA_DRAW_PANEL.
-
- 16 Dec, 2011 1 commit
-
-
Wayne Stambaugh authored
* EDA_DRAW_FRAME completely encapsulated except for DrawFrame member. * Moved members specific to Pcbnew from EDA_DRAW_FRAME to PCB_BASE_FRAME or PCB_EDIT_FRAME as appropriate. * Replace EDA_TOOLBAR with wxAuiToolBar as EDA_TOOL bar provided no additional functionality and made code less readable. * Remove EDA_TOOLBAR class definition from wxstruct.h and delete file wineda_toolbar.cpp. * Rename tool bar members to something more descriptive since the horizontal and vertical references wont mean anything once the tool bars are movable. * Lots of dead code removal.
-
- 01 Sep, 2011 1 commit
-
-
Wayne Stambaugh authored
* Rename all ADD_MENUITEM_* functions to AddMenuItem and move them to wxstruct.h since they are used by the Kicad main frame classes. * Move SET_BITMAP and SETBITMAPS definitions to wxstruct.h. * Fix a bug in SET_BITMAPS that prevented enabling menu item images on OSX. * Rename MsgItem to EDA_MSG_ITEM. * Remove redundant includes from modified files. * Doxygen and coding style policy fixes.
-
- 29 Aug, 2011 1 commit
-
-
Dick Hollenbeck authored
-
- 09 Jul, 2011 1 commit
-
-
Marco Mattila authored
-
- 05 Jul, 2011 1 commit
-
-
jean-pierre charras authored
All: use double instead of int to store zoom values.
-
- 20 May, 2011 1 commit
-
-
- 29 Mar, 2011 1 commit
-
-
Wayne Stambaugh authored
* Rename EDA_Rect class to EDA_RECT. * Rename EDA_TextStruct class to EDA_TEXT. * Remove duplicate Doxygen comments from sch_sheet_path.cpp.
-
- 20 Mar, 2011 1 commit
-
-
jean-pierre charras authored
-
- 01 Mar, 2011 1 commit
-
-
jean-pierre charras authored
Eeschema, Pcbnew: fix minor issues about mouse cursor position, when loading files or entering sheets.
-
- 17 Feb, 2011 1 commit
-
-
jean-pierre charras authored
-
- 11 Feb, 2011 1 commit
-
-
Wayne Stambaugh authored
* Rename all member variables and methods that reference the cross hair code in draw panel object from cursor to cross hair to eliminate confusion between the two concepts. * Rename cursor capture call backs in draw panel object to improve code readability. * Create helper class for turning off the cross hair while drawing. * Remove redundant block clear code. * Remove redundant mouse capture call back reset code when end capture call back is called. * Remove unused function definitions in base draw frame object. * Lots of minor coding policy and doxygen comment fixes.
-
- 08 Feb, 2011 1 commit
-
-
Wayne Stambaugh authored
* Fix rendering bug in GerbView caused by wxDC scaling change caused by setting the wxDC clipping region. * Eliminate the need to have optional background erasing as the change above fixed that problem as well. * Default cursor handling improvements.
-
- 05 Feb, 2011 1 commit
-
-
Wayne Stambaugh authored
* Remove base screen methods from draw frame object and correct current screen methods in derived objects. * Move restore old wires function code into schematic screen object. * Make add junction method use current screen position instead of store position. * Move poly line ghosting function into the delete current segment method as that was the only place is was being used. * Add method to base schematic object of testing if object has a label that can be incremented. * Simplified the schematic hierarchy traversing code. * PCBNew Doxygen warning fixes.
-
- 02 Feb, 2011 1 commit
-
-
Wayne Stambaugh authored
* 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.
-
- 01 Feb, 2011 1 commit
-
-
Wayne Stambaugh authored
* ActiveScreen global variable is gone, yeah! * Use drawing coordinates instead of screen coordinates when calling GeneralControle().
-
- 31 Jan, 2011 1 commit
-
-
Wayne Stambaugh authored
* Use wxDC to calculate screen center position. * Minor grid drawing optimization. * Remove an unnecessary use of global variable ActiveScreen. * Doxygen warning fixes.
-
- 30 Jan, 2011 1 commit
-
-
Wayne Stambaugh authored
* 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.
-
- 21 Jan, 2011 1 commit
-
-
Wayne Stambaugh authored
* Move schematic wire and bus break code into schematic screen object. * Move schematic test for dangling ends into schematic screen object. * Remove left over debugging output in schematic screen object. * Remove unused file eeschema/cleanup.cpp. * Fix bug in schematic line object hit test algorithm. * Fix a string concatenation compile error added in r2752. * Rename class WinEDA_BasicFrame to EDA_BASE_FRAME. * Rename class WinEDA_DrawFrame to EDA_DRAW_FRAME. * Rename class WinEDA_DrawPanel to EDA_DRAW_PANEL.
-