/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */ #ifndef FILESYSTEMWIDGET_H #define FILESYSTEMWIDGET_H #include class QDirModel; class QTreeView; class FilesystemDirProxy; class FileView; class QModelIndex; class FilesystemFileProxy; class QLineEdit; class FilesystemWidget : public QWidget { Q_OBJECT public: FilesystemWidget(QWidget *parent = 0); ~FilesystemWidget() {}; FileView *fileView() { return mFileView; }; signals: void windowTitle(const QString &); public slots: void directoryChanged(const QModelIndex &selected, const QModelIndex &); void directoryEdited(); void fileViewActivated(const QModelIndex &index); void parentDir(); private: void setWindowTitle(const QString &dir); QDirModel *mModel; QTreeView *mDirView; FileView *mFileView; FilesystemDirProxy *mDirProxy; FilesystemFileProxy *mFileProxy; QLineEdit *mDirEdit; }; #endif