Commit dba4a692 authored by jean-pierre charras's avatar jean-pierre charras
Browse files

Pcbnew: Added grid origin patch from Lorenzo Marcantonio. Converted set...

Pcbnew:   Added grid origin patch from Lorenzo Marcantonio.   Converted set grid dialog from DialogBlocks to wxFormBuilder,  and added in this dialog the grid origin parameters settings.
parents f18fdd10 3097b919
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -4,6 +4,13 @@ KiCad ChangeLog 2010
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.


2010-jul-12, UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================
++pcbnew:
    Added grid origin patch from Lorenzo Marcantonio.
    Converted set grid dialog from DialogBlocks to wxFormBuilder,
    and added in this dialog the grid origin parameters settings.

2010-jun-24 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
2010-jun-24 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
================================================================================
================================================================================
++EESchema component library and hierarchical sheet label object improvements.
++EESchema component library and hierarchical sheet label object improvements.
+1 −0
Original line number Original line Diff line number Diff line
@@ -142,6 +142,7 @@ set(BITMAP_SRCS
    Global_Options_Pad.xpm
    Global_Options_Pad.xpm
    green.xpm
    green.xpm
    grid_select.xpm
    grid_select.xpm
    grid_select_axis.xpm
    grid.xpm
    grid.xpm
    hammer.xpm
    hammer.xpm
    help.xpm
    help.xpm
+28 −0
Original line number Original line Diff line number Diff line
/*  PM */
const char *grid_select_axis_xpm[] = {

/* columns rows colors const chars-per-pixel */
"16 16 4 1",
"  c None",
"o c #000000",
"+ c #FF0000",
". c #600000",

/* pixels */
"    +           ",
"oo  +.  oo  oo  ",
"oo  +.  oo  oo  ",
"    +.          ",
"    +.          ",
"oo  +.  oo  oo  ",
"oo  +.  oo  oo  ",
"    +.          ",
"    +.          ",
"+++++++++++++++ ",
" ...+...........",
"    +.          ",
"    +.          ",
"oo  +.  oo  oo  ",
"oo  +.  oo  oo  ",
"     .          "
};
+6 −0
Original line number Original line Diff line number Diff line
@@ -478,6 +478,12 @@ GRID_TYPE BASE_SCREEN::GetGrid()
    return m_Grid;
    return m_Grid;
}
}


/*********************************/
const wxPoint& BASE_SCREEN::GetGridOrigin()
/*********************************/
{
    return m_GridOrigin;
}


wxRealPoint BASE_SCREEN::GetGridSize()
wxRealPoint BASE_SCREEN::GetGridSize()
{
{
+1 −0
Original line number Original line Diff line number Diff line
@@ -72,6 +72,7 @@ WinEDA_DrawFrame::WinEDA_DrawFrame( wxWindow* father, int idtype,
    m_Draw_Sheet_Ref      = FALSE;  // TRUE to display reference sheet.
    m_Draw_Sheet_Ref      = FALSE;  // TRUE to display reference sheet.
    m_Print_Sheet_Ref     = TRUE;   // TRUE to print reference sheet.
    m_Print_Sheet_Ref     = TRUE;   // TRUE to print reference sheet.
    m_Draw_Auxiliary_Axis = FALSE;  // TRUE draw auxilary axis.
    m_Draw_Auxiliary_Axis = FALSE;  // TRUE draw auxilary axis.
    m_Draw_Grid_Axis      = FALSE;  // TRUE to draw the grid axis
    m_CursorShape         = 0;
    m_CursorShape         = 0;
    m_LastGridSizeId      = 0;
    m_LastGridSizeId      = 0;
    m_DrawGrid            = true;   // hide/Show grid. default = show
    m_DrawGrid            = true;   // hide/Show grid. default = show
Loading