OSDN Git Service

IWorker -> AbstractWorkerに変更。
[gefu/Gefu.git] / folderpanel.h
1 #ifndef FOLDERPANEL_H
2 #define FOLDERPANEL_H
3
4 #include <QWidget>
5 class QLabel;
6 class QLineEdit;
7 class LocationBox;
8 class FolderView;
9 class SearchBox;
10 class MainWindow;
11
12 namespace Ui {
13 class FolderPanel;
14 }
15
16 class FolderPanel : public QWidget
17 {
18     Q_OBJECT
19
20 public:
21     explicit FolderPanel(QWidget *parent = 0);
22     ~FolderPanel();
23
24     void initialize(MainWindow *mainWnd);
25     void updateAppearance(bool darker = false);
26
27     // getter
28     QLineEdit *locationBox() const;
29     FolderView* folderView() const;
30     SearchBox* searchBox() const;
31     QLabel* filterLabel() const;
32
33     // setter
34     void setNameFilters(const QString &filters = QString());
35
36 private:
37     Ui::FolderPanel *ui;
38     MainWindow *m_mainWnd;
39
40     void showNameFilters();
41
42 public slots:
43     void dataChange();
44     void addBookmark();
45     void itemFound();
46     void itemNotFound();
47     void searchItem(const QString& text);
48
49     // QWidget interface
50 protected:
51     void focusInEvent(QFocusEvent *);
52 };
53
54 #endif // FOLDERPANEL_H