Commit 2c72f821 authored by jean-pierre charras's avatar jean-pierre charras

Zoom icons enhancements. Gerbview: add missing icons in popup menu

parents a2359ebc edfc1109
...@@ -46,8 +46,8 @@ void WinEDA3D_DrawFrame::ReCreateHToolbar() ...@@ -46,8 +46,8 @@ void WinEDA3D_DrawFrame::ReCreateHToolbar()
wxBitmap( zoom_redraw_xpm ), wxBitmap( zoom_redraw_xpm ),
_( "Redraw view" ) ); _( "Redraw view" ) );
m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_auto_xpm ), m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_fit_in_page_xpm ),
_( "Zoom auto" ) ); _( "Fit in page" ) );
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
m_HToolBar->AddTool( ID_ROTATE3D_X_NEG, wxEmptyString, m_HToolBar->AddTool( ID_ROTATE3D_X_NEG, wxEmptyString,
......
...@@ -414,19 +414,18 @@ set(BITMAP_SRCS ...@@ -414,19 +414,18 @@ set(BITMAP_SRCS
Width_Vias.xpm Width_Vias.xpm
zip_tool.xpm zip_tool.xpm
zip.xpm zip.xpm
zoom_auto.xpm zoom.xpm
Zoom_Center.xpm zoom_area.xpm
zoom_fit_in_page.xpm
zoom_center_on_screen.xpm
zoom_in.xpm zoom_in.xpm
zoomoins3d.xpm zoomoins3d.xpm
zoom_out.xpm zoom_out.xpm
zoompage3d.xpm zoompage3d.xpm
Zoom_Page.xpm
zoomplus3d.xpm zoomplus3d.xpm
zoom_redraw.xpm zoom_redraw.xpm
zoomrefr3d.xpm zoomrefr3d.xpm
Zoom_Selected.xpm zoom_selection.xpm
Zoom_Select.xpm
zoom.xpm
) )
......
/* XPM */
#ifndef XPMMAIN
extern const char * zoom_center_xpm[];
#else
const char * zoom_center_xpm[] = {
"16 16 4 1",
" c None",
". c Black",
"c c Red",
"X c Gray100",
" .... ",
" ..XXXX.. ",
" .XXXXXXXX. ",
" .XXccccXX. ",
".XXccccccXX. ",
".XXccccccXX. ",
".XXccccccXX. ",
".XXccccccXX. ",
" .XXccccXX. ",
" .XXXXXXXX. ",
" ..XXXX... ",
" .... ... ",
" ... ",
" ... ",
" ... ",
" .. "
};
#endif
/* XPM */
#ifndef XPMMAIN
extern const char * zoom_page_xpm[];
#else
const char * zoom_page_xpm[] = {
"16 16 68 1",
" c None",
". c #000000",
"+ c #262626",
"@ c #C5C5C5",
"# c #EEEEEE",
"$ c #EDEDED",
"% c #ABABAB",
"& c #464646",
"* c #878787",
"= c #F1F1F1",
"- c #FEFEFE",
"; c #FDFDFD",
"> c #FCFCFC",
", c #EAEAEA",
"' c #707070",
") c #2E2E2E",
"! c #A0A0A0",
"~ c #A9A9A9",
"{ c #E5E5E5",
"] c #FBFBFB",
"^ c #E8E8E8",
"/ c #AFAFAF",
"( c #F4F4F4",
"_ c #E9E9E9",
": c #E1E1E1",
"< c #FAFAFA",
"[ c #A4A4A4",
"} c #F9F9F9",
"| c #A8A8A8",
"1 c #E2E2E2",
"2 c #F8F8F8",
"3 c #D0D0D0",
"4 c #C7C7C7",
"5 c #BDBDBD",
"6 c #A7A7A7",
"7 c #E4E4E4",
"8 c #F7F7F7",
"9 c #F3F3F3",
"0 c #D4D4D4",
"a c #C0C0C0",
"b c #AEAEAE",
"c c #A6A6A6",
"d c #BABABA",
"e c #444444",
"f c #F5F5F5",
"g c #F6F6F6",
"h c #E7E7E7",
"i c #858585",
"j c #828282",
"k c #E3E3E3",
"l c #979797",
"m c #6D6D6D",
"n c #D6D6D6",
"o c #2D2D2D",
"p c #E0E0E0",
"q c #DEDEDE",
"r c #949494",
"s c #7C7C7C",
"t c #050505",
"u c #040404",
"v c #202020",
"w c #BBBBBB",
"x c #686868",
"y c #343434",
"z c #C2C2C2",
"A c #797979",
"B c #3A3A3A",
"C c #1F1F1F",
" .... ",
" .+@#$%&. ",
" .*=--;>,'. ",
" )!~~~{;]^& ",
"./;;(_~:><[. ",
"._}},>:|1<{. ",
".^2}13456<7. ",
".|8290abc}d. ",
".e{fgffhch& ",
".ijk((9{lm. ",
".noe!pqr).... ",
".;{s)tu. vv.. ",
".;7kkkw. .xy.. ",
".zwwww!. .AB..",
" ...... .xC.",
" .. "};
#endif
/* XPM */
#ifndef XPMMAIN
extern const char * zoom_select_xpm[];
#else
const char * zoom_select_xpm[] = {
"16 16 39 1",
" c None",
"! c black",
"# c #252525",
"$ c #C4C4C4",
"% c #EDEDED",
"& c #ECECEC",
"' c #AAAAAA",
"( c #454545",
") c #868686",
"* c #F0F0F0",
"+ c #FDFDFD",
", c #FCFCFC",
"- c #FBFBFB",
". c #E9E9E9",
"0 c #6F6F6F",
"1 c #FF8548",
"2 c #D90000",
"3 c #FAFAFA",
"4 c #E7E7E7",
"5 c #AFAFAF",
"6 c #FEFEFE",
"7 c white",
"8 c #F9F9F9",
"9 c #A3A3A3",
": c #E4E4E4",
"; c #E3E3E3",
"< c #F8F8F8",
"= c #B9B9B9",
"> c #E6E6E6",
"? c #848484",
"@ c #E2E2E2",
"A c #6C6C6C",
"B c #A0A0A0",
"C c #202020",
"D c #1F1F1F",
"E c #676767",
"F c #333333",
"G c #787878",
"H c #393939",
" !!!! ",
" !#$%&'(! ",
" !)*++,-.0! ",
" (*+122134( ",
"!5++6712-89! ",
"!%+7722178:! ",
"!&,7727778;! ",
"!'-,,7738<=! ",
" (.3-278<>( ",
" !?4818<@A! ",
" !(9:;B(!!!! ",
" !!!! CD!! ",
" !EF!! ",
" !GH!!",
" !ED!",
" !! "};
#endif
/* XPM */
#ifndef XPMMAIN
extern const char * zoom_selected_xpm[];
#else
const char * zoom_selected_xpm[] = {
"16 16 38 1",
" c None",
". c #000000",
"+ c #C5C5C5",
"@ c #EDEDED",
"# c #464646",
"$ c #878787",
"% c #CACACA",
"& c #FEFEFE",
"* c #D5D5D5",
"= c #FDFDFD",
"- c #D3D3D3",
"; c #EAEAEA",
"> c #707070",
", c #AAAAAA",
"' c #FBFBFB",
") c #E8E8E8",
"! c #B0B0B0",
"~ c #FFFFFF",
"{ c #FCFCFC",
"] c #FAFAFA",
"^ c #A4A4A4",
"/ c #E5E5E5",
"( c #C6C6C6",
"_ c #E4E4E4",
": c #B1B1B1",
"< c #F9F9F9",
"[ c #BABABA",
"} c #E7E7E7",
"| c #858585",
"1 c #E3E3E3",
"2 c #6D6D6D",
"3 c #A1A1A1",
"4 c #202020",
"5 c #686868",
"6 c #343434",
"7 c #797979",
"8 c #3A3A3A",
"9 c #1F1F1F",
".. .... .. ",
"....+.@.#. . .. ",
" .$%&*=-;>. ",
" .,&&&&=')# . ",
".!&&~&&={]^. ",
"..*&&&&=']/. . ",
".(=&&&={']_. ",
"..:==={']<[. . ",
".#;'{'']<}# ",
" .|)]]]<12. . ",
" .#^/_3#.... ",
" . .... 44.. ",
" .56.. ",
".. . . . . .78..",
".. .59.",
" .. "};
#endif
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/* XPM */ /* XPM */
#ifndef XPMMAIN const char *zoom_xpm[] = {
extern const char * zoom_xpm[]; /* columns rows colors chars-per-pixel */
#else "16 16 16 1",
const char * zoom_xpm[] = { "X c #989392",
"16 16 3 1", "o c #7D7979",
"$ c #A3D1FB",
"+ c #989EA2",
"= c #F6AD3E",
"& c #F4C284",
" c None", " c None",
". c #00A000", "% c #2E2D2E",
"X c #A0C0A0", "O c #656566",
" .... ", "- c #FCDB4E",
" ..XXXX.. ", "@ c #49494B",
" .XXXXXXXX. ", "; c #BA4D36",
" .XXXXXXXX. ", ": c #F07716",
".XXXXXXXXXX. ", "# c #CAE5FB",
".XXXXXXXXXX. ", ". c #BDBBBC",
".XXXXXXXXXX. ", "* c #C16854",
".XXXXXXXXXX. ", /* pixels */
" .XXXXXXXX. ", " .XoOOOX ",
" .XXXXXXXX. ", " .OX +@O. ",
" ..XXXX... ", ".O ##### @O ",
" .... ... ", "XX$####$$+%X ",
" ... ", "O$$$$$$$$$@O ",
" ... ", "O#$$$$$$$$o% ",
" ... ", "O##$$$$$##O% ",
" .. " "O ########@O ",
"+o#######X%+ ",
" oX#####+o@X. ",
" .oO+.+O@@.&*. ",
" +Xooo.X=--*. ",
" .;:=-*.",
" .;:=-*",
" .;:=:",
" .*;o"
}; };
#endif
/* XPM */
const char *zoom_area_xpm[] = {
/* columns rows colors chars-per-pixel */
"16 16 16 1",
" c #6C0A84",
"X c #7A6F6D",
". c #9B9A9C",
"% c #C0DFFB",
"# c #545456",
"; c #FCD046",
"* c #343334",
"= c #F4C284",
"O c None",
"$ c #2C5630",
"- c #BC5040",
": c #FC760C",
"+ c #978980",
"& c #D4EAFB",
"o c #0C8922",
"@ c #BBC7D3",
/* pixels */
" .XXXX.oOoO ",
" +@@@.#$OoO ",
" %&&&%@##OO ",
"+.%%%%%%%.*.OOOO",
"X@%%%%%%%%##OOoo",
"#%%%%%%%%%X*OOOO",
"#&%%%%%%%&X*OOoo",
"X@&&%%%&&%*#OOOO",
".X&&&&&&&.*.OOoo",
"o$.%&&&&.X#.OOOO",
"OO+X.O.X*#O=-Ooo",
"ooO.+XX+O.+;;-OO",
"OOOOOOOOOO-:;;oo",
" OOOOOOOO-: ",
" OoOoOoOoOo ",
" OoOoOoOoOo "
};
/* XPM */
const char *zoom_center_on_screen_xpm[] = {
/* columns rows colors chars-per-pixel */
"16 16 16 1",
"& c #C6E2FA",
"$ c #3D3D40",
"@ c #768AE3",
"% c #85635C",
"; c #BC4828",
"= c #F4C284",
" c None",
"X c #737576",
"# c #6D73C3",
"* c #0A16D2",
". c #94979C",
"O c #A1A6AA",
"+ c #9E908B",
": c #F07716",
"- c #FCCB43",
"o c #4C509C",
/* pixels */
" .XooX. ",
" OX+ @#.$% ",
" X &&@@& $% ",
"+.&&&@@&&O$+ ",
"X&&&&@@&&&$% ",
"%&&&&@@&&&X$ ",
"****************",
"X &&&@@&&&$% ",
".X&&&@@&&.$O ",
" X.&&@@&OX%+ ",
" XX.##X$$ =% ",
" O+ooXO++--% ",
" ## ;:--% ",
" ## ;:--%",
" ## ;:-:",
" ## %;+"
};
/* XPM */
const char *zoom_fit_in_page_xpm[] = {
/* columns rows colors chars-per-pixel */
"16 16 16 1",
"# c #323432",
"@ c #9D9187",
"X c #6E6A6A",
"& c #121322",
"O c #595FCC",
" c #1521D7",
"$ c #9A9EB7",
"= c #F4C284",
"* c #6C727C",
"o c None",
"- c #D65A1F",
". c #545056",
"+ c #282EA4",
"% c #CAE5FB",
": c #B22407",
"; c #FCCB43",
/* pixels */
" ..X..XooO O",
" +.@ooo@.#$o ",
" .o%%%%%o.&$ ",
".@%%%%%%%$#& ",
".o%%%%%%%%.& O$O",
".%%o%%%o%%*&Oooo",
".%%%%%%%%%X&oooo",
".o%%%%%%%%#&oooo",
"**%%%%%%%@&@oooo",
"o.@%%%%%$*.Xoooo",
"o$.X$$$X#.o=-ooo",
"$o$+.X..@X@;;-oo",
" O $oooo:-;;-o",
" $oooooo:-;;-",
" Ooooooooo:-;-",
"O $oooooooo::-"
};
...@@ -2,37 +2,37 @@ ...@@ -2,37 +2,37 @@
const char *zoom_in_xpm[] = { const char *zoom_in_xpm[] = {
/* columns rows colors chars-per-pixel */ /* columns rows colors chars-per-pixel */
"16 16 16 1", "16 16 16 1",
"; c #9A9E98", "# c #2D2D2D",
"# c #A0BEDD", "@ c #828FB4",
"% c #5883B7", "O c #958B86",
"X c #AFB8BD", ". c #6D6E8C",
"@ c #D2DDE4", "% c #0A0B88",
": c #585955", "+ c #A8CFF7",
"* c #F4C284",
" c None", " c None",
". c #898B87", "$ c #CCE6FA",
"* c #4C7AB4", "o c #9FA7B5",
"& c #8DB1D7", "& c #3C3EA4",
"- c #767672", "X c #585859",
"= c #BCC0BE", "; c #B23014",
"$ c #B3CBE1", "= c #B45644",
"+ c #909490", "- c #FCCB43",
"o c #C5D5E2", ": c #E1651E",
"O c #E5E7EC",
/* pixels */ /* pixels */
" ........ ", " .XXXX. ",
" ..XoOOoX.. ", " oXO + @X#o ",
" .+o@####@o+. ", " X $$ +$ X# ",
"..o$#$%%$#$o.. ", ".O+$$%.++o#. ",
".X@#o% %$&@X. ", "X++++%.+++X# ",
".o#$%% %%#&o. ", "X$o%%%%%&+.# ",
".O&% *&O. ", "X$+..%&.@$.# ",
".O&* *&O. ", "X+$$$%.$$$## ",
".@#&** **&#@. ", "O.$$$&@$$O#O ",
".X@&#% *##@=. ", " XO$$$$$o.XO ",
"..@@##%%$#o@.- ", " oX.ooo.#X *= ",
" .;@Oooo@O@;;:: ", " O.XXXoOO--= ",
" ..=OOO@=..==::", " ;:--= ",
" ..+..+.-:-.X:", " ;:--=",
" ::-;:", " ;:-:",
" ::::" " ;;="
}; };
...@@ -2,37 +2,37 @@ ...@@ -2,37 +2,37 @@
const char *zoom_out_xpm[] = { const char *zoom_out_xpm[] = {
/* columns rows colors chars-per-pixel */ /* columns rows colors chars-per-pixel */
"16 16 16 1", "16 16 16 1",
"# c #9FBDDD", "$ c #2C3EA4",
"- c #9A9E98", "X c #736E6F",
"X c #AFB8BD", "% c #3443A6",
"@ c #D2DDE4", "@ c #2A2B2A",
"$ c #B2CBE2", "O c #989EA3",
"; c #585955", "& c #050785",
"o c #C4D5E4", "# c #CBE5FB",
"* c #F4C284",
" c None", " c None",
". c #898B87", "o c #515252",
"* c #4C7AB4", ". c #BDBCBD",
"& c #5682B7", "; c #B23014",
"% c #8DB1D7", "+ c #9C9089",
"= c #767672", "= c #B45644",
": c #BCC0BE", "- c #FCCB43",
"+ c #909490", ": c #E1651E",
"O c #E5E7EC",
/* pixels */ /* pixels */
" ........ ", " .XXXooX ",
" ..XoOOoX.. ", " Oo+ Oo@. ",
" .+o@####o@+. ", ".o.##### o@ ",
"..o$#$$$$#$o.. ", "X+#######O@X ",
".X@#o@oo$$%oX. ", "o ########o@ ",
".o#$&&&&&&##o. ", "o##$%%%$%#X@ ",
".O%& *%O. ", "o##&&&&&&#X@ ",
".O%* *%O. ", "o ########@@ ",
".@#%******%#@. ", "+X#######O@+ ",
".X@#%######OX. ", " o+#####OXoX. ",
"..@@##$#$#o@.= ", " .XXO.OX@o.*=. ",
" .-@Oooo@O@--;; ", " +XXXXOX+--=. ",
" ..:OOO@:..::;;", " .;:--=.",
" ..+..+.=;=.X;", " .;:--=",
" ;;=-;", " .;:-:",
" ;;;;" " .;;="
}; };
/* XPM */
const char *zoom_selection_xpm[] = {
/* columns rows colors chars-per-pixel */
"16 16 16 1",
"+ c #9D9DA9",
"& c #4C2C2F",
"# c #66535A",
"% c #640F10",
"; c #B7503A",
"@ c #464647",
"O c #816964",
"* c #F4C284",
" c None",
"= c #D88648",
"X c #958D8C",
"$ c #CCE5FA",
". c #BABABF",
": c #FC760C",
"o c #77747A",
"- c #FCCB43",
/* pixels */
" .XoOOOX ",
" .OX +@#. ",
".O.$$+.$ ## ",
"XX$+%#&&$+&X ",
"O $oo$ %+$@# ",
"#$$$$$@% $o& ",
"#$$$$#% $$O@ ",
"O $$$&+$$$@# ",
"+o$$$O.$$X&+ ",
" oX$$#+$+o#X. ",
" .oO+.+O@@.*O. ",
" +XooX+X=--O. ",
" .;:--O.",
" .;:--O",
" .;:-=",
" .;;X"
};
...@@ -165,7 +165,7 @@ void EDA_DRAW_FRAME::AddMenuZoomAndGrid( wxMenu* MasterMenu ) ...@@ -165,7 +165,7 @@ void EDA_DRAW_FRAME::AddMenuZoomAndGrid( wxMenu* MasterMenu )
BASE_SCREEN * screen = DrawPanel->GetScreen(); BASE_SCREEN * screen = DrawPanel->GetScreen();
msg = AddHotkeyName( _( "Center" ), m_HotkeysZoomAndGridList, HK_ZOOM_CENTER ); msg = AddHotkeyName( _( "Center" ), m_HotkeysZoomAndGridList, HK_ZOOM_CENTER );
ADD_MENUITEM( MasterMenu, ID_POPUP_ZOOM_CENTER, msg, zoom_center_xpm ); ADD_MENUITEM( MasterMenu, ID_POPUP_ZOOM_CENTER, msg, zoom_center_on_screen_xpm );
msg = AddHotkeyName( _( "Zoom in" ), m_HotkeysZoomAndGridList, HK_ZOOM_IN ); msg = AddHotkeyName( _( "Zoom in" ), m_HotkeysZoomAndGridList, HK_ZOOM_IN );
ADD_MENUITEM( MasterMenu, ID_POPUP_ZOOM_IN, msg, zoom_in_xpm ); ADD_MENUITEM( MasterMenu, ID_POPUP_ZOOM_IN, msg, zoom_in_xpm );
msg = AddHotkeyName( _( "Zoom out" ), m_HotkeysZoomAndGridList, HK_ZOOM_OUT ); msg = AddHotkeyName( _( "Zoom out" ), m_HotkeysZoomAndGridList, HK_ZOOM_OUT );
...@@ -173,13 +173,13 @@ void EDA_DRAW_FRAME::AddMenuZoomAndGrid( wxMenu* MasterMenu ) ...@@ -173,13 +173,13 @@ void EDA_DRAW_FRAME::AddMenuZoomAndGrid( wxMenu* MasterMenu )
msg = AddHotkeyName( _( "Redraw view" ), m_HotkeysZoomAndGridList, HK_ZOOM_REDRAW ); msg = AddHotkeyName( _( "Redraw view" ), m_HotkeysZoomAndGridList, HK_ZOOM_REDRAW );
ADD_MENUITEM( MasterMenu, ID_ZOOM_REDRAW, msg, zoom_redraw_xpm ); ADD_MENUITEM( MasterMenu, ID_ZOOM_REDRAW, msg, zoom_redraw_xpm );
msg = AddHotkeyName( _( "Zoom auto" ), m_HotkeysZoomAndGridList, HK_ZOOM_AUTO ); msg = AddHotkeyName( _( "Zoom auto" ), m_HotkeysZoomAndGridList, HK_ZOOM_AUTO );
ADD_MENUITEM( MasterMenu, ID_ZOOM_PAGE, msg, zoom_auto_xpm ); ADD_MENUITEM( MasterMenu, ID_ZOOM_PAGE, msg, zoom_fit_in_page_xpm );
wxMenu* zoom_choice = new wxMenu; wxMenu* zoom_choice = new wxMenu;
ADD_MENUITEM_WITH_SUBMENU( MasterMenu, zoom_choice, ADD_MENUITEM_WITH_SUBMENU( MasterMenu, zoom_choice,
ID_POPUP_ZOOM_SELECT, _( "Zoom select" ), ID_POPUP_ZOOM_SELECT, _( "Zoom select" ),
zoom_select_xpm ); zoom_selection_xpm );
zoom = screen->GetZoom(); zoom = screen->GetZoom();
maxZoomIds = ID_POPUP_ZOOM_LEVEL_END - ID_POPUP_ZOOM_LEVEL_START; maxZoomIds = ID_POPUP_ZOOM_LEVEL_END - ID_POPUP_ZOOM_LEVEL_START;
......
...@@ -217,7 +217,7 @@ void DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar() ...@@ -217,7 +217,7 @@ void DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar()
m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, wxBitmap( zoom_redraw_xpm ), m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, wxBitmap( zoom_redraw_xpm ),
_( "Redraw view (F3)" ) ); _( "Redraw view (F3)" ) );
m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_auto_xpm ), m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_fit_in_page_xpm ),
_( "Zoom auto (Home)" ) ); _( "Zoom auto (Home)" ) );
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
......
...@@ -276,7 +276,7 @@ void AddMenusForBlock( wxMenu* PopMenu, LIB_EDIT_FRAME* frame ) ...@@ -276,7 +276,7 @@ void AddMenusForBlock( wxMenu* PopMenu, LIB_EDIT_FRAME* frame )
if( frame->GetScreen()->m_BlockLocate.m_Command == BLOCK_MOVE ) if( frame->GetScreen()->m_BlockLocate.m_Command == BLOCK_MOVE )
ADD_MENUITEM( PopMenu, ID_POPUP_ZOOM_BLOCK, ADD_MENUITEM( PopMenu, ID_POPUP_ZOOM_BLOCK,
_( "Zoom Block (drag middle mouse)" ), _( "Zoom Block (drag middle mouse)" ),
zoom_selected_xpm ); zoom_area_xpm );
PopMenu->AppendSeparator(); PopMenu->AppendSeparator();
......
...@@ -219,7 +219,7 @@ void SCH_EDIT_FRAME::ReCreateMenuBar() ...@@ -219,7 +219,7 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
/* Fit on screen */ /* Fit on screen */
text = AddHotkeyName( _( "Fit on Screen" ), s_Schematic_Hokeys_Descr, HK_ZOOM_AUTO ); text = AddHotkeyName( _( "Fit on Screen" ), s_Schematic_Hokeys_Descr, HK_ZOOM_AUTO );
item = new wxMenuItem( viewMenu, ID_ZOOM_PAGE, text, HELP_ZOOM_FIT, wxITEM_NORMAL ); item = new wxMenuItem( viewMenu, ID_ZOOM_PAGE, text, HELP_ZOOM_FIT, wxITEM_NORMAL );
item->SetBitmap( zoom_auto_xpm ); item->SetBitmap( zoom_fit_in_page_xpm );
viewMenu->Append( item ); viewMenu->Append( item );
viewMenu->AppendSeparator(); viewMenu->AppendSeparator();
......
...@@ -132,7 +132,7 @@ void LIB_EDIT_FRAME::ReCreateMenuBar() ...@@ -132,7 +132,7 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
text = AddHotkeyName( _( "Fit on Screen" ), s_Schematic_Hokeys_Descr, HK_ZOOM_AUTO ); text = AddHotkeyName( _( "Fit on Screen" ), s_Schematic_Hokeys_Descr, HK_ZOOM_AUTO );
item = new wxMenuItem( viewMenu, ID_ZOOM_PAGE, text, HELP_ZOOM_FIT, wxITEM_NORMAL ); item = new wxMenuItem( viewMenu, ID_ZOOM_PAGE, text, HELP_ZOOM_FIT, wxITEM_NORMAL );
item->SetBitmap( zoom_auto_xpm ); item->SetBitmap( zoom_fit_in_page_xpm );
viewMenu->Append( item ); viewMenu->Append( item );
viewMenu->AppendSeparator(); viewMenu->AppendSeparator();
......
...@@ -648,7 +648,8 @@ void AddMenusForBlock( wxMenu* PopMenu, SCH_EDIT_FRAME* frame ) ...@@ -648,7 +648,8 @@ void AddMenusForBlock( wxMenu* PopMenu, SCH_EDIT_FRAME* frame )
PopMenu->AppendSeparator(); PopMenu->AppendSeparator();
if( frame->GetScreen()->m_BlockLocate.m_Command == BLOCK_MOVE ) if( frame->GetScreen()->m_BlockLocate.m_Command == BLOCK_MOVE )
ADD_MENUITEM( PopMenu, ID_POPUP_ZOOM_BLOCK, _( "Window Zoom" ), zoom_selected_xpm ); ADD_MENUITEM( PopMenu, ID_POPUP_ZOOM_BLOCK, _( "Window Zoom" ),
zoom_area_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_PLACE_BLOCK, _( "Place Block" ), apply_xpm ); ADD_MENUITEM( PopMenu, ID_POPUP_PLACE_BLOCK, _( "Place Block" ), apply_xpm );
......
...@@ -145,7 +145,7 @@ void LIB_EDIT_FRAME::ReCreateHToolbar() ...@@ -145,7 +145,7 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, wxBitmap( zoom_redraw_xpm ), msg ); m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, wxBitmap( zoom_redraw_xpm ), msg );
msg = AddHotkeyName( HELP_ZOOM_FIT, s_Libedit_Hokeys_Descr, HK_ZOOM_AUTO, false ); msg = AddHotkeyName( HELP_ZOOM_FIT, s_Libedit_Hokeys_Descr, HK_ZOOM_AUTO, false );
m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_auto_xpm ), msg ); m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_fit_in_page_xpm ), msg );
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
m_HToolBar->AddTool( ID_DE_MORGAN_NORMAL_BUTT, wxEmptyString, wxBitmap( morgan1_xpm ), m_HToolBar->AddTool( ID_DE_MORGAN_NORMAL_BUTT, wxEmptyString, wxBitmap( morgan1_xpm ),
......
...@@ -92,7 +92,7 @@ void SCH_EDIT_FRAME::ReCreateHToolbar() ...@@ -92,7 +92,7 @@ void SCH_EDIT_FRAME::ReCreateHToolbar()
m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, wxBitmap( zoom_redraw_xpm ), msg ); m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, wxBitmap( zoom_redraw_xpm ), msg );
msg = AddHotkeyName( HELP_ZOOM_FIT, s_Schematic_Hokeys_Descr, HK_ZOOM_AUTO, false ); msg = AddHotkeyName( HELP_ZOOM_FIT, s_Schematic_Hokeys_Descr, HK_ZOOM_AUTO, false );
m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_auto_xpm ), msg ); m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_fit_in_page_xpm ), msg );
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
msg = AddHotkeyName( HELP_FIND, s_Schematic_Hokeys_Descr, HK_FIND_ITEM, false ); msg = AddHotkeyName( HELP_FIND, s_Schematic_Hokeys_Descr, HK_FIND_ITEM, false );
......
...@@ -67,7 +67,7 @@ void LIB_VIEW_FRAME::ReCreateHToolbar() ...@@ -67,7 +67,7 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
msg = AddHotkeyName( _( "Zoom auto" ), s_Viewlib_Hokeys_Descr, msg = AddHotkeyName( _( "Zoom auto" ), s_Viewlib_Hokeys_Descr,
HK_ZOOM_AUTO, false ); HK_ZOOM_AUTO, false );
m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString,
wxBitmap( zoom_auto_xpm ), msg ); wxBitmap( zoom_fit_in_page_xpm ), msg );
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
m_HToolBar->AddTool( ID_LIBVIEW_DE_MORGAN_NORMAL_BUTT, wxEmptyString, m_HToolBar->AddTool( ID_LIBVIEW_DE_MORGAN_NORMAL_BUTT, wxEmptyString,
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "bitmaps.h"
#include "gerbview.h" #include "gerbview.h"
...@@ -33,9 +34,11 @@ bool GERBVIEW_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu ) ...@@ -33,9 +34,11 @@ bool GERBVIEW_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu )
if( GetToolId() != ID_NO_TOOL_SELECTED ) if( GetToolId() != ID_NO_TOOL_SELECTED )
{ {
if( DrawStruct && DrawStruct->m_Flags ) if( DrawStruct && DrawStruct->m_Flags )
PopMenu->Append( ID_POPUP_CANCEL_CURRENT_COMMAND, _( "Cancel" ) ); ADD_MENUITEM( PopMenu, ID_POPUP_CANCEL_CURRENT_COMMAND,
_( "Cancel" ), cancel_xpm );
else else
PopMenu->Append( ID_POPUP_CLOSE_CURRENT_TOOL, _( "End Tool" ) ); ADD_MENUITEM( PopMenu, ID_POPUP_CLOSE_CURRENT_TOOL,
_( "End Tool" ), cancel_tool_xpm );
PopMenu->AppendSeparator(); PopMenu->AppendSeparator();
} }
...@@ -45,15 +48,17 @@ bool GERBVIEW_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu ) ...@@ -45,15 +48,17 @@ bool GERBVIEW_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu )
{ {
if( BlockActive ) if( BlockActive )
{ {
PopMenu->Append( ID_POPUP_CANCEL_CURRENT_COMMAND, _( "Cancel Block" ) ); ADD_MENUITEM( PopMenu, ID_POPUP_CANCEL_CURRENT_COMMAND,
_( "Cancel Block" ), cancel_xpm );
PopMenu->AppendSeparator(); PopMenu->AppendSeparator();
PopMenu->Append( ID_POPUP_PLACE_BLOCK, _( "Place Block" ) ); ADD_MENUITEM( PopMenu, ID_POPUP_PLACE_BLOCK,
PopMenu->Append( ID_POPUP_DELETE_BLOCK, _( "Place Block" ), apply_xpm );
_( "Delete Block (ctrl + drag mouse)" ) ); ADD_MENUITEM( PopMenu, ID_POPUP_DELETE_BLOCK,
_( "Delete Block (ctrl + drag mouse)" ), delete_xpm );
} }
else else
PopMenu->Append( ID_POPUP_CANCEL_CURRENT_COMMAND, ADD_MENUITEM( PopMenu, ID_POPUP_CANCEL_CURRENT_COMMAND,
_( "Cancel" ) ); _( "Cancel" ), cancel_xpm );
PopMenu->AppendSeparator(); PopMenu->AppendSeparator();
} }
} }
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
#include "fctsys.h" #include "fctsys.h"
//#include "appl_wxstruct.h"
#include "common.h" #include "common.h"
#include "macros.h" #include "macros.h"
#include "gerbview.h" #include "gerbview.h"
...@@ -59,7 +58,7 @@ void GERBVIEW_FRAME::ReCreateHToolbar( void ) ...@@ -59,7 +58,7 @@ void GERBVIEW_FRAME::ReCreateHToolbar( void )
m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, wxBitmap( zoom_redraw_xpm ), msg ); m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, wxBitmap( zoom_redraw_xpm ), msg );
msg = AddHotkeyName( _( "Zoom auto" ), s_Gerbview_Hokeys_Descr, HK_ZOOM_AUTO ); msg = AddHotkeyName( _( "Zoom auto" ), s_Gerbview_Hokeys_Descr, HK_ZOOM_AUTO );
m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_auto_xpm ), msg ); m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_fit_in_page_xpm ), msg );
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
m_HToolBar->AddTool( ID_FIND_ITEMS, wxEmptyString, wxBitmap( find_xpm ), _( "Find D-codes" ) ); m_HToolBar->AddTool( ID_FIND_ITEMS, wxEmptyString, wxBitmap( find_xpm ), _( "Find D-codes" ) );
......
...@@ -410,16 +410,16 @@ extern const char* width_track_xpm[]; ...@@ -410,16 +410,16 @@ extern const char* width_track_xpm[];
extern const char* width_vias_xpm[]; extern const char* width_vias_xpm[];
extern const char* zip_tool_xpm[]; extern const char* zip_tool_xpm[];
extern const char* zip_xpm[]; extern const char* zip_xpm[];
extern const char* zoom_center_xpm[]; extern const char* zoom_area_xpm[];
extern const char* zoom_center_on_screen_xpm[];
extern const char* zoomoins3d_xpm[]; extern const char* zoomoins3d_xpm[];
extern const char* zoom_redraw_xpm[]; extern const char* zoom_redraw_xpm[];
extern const char* zoom_auto_xpm[]; extern const char* zoom_fit_in_page_xpm[];
extern const char* zoom_in_xpm[]; extern const char* zoom_in_xpm[];
extern const char* zoom_out_xpm[]; extern const char* zoom_out_xpm[];
extern const char* zoompage3d_xpm[]; extern const char* zoompage3d_xpm[];
extern const char* zoom_page_xpm[]; extern const char* zoom_page_xpm[];
extern const char* zoomplus3d_xpm[]; extern const char* zoomplus3d_xpm[];
extern const char* zoomrefr3d_xpm[]; extern const char* zoomrefr3d_xpm[];
extern const char* zoom_selected_xpm[]; extern const char* zoom_selection_xpm[];
extern const char* zoom_select_xpm[];
extern const char* zoom_xpm[]; extern const char* zoom_xpm[];
...@@ -208,7 +208,7 @@ void WinEDA_ModuleEditFrame::ReCreateMenuBar() ...@@ -208,7 +208,7 @@ void WinEDA_ModuleEditFrame::ReCreateMenuBar()
ID_ZOOM_PAGE, ID_ZOOM_PAGE,
_( "Fit on Screen" ), _( "Fit on Screen" ),
_( "Zoom and fit the module in the window" ) ); _( "Zoom and fit the module in the window" ) );
item->SetBitmap( zoom_auto_xpm ); item->SetBitmap( zoom_fit_in_page_xpm );
viewMenu->Append( item ); viewMenu->Append( item );
/* Separator */ /* Separator */
......
...@@ -345,7 +345,7 @@ void PCB_EDIT_FRAME::ReCreateMenuBar() ...@@ -345,7 +345,7 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
item = new wxMenuItem( viewMenu, ID_ZOOM_PAGE, text, item = new wxMenuItem( viewMenu, ID_ZOOM_PAGE, text,
HELP_ZOOM_FIT, wxITEM_NORMAL ); HELP_ZOOM_FIT, wxITEM_NORMAL );
item->SetBitmap( zoom_auto_xpm ); item->SetBitmap( zoom_fit_in_page_xpm );
viewMenu->Append( item ); viewMenu->Append( item );
viewMenu->AppendSeparator(); viewMenu->AppendSeparator();
......
...@@ -216,7 +216,7 @@ bool WinEDA_ModuleEditFrame::OnRightClick( const wxPoint& MousePos, wxMenu* PopM ...@@ -216,7 +216,7 @@ bool WinEDA_ModuleEditFrame::OnRightClick( const wxPoint& MousePos, wxMenu* PopM
_( "Cancel Block" ), cancel_xpm ); _( "Cancel Block" ), cancel_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_ZOOM_BLOCK, ADD_MENUITEM( PopMenu, ID_POPUP_ZOOM_BLOCK,
_( "Zoom Block (drag middle mouse)" ), _( "Zoom Block (drag middle mouse)" ),
zoom_selected_xpm ); zoom_area_xpm );
PopMenu->AppendSeparator(); PopMenu->AppendSeparator();
ADD_MENUITEM( PopMenu, ID_POPUP_PLACE_BLOCK, ADD_MENUITEM( PopMenu, ID_POPUP_PLACE_BLOCK,
_( "Place Block" ), apply_xpm ); _( "Place Block" ), apply_xpm );
......
...@@ -374,7 +374,7 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu ) ...@@ -374,7 +374,7 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
void PCB_EDIT_FRAME::createPopUpBlockMenu( wxMenu* menu ) void PCB_EDIT_FRAME::createPopUpBlockMenu( wxMenu* menu )
{ {
ADD_MENUITEM( menu, ID_POPUP_CANCEL_CURRENT_COMMAND, _( "Cancel Block" ), cancel_xpm ); ADD_MENUITEM( menu, ID_POPUP_CANCEL_CURRENT_COMMAND, _( "Cancel Block" ), cancel_xpm );
ADD_MENUITEM( menu, ID_POPUP_ZOOM_BLOCK, _( "Zoom Block" ), zoom_selected_xpm ); ADD_MENUITEM( menu, ID_POPUP_ZOOM_BLOCK, _( "Zoom Block" ), zoom_area_xpm );
menu->AppendSeparator(); menu->AppendSeparator();
ADD_MENUITEM( menu, ID_POPUP_PLACE_BLOCK, _( "Place Block" ), apply_xpm ); ADD_MENUITEM( menu, ID_POPUP_PLACE_BLOCK, _( "Place Block" ), apply_xpm );
ADD_MENUITEM( menu, ID_POPUP_COPY_BLOCK, _( "Copy Block" ), copyblock_xpm ); ADD_MENUITEM( menu, ID_POPUP_COPY_BLOCK, _( "Copy Block" ), copyblock_xpm );
......
...@@ -102,7 +102,7 @@ void WinEDA_ModuleEditFrame::ReCreateHToolbar() ...@@ -102,7 +102,7 @@ void WinEDA_ModuleEditFrame::ReCreateHToolbar()
m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, wxBitmap( zoom_redraw_xpm ), msg ); m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, wxBitmap( zoom_redraw_xpm ), msg );
msg = AddHotkeyName( _( "Zoom auto" ), g_Module_Editor_Hokeys_Descr, HK_ZOOM_AUTO, false ); msg = AddHotkeyName( _( "Zoom auto" ), g_Module_Editor_Hokeys_Descr, HK_ZOOM_AUTO, false );
m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_auto_xpm ), msg ); m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_fit_in_page_xpm ), msg );
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
m_HToolBar->AddTool( ID_MODEDIT_PAD_SETTINGS, wxEmptyString, wxBitmap( options_pad_xpm ), m_HToolBar->AddTool( ID_MODEDIT_PAD_SETTINGS, wxEmptyString, wxBitmap( options_pad_xpm ),
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment