Commit 5c7c2faf authored by charras's avatar charras
Browse files

minor problems fixed

parent 92064f1d
Loading
Loading
Loading
Loading
+13 −0
Original line number Original line Diff line number Diff line
@@ -4,6 +4,19 @@ KiCad ChangeLog 2009
Please add newer entries at the top, list the date and your name with
Please add newer entries at the top, list the date and your name with
email address.
email address.


2009-oct-14 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
================================================================================
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-oct-01 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
2009-oct-01 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
================================================================================
================================================================================
* Component library viewer restores state between uses.
* Component library viewer restores state between uses.
+1 −1
Original line number Original line Diff line number Diff line
@@ -8,7 +8,7 @@
#include "appl_wxstruct.h"
#include "appl_wxstruct.h"




#define BUILD_VERSION "(20091010-unstable)"
#define BUILD_VERSION "(20091015-unstable)"




#ifdef HAVE_SVN_VERSION
#ifdef HAVE_SVN_VERSION
+1 −1
Original line number Original line Diff line number Diff line
@@ -252,7 +252,7 @@ void WinEDA_DrawFrame::OnSelectGrid( wxCommandEvent& event )
     */
     */
    m_LastGridSizeId = id - ID_POPUP_GRID_LEVEL_1000;
    m_LastGridSizeId = id - ID_POPUP_GRID_LEVEL_1000;
    screen->m_Curseur = DrawPanel->GetScreenCenterRealPosition();
    screen->m_Curseur = DrawPanel->GetScreenCenterRealPosition();
    screen->SetGrid( event.GetId() );
    screen->SetGrid( id );
    Refresh();
    Refresh();
}
}


+4 −0
Original line number Original line Diff line number Diff line
@@ -61,6 +61,10 @@ WinEDA_DisplayFrame::WinEDA_DisplayFrame( WinEDA_CvpcbFrame* father,
    SetBaseScreen( new PCB_SCREEN() );
    SetBaseScreen( new PCB_SCREEN() );


    LoadSettings();
    LoadSettings();
    // Initilialize grid id to a default value if not found in config or bad:
    if( (m_LastGridSizeId <= 0) ||
        (m_LastGridSizeId < (ID_POPUP_GRID_USER - ID_POPUP_GRID_LEVEL_1000)) )
        m_LastGridSizeId = ID_POPUP_GRID_LEVEL_500 - ID_POPUP_GRID_LEVEL_1000;


    // Initialize some display options
    // Initialize some display options
    DisplayOpt.DisplayPadIsol = false;      // Pad clearance has no meaning here
    DisplayOpt.DisplayPadIsol = false;      // Pad clearance has no meaning here
+5 −0
Original line number Original line Diff line number Diff line
@@ -161,6 +161,11 @@ WinEDA_LibeditFrame::WinEDA_LibeditFrame( wxWindow* father,
    SetBaseScreen( new SCH_SCREEN() );
    SetBaseScreen( new SCH_SCREEN() );
    GetScreen()->m_Center = true;
    GetScreen()->m_Center = true;
    LoadSettings();
    LoadSettings();
    // Initilialize grid id to a default value if not found in config or bad:
    if( (m_LastGridSizeId <= 0) ||
        (m_LastGridSizeId < (ID_POPUP_GRID_USER - ID_POPUP_GRID_LEVEL_1000)) )
        m_LastGridSizeId = ID_POPUP_GRID_LEVEL_50 - ID_POPUP_GRID_LEVEL_1000;

    SetSize( m_FramePos.x, m_FramePos.y, m_FrameSize.x, m_FrameSize.y );
    SetSize( m_FramePos.x, m_FramePos.y, m_FrameSize.x, m_FrameSize.y );
    GetScreen()->SetGrid( ID_POPUP_GRID_LEVEL_1000 + m_LastGridSizeId  );
    GetScreen()->SetGrid( ID_POPUP_GRID_LEVEL_1000 + m_LastGridSizeId  );


Loading