Mercurial > hg > octave-nkf
diff gui/src/FilesDockWidget.h @ 13506:c70511cf64ee
Reformatted to GNU Style.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Sun, 17 Jul 2011 22:59:28 +0200 |
parents | 13e3d60aff2d |
children | 869c62c15e95 |
line wrap: on
line diff
--- a/gui/src/FilesDockWidget.h +++ b/gui/src/FilesDockWidget.h @@ -46,41 +46,39 @@ #include <QDockWidget> #include <QLineEdit> -class FilesDockWidget : public QDockWidget { - Q_OBJECT -public : - FilesDockWidget(QWidget *parent = 0); -public slots: +class FilesDockWidget:public QDockWidget +{ + Q_OBJECT public:FilesDockWidget (QWidget * parent = 0); + public slots: /** Slot for handling a change in directory via double click. */ - void itemDoubleClicked(const QModelIndex &index); + void itemDoubleClicked (const QModelIndex & index); /** Slot for handling the up-directory button in the toolbar. */ - void onUpDirectory(); + void onUpDirectory (); - void setCurrentDirectory(QString currentDirectory); + void setCurrentDirectory (QString currentDirectory); - void currentDirectoryEntered(); + void currentDirectoryEntered (); -signals: - void openFile(QString fileName); + signals:void openFile (QString fileName); private: - // TODO: Add toolbar with buttons for navigating the path, creating dirs, etc + // TODO: Add toolbar with buttons for navigating the path, creating dirs, etc /** Toolbar for file and directory manipulation. */ - QToolBar *m_navigationToolBar; + QToolBar * m_navigationToolBar; /** Variables for the up-directory action. */ - QIcon m_directoryIcon; - QAction *m_directoryUpAction; - QToolButton *upDirectoryButton; + QIcon m_directoryIcon; + QAction *m_directoryUpAction; + QToolButton *upDirectoryButton; /** The file system model. */ - QFileSystemModel *m_fileSystemModel; + QFileSystemModel *m_fileSystemModel; /** The file system view. */ - QTreeView *m_fileTreeView; - QLineEdit *m_currentDirectory; + QTreeView *m_fileTreeView; + QLineEdit *m_currentDirectory; }; #endif // FILESDOCKWIDGET_H