# HG changeset patch # User John W. Eaton # Date 1368392226 14400 # Node ID e3a0ca9c883627c03e53a713d533ab9dcb5f77f5 # Parent 64f9a3e301d3fdb47e56ebe9f679df2adf3b046d eliminate unimplemented New -> Variable menu item * main-window.h, main-window.cc (main_window::construct_new_menu): Remove new variable menu item. (main_window::handle_new_variable_request): Delete. diff -r 64f9a3e301d3 -r e3a0ca9c8836 libgui/src/main-window.cc --- a/libgui/src/main-window.cc Sun May 12 16:17:48 2013 -0400 +++ b/libgui/src/main-window.cc Sun May 12 16:57:06 2013 -0400 @@ -215,13 +215,6 @@ } void -main_window::handle_new_variable_request (void) -{ - QMessageBox::about (this, tr ("New Variable"), - tr ("The new variable action is not implemented.")); -} - -void main_window::open_online_documentation_page (void) { QDesktopServices::openUrl (QUrl ("http://gnu.org/software/octave/doc/interpreter")); @@ -1010,9 +1003,6 @@ QAction *new_figure_action = new_menu->addAction (tr ("Figure")); new_figure_action->setEnabled (true); - QAction *new_variable_action = new_menu->addAction (tr ("Variable")); - new_variable_action->setEnabled (true); - connect (_new_script_action, SIGNAL (triggered ()), editor_window, SLOT (request_new_script ())); @@ -1021,9 +1011,6 @@ connect (new_figure_action, SIGNAL (triggered ()), this, SLOT (handle_new_figure_request ())); - - connect (new_variable_action, SIGNAL (triggered ()), - this, SLOT (handle_new_variable_request ())); } void diff -r 64f9a3e301d3 -r e3a0ca9c8836 libgui/src/main-window.h --- a/libgui/src/main-window.h Sun May 12 16:17:48 2013 -0400 +++ b/libgui/src/main-window.h Sun May 12 16:57:06 2013 -0400 @@ -120,8 +120,6 @@ void handle_new_figure_request (void); - void handle_new_variable_request (void); - void handle_enter_debugger (void); void handle_exit_debugger (void); void debug_continue (void);