comparison libgui/src/m-editor/file-editor-tab.h @ 19642:4b980842edba gui-release

clean up some signal-slot combinations in the editor * file-editor-tab.cc (contructor): remove connections of signals for command execution and for creating the context menu; (execute_command_in_terminal, create_context_menu): related slots removed * file-editor-tab.h: removed slots and signals that were emitted therein * file-editor.cc (add_file_editor_tab): connect edit area signals directly to the related slots without involving the editor tab
author Torsten <ttl@justmail.de>
date Thu, 22 Jan 2015 21:38:12 +0100
parents d258070914ef
children 8ef79bc61d8a
comparison
equal deleted inserted replaced
19641:18c213fa9b20 19642:4b980842edba
118 QString load_file (const QString& fileName); 118 QString load_file (const QString& fileName);
119 void new_file (const QString& commands = QString ()); 119 void new_file (const QString& commands = QString ());
120 120
121 void file_has_changed (const QString& fileName); 121 void file_has_changed (const QString& fileName);
122 122
123 void execute_command_in_terminal (const QString& command);
124 void create_context_menu (QMenu *);
125 void handle_context_menu_edit (const QString&); 123 void handle_context_menu_edit (const QString&);
126 124
127 signals: 125 signals:
128 126
129 void file_name_changed (const QString& fileName, const QString& toolTip); 127 void file_name_changed (const QString& fileName, const QString& toolTip);
133 void add_filename_to_list (const QString&, QWidget *); 131 void add_filename_to_list (const QString&, QWidget *);
134 void mru_add_file (const QString& file_name); 132 void mru_add_file (const QString& file_name);
135 void editor_check_conflict_save (const QString& saveFileName, 133 void editor_check_conflict_save (const QString& saveFileName,
136 bool remove_on_success); 134 bool remove_on_success);
137 void run_file_signal (const QFileInfo& info); 135 void run_file_signal (const QFileInfo& info);
138 void execute_command_in_terminal_signal (const QString&);
139 void set_global_edit_shortcuts_signal (bool); 136 void set_global_edit_shortcuts_signal (bool);
140 void create_context_menu_tab_signal (QMenu *);
141 void request_open_file (const QString&); 137 void request_open_file (const QString&);
142 138
143 protected: 139 protected:
144 140
145 void closeEvent (QCloseEvent *event); 141 void closeEvent (QCloseEvent *event);