2 * Copyright (C) 2011, 2013 Canonical, Ltd.
5 * Florian Boucault <florian.boucault@canonical.com>
6 * Pawel Stolowski <pawel.stolowski@canonical.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; version 3.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
29#include <UnityCore/Filter.h>
32#include "signalslist.h"
34class Q_DECL_EXPORT Filter : public QObject
38 Q_PROPERTY(QString id READ id NOTIFY idChanged)
39 Q_PROPERTY(QString name READ name NOTIFY nameChanged)
40 Q_PROPERTY(QString iconHint READ iconHint NOTIFY iconHintChanged)
41 Q_PROPERTY(QString rendererName READ rendererName NOTIFY rendererNameChanged)
42 Q_PROPERTY(bool visible READ visible NOTIFY visibleChanged)
43 Q_PROPERTY(bool collapsed READ collapsed NOTIFY collapsedChanged)
44 Q_PROPERTY(bool filtering READ filtering NOTIFY filteringChanged)
47 explicit Filter(QObject *parent = nullptr);
52 QString iconHint() const;
53 QString rendererName() const;
55 bool collapsed() const;
56 bool filtering() const;
58 Q_INVOKABLE void clear();
60 static Filter* newFromUnityFilter(unity::dash::Filter::Ptr unityFilter);
61 bool hasUnityFilter(unity::dash::Filter::Ptr unityFilter) const;
64 void idChanged(std::string);
65 void nameChanged(std::string);
66 void iconHintChanged(std::string);
67 void rendererNameChanged(std::string);
68 void visibleChanged(bool);
69 void collapsedChanged(bool);
70 void filteringChanged(bool);
75 unity::dash::Filter::Ptr m_unityFilter;
76 virtual void setUnityFilter(unity::dash::Filter::Ptr unityFilter);
79 SignalsList m_signals;
82Q_DECLARE_METATYPE(Filter*)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list