From 1ae23df0ba46c03f8e2ae86a4e4c615693ba402d Mon Sep 17 00:00:00 2001 From: Baranoviskiy Konstantin Date: Sat, 23 Feb 2013 15:08:28 -0500 Subject: [PATCH] Remove redundant Eeschema plot submenu on platforms that do not support plot to clipboard. --- eeschema/menubar.cpp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/eeschema/menubar.cpp b/eeschema/menubar.cpp index 70726c8e57..32d93a5c35 100644 --- a/eeschema/menubar.cpp +++ b/eeschema/menubar.cpp @@ -36,7 +36,6 @@ #include #include -//#include #include #include #include @@ -145,6 +144,8 @@ void SCH_EDIT_FRAME::ReCreateMenuBar() _( "Print schematic" ), KiBitmap( print_button_xpm ) ); +#ifdef __WINDOWS__ // __WINDOWS__ + // Plot submenu wxMenu* choice_plot_fmt = new wxMenu; AddMenuItem( choice_plot_fmt, ID_GEN_PLOT_SCHEMATIC, @@ -153,21 +154,30 @@ void SCH_EDIT_FRAME::ReCreateMenuBar() KiBitmap( plot_xpm ) ); // Plot to Clipboard (Windows only) -#ifdef __WINDOWS__ + AddMenuItem( choice_plot_fmt, ID_GEN_COPY_SHEET_TO_CLIPBOARD, _( "Plot to &Clipboard" ), _( "Export drawings to clipboard" ), KiBitmap( copy_button_xpm ) ); -#endif // __WINDOWS__ - - // Plot submenu + // Plot AddMenuItem( fileMenu, choice_plot_fmt, ID_GEN_PLOT, _( "&Plot" ), _( "Plot schematic sheet in HPGL, PostScript or SVG format" ), KiBitmap( plot_xpm ) ); +#else // Other + + // Plot + AddMenuItem( fileMenu, + ID_GEN_PLOT_SCHEMATIC, + _( "&Plot" ), + _( "Plot schematic sheet in HPGL, PostScript or SVG format" ), + KiBitmap( plot_xpm ) ); + +#endif + // Separator fileMenu->AppendSeparator();