Mercurial > hg > octave-lyh
diff gui/src/files-dockwidget.h @ 14803:625be3eb27c5 gui
Current directories now synchronize on top, in the file browser and the cwd in octave.
* files-dockwidget: Refactored method names and redundand code. Added new signal that get emitted whenever the displayed directory changes.
* main-window: Added new slot to react on directory changes. Informing the file browser of a directory change now.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Tue, 26 Jun 2012 10:54:39 +0200 |
parents | 5cb54cca8a06 |
children | 3ff18e21c742 |
line wrap: on
line diff
--- a/gui/src/files-dockwidget.h +++ b/gui/src/files-dockwidget.h @@ -46,7 +46,8 @@ /** Slot for handling the up-directory button in the toolbar. */ void do_up_directory (); void set_current_directory (QString currentDirectory); - void current_directory_entered (); + void handle_directory_entered (); + void display_directory (QString directory); /** Tells the widget to notice settings that are probably new. */ void notice_settings (); @@ -54,6 +55,7 @@ signals: void open_file (QString fileName); + void displayed_directory_changed (QString directory); /** Custom signal that tells if a user has clicke away that dock widget. */ void active_changed (bool active); @@ -64,6 +66,8 @@ private: // TODO: Add toolbar with buttons for navigating the path, creating dirs, etc + QString _last_current_directory; + /** Toolbar for file and directory manipulation. */ QToolBar * _navigation_tool_bar;