Mercurial > hg > octave-lyh
diff libgui/src/main-window.h @ 16566:662a712b8fd5
partial menu bar cleanup
* file-editor-interface.h (file_editor_interface::request_new_script,
file_editor_interface::request_new_function): New functions.
* file-editor.h, file-editor.cc (file_editor::request_new_script,
file_editor::request_new_function): New functions.
* main-window.h, main-window.cc (main_window::construct_desktop_menu):
Delete function and all uses.
(main_window::handle_new_figure_request,
main_window::handle_new_variable_request,
main_window::new_figure_callback): New functions.
(main_window::construct_file_menu, main_window::construct_edit_menu):
Delete close_command_window_action, import_data_action,
page_setup_action, print_action, print_selection_action,
new_class_action, new_enumeration_action, new_gui_action,
paste_to_workspace_action, find_action. Move load_workspace_action to
file_menu.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 25 Apr 2013 02:42:45 -0400 |
parents | e4b94abfeb96 |
children | d5ae5aa80d42 |
line wrap: on
line diff
--- a/libgui/src/main-window.h +++ b/libgui/src/main-window.h @@ -111,6 +111,10 @@ void handle_command_double_clicked (const QString& command); + 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); @@ -164,7 +168,6 @@ const QString& item, const QKeySequence& key); void construct_debug_menu (QMenuBar *p); - void construct_desktop_menu (QMenuBar *p); QAction *construct_window_menu_item (QMenu *p, const QString& item, bool checkable, const QKeySequence& key); @@ -192,6 +195,8 @@ void clear_history_callback (void); + void new_figure_callback (void); + void change_directory_callback (const std::string& directory); void debug_continue_callback (void);