OSDN Git Service

サムネイルモードの実装
[gefu/Gefu.git] / folderpanel.h
1 #ifndef FOLDERPANEL_H
2 #define FOLDERPANEL_H
3
4 #include <QWidget>
5 #include <QAbstractItemView>
6 class FolderModel;
7 class MainWindow;
8
9
10 namespace Ui {
11 class FolderPanel;
12 }
13
14 class FolderPanel : public QWidget
15 {
16     Q_OBJECT
17
18 public:
19     explicit FolderPanel(QWidget *parent = 0);
20     ~FolderPanel();
21
22 //    FolderView*     folderView() const;
23     void                initialize(MainWindow *w);
24     QAbstractItemView*  itemView() const;
25     FolderModel*        model() const;
26     void                searchNext(int step = 1);
27     void                setModel(FolderModel *m);
28     void                toggleSearch(bool checked);
29     void                toggleView(bool checked);
30     void                updateAppearance();
31
32 private:
33     Ui::FolderPanel *ui;
34     MainWindow *m_mainWnd;
35
36     void    showSearchResult(const QModelIndex &index);
37
38 public slots:
39
40 private slots:
41     void    model_dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight);
42     void    model_Reset();
43     void    on_searchBox_textEdited(const QString &arg1);
44 };
45
46 #endif // FOLDERPANEL_H