diff options
Diffstat (limited to 'src/search/dolphinsearchoptionsconfigurator.h')
| -rw-r--r-- | src/search/dolphinsearchoptionsconfigurator.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/search/dolphinsearchoptionsconfigurator.h b/src/search/dolphinsearchoptionsconfigurator.h index 9b5a70b03..7fc0b5a4b 100644 --- a/src/search/dolphinsearchoptionsconfigurator.h +++ b/src/search/dolphinsearchoptionsconfigurator.h @@ -1,5 +1,6 @@ /*************************************************************************** * Copyright (C) 2009 by Peter Penz <[email protected]> * + * Copyright (C) 2009 by Peter Penz <[email protected]> * * * * 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 * @@ -22,6 +23,13 @@ #include <QWidget> +class KComboBox; +class QPushButton; +class QVBoxLayout; + +/** + * @brief Allows the user to configure a search query for Nepomuk. + */ class DolphinSearchOptionsConfigurator : public QWidget { Q_OBJECT @@ -29,6 +37,27 @@ class DolphinSearchOptionsConfigurator : public QWidget public: DolphinSearchOptionsConfigurator(QWidget* parent = 0); virtual ~DolphinSearchOptionsConfigurator(); + +private slots: + /** + * Adds a new search description selector to the bottom + * of the layout. + */ + void addSelector(); + + void removeCriterion(); + + /** + * Updates the 'enabled' property of the selector button + * dependent from the number of existing selectors. + */ + void updateSelectorButton(); + +private: + KComboBox* m_searchFromBox; + KComboBox* m_searchWhatBox; + QPushButton* m_addSelectorButton; + QVBoxLayout* m_vBoxLayout; }; #endif |
