Browse Source

Disable Flip board view in Legacy mode (because the view cannot be flipped)

pull/3/merge
jean-pierre charras 9 years ago
parent
commit
188d7812ec
  1. 4
      pcbnew/menubar_pcbframe.cpp
  2. 3
      pcbnew/pcbframe.cpp

4
pcbnew/menubar_pcbframe.cpp

@ -369,9 +369,11 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
viewMenu->AppendSeparator();
AddMenuItem( viewMenu, ID_MENU_PCB_FLIP_VIEW,
_( "&Flip View" ), _( "Flips (mirrors) the board view." ),
_( "&Flip Board View" ),
_( "Flips (mirrors) the board view" ),
KiBitmap( flip_board_xpm ), wxITEM_CHECK );
viewMenu->AppendSeparator();
text = AddHotkeyName( _( "&Switch Canvas to Legacy" ), g_Pcbnew_Editor_Hokeys_Descr,

3
pcbnew/pcbframe.cpp

@ -717,7 +717,8 @@ void PCB_EDIT_FRAME::enableGALSpecificMenus()
ID_TUNE_SINGLE_TRACK_LEN_BUTT,
ID_TUNE_DIFF_PAIR_LEN_BUTT,
ID_TUNE_DIFF_PAIR_SKEW_BUTT,
ID_MENU_DIFF_PAIR_DIMENSIONS
ID_MENU_DIFF_PAIR_DIMENSIONS,
ID_MENU_PCB_FLIP_VIEW
};
bool enbl = IsGalCanvasActive();

Loading…
Cancel
Save