diff libgui/src/m-editor/file-editor-tab.h @ 15313: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
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.h
+++ b/libgui/src/m-editor/file-editor-tab.h
@@ -64,7 +64,7 @@
 
   void set_modified (bool modified = true);
 
-  bool open_file ();
+  bool open_file (QString dir = QString ());
   void load_file (QString fileName);
   void new_file ();
   bool save_file ();
@@ -73,6 +73,8 @@
   void run_file ();
 
   void file_has_changed (QString fileName);
+  
+  QString get_file_name () const {return _file_name;} 
 
 signals:
   void file_name_changed (QString fileName);