1. 05 Aug, 2013 1 commit
  2. 03 Aug, 2013 1 commit
  3. 27 Mar, 2013 1 commit
    • Lorenzo Marcantonio's avatar
      Renamed global variables: · aae87178
      Lorenzo Marcantonio authored
      Drc_On => g_Drc_On
      Route_Layer_TOP => g_Route_Layer_TOP
      Route_Layer_BOTTOM => g_Route_Layer_BOTTOM
      Track_45_Only_Allowed => g_Track_45_Only_Allowed
      aae87178
  4. 13 Mar, 2013 1 commit
    • Wayne Stambaugh's avatar
      Pcbnew encapsulation and code cleaning. · 42d7bf6c
      Wayne Stambaugh authored
      * Encapsulate most of the MODULE class.
      * Start encapsulating the DIMENSION class.
      * Lay some groundwork for EDA_TEXT encapsulation.
      * Move cleverly hidden MODULE functions into class_module.cpp.
      * Use std::swap to exchange TEXTE_PCB values for undo/redo.
      * Remove unused members from MODULE class.
      * The usual coding policy and documentation fixes.
      42d7bf6c
  5. 22 Sep, 2012 1 commit
  6. 28 Aug, 2012 1 commit
  7. 21 Aug, 2012 1 commit
  8. 11 Aug, 2012 1 commit
  9. 13 Jul, 2012 1 commit
  10. 08 Jun, 2012 1 commit
  11. 25 May, 2012 1 commit
  12. 19 Apr, 2012 1 commit
    • Dick Hollenbeck's avatar
      // Dick Hollenbeck's KiROUND R&D · c24863c0
      Dick Hollenbeck authored
      // This provides better project control over rounding to int from double
      // than wxRound() did.  This scheme provides better logging in Debug builds
      // and it provides for compile time calculation of constants.
      
      
      #include <stdio.h>
      #include <assert.h>
      #include <limits.h>
      
      //-----<KiROUND KIT>------------------------------------------------------------
      
      /**
       * KiROUND
       * rounds a floating point number to an int using
       * "round halfway cases away from zero".
       * In Debug build an assert fires if will not fit into an int.
       */
      
      #if defined( DEBUG )
      
      // DEBUG: a macro to capture line and file, then calls this inline
      
      static inline int KiRound( double v, int line, const char* filename )
      {
          v = v < 0 ? v - 0.5 : v + 0.5;
          if( v > INT_MAX + 0.5 )
          {
              printf( "%s: in file %s on line %d, val: %.16g too ' > 0 ' for int\n", __FUNCTION__, filename, line, v );
          }
          else if( v < INT_MIN - 0.5 )
          {
              printf( "%s: in file %s on line %d, val: %.16g too ' < 0 ' for int\n", __FUNCTION__, filename, line, v );
          }
          return int( v );
      }
      
      #define KiROUND( v )    KiRound( v, __LINE__, __FILE__ )
      
      #else
      
      // RELEASE: a macro so compile can pre-compute constants.
      
      #define KiROUND( v )  int( (v) < 0 ? (v) - 0.5 : (v) + 0.5 )
      
      #endif
      
      
      //-----</KiROUND KIT>-----------------------------------------------------------
      
      // Only a macro is compile time calculated, an inline function causes a static constructor
      // in a situation like this.
      // Therefore the Release build is best done with a MACRO not an inline function.
      int Computed = KiROUND( 14.3 * 8 );
      
      
      int main( int argc, char** argv )
      {
          for( double d = double(INT_MAX)-1;  d < double(INT_MAX)+8;  d += 2.0 )
          {
              int i = KiROUND( d );
      
              printf( "t: %d  %.16g\n", i, d );
          }
      
          return 0;
      }
      c24863c0
  13. 09 Apr, 2012 1 commit
  14. 26 Mar, 2012 1 commit
    • Wayne Stambaugh's avatar
      Minor code improvements and coding policy fixes. · 45445dd8
      Wayne Stambaugh authored
      * BLOCK_SELECTOR class is not longer derived from EDA_ITEM.
      * Encapsulate BLOCK_SELECTOR class member variables and add access methods.
      * Move HandleBlockBegin() function from block_commande.cpp to drawframe.cpp.
      * Remove virtual methods from top level derived objects per future
        coding policy change.
      * Remove Doxygen copydoc statement from objects derived from EDA_ITEM
        since the comments are automatically copied to the derived object.
      * Removed copy and pasted Doxygen comments from objects derived from
        EDA_ITEM.
      45445dd8
  15. 23 Jan, 2012 1 commit
  16. 29 Dec, 2011 1 commit
  17. 22 Dec, 2011 1 commit
  18. 21 Dec, 2011 1 commit
  19. 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
  20. 12 Dec, 2011 1 commit
  21. 27 Oct, 2011 1 commit
  22. 13 Oct, 2011 1 commit
    • Wayne Stambaugh's avatar
      Pcbnew auto save improvements. · 70569edb
      Wayne Stambaugh authored
      * Factor auto save common code into base frame class so all frame windows
        can take advantage of the shiny new auto save goodness.
      * Use a timer instead of depending on mouse and keyboard events to trigger
        an auto save.
      * Check for auto save file when opening a board and ask user if they
        wish to use the auto save file or the last saved board file.
      * Protect all base frame public members.
      70569edb
  23. 01 Oct, 2011 1 commit
  24. 26 Sep, 2011 1 commit
    • Wayne Stambaugh's avatar
      PCB common library global variable removal and other minor fixes. · b9b341dc
      Wayne Stambaugh authored
      * Move auto save time global variables into PCB_EDIT_FRAME object.
      * Move footprint library name list global variable int PCB_EDIT_FRAME
        object.
      * Improve library back up and temporary file error message strings and make
        them translatable.
      * PCBNew string unification.
      * Translate French code names and comments.
      * Coding style policy and Doxygen comment fixes.
      b9b341dc
  25. 23 Sep, 2011 1 commit
    • Wayne Stambaugh's avatar
      PCB common library header rationalization. · edd35b4e
      Wayne Stambaugh authored
      * All header files used to create the PCB common library now compile as
        stand alone code.  This prevents the need to define them in a specific
        order to make source code compile properly.  It should also now be
        possible to relocate the source code to build the common PCB library
        to a separate folder.
      edd35b4e
  26. 08 Sep, 2011 1 commit
  27. 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
  28. 29 Aug, 2011 1 commit
  29. 26 Aug, 2011 1 commit
    • Wayne Stambaugh's avatar
      Add user write permission tests to PCBNew and other minor fixes. · 0d57d670
      Wayne Stambaugh authored
      * Check user write permissions before saving project, board, and footprint
        library files.
      * Append read only to file name and path in title bar when the user
        does not have write privileges.
      * Rename class WinEDA_ModuleEditFrame to FOOTPRINT_EDIT_FRAME.
      * Lot's of Doxygen comment and coding style policy fixes.
      0d57d670
  30. 01 Aug, 2011 1 commit
  31. 14 Jul, 2011 1 commit
  32. 12 May, 2011 1 commit
  33. 10 Mar, 2011 1 commit
  34. 01 Mar, 2011 1 commit
    • Wayne Stambaugh's avatar
      PCBNew control update bug fixes, fixes lp:725963. · 1010601a
      Wayne Stambaugh authored
      * Fix grid select box update bug on context menu.
      * Fix via size and track width select box update bugs.
      * Fix layer pair indicator button update bug.
      * Fix auto track width tool bar control enable bug.
      * Fix via size and track width select status bug in context menu.
      * Fix layer select box and layer control widget select bug when current
        layer is removed.
      * Add virtual function to notify objects derived from EDA_DRAW_FRAME that
        the units setting has changed.
      * Coding policy class naming fixes.
      1010601a
  35. 28 Feb, 2011 1 commit
  36. 24 Feb, 2011 1 commit
    • Wayne Stambaugh's avatar
      Improve handling of tool bar command IDs. · cb647737
      Wayne Stambaugh authored
      * Make EDA_DRAW_FRAME current tool ID member variable private.
      * Added global no tool selected ID to replace application specific no
        tool selected IDs.
      * Change SetToolID to prevent setting the tool ID to anything less than
        the new global no tool selected ID and assert on debug builds.
      * Change command and update user interface command event handlers to use
        new global no tool selected ID.
      * Fixed schematic library editor add pin hot key handler.
      cb647737
  37. 22 Feb, 2011 1 commit
  38. 21 Feb, 2011 2 commits
    • Wayne Stambaugh's avatar
      Use wxUpdateUIEvent in CVPcb and other minor changes. · c02d90e9
      Wayne Stambaugh authored
      * CVPcb now uses wxUpdateUIEvent instead of set toolbars.
      * Removed duplicate event handlers in CVPcb that were factored into
        EDA_DRAW_FRAME.
      * Fix definition of GeneralControle() in CVPcb that prevented it from being
        called.
      * Remove rarely used and scary refresh code GeneralControle() method in all
        main frame windows.
      * Factor zoom menu and tool bar command IDs down to EDA_DRAW_FRAME.
      c02d90e9
    • Wayne Stambaugh's avatar
      All control state handling is now performed in wxUpdateUIEvent handlers. · bdca3c5e
      Wayne Stambaugh authored
      * Old control state handling code completely removed in all applications.
      * Factor common control state handlers into EDA_DRAW_FRAME.
      * Replaced EDA_ITEM test for newness with IsNew() method.
      * Factor vertical right toolbar command handlers out of giant edit command
        switch statement in EESchema and PCBNew.
      bdca3c5e
  39. 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