3 * Copyright (C) 2012 Canonical, Ltd.
5 * Copyright (C) 2015 Canonical, Ltd.
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/>.
22#include <QtQml/qqml.h>
23#include <QDBusConnection>
25#include <QtQuick/QQuickWindow>
30#include "inputwatcher.h"
31#include "qlimitproxymodelqml.h"
32#include "unitysortfilterproxymodelqml.h"
33#include "relativetimeformatter.h"
34#include "timeformatter.h"
35#include "unitymenumodelpaths.h"
36#include "windowkeysfilter.h"
37#include "easingcurve.h"
38#include "windowstatestorage.h"
39#include "spreadflickable.h"
43#include <inputwatcher.h>
44#include <qlimitproxymodelqml.h>
45#include <unitysortfilterproxymodelqml.h>
46#include <relativetimeformatter.h>
47#include <timeformatter.h>
48#include <unitymenumodelpaths.h>
49#include <windowkeysfilter.h>
50#include <easingcurve.h>
52static QObject *createWindowStateStorage(QQmlEngine *engine, QJSEngine *scriptEngine)
55 Q_UNUSED(scriptEngine)
56 return new WindowStateStorage();
59static QObject *createConstants(QQmlEngine *engine, QJSEngine *scriptEngine)
62 Q_UNUSED(scriptEngine)
63 return new Constants();
66void FakeUtilsPlugin::registerTypes(const char *uri)
68 Q_ASSERT(uri == QLatin1String("Utils"));
69 qmlRegisterType<QAbstractItemModel>();
70 qmlRegisterType<QLimitProxyModelQML>(uri, 0, 1, "LimitProxyModel");
71 qmlRegisterType<UnitySortFilterProxyModelQML>(uri, 0, 1, "UnitySortFilterProxyModel");
72 qmlRegisterType<UnityMenuModelPaths>(uri, 0, 1, "UnityMenuModelPaths");
73 qmlRegisterType<TimeFormatter>(uri, 0, 1, "TimeFormatter");
74 qmlRegisterType<WindowKeysFilter>(uri, 0, 1, "WindowKeysFilter");
75 qmlRegisterType<GDateTimeFormatter>(uri, 0, 1, "GDateTimeFormatter");
76 qmlRegisterType<EasingCurve>(uri, 0, 1, "EasingCurve");
77 qmlRegisterType<RelativeTimeFormatter>(uri, 0, 1, "RelativeTimeFormatter");
78 qmlRegisterSingletonType<WindowStateStorage>(uri, 0, 1, "WindowStateStorage", createWindowStateStorage);
79 qmlRegisterType<InputWatcher>(uri, 0, 1, "InputWatcher");
80 qmlRegisterType<SpreadFlickable>(uri, 0, 1, "SpreadFlickable");
81 qmlRegisterSingletonType<Constants>(uri, 0, 1, "Constants", createConstants);
84void FakeUtilsPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
86 QQmlExtensionPlugin::initializeEngine(engine, uri);
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