comparison libgui/src/m-editor/file-editor-tab.h @ 33352:c8dcba6e3ed8

make editor file dialogs modal * file-editor-tab.cc (save_file_as): file dialog not a pointer, make modal and show with exec(), get selected filter and files after exec returns without using signal/slot mechaninsm; (handle_save_as_filter_selected): removed slot; (handle_save_file_as_answer): removed slot; (handle_save_file_as_answer_close): removed slot; (handle_save_file_as_answer_cancel): removed slot; * file-editor-tab.h removed slots handle_save_file_as_answer, handle_save_file_as_answer_close, handle_save_file_as_answer_cancel, and handle_save_as_filter_selected * main-window.cc (request_open_file): do not use pointer for file dialog, use exec () and get selected files when exec return instead of using signal/slot mechanism; (request_open_files): remove slot * main-window.h: remove slot request_open_files
author Torsten Lilge <ttl-octave@mailbox.org>
date Sun, 07 Apr 2024 22:17:52 +0200
parents 2e484f9f1f18
children 1ab09074c74b
comparison
equal deleted inserted replaced
33350:05da909b8c28 33352:c8dcba6e3ed8
216 void handle_file_reload_answer (int decision); 216 void handle_file_reload_answer (int decision);
217 217
218 // When user closes message box for resave question. 218 // When user closes message box for resave question.
219 void handle_file_resave_answer (int decision); 219 void handle_file_resave_answer (int decision);
220 220
221 // When user closes QFileDialog box.
222 void handle_save_file_as_answer (const QString& fileName);
223 void handle_save_file_as_answer_close (const QString& fileName);
224 void handle_save_file_as_answer_cancel ();
225 void handle_save_as_filter_selected (const QString& filter);
226
227 // When user changes encoding after decoding errors were found 221 // When user changes encoding after decoding errors were found
228 void handle_current_enc_changed (const QString& enc); 222 void handle_current_enc_changed (const QString& enc);
229 223
230 // When apis preparation has finished and is ready to save 224 // When apis preparation has finished and is ready to save
231 void save_apis_info (); 225 void save_apis_info ();