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 class Preferences;
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                setItemView(const QString &name);
28     void                setModel(FolderModel *m);
29     void                toggleSearch(bool checked);
30     void                toggleView(bool checked);
31     void                updateAppearance(const Preferences &prefs);
32
33 private:
34     Ui::FolderPanel *ui;
35     MainWindow *m_mainWnd;
36
37     void    showSearchResult(const QModelIndex &index);
38
39 public slots:
40
41 private slots:
42     void    model_dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight);
43     void    model_Reset();
44     void    on_searchBox_textEdited(const QString &arg1);
45 };
46
47 #endif // FOLDERPANEL_H