2018-06-08 19:17:06 +01:00
|
|
|
/*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez <aleixpol@kde.org>
|
2018-06-08 19:17:06 +01:00
|
|
|
*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2018-06-08 19:17:06 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
import QtQuick 2.2
|
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Layouts 1.1
|
|
|
|
import org.kde.kirigami 2.0 as Kirigami
|
|
|
|
|
|
|
|
Kirigami.Page
|
|
|
|
{
|
|
|
|
id: mousepad
|
2019-12-21 07:59:36 +00:00
|
|
|
title: i18nd("kdeconnect-app", "Presentation Remote")
|
2018-06-08 19:17:06 +01:00
|
|
|
property QtObject pluginInterface
|
|
|
|
|
|
|
|
actions.main: Kirigami.Action {
|
|
|
|
icon.name: "view-fullscreen"
|
2019-12-21 07:59:36 +00:00
|
|
|
text: i18nd("kdeconnect-app", "Enable Full-Screen")
|
2018-06-08 19:17:06 +01:00
|
|
|
onTriggered: {
|
|
|
|
mousepad.pluginInterface.sendKeyPress("", 25 /*XK_F5*/);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ColumnLayout
|
|
|
|
{
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Button {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
icon.name: "media-skip-backward"
|
|
|
|
onClicked: mousepad.pluginInterface.sendKeyPress("p");
|
|
|
|
}
|
|
|
|
Button {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
icon.name: "media-skip-forward"
|
|
|
|
onClicked: mousepad.pluginInterface.sendKeyPress("n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|