|
|
@ -26,18 +26,17 @@ |
|
|
void SCH_EDIT_FRAME::ReCreateMenuBar() |
|
|
void SCH_EDIT_FRAME::ReCreateMenuBar() |
|
|
{ |
|
|
{ |
|
|
// Create and try to get the current menubar
|
|
|
// Create and try to get the current menubar
|
|
|
wxString text; |
|
|
|
|
|
wxMenuItem* item; |
|
|
|
|
|
wxMenuBar* menuBar = GetMenuBar(); |
|
|
|
|
|
|
|
|
wxString text; |
|
|
|
|
|
wxMenuBar* menuBar = GetMenuBar(); |
|
|
|
|
|
|
|
|
if( ! menuBar ) |
|
|
|
|
|
|
|
|
if( !menuBar ) |
|
|
menuBar = new wxMenuBar(); |
|
|
menuBar = new wxMenuBar(); |
|
|
|
|
|
|
|
|
// Delete all existing menus so they can be rebuilt.
|
|
|
// Delete all existing menus so they can be rebuilt.
|
|
|
// This allows language changes of the menu text on the fly.
|
|
|
// This allows language changes of the menu text on the fly.
|
|
|
menuBar->Freeze(); |
|
|
menuBar->Freeze(); |
|
|
while( menuBar->GetMenuCount() ) |
|
|
while( menuBar->GetMenuCount() ) |
|
|
delete menuBar->Remove(0); |
|
|
|
|
|
|
|
|
delete menuBar->Remove( 0 ); |
|
|
|
|
|
|
|
|
// Recreate all menus:
|
|
|
// Recreate all menus:
|
|
|
|
|
|
|
|
|
@ -45,23 +44,22 @@ void SCH_EDIT_FRAME::ReCreateMenuBar() |
|
|
wxMenu* fileMenu = new wxMenu; |
|
|
wxMenu* fileMenu = new wxMenu; |
|
|
|
|
|
|
|
|
// New
|
|
|
// New
|
|
|
item = new wxMenuItem( fileMenu, |
|
|
|
|
|
ID_NEW_PROJECT, |
|
|
|
|
|
_( "&New\tCtrl+N" ), |
|
|
|
|
|
_( "New schematic project" ) ); |
|
|
|
|
|
SET_BITMAP( new_xpm ); |
|
|
|
|
|
fileMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( fileMenu, |
|
|
|
|
|
ID_NEW_PROJECT, |
|
|
|
|
|
_( "&New\tCtrl+N" ), |
|
|
|
|
|
_( "New schematic project" ), |
|
|
|
|
|
new_xpm ); |
|
|
|
|
|
|
|
|
// Open
|
|
|
// Open
|
|
|
item = new wxMenuItem( fileMenu, |
|
|
|
|
|
ID_LOAD_PROJECT, |
|
|
|
|
|
_( "&Open\tCtrl+O" ), |
|
|
|
|
|
_( "Open an existing schematic project" ) ); |
|
|
|
|
|
SET_BITMAP( open_document_xpm ); |
|
|
|
|
|
fileMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( fileMenu, |
|
|
|
|
|
ID_LOAD_PROJECT, |
|
|
|
|
|
_( "&Open\tCtrl+O" ), |
|
|
|
|
|
_( "Open an existing schematic project" ), |
|
|
|
|
|
open_document_xpm ); |
|
|
|
|
|
|
|
|
// Open Recent submenu
|
|
|
// Open Recent submenu
|
|
|
static wxMenu* openRecentMenu; |
|
|
static wxMenu* openRecentMenu; |
|
|
|
|
|
|
|
|
// Add this menu to list menu managed by m_fileHistory
|
|
|
// Add this menu to list menu managed by m_fileHistory
|
|
|
// (the file history will be updated when adding/removing files in history
|
|
|
// (the file history will be updated when adding/removing files in history
|
|
|
if( openRecentMenu ) |
|
|
if( openRecentMenu ) |
|
|
@ -73,105 +71,97 @@ void SCH_EDIT_FRAME::ReCreateMenuBar() |
|
|
wxID_ANY, _( "Open &Recent" ), |
|
|
wxID_ANY, _( "Open &Recent" ), |
|
|
_( "Open a recent opened schematic project" ), |
|
|
_( "Open a recent opened schematic project" ), |
|
|
open_project_xpm ); |
|
|
open_project_xpm ); |
|
|
|
|
|
|
|
|
// Separator
|
|
|
// Separator
|
|
|
fileMenu->AppendSeparator(); |
|
|
fileMenu->AppendSeparator(); |
|
|
|
|
|
|
|
|
// Save schematic project
|
|
|
// Save schematic project
|
|
|
item = new wxMenuItem( fileMenu, |
|
|
|
|
|
ID_SAVE_PROJECT, |
|
|
|
|
|
_( "&Save Whole Schematic Project\tCtrl+S" ), |
|
|
|
|
|
_( "Save all sheets in the schematic project" ) ); |
|
|
|
|
|
SET_BITMAP( save_project_xpm ); |
|
|
|
|
|
fileMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( fileMenu, |
|
|
|
|
|
ID_SAVE_PROJECT, |
|
|
|
|
|
_( "&Save Whole Schematic Project\tCtrl+S" ), |
|
|
|
|
|
_( "Save all sheets in the schematic project" ), |
|
|
|
|
|
save_project_xpm ); |
|
|
|
|
|
|
|
|
// Save current sheet
|
|
|
// Save current sheet
|
|
|
item = new wxMenuItem( fileMenu, |
|
|
|
|
|
ID_SAVE_ONE_SHEET, |
|
|
|
|
|
_( "Save &Current Sheet Only" ), |
|
|
|
|
|
_( "Save only current schematic sheet" ) ); |
|
|
|
|
|
SET_BITMAP( save_xpm ); |
|
|
|
|
|
fileMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( fileMenu, |
|
|
|
|
|
ID_SAVE_ONE_SHEET, |
|
|
|
|
|
_( "Save &Current Sheet Only" ), |
|
|
|
|
|
_( "Save only current schematic sheet" ), |
|
|
|
|
|
save_xpm ); |
|
|
|
|
|
|
|
|
// Save current sheet as
|
|
|
// Save current sheet as
|
|
|
item = new wxMenuItem( fileMenu, |
|
|
|
|
|
ID_SAVE_ONE_SHEET_AS, |
|
|
|
|
|
_( "Save Current Sheet &as" ), |
|
|
|
|
|
_( "Save current schematic sheet as..." ) ); |
|
|
|
|
|
SET_BITMAP( save_as_xpm ); |
|
|
|
|
|
fileMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( fileMenu, |
|
|
|
|
|
ID_SAVE_ONE_SHEET_AS, |
|
|
|
|
|
_( "Save Current Sheet &as" ), |
|
|
|
|
|
_( "Save current schematic sheet as..." ), |
|
|
|
|
|
save_as_xpm ); |
|
|
|
|
|
|
|
|
// Separator
|
|
|
// Separator
|
|
|
fileMenu->AppendSeparator(); |
|
|
fileMenu->AppendSeparator(); |
|
|
|
|
|
|
|
|
// Print
|
|
|
// Print
|
|
|
item = new wxMenuItem( fileMenu, |
|
|
|
|
|
wxID_PRINT, |
|
|
|
|
|
_( "P&rint" ), |
|
|
|
|
|
_( "Print schematic" ) ); |
|
|
|
|
|
SET_BITMAP( print_button ); |
|
|
|
|
|
fileMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( fileMenu, |
|
|
|
|
|
wxID_PRINT, |
|
|
|
|
|
_( "P&rint" ), |
|
|
|
|
|
_( "Print schematic" ), |
|
|
|
|
|
print_button ); |
|
|
|
|
|
|
|
|
// Plot submenu
|
|
|
// Plot submenu
|
|
|
wxMenu* choice_plot_fmt = new wxMenu; |
|
|
wxMenu* choice_plot_fmt = new wxMenu; |
|
|
|
|
|
|
|
|
// Plot PostScript
|
|
|
// Plot PostScript
|
|
|
item = new wxMenuItem( choice_plot_fmt, ID_GEN_PLOT_PS, |
|
|
|
|
|
_( "Plot PostScript" ), |
|
|
|
|
|
_( "Plot schematic sheet in PostScript format" ) ); |
|
|
|
|
|
SET_BITMAP( plot_PS_xpm ); |
|
|
|
|
|
choice_plot_fmt->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( choice_plot_fmt, ID_GEN_PLOT_PS, |
|
|
|
|
|
_( "Plot PostScript" ), |
|
|
|
|
|
_( "Plot schematic sheet in PostScript format" ), |
|
|
|
|
|
plot_PS_xpm ); |
|
|
|
|
|
|
|
|
// Plot HPGL
|
|
|
// Plot HPGL
|
|
|
item = new wxMenuItem( choice_plot_fmt, |
|
|
|
|
|
ID_GEN_PLOT_HPGL, |
|
|
|
|
|
_( "Plot HPGL" ), |
|
|
|
|
|
_( "Plot schematic sheet in HPGL format" ) ); |
|
|
|
|
|
SET_BITMAP( plot_HPG_xpm ); |
|
|
|
|
|
choice_plot_fmt->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( choice_plot_fmt, |
|
|
|
|
|
ID_GEN_PLOT_HPGL, |
|
|
|
|
|
_( "Plot HPGL" ), |
|
|
|
|
|
_( "Plot schematic sheet in HPGL format" ), |
|
|
|
|
|
plot_HPG_xpm ); |
|
|
|
|
|
|
|
|
// Plot SVG
|
|
|
// Plot SVG
|
|
|
item = new wxMenuItem( choice_plot_fmt, |
|
|
|
|
|
ID_GEN_PLOT_SVG, |
|
|
|
|
|
_( "Plot SVG" ), |
|
|
|
|
|
_( "Plot schematic sheet in SVG format" ) ); |
|
|
|
|
|
SET_BITMAP( plot_xpm ); |
|
|
|
|
|
choice_plot_fmt->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( choice_plot_fmt, |
|
|
|
|
|
ID_GEN_PLOT_SVG, |
|
|
|
|
|
_( "Plot SVG" ), |
|
|
|
|
|
_( "Plot schematic sheet in SVG format" ), |
|
|
|
|
|
plot_xpm ); |
|
|
|
|
|
|
|
|
// Plot DXF
|
|
|
// Plot DXF
|
|
|
item = new wxMenuItem( choice_plot_fmt, |
|
|
|
|
|
ID_GEN_PLOT_DXF, |
|
|
|
|
|
_( "Plot DXF" ), |
|
|
|
|
|
_( "Plot schematic sheet in DXF format" ) ); |
|
|
|
|
|
SET_BITMAP( plot_xpm ); |
|
|
|
|
|
choice_plot_fmt->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( choice_plot_fmt, |
|
|
|
|
|
ID_GEN_PLOT_DXF, |
|
|
|
|
|
_( "Plot DXF" ), |
|
|
|
|
|
_( "Plot schematic sheet in DXF format" ), |
|
|
|
|
|
plot_xpm ); |
|
|
|
|
|
|
|
|
// Plot to Clipboard (Windows only)
|
|
|
// Plot to Clipboard (Windows only)
|
|
|
#ifdef __WINDOWS__
|
|
|
#ifdef __WINDOWS__
|
|
|
|
|
|
|
|
|
item = new wxMenuItem( choice_plot_fmt, ID_GEN_COPY_SHEET_TO_CLIPBOARD, |
|
|
|
|
|
_( "Plot to Clipboard" ), |
|
|
|
|
|
_( "Export drawings to clipboard" ) ); |
|
|
|
|
|
SET_BITMAP( copy_button ); |
|
|
|
|
|
choice_plot_fmt->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( choice_plot_fmt, ID_GEN_COPY_SHEET_TO_CLIPBOARD, |
|
|
|
|
|
_( "Plot to Clipboard" ), |
|
|
|
|
|
_( "Export drawings to clipboard" ), |
|
|
|
|
|
copy_button ); |
|
|
|
|
|
|
|
|
#endif // __WINDOWS__
|
|
|
#endif // __WINDOWS__
|
|
|
|
|
|
|
|
|
// Plot submenu
|
|
|
// Plot submenu
|
|
|
ADD_MENUITEM_WITH_HELP_AND_SUBMENU( fileMenu, choice_plot_fmt, |
|
|
ADD_MENUITEM_WITH_HELP_AND_SUBMENU( fileMenu, choice_plot_fmt, |
|
|
ID_GEN_PLOT, _( "&Plot" ), |
|
|
ID_GEN_PLOT, _( "&Plot" ), |
|
|
_( "Plot schematic sheet in HPGL, PostScript or SVG format" ), |
|
|
|
|
|
|
|
|
_( |
|
|
|
|
|
"Plot schematic sheet in HPGL, PostScript or SVG format" ), |
|
|
plot_xpm ); |
|
|
plot_xpm ); |
|
|
|
|
|
|
|
|
// Separator
|
|
|
// Separator
|
|
|
fileMenu->AppendSeparator(); |
|
|
fileMenu->AppendSeparator(); |
|
|
|
|
|
|
|
|
// Quit
|
|
|
// Quit
|
|
|
item = new wxMenuItem( fileMenu, |
|
|
|
|
|
wxID_EXIT, |
|
|
|
|
|
_( "&Quit" ), |
|
|
|
|
|
_( "Quit EESchema" ) ); |
|
|
|
|
|
SET_BITMAP( exit_xpm ); |
|
|
|
|
|
fileMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( fileMenu, |
|
|
|
|
|
wxID_EXIT, |
|
|
|
|
|
_( "&Quit" ), |
|
|
|
|
|
_( "Quit EESchema" ), |
|
|
|
|
|
exit_xpm ); |
|
|
|
|
|
|
|
|
// Menu Edit:
|
|
|
// Menu Edit:
|
|
|
wxMenu* editMenu = new wxMenu; |
|
|
wxMenu* editMenu = new wxMenu; |
|
|
@ -179,44 +169,39 @@ void SCH_EDIT_FRAME::ReCreateMenuBar() |
|
|
// Undo
|
|
|
// Undo
|
|
|
text = AddHotkeyName( _( "Undo" ), s_Schematic_Hokeys_Descr, HK_UNDO ); |
|
|
text = AddHotkeyName( _( "Undo" ), s_Schematic_Hokeys_Descr, HK_UNDO ); |
|
|
|
|
|
|
|
|
item = new wxMenuItem( editMenu, wxID_UNDO, text, HELP_UNDO, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( undo_xpm ); |
|
|
|
|
|
editMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( editMenu, wxID_UNDO, text, HELP_UNDO, |
|
|
|
|
|
undo_xpm ); |
|
|
|
|
|
|
|
|
// Redo
|
|
|
// Redo
|
|
|
text = AddHotkeyName( _( "Redo" ), s_Schematic_Hokeys_Descr, HK_REDO ); |
|
|
text = AddHotkeyName( _( "Redo" ), s_Schematic_Hokeys_Descr, HK_REDO ); |
|
|
|
|
|
|
|
|
item = new wxMenuItem( editMenu, wxID_REDO, text, HELP_REDO, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( redo_xpm ); |
|
|
|
|
|
editMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( editMenu, wxID_REDO, text, HELP_REDO, |
|
|
|
|
|
redo_xpm ); |
|
|
|
|
|
|
|
|
// Delete
|
|
|
// Delete
|
|
|
editMenu->AppendSeparator(); |
|
|
editMenu->AppendSeparator(); |
|
|
item = new wxMenuItem( editMenu, ID_SCHEMATIC_DELETE_ITEM_BUTT, |
|
|
|
|
|
_( "Delete" ), HELP_DELETE_ITEMS, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( delete_body_xpm ); |
|
|
|
|
|
editMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( editMenu, ID_SCHEMATIC_DELETE_ITEM_BUTT, |
|
|
|
|
|
_( "Delete" ), HELP_DELETE_ITEMS, |
|
|
|
|
|
delete_body_xpm ); |
|
|
|
|
|
|
|
|
// Separator
|
|
|
// Separator
|
|
|
editMenu->AppendSeparator(); |
|
|
editMenu->AppendSeparator(); |
|
|
|
|
|
|
|
|
// Find
|
|
|
// Find
|
|
|
text = AddHotkeyName( _( "&Find" ), s_Schematic_Hokeys_Descr, HK_FIND_ITEM ); |
|
|
text = AddHotkeyName( _( "&Find" ), s_Schematic_Hokeys_Descr, HK_FIND_ITEM ); |
|
|
item = new wxMenuItem( editMenu, ID_FIND_ITEMS, text, HELP_FIND, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( find_xpm ); |
|
|
|
|
|
editMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( editMenu, ID_FIND_ITEMS, text, HELP_FIND, |
|
|
|
|
|
find_xpm ); |
|
|
|
|
|
|
|
|
// Separator
|
|
|
// Separator
|
|
|
editMenu->AppendSeparator(); |
|
|
editMenu->AppendSeparator(); |
|
|
|
|
|
|
|
|
// Backannotate
|
|
|
// Backannotate
|
|
|
item = new wxMenuItem( editMenu, |
|
|
|
|
|
ID_BACKANNO_ITEMS, |
|
|
|
|
|
_( "Backannotate" ), |
|
|
|
|
|
_( "Back annotated footprint fields" ), |
|
|
|
|
|
wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( backanno_xpm ); |
|
|
|
|
|
editMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( editMenu, |
|
|
|
|
|
ID_BACKANNO_ITEMS, |
|
|
|
|
|
_( "Backannotate" ), |
|
|
|
|
|
_( "Back annotated footprint fields" ), |
|
|
|
|
|
|
|
|
|
|
|
backanno_xpm ); |
|
|
|
|
|
|
|
|
// Menu View:
|
|
|
// Menu View:
|
|
|
wxMenu* viewMenu = new wxMenu; |
|
|
wxMenu* viewMenu = new wxMenu; |
|
|
@ -239,32 +224,28 @@ void SCH_EDIT_FRAME::ReCreateMenuBar() |
|
|
// Zoom in
|
|
|
// Zoom in
|
|
|
text = AddHotkeyName( _( "Zoom In" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Zoom In" ), s_Schematic_Hokeys_Descr, |
|
|
ID_ZOOM_IN, false ); // add comment, not a shortcut
|
|
|
ID_ZOOM_IN, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( viewMenu, ID_ZOOM_IN, text, HELP_ZOOM_IN, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( zoom_in_xpm ); |
|
|
|
|
|
viewMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( viewMenu, ID_ZOOM_IN, text, HELP_ZOOM_IN, |
|
|
|
|
|
zoom_in_xpm ); |
|
|
|
|
|
|
|
|
// Zoom out
|
|
|
// Zoom out
|
|
|
text = AddHotkeyName( _( "Zoom Out" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Zoom Out" ), s_Schematic_Hokeys_Descr, |
|
|
ID_ZOOM_OUT, false ); // add comment, not a shortcut
|
|
|
ID_ZOOM_OUT, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( viewMenu, ID_ZOOM_OUT, text, HELP_ZOOM_OUT, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( zoom_out_xpm ); |
|
|
|
|
|
viewMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( viewMenu, ID_ZOOM_OUT, text, HELP_ZOOM_OUT, |
|
|
|
|
|
zoom_out_xpm ); |
|
|
|
|
|
|
|
|
// 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 ); |
|
|
|
|
|
SET_BITMAP( zoom_fit_in_page_xpm ); |
|
|
|
|
|
viewMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( viewMenu, ID_ZOOM_PAGE, text, HELP_ZOOM_FIT, |
|
|
|
|
|
zoom_fit_in_page_xpm ); |
|
|
|
|
|
|
|
|
// Separator
|
|
|
// Separator
|
|
|
viewMenu->AppendSeparator(); |
|
|
viewMenu->AppendSeparator(); |
|
|
|
|
|
|
|
|
// Redraw
|
|
|
// Redraw
|
|
|
text = AddHotkeyName( _( "Redraw" ), s_Schematic_Hokeys_Descr, HK_ZOOM_REDRAW ); |
|
|
text = AddHotkeyName( _( "Redraw" ), s_Schematic_Hokeys_Descr, HK_ZOOM_REDRAW ); |
|
|
item = new wxMenuItem( viewMenu, ID_ZOOM_REDRAW, text, HELP_ZOOM_REDRAW, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( zoom_redraw_xpm ); |
|
|
|
|
|
viewMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( viewMenu, ID_ZOOM_REDRAW, text, HELP_ZOOM_REDRAW, |
|
|
|
|
|
zoom_redraw_xpm ); |
|
|
|
|
|
|
|
|
// Menu place:
|
|
|
// Menu place:
|
|
|
// @todo unify IDs
|
|
|
// @todo unify IDs
|
|
|
@ -273,90 +254,80 @@ void SCH_EDIT_FRAME::ReCreateMenuBar() |
|
|
// Component
|
|
|
// Component
|
|
|
text = AddHotkeyName( _( "Component" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Component" ), s_Schematic_Hokeys_Descr, |
|
|
HK_ADD_NEW_COMPONENT, false ); // add comment, not a shortcut
|
|
|
HK_ADD_NEW_COMPONENT, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( placeMenu, ID_SCH_PLACE_COMPONENT, text, |
|
|
|
|
|
HELP_PLACE_COMPONENTS, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( add_component_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_SCH_PLACE_COMPONENT, text, |
|
|
|
|
|
HELP_PLACE_COMPONENTS, |
|
|
|
|
|
add_component_xpm ); |
|
|
|
|
|
|
|
|
// Power port
|
|
|
// Power port
|
|
|
text = AddHotkeyName( _( "Power port" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Power port" ), s_Schematic_Hokeys_Descr, |
|
|
HK_ADD_NEW_POWER, false ); // add comment, not a shortcut
|
|
|
HK_ADD_NEW_POWER, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( placeMenu, ID_PLACE_POWER_BUTT, text, |
|
|
|
|
|
HELP_PLACE_POWERPORT, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( add_power_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_PLACE_POWER_BUTT, text, |
|
|
|
|
|
HELP_PLACE_POWERPORT, |
|
|
|
|
|
add_power_xpm ); |
|
|
|
|
|
|
|
|
// Wire
|
|
|
// Wire
|
|
|
text = AddHotkeyName( _( "Wire" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Wire" ), s_Schematic_Hokeys_Descr, |
|
|
HK_BEGIN_WIRE, false ); // add comment, not a shortcut
|
|
|
HK_BEGIN_WIRE, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( placeMenu, ID_WIRE_BUTT, text, |
|
|
|
|
|
HELP_PLACE_WIRE, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( add_line_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_WIRE_BUTT, text, |
|
|
|
|
|
HELP_PLACE_WIRE, |
|
|
|
|
|
add_line_xpm ); |
|
|
|
|
|
|
|
|
// Bus
|
|
|
// Bus
|
|
|
text = AddHotkeyName( _( "Bus" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Bus" ), s_Schematic_Hokeys_Descr, |
|
|
HK_BEGIN_BUS, false ); // add comment, not a shortcut
|
|
|
HK_BEGIN_BUS, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( placeMenu, ID_BUS_BUTT, text, |
|
|
|
|
|
HELP_PLACE_BUS, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( add_bus_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_BUS_BUTT, text, |
|
|
|
|
|
HELP_PLACE_BUS, |
|
|
|
|
|
add_bus_xpm ); |
|
|
|
|
|
|
|
|
// Wire to Bus entry
|
|
|
// Wire to Bus entry
|
|
|
text = AddHotkeyName( _( "Wire to bus entry" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Wire to bus entry" ), s_Schematic_Hokeys_Descr, |
|
|
HK_ADD_WIRE_ENTRY, false ); // add comment, not a shortcut
|
|
|
HK_ADD_WIRE_ENTRY, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( placeMenu, ID_WIRETOBUS_ENTRY_BUTT, text, |
|
|
|
|
|
HELP_PLACE_WIRE2BUS_ENTRY, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( add_line2bus_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_WIRETOBUS_ENTRY_BUTT, text, |
|
|
|
|
|
HELP_PLACE_WIRE2BUS_ENTRY, |
|
|
|
|
|
add_line2bus_xpm ); |
|
|
|
|
|
|
|
|
// Bus to Bus entry
|
|
|
// Bus to Bus entry
|
|
|
text = AddHotkeyName( _( "Bus to bus entry" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Bus to bus entry" ), s_Schematic_Hokeys_Descr, |
|
|
HK_ADD_BUS_ENTRY, false ); // add comment, not a shortcut
|
|
|
HK_ADD_BUS_ENTRY, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( placeMenu, ID_BUSTOBUS_ENTRY_BUTT, text, |
|
|
|
|
|
HELP_PLACE_BUS2BUS_ENTRY, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( add_bus2bus_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_BUSTOBUS_ENTRY_BUTT, text, |
|
|
|
|
|
HELP_PLACE_BUS2BUS_ENTRY, |
|
|
|
|
|
add_bus2bus_xpm ); |
|
|
|
|
|
|
|
|
// No connect flag
|
|
|
// No connect flag
|
|
|
text = AddHotkeyName( _( "No connect flag" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "No connect flag" ), s_Schematic_Hokeys_Descr, |
|
|
HK_ADD_NOCONN_FLAG, false ); // add comment, not a shortcut
|
|
|
HK_ADD_NOCONN_FLAG, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( placeMenu, ID_NOCONN_BUTT, text, HELP_PLACE_NC_FLAG, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( noconn_button ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_NOCONN_BUTT, text, HELP_PLACE_NC_FLAG, |
|
|
|
|
|
noconn_button ); |
|
|
|
|
|
|
|
|
// Net name
|
|
|
// Net name
|
|
|
text = AddHotkeyName( _( "Label" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Label" ), s_Schematic_Hokeys_Descr, |
|
|
HK_ADD_LABEL, false ); // add comment, not a shortcut
|
|
|
HK_ADD_LABEL, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( placeMenu, ID_LABEL_BUTT, text, |
|
|
|
|
|
HELP_PLACE_NETLABEL, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( add_line_label_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_LABEL_BUTT, text, |
|
|
|
|
|
HELP_PLACE_NETLABEL, |
|
|
|
|
|
add_line_label_xpm ); |
|
|
|
|
|
|
|
|
// Global label
|
|
|
// Global label
|
|
|
text = AddHotkeyName( _( "Global label" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Global label" ), s_Schematic_Hokeys_Descr, |
|
|
HK_ADD_GLABEL, false ); // add comment, not a shortcut
|
|
|
HK_ADD_GLABEL, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( placeMenu, ID_GLABEL_BUTT, text, |
|
|
|
|
|
HELP_PLACE_GLOBALLABEL, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( add_glabel_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_GLABEL_BUTT, text, |
|
|
|
|
|
HELP_PLACE_GLOBALLABEL, |
|
|
|
|
|
add_glabel_xpm ); |
|
|
|
|
|
|
|
|
// Junction
|
|
|
// Junction
|
|
|
text = AddHotkeyName( _( "Junction" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Junction" ), s_Schematic_Hokeys_Descr, |
|
|
HK_ADD_JUNCTION, false ); // add comment, not a shortcut
|
|
|
HK_ADD_JUNCTION, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( placeMenu, ID_JUNCTION_BUTT, text, |
|
|
|
|
|
HELP_PLACE_JUNCTION, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( add_junction_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_JUNCTION_BUTT, text, |
|
|
|
|
|
HELP_PLACE_JUNCTION, |
|
|
|
|
|
add_junction_xpm ); |
|
|
|
|
|
|
|
|
// Separator
|
|
|
// Separator
|
|
|
placeMenu->AppendSeparator(); |
|
|
placeMenu->AppendSeparator(); |
|
|
|
|
|
|
|
|
// Hierarchical label
|
|
|
// Hierarchical label
|
|
|
text = AddHotkeyName( _( "Hierarchical label" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Hierarchical label" ), s_Schematic_Hokeys_Descr, |
|
|
HK_ADD_HLABEL, false ); // add comment, not a shortcut
|
|
|
|
|
|
|
|
|
HK_ADD_HLABEL, false ); // add comment, not a shortcut
|
|
|
text = AddHotkeyName( _( "Hierarchical label" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Hierarchical label" ), s_Schematic_Hokeys_Descr, |
|
|
HK_ADD_HLABEL, false ); // add comment, not a shortcut
|
|
|
|
|
|
|
|
|
HK_ADD_HLABEL, false ); // add comment, not a shortcut
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_HIERLABEL_BUTT, |
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_HIERLABEL_BUTT, |
|
|
text, HELP_PLACE_HIER_LABEL, |
|
|
text, HELP_PLACE_HIER_LABEL, |
|
|
add_hierarchical_label_xpm ); |
|
|
add_hierarchical_label_xpm ); |
|
|
@ -365,26 +336,23 @@ void SCH_EDIT_FRAME::ReCreateMenuBar() |
|
|
// Hierarchical sheet
|
|
|
// Hierarchical sheet
|
|
|
text = AddHotkeyName( _( "Hierarchical sheet" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Hierarchical sheet" ), s_Schematic_Hokeys_Descr, |
|
|
HK_ADD_HIER_SHEET, false ); // add comment, not a shortcut
|
|
|
HK_ADD_HIER_SHEET, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( placeMenu, ID_SHEET_SYMBOL_BUTT, text, |
|
|
|
|
|
HELP_PLACE_SHEET, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( add_hierarchical_subsheet_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_SHEET_SYMBOL_BUTT, text, |
|
|
|
|
|
HELP_PLACE_SHEET, |
|
|
|
|
|
add_hierarchical_subsheet_xpm ); |
|
|
|
|
|
|
|
|
// Import hierarchical sheet
|
|
|
// Import hierarchical sheet
|
|
|
item = new wxMenuItem( placeMenu, |
|
|
|
|
|
ID_IMPORT_HLABEL_BUTT, |
|
|
|
|
|
_( "Import Hierarchical Label" ), |
|
|
|
|
|
HELP_IMPORT_SHEETPIN, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( import_hierarchical_label_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, |
|
|
|
|
|
ID_IMPORT_HLABEL_BUTT, |
|
|
|
|
|
_( "Import Hierarchical Label" ), |
|
|
|
|
|
HELP_IMPORT_SHEETPIN, |
|
|
|
|
|
import_hierarchical_label_xpm ); |
|
|
|
|
|
|
|
|
// Add hierarchical Pin to Sheet
|
|
|
// Add hierarchical Pin to Sheet
|
|
|
item = new wxMenuItem( placeMenu, |
|
|
|
|
|
ID_SHEET_PIN_BUTT, |
|
|
|
|
|
_( "Add Hierarchical Pin to Sheet" ), |
|
|
|
|
|
HELP_PLACE_SHEETPIN, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( add_hierar_pin_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, |
|
|
|
|
|
ID_SHEET_PIN_BUTT, |
|
|
|
|
|
_( "Add Hierarchical Pin to Sheet" ), |
|
|
|
|
|
HELP_PLACE_SHEETPIN, |
|
|
|
|
|
add_hierar_pin_xpm ); |
|
|
|
|
|
|
|
|
// Separator
|
|
|
// Separator
|
|
|
placeMenu->AppendSeparator(); |
|
|
placeMenu->AppendSeparator(); |
|
|
@ -392,50 +360,45 @@ void SCH_EDIT_FRAME::ReCreateMenuBar() |
|
|
// Graphic line or polygon
|
|
|
// Graphic line or polygon
|
|
|
text = AddHotkeyName( _( "Graphic polyline" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Graphic polyline" ), s_Schematic_Hokeys_Descr, |
|
|
HK_ADD_GRAPHIC_POLYLINE, false ); // add comment, not a shortcut
|
|
|
HK_ADD_GRAPHIC_POLYLINE, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( placeMenu, ID_LINE_COMMENT_BUTT, text, |
|
|
|
|
|
HELP_PLACE_GRAPHICLINES, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( add_dashed_line_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_LINE_COMMENT_BUTT, text, |
|
|
|
|
|
HELP_PLACE_GRAPHICLINES, |
|
|
|
|
|
add_dashed_line_xpm ); |
|
|
|
|
|
|
|
|
// Graphic text
|
|
|
// Graphic text
|
|
|
text = AddHotkeyName( _( "Graphic text" ), s_Schematic_Hokeys_Descr, |
|
|
text = AddHotkeyName( _( "Graphic text" ), s_Schematic_Hokeys_Descr, |
|
|
HK_ADD_GRAPHIC_TEXT, false ); // add comment, not a shortcut
|
|
|
HK_ADD_GRAPHIC_TEXT, false ); // add comment, not a shortcut
|
|
|
item = new wxMenuItem( placeMenu, ID_TEXT_COMMENT_BUTT, text, |
|
|
|
|
|
HELP_PLACE_GRAPHICTEXTS, wxITEM_NORMAL ); |
|
|
|
|
|
SET_BITMAP( add_text_xpm ); |
|
|
|
|
|
placeMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( placeMenu, ID_TEXT_COMMENT_BUTT, text, |
|
|
|
|
|
HELP_PLACE_GRAPHICTEXTS, |
|
|
|
|
|
add_text_xpm ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Menu Preferences:
|
|
|
// Menu Preferences:
|
|
|
wxMenu* preferencesMenu = new wxMenu; |
|
|
wxMenu* preferencesMenu = new wxMenu; |
|
|
|
|
|
|
|
|
// Library
|
|
|
// Library
|
|
|
item = new wxMenuItem( preferencesMenu, |
|
|
|
|
|
ID_CONFIG_REQ, |
|
|
|
|
|
_( "&Library" ), |
|
|
|
|
|
_( "Library preferences" ) ); |
|
|
|
|
|
SET_BITMAP( library_xpm ); |
|
|
|
|
|
preferencesMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( preferencesMenu, |
|
|
|
|
|
ID_CONFIG_REQ, |
|
|
|
|
|
_( "&Library" ), |
|
|
|
|
|
_( "Library preferences" ), |
|
|
|
|
|
library_xpm ); |
|
|
|
|
|
|
|
|
// Colors
|
|
|
// Colors
|
|
|
item = new wxMenuItem( preferencesMenu, |
|
|
|
|
|
ID_COLORS_SETUP, |
|
|
|
|
|
_( "&Colors" ), |
|
|
|
|
|
_( "Color preferences" ) ); |
|
|
|
|
|
SET_BITMAP( palette_xpm ); |
|
|
|
|
|
preferencesMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( preferencesMenu, |
|
|
|
|
|
ID_COLORS_SETUP, |
|
|
|
|
|
_( "&Colors" ), |
|
|
|
|
|
_( "Color preferences" ), |
|
|
|
|
|
palette_xpm ); |
|
|
|
|
|
|
|
|
// Options (Preferences on WXMAC)
|
|
|
// Options (Preferences on WXMAC)
|
|
|
item = new wxMenuItem( preferencesMenu, |
|
|
|
|
|
wxID_PREFERENCES, |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( preferencesMenu, |
|
|
|
|
|
wxID_PREFERENCES, |
|
|
#ifdef __WXMAC__
|
|
|
#ifdef __WXMAC__
|
|
|
_( "&Preferences..." ), |
|
|
|
|
|
|
|
|
_( "&Preferences..." ), |
|
|
#else
|
|
|
#else
|
|
|
_( "&Options" ), |
|
|
|
|
|
|
|
|
_( "&Options" ), |
|
|
#endif // __WXMAC__
|
|
|
#endif // __WXMAC__
|
|
|
_( "EESchema preferences" ) ); |
|
|
|
|
|
SET_BITMAP( preference_xpm ); |
|
|
|
|
|
preferencesMenu->Append( item ); |
|
|
|
|
|
|
|
|
_( "EESchema preferences" ), |
|
|
|
|
|
preference_xpm ); |
|
|
|
|
|
|
|
|
// Language submenu
|
|
|
// Language submenu
|
|
|
wxGetApp().AddMenuLanguageList( preferencesMenu ); |
|
|
wxGetApp().AddMenuLanguageList( preferencesMenu ); |
|
|
@ -447,20 +410,18 @@ void SCH_EDIT_FRAME::ReCreateMenuBar() |
|
|
preferencesMenu->AppendSeparator(); |
|
|
preferencesMenu->AppendSeparator(); |
|
|
|
|
|
|
|
|
// Save preferences
|
|
|
// Save preferences
|
|
|
item = new wxMenuItem( preferencesMenu, |
|
|
|
|
|
ID_CONFIG_SAVE, |
|
|
|
|
|
_( "&Save preferences" ), |
|
|
|
|
|
_( "Save application preferences" ) ); |
|
|
|
|
|
SET_BITMAP( save_setup_xpm ); |
|
|
|
|
|
preferencesMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( preferencesMenu, |
|
|
|
|
|
ID_CONFIG_SAVE, |
|
|
|
|
|
_( "&Save preferences" ), |
|
|
|
|
|
_( "Save application preferences" ), |
|
|
|
|
|
save_setup_xpm ); |
|
|
|
|
|
|
|
|
// Read preferences
|
|
|
// Read preferences
|
|
|
item = new wxMenuItem( preferencesMenu, |
|
|
|
|
|
ID_CONFIG_READ, |
|
|
|
|
|
_( "&Read preferences" ), |
|
|
|
|
|
_( "Read application preferences" ) ); |
|
|
|
|
|
SET_BITMAP( read_setup_xpm ); |
|
|
|
|
|
preferencesMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( preferencesMenu, |
|
|
|
|
|
ID_CONFIG_READ, |
|
|
|
|
|
_( "&Read preferences" ), |
|
|
|
|
|
_( "Read application preferences" ), |
|
|
|
|
|
read_setup_xpm ); |
|
|
|
|
|
|
|
|
// Help Menu:
|
|
|
// Help Menu:
|
|
|
wxMenu* helpMenu = new wxMenu; |
|
|
wxMenu* helpMenu = new wxMenu; |
|
|
@ -469,28 +430,26 @@ void SCH_EDIT_FRAME::ReCreateMenuBar() |
|
|
AddHelpVersionInfoMenuEntry( helpMenu ); |
|
|
AddHelpVersionInfoMenuEntry( helpMenu ); |
|
|
|
|
|
|
|
|
// Contents
|
|
|
// Contents
|
|
|
item = new wxMenuItem( helpMenu, |
|
|
|
|
|
wxID_HELP, |
|
|
|
|
|
_( "&Contents" ), |
|
|
|
|
|
_( "Open the Eeschema handbook" ) ); |
|
|
|
|
|
SET_BITMAP( online_help_xpm ); |
|
|
|
|
|
helpMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( helpMenu, |
|
|
|
|
|
wxID_HELP, |
|
|
|
|
|
_( "&Contents" ), |
|
|
|
|
|
_( "Open the Eeschema handbook" ), |
|
|
|
|
|
online_help_xpm ); |
|
|
|
|
|
|
|
|
// About EESchema
|
|
|
// About EESchema
|
|
|
item = new wxMenuItem( helpMenu, |
|
|
|
|
|
wxID_ABOUT, |
|
|
|
|
|
_( "&About EESchema" ), |
|
|
|
|
|
_( "About EESchema schematic designer" ) ); |
|
|
|
|
|
SET_BITMAP( info_xpm ); |
|
|
|
|
|
helpMenu->Append( item ); |
|
|
|
|
|
|
|
|
ADD_MENUITEM_WITH_HELP( helpMenu, |
|
|
|
|
|
wxID_ABOUT, |
|
|
|
|
|
_( "&About EESchema" ), |
|
|
|
|
|
_( "About EESchema schematic designer" ), |
|
|
|
|
|
info_xpm ); |
|
|
|
|
|
|
|
|
// Create the menubar and append all submenus
|
|
|
// Create the menubar and append all submenus
|
|
|
menuBar->Append( fileMenu, _( "&File" ) ); |
|
|
|
|
|
menuBar->Append( editMenu, _( "&Edit" ) ); |
|
|
|
|
|
menuBar->Append( viewMenu, _( "&View" ) ); |
|
|
|
|
|
menuBar->Append( placeMenu, _( "&Place" ) ); |
|
|
|
|
|
|
|
|
menuBar->Append( fileMenu, _( "&File" ) ); |
|
|
|
|
|
menuBar->Append( editMenu, _( "&Edit" ) ); |
|
|
|
|
|
menuBar->Append( viewMenu, _( "&View" ) ); |
|
|
|
|
|
menuBar->Append( placeMenu, _( "&Place" ) ); |
|
|
menuBar->Append( preferencesMenu, _( "&Preferences" ) ); |
|
|
menuBar->Append( preferencesMenu, _( "&Preferences" ) ); |
|
|
menuBar->Append( helpMenu, _( "&Help" ) ); |
|
|
|
|
|
|
|
|
menuBar->Append( helpMenu, _( "&Help" ) ); |
|
|
|
|
|
|
|
|
menuBar->Thaw(); |
|
|
menuBar->Thaw(); |
|
|
|
|
|
|
|
|
|