1. 20 Mar, 2014 1 commit
    • Dick Hollenbeck's avatar
      * KIWAY Milestone A): Make major modules into DLL/DSOs. · 2c67c3ff
      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.
      2c67c3ff
  2. 26 Dec, 2013 1 commit
  3. 14 Oct, 2013 1 commit
  4. 20 Sep, 2013 1 commit
  5. 06 Sep, 2013 1 commit
  6. 03 Aug, 2013 1 commit
  7. 07 Jul, 2013 1 commit
  8. 25 Jun, 2013 1 commit
  9. 15 Apr, 2013 1 commit
  10. 02 Apr, 2013 1 commit
    • Maciej Suminski's avatar
      Introduction of Graphics Abstraction Layer based rendering for pcbnew. · e262b321
      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
      e262b321
  11. 24 Feb, 2013 1 commit
  12. 12 Feb, 2013 1 commit
  13. 02 Feb, 2013 1 commit
  14. 22 Sep, 2012 1 commit
  15. 07 May, 2012 1 commit
  16. 06 May, 2012 1 commit
  17. 05 May, 2012 1 commit
  18. 23 Apr, 2012 1 commit
  19. 13 Apr, 2012 1 commit
    • Wayne Stambaugh's avatar
      More internal unit improvements. · 57d75a75
      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.
      57d75a75
  20. 09 Apr, 2012 1 commit
  21. 23 Jan, 2012 1 commit
  22. 22 Dec, 2011 1 commit
  23. 16 Dec, 2011 1 commit
    • Wayne Stambaugh's avatar
      More encapsulation work and other minor improvements. · fac288cf
      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.
      fac288cf
  24. 01 Sep, 2011 1 commit
    • Wayne Stambaugh's avatar
      Add menu item function fixes and other minor improvements. · 4a7dc4ad
      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.
      4a7dc4ad
  25. 29 Aug, 2011 1 commit
  26. 09 Jul, 2011 1 commit
  27. 05 Jul, 2011 1 commit
  28. 20 May, 2011 1 commit
  29. 29 Mar, 2011 1 commit
  30. 20 Mar, 2011 1 commit
  31. 01 Mar, 2011 1 commit
  32. 17 Feb, 2011 1 commit
  33. 11 Feb, 2011 1 commit
    • Wayne Stambaugh's avatar
      Draw panel object refactoring and other minor code cleaning. · 7b8b51b2
      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.
      7b8b51b2
  34. 08 Feb, 2011 1 commit
    • Wayne Stambaugh's avatar
      GerbView rendering bug fix and other minor improvements. · e01f8967
      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.
      e01f8967
  35. 05 Feb, 2011 1 commit
    • Wayne Stambaugh's avatar
      EESchema improvements and other minor fixes. · 0d8cb9b5
      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.
      0d8cb9b5
  36. 02 Feb, 2011 1 commit
    • Wayne Stambaugh's avatar
      Use logical cursor position and other minor changes. · 6a26a7f9
      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.
      6a26a7f9
  37. 01 Feb, 2011 1 commit
  38. 31 Jan, 2011 1 commit
  39. 30 Jan, 2011 1 commit
    • Wayne Stambaugh's avatar
      Use wxDC for all coordinate manipulations. · d657b430
      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.
      d657b430
  40. 21 Jan, 2011 1 commit
    • Wayne Stambaugh's avatar
      EESchema code refactoring and coding policy naming fixes. · 73e38ce9
      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.
      73e38ce9