diff libgui/src/m-editor/file-editor.h @ 16970:78116b88dbf5

enable readline key bindings in terminal widget of gui (bug #36986) * TerminalView.cpp(constructor): connect signal indicating focus change to related slot of main window for setting/resetting shortcuts, (focusInEvent,focusOutEvent): emit focus change signal * TerminalView.h: new signal set_global_shortcuts_signal for focus change * QWinTerminalImpl.cpp(constructor): connect signal indicating focus change to related slot in main window, (focusInEvent,focusOutEvent): emit focus change signal * QWinTerminalImpl.h: new signal set_global_shortcuts_signal for focus change * main-window.cc(construct): connect signal emitted on terminal focus change to related slot of the editor for setting/resetting shortcuts, call new function set_global_shortcuts for initializing shortcuts (construct_file_menu): add shortcut conext for open action, class variable for exit action (construct_new_menu): add shortcut conext for new action, (construct_edit_menu): make find files action a class variable, (set_global_shortcuts): new slot for setting or resetting some shortcuts, also emits signal for child widgets * main-window.h: new slot set_global_shortcuts, new signal set_widget_shortcuts_signal, class wide variables for find files and exit action * file-editor.cc(construct): change QActions into class wide variables and add _ before variale names, do not set shortcuts, call set_shortcuts instead, (set_shortcuts): new function for setting or resetting shortcuts * file-editor.h: new function set_shortcuts, new names for QActions
author Torsten <ttl@justmail.de>
date Sat, 13 Jul 2013 10:28:57 +0200
parents 944ade6e7f66
children e86df0d43309
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.h	Fri Jul 12 20:31:08 2013 -0700
+++ b/libgui/src/m-editor/file-editor.h	Sat Jul 13 10:28:57 2013 +0200
@@ -152,6 +152,10 @@
   // Tells the editor to react on changed settings.
   void notice_settings (const QSettings *settings);
 
+  // Tells the ditor to dis- or enable some shortcuts
+  void set_shortcuts (bool set_shortcuts);
+
+
 protected slots:
   void copyClipboard ();
   void pasteClipboard ();
@@ -178,10 +182,32 @@
   QMenuBar *_menu_bar;
   QToolBar *_tool_bar;
   QMenu *_debug_menu;
+
+  QAction *_comment_selection_action;
+  QAction *_uncomment_selection_action;
+
   QAction *_copy_action;
   QAction *_cut_action;
+  QAction *_paste_action;
+
+  QAction *_find_action;
+  QAction *_goto_line_action;
+
+  QAction *_next_bookmark_action;
+  QAction *_previous_bookmark_action;
+  QAction *_toggle_bookmark_action;
+
+  QAction *_print_action;
   QAction *_run_action;
+
+  QAction *_save_action;
+  QAction *_save_as_action;
+
+  QAction *_redo_action;
+  QAction *_undo_action;
+
   QTabWidget *_tab_widget;
+
   int _marker_breakpoint;
 
   enum { MaxMRUFiles = 10 };