/* 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 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); public slots: void show(); 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