Mercurial > hg > octave-lyh
comparison libgui/src/m-editor/file-editor.h @ 15356:842ab161c10a
GUI: new setting to restore tabs from previous session; allow silent load file
* settings-dialog.ui: new settings check box for previous session restore
* settings-dialog.cc (settings_dialog::settings_dialog): load/write new settings
* file-editor.h (file-editor::request_open_file): allow silent (no error msg) open file
* file_editor_interface.h (file_editor_interface::request_open_file) allow silent
(no error msg) open file
* file-editor.cc (file_editor::~file_editor): store a list of open tabs in settings
(file_editor::request_open_file): allow a silent open file with no error message
if file doesn't exist; remove added tab and restore focus, if load fails.
(file_editor::contruct): read list of previous tabs from settings (if enabled)
* file-editor-tab.h (file-editor-tab:load_file): allow silent load file, return success
* file-editor-tab.cc (file-editor-tab:load_file): allow silent load file, return success
author | Thorsten Liebig <Thorsten.Liebig@gmx.de> |
---|---|
date | Tue, 11 Sep 2012 15:24:22 +0200 |
parents | fd27e10b9b05 |
children | b4c32f245da7 |
comparison
equal
deleted
inserted
replaced
15355:a9fd6821eedf | 15356:842ab161c10a |
---|---|
62 void handle_quit_debug_mode (); | 62 void handle_quit_debug_mode (); |
63 | 63 |
64 public slots: | 64 public slots: |
65 void request_new_file (); | 65 void request_new_file (); |
66 void request_open_file (); | 66 void request_open_file (); |
67 void request_open_file (const QString& fileName); | 67 void request_open_file (const QString& fileName, bool silent = false); |
68 | 68 |
69 void request_undo (); | 69 void request_undo (); |
70 void request_redo (); | 70 void request_redo (); |
71 void request_copy (); | 71 void request_copy (); |
72 void request_cut (); | 72 void request_cut (); |