2 * Copyright (C) 2015 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17#ifndef FAKE_RANGEINPUTFILTER_H
18#define FAKE_RANGEINPUTFILTER_H
20#include <unity/shell/scopes/RangeInputFilterInterface.h>
22class FakeRangeInputFilter : public unity::shell::scopes::RangeInputFilterInterface
27 FakeRangeInputFilter(const QString &id, const QString &tag, QObject* parent);
29 QString filterId() const override;
30 QString filterTag() const override;
31 QString title() const override;
33 double startValue() const override;
34 double endValue() const override;
35 void setStartValue(double value) override;
36 void setEndValue(double value) override;
37 QString startPrefixLabel() const override;
38 QString startPostfixLabel() const override;
39 QString centralLabel() const override;
40 QString endPrefixLabel() const override;
41 QString endPostfixLabel() const override;
42 bool hasStartValue() const override;
43 bool hasEndValue() const override;
45 void eraseStartValue() override;
46 void eraseEndValue() override;
48 // Not part of the iface, for mock/testing purposes
49 bool isActive() const;
51 void setTitle(const QString &title);
52 void setStartPrefixLabel(const QString &startPrefixLabel);
53 void setStartPostfixLabel(const QString &startPostfixLabel);
54 void setCentralLabel(const QString ¢ralLabel);
55 void setEndPrefixLabel(const QString &endPrefixLabel);
56 void setEndPostfixLabel(const QString &endPostfixLabel);
59 void isActiveChanged();
72 QString m_startPrefixLabel;
73 QString m_startPostfixLabel;
74 QString m_centralLabel;
75 QString m_endPrefixLabel;
76 QString m_endPostfixLabel;
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