2 * Copyright 2013 Canonical Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 * Michael Zanetti <michael.zanetti@canonical.com>
20#include "MockLauncherItem.h"
21#include "MockQuickListModel.h"
23using namespace unity::shell::launcher;
25MockLauncherItem::MockLauncherItem(const QString &appId, const QString& desktopFile, const QString& name, const QString& icon, QObject* parent):
26 LauncherItemInterface(parent),
28 m_desktopFile(desktopFile),
30 m_icon(TOP_SRCDIR "/graphics/applicationIcons/" + icon + ".png"),
37 m_quickList(new MockQuickListModel(this))
42QString MockLauncherItem::appId() const
47QString MockLauncherItem::desktopFile() const
52QString MockLauncherItem::name() const
57QString MockLauncherItem::icon() const
62bool MockLauncherItem::pinned() const
67void MockLauncherItem::setPinned(bool pinned)
69 if (m_pinned != pinned)
72 Q_EMIT pinnedChanged(m_pinned);
76bool MockLauncherItem::running() const
81void MockLauncherItem::setRunning(bool running)
83 if (m_running != running)
86 Q_EMIT runningChanged(running);
90bool MockLauncherItem::recent() const
95void MockLauncherItem::setRecent(bool recent)
97 if (m_recent != recent)
100 Q_EMIT recentChanged(recent);
104int MockLauncherItem::progress() const
109void MockLauncherItem::setProgress(int progress)
111 if (m_progress != progress)
113 m_progress = progress;
114 Q_EMIT progressChanged(progress);
118int MockLauncherItem::count() const
123void MockLauncherItem::setCount(int count)
125 if (m_count != count)
128 Q_EMIT countChanged(count);
132bool MockLauncherItem::focused() const
137void MockLauncherItem::setFocused(bool focused)
139 if (m_focused != focused)
142 Q_EMIT focusedChanged(focused);
147unity::shell::launcher::QuickListModelInterface *MockLauncherItem::quickList() const
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