comparison libgui/src/m-editor/file-editor-tab.h @ 15312:d81105896288

m-editor: open a new file from the directory of the last active tab * file-editor-tab.cc, file-editor-tab.h: new get_file_name method & open_file with a directory * file-editor.cc: request_open_file with the path to the last active file
author Thorsten Liebig <thorsten.liebig@gmx.de>
date Tue, 04 Sep 2012 22:34:48 +0200
parents 359098ad343e
children 67ef63ead023
comparison
equal deleted inserted replaced
15298:704ab1b4c369 15312:d81105896288
62 void redo (); 62 void redo ();
63 void set_debugger_position (int line); 63 void set_debugger_position (int line);
64 64
65 void set_modified (bool modified = true); 65 void set_modified (bool modified = true);
66 66
67 bool open_file (); 67 bool open_file (QString dir = QString ());
68 void load_file (QString fileName); 68 void load_file (QString fileName);
69 void new_file (); 69 void new_file ();
70 bool save_file (); 70 bool save_file ();
71 bool save_file(QString saveFileName); 71 bool save_file(QString saveFileName);
72 bool save_file_as(); 72 bool save_file_as();
73 void run_file (); 73 void run_file ();
74 74
75 void file_has_changed (QString fileName); 75 void file_has_changed (QString fileName);
76
77 QString get_file_name () const {return _file_name;}
76 78
77 signals: 79 signals:
78 void file_name_changed (QString fileName); 80 void file_name_changed (QString fileName);
79 void editor_state_changed (); 81 void editor_state_changed ();
80 void close_request (); 82 void close_request ();