┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/searchcriterionselector.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-07-24 16:37:07 +0000
committerPeter Penz <[email protected]>2010-07-24 16:37:07 +0000
commit49eb864b03b6370e403c6f048ab18d1478eab045 (patch)
treef056b119de4d358e056287b90ec2e05f53fe2004 /src/search/searchcriterionselector.h
parent4ba9eb8ea34baee7e5e100a0d3c33f23f75cf708 (diff)
Unify the search interface for non-indexed and indexed folders
svn path=/trunk/KDE/kdebase/apps/; revision=1154073
Diffstat (limited to 'src/search/searchcriterionselector.h')
-rw-r--r--src/search/searchcriterionselector.h90
1 files changed, 0 insertions, 90 deletions
diff --git a/src/search/searchcriterionselector.h b/src/search/searchcriterionselector.h
deleted file mode 100644
index e9f26dd80..000000000
--- a/src/search/searchcriterionselector.h
+++ /dev/null
@@ -1,90 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2009 by Adam Kidder <[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 *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
- ***************************************************************************/
-
-#ifndef SEARCHCRITERIONSELECTOR_H
-#define SEARCHCRITERIONSELECTOR_H
-
-#include <QList>
-#include <QString>
-#include <QWidget>
-
-#define DISABLE_NEPOMUK_LEGACY
-#include <nepomuk/term.h>
-#include <search/searchcriteriondescription.h>
-
-class SearchCriterionValue;
-class QComboBox;
-class QHBoxLayout;
-class QPushButton;
-
-/**
- * @brief Allows the user to select a search criterion.
- * The widget represents one row of the DolphinSearchOptionsConfigurator.
- * Example: [File Size] [greater than] [10] [Byte]
- *
- * @see DolphinSearchOptionsConfigurator.
- */
-class SearchCriterionSelector : public QWidget
-{
- Q_OBJECT
-
-public:
- enum Type { Date, Size, Tag, Rating };
-
- SearchCriterionSelector(Type type, QWidget* parent = 0);
- virtual ~SearchCriterionSelector();
-
- /** Returns the query-term for the criterion. */
- Nepomuk::Query::Term queryTerm() const;
-
- Type type() const;
-
-signals:
- /**
- * Is emitted if the criterion selector should be removed
- * because the user clicked the "Remove" button.
- */
- void removeCriterion();
-
- /** Is emitted if the user has changed the search criterion. */
- void criterionChanged();
-
-private slots:
- void slotDescriptionChanged(int index);
- void slotComparatorChanged(int index);
-
-private:
- /**
- * Creates all available search criterion descriptions m_descriptions
- * and adds them into the combobox m_descriptionsBox.
- */
- void createDescriptions();
-
-private:
- QHBoxLayout* m_layout;
- QComboBox* m_descriptionsBox; // has items like "File Size", "Date Modified", ...
- QComboBox* m_comparatorBox; // has items like "greater than", "less than", ...
- SearchCriterionValue* m_valueWidget; // contains the value of a file size or a date
- QPushButton* m_removeButton; // requests a removing of the search criterion instance
-
- QList<SearchCriterionDescription> m_descriptions;
-};
-
-#endif // SEARCHCRITERIONSELECTOR_H