diff options
author | Arno <am@disconnect.de> | 2015-01-24 21:35:12 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2015-01-24 21:35:12 +0100 |
commit | fb0626d4c624bdb640628b9c2dad93d62d90885c (patch) | |
tree | 008e7aa0d6791e73503b2468a89c9bedc47610b2 /searchdialog.h | |
parent | a152afc1005c72e16208f15d84a6c2b24d32f578 (diff) | |
download | SheMov-fb0626d4c624bdb640628b9c2dad93d62d90885c.tar.gz SheMov-fb0626d4c624bdb640628b9c2dad93d62d90885c.tar.bz2 SheMov-fb0626d4c624bdb640628b9c2dad93d62d90885c.zip |
New: search dialog
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 |