OSDN Git Service

高速化の試み
[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 class Preferences;
10
11 namespace Ui {
12 class Panel;
13 }
14
15 class Panel : public QWidget
16 {
17     Q_OBJECT
18
19 public:
20     explicit Panel(QWidget *parent = 0);
21     ~Panel();
22
23     FolderPanel*    folderPanel() const;
24     void            initialize(MainWindow *w);
25     FolderModel*    model() const;
26     void            setModel(FolderModel *m);
27     void            setViewItem(const QModelIndex &index = QModelIndex());
28     void            updateAppearance(const Preferences &prefs);
29     QWidget*        visibleView() const;
30
31 private:
32     Ui::Panel *ui;
33 };
34
35 #endif // PANEL_H