comparison libgui/src/main-window.h @ 16539:8ea8df0747e9

make undo button and menu item work for command window * main-window.h, main-window.cc (main_window::handle_undo_request, main_window::command_window_undo_callback): New functions. (main_window::construct_edit_menu): Connect _undo_action::triggered to main_window::handle_undo_request. * cmd-edit.h, cmd-edit.cc (command_window::redisplay, command_window::do_redisplay, command_window::undo, command_window::do_undo, gnu_readline::do_redisplay, gnu_readline::do_undo): New functions. * oct-rl-edit.h, oct-rl-edit.c (octave_rl_do_undo): New function.
author John W. Eaton <jwe@octave.org>
date Thu, 18 Apr 2013 03:19:48 -0400
parents e192525236ad
children 6afb29359968
comparison
equal deleted inserted replaced
16538:8e180eac78d0 16539:8ea8df0747e9
87 void handle_clear_command_window_request (void); 87 void handle_clear_command_window_request (void);
88 void handle_clear_workspace_request (void); 88 void handle_clear_workspace_request (void);
89 void handle_clear_history_request (void); 89 void handle_clear_history_request (void);
90 void handle_rename_variable_request (const QString& old_name, 90 void handle_rename_variable_request (const QString& old_name,
91 const QString& new_name); 91 const QString& new_name);
92 void handle_undo_request (void);
92 void new_file (const QString& commands = QString ()); 93 void new_file (const QString& commands = QString ());
93 void open_file (const QString& file_name = QString ()); 94 void open_file (const QString& file_name = QString ());
94 void open_online_documentation_page (void); 95 void open_online_documentation_page (void);
95 void open_bug_tracker_page (void); 96 void open_bug_tracker_page (void);
96 void open_octave_forge_page (void); 97 void open_octave_forge_page (void);
179 180
180 void load_workspace_callback (const std::string& file); 181 void load_workspace_callback (const std::string& file);
181 182
182 void rename_variable_callback (const name_pair& names); 183 void rename_variable_callback (const name_pair& names);
183 184
185 void command_window_undo_callback (void);
186
184 void clear_command_window_callback (void); 187 void clear_command_window_callback (void);
185 188
186 void clear_workspace_callback (void); 189 void clear_workspace_callback (void);
187 190
188 void clear_history_callback (void); 191 void clear_history_callback (void);