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"
42#include <inputwatcher.h>
43#include <qlimitproxymodelqml.h>
44#include <unitysortfilterproxymodelqml.h>
45#include <relativetimeformatter.h>
46#include <timeformatter.h>
47#include <unitymenumodelpaths.h>
48#include <windowkeysfilter.h>
49#include <easingcurve.h>
51static QObject *createWindowStateStorage(QQmlEngine *engine, QJSEngine *scriptEngine)
54 Q_UNUSED(scriptEngine)
55 return new WindowStateStorage();
58static QObject *createConstants(QQmlEngine *engine, QJSEngine *scriptEngine)
61 Q_UNUSED(scriptEngine)
62 return new Constants();
65void FakeUtilsPlugin::registerTypes(const char *uri)
67 Q_ASSERT(uri == QLatin1String("Utils"));
68 qmlRegisterType<QAbstractItemModel>();
69 qmlRegisterType<QLimitProxyModelQML>(uri, 0, 1, "LimitProxyModel");
70 qmlRegisterType<UnitySortFilterProxyModelQML>(uri, 0, 1, "UnitySortFilterProxyModel");
71 qmlRegisterType<UnityMenuModelPaths>(uri, 0, 1, "UnityMenuModelPaths");
72 qmlRegisterType<TimeFormatter>(uri, 0, 1, "TimeFormatter");
73 qmlRegisterType<WindowKeysFilter>(uri, 0, 1, "WindowKeysFilter");
74 qmlRegisterType<GDateTimeFormatter>(uri, 0, 1, "GDateTimeFormatter");
75 qmlRegisterType<EasingCurve>(uri, 0, 1, "EasingCurve");
76 qmlRegisterType<RelativeTimeFormatter>(uri, 0, 1, "RelativeTimeFormatter");
77 qmlRegisterSingletonType<WindowStateStorage>(uri, 0, 1, "WindowStateStorage", createWindowStateStorage);
78 qmlRegisterType<InputWatcher>(uri, 0, 1, "InputWatcher");
79 qmlRegisterSingletonType<Constants>(uri, 0, 1, "Constants", createConstants);
82void FakeUtilsPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
84 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