OSDN Git Service

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