diff options
Diffstat (limited to 'searchdialog.h')
-rw-r--r-- | searchdialog.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/searchdialog.h b/searchdialog.h new file mode 100644 index 0000000..630f225 --- /dev/null +++ b/searchdialog.h @@ -0,0 +1,47 @@ +/* + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version + 2 of the License, or (at your option) any later version. +*/ + +#ifndef SEARCHDIALOG_H +#define SEARCHDIALOG_H + +#include <QDialog> + +class QCheckBox; +class QLineEdit; +class QPushButton; +class SmTreeView; +class SmTreeModel; +class SmTreeItem; +class QSortFilterProxyModel; + +class SearchDialog : public QDialog { + Q_OBJECT + public: + SearchDialog(QWidget *parent = 0, Qt::WindowFlags flags = 0); + + signals: + void searchResultClicked(int); + + private slots: + void search(); + void disableSearch(); + void searchDoubleclicked(); + + private: + void appendChild(QVariant id, QVariant subject, QVariant name, QVariant sub, SmTreeItem *parent); + void appendEmpty(SmTreeItem *parent); + QLineEdit *mSearch; + QCheckBox *mExFilenames; + QCheckBox *mExMeta; + SmTreeView *mResult; + SmTreeModel *mModel; + QSortFilterProxyModel *mProxy; + QPushButton *mDoSearch; + QPushButton *mClose; +}; + +#endif // SEARCHDIALOG_H |