┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinfacetswidget.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-05-10 22:40:51 +0200
committerPeter Penz <[email protected]>2012-05-10 22:45:12 +0200
commit4fad8f8f530211839f431819031327275240f7f6 (patch)
tree04530ad1ff2ef82776846caec1a2565bee52c0c5 /src/search/dolphinfacetswidget.h
parentb983b7d2daa98c17a4263971ce2abf5b3b6fa84f (diff)
Reimplement search-filters
BUG: 270721 BUG: 280377 FIXED-IN: 4.9.0
Diffstat (limited to 'src/search/dolphinfacetswidget.h')
-rw-r--r--src/search/dolphinfacetswidget.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/search/dolphinfacetswidget.h b/src/search/dolphinfacetswidget.h
index 916e05608..65734aa66 100644
--- a/src/search/dolphinfacetswidget.h
+++ b/src/search/dolphinfacetswidget.h
@@ -22,6 +22,12 @@
#include <QWidget>
+#include <config-nepomuk.h>
+#ifdef HAVE_NEPOMUK
+ #include <Nepomuk/Query/Term>
+#endif
+
+class QButtonGroup;
class QCheckBox;
class QRadioButton;
@@ -29,7 +35,7 @@ class QRadioButton;
* @brief Allows to filter search-queries by facets.
*
* TODO: The current implementation is a temporary
- * workaround for the 4.10 release and represents no
+ * workaround for the 4.9 release and represents no
* real facets-implementation yet: There have been
* some Dolphin specific user-interface and interaction
* issues since 4.6 by embedding the Nepomuk facet-widget
@@ -49,6 +55,29 @@ public:
explicit DolphinFacetsWidget(QWidget* parent = 0);
virtual ~DolphinFacetsWidget();
+#ifdef HAVE_NEPOMUK
+ Nepomuk::Query::Term facetsTerm() const;
+#endif
+
+signals:
+ void facetChanged();
+
+private:
+ /**
+ * @return New checkbox which is connected to the
+ * slotFacedChanged() slot whenever it has
+ * been toggled.
+ */
+ QCheckBox* createCheckBox(const QString& text);
+
+ /**
+ * @return New radiobutton which is connected to the
+ * slotFacedChanged() slot whenever it has
+ * been toggled.
+ */
+ QRadioButton* createRadioButton(const QString& text,
+ QButtonGroup* group);
+
private:
QCheckBox* m_documents;
QCheckBox* m_images;