Mercurial > hg > octave-nkf
comparison gui/src/FilesDockWidget.h @ 13536:869c62c15e95
Few minor improvements, added advanced settings for file browser.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Tue, 26 Jul 2011 18:11:34 +0200 |
parents | c70511cf64ee |
children | e440b3f32f02 |
comparison
equal
deleted
inserted
replaced
13535:98bde3b5b7a0 | 13536:869c62c15e95 |
---|---|
46 #include <QDockWidget> | 46 #include <QDockWidget> |
47 #include <QLineEdit> | 47 #include <QLineEdit> |
48 | 48 |
49 class FilesDockWidget:public QDockWidget | 49 class FilesDockWidget:public QDockWidget |
50 { | 50 { |
51 Q_OBJECT public:FilesDockWidget (QWidget * parent = 0); | 51 Q_OBJECT |
52 public slots: | 52 public: |
53 /** Slot for handling a change in directory via double click. */ | 53 FilesDockWidget (QWidget * parent = 0); |
54 | |
55 public slots: | |
56 /** Slot for handling a change in directory via double click. */ | |
54 void itemDoubleClicked (const QModelIndex & index); | 57 void itemDoubleClicked (const QModelIndex & index); |
55 | 58 |
56 /** Slot for handling the up-directory button in the toolbar. */ | 59 /** Slot for handling the up-directory button in the toolbar. */ |
57 void onUpDirectory (); | 60 void onUpDirectory (); |
58 | 61 |
59 void setCurrentDirectory (QString currentDirectory); | 62 void setCurrentDirectory (QString currentDirectory); |
60 | 63 |
61 void currentDirectoryEntered (); | 64 void currentDirectoryEntered (); |
62 | 65 |
63 signals:void openFile (QString fileName); | 66 /** Tells the widget to notice settings that are probably new. */ |
67 void noticeSettings (); | |
68 | |
69 signals: | |
70 void openFile (QString fileName); | |
64 | 71 |
65 private: | 72 private: |
66 // TODO: Add toolbar with buttons for navigating the path, creating dirs, etc | 73 // TODO: Add toolbar with buttons for navigating the path, creating dirs, etc |
67 | 74 |
68 /** Toolbar for file and directory manipulation. */ | 75 /** Toolbar for file and directory manipulation. */ |