OSDN Git Service

Ver0.21
[gefu/Gefu.git] / panel.h
1 #ifndef PANEL_H
2 #define PANEL_H
3
4 #include <QWidget>
5 #include <QModelIndex>
6 class MainWindow;
7 class FolderPanel;
8 class FolderModel;
9
10 namespace Ui {
11 class Panel;
12 }
13
14 class Panel : public QWidget
15 {
16     Q_OBJECT
17
18 public:
19     explicit Panel(QWidget *parent = 0);
20     ~Panel();
21
22     FolderPanel*    folderPanel() const;
23     void            initialize(MainWindow *w);
24     FolderModel*    model() const;
25     void            setModel(FolderModel *m);
26     void            setViewItem(const QModelIndex &index = QModelIndex());
27     void            updateAppearance();
28     QWidget*        visibleView() const;
29
30 private:
31     Ui::Panel *ui;
32 };
33
34 #endif // PANEL_H