diff options
| author | Peter Penz <[email protected]> | 2009-10-23 21:06:33 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-10-23 21:06:33 +0000 |
| commit | efecb5021cc7855caa05117ebbe74608f5c863f2 (patch) | |
| tree | 517df3bc5d22130997a5669a4c50c92a3ddb2865 /src/search/dolphinsearchoptionsconfigurator.h | |
| parent | 66995e1a8f0b8a4001c1d4500f807277d685ab7f (diff) | |
Imported Adam Kidders search configuration widgets from playground/base/nepomuk/search_widgets_test. I adjusted some names of classes and members and also changed some parts of the implementation, but conceptually the concept is 1:1 like provided by Adam in playground.
Currently the UI works quite well, but the creating of the query string has not been integrated yet.
svn path=/trunk/KDE/kdebase/apps/; revision=1039572
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 |
