mirror of
https://github.com/redstrate/Auracite.git
synced 2025-05-06 18:57:45 +00:00
This is to facilitate support for this feature on the Web, where the plugin needs to start a server instead of Auracite itself. Otherwise, the functionality is identical to before.
42 lines
No EOL
903 B
QML
42 lines
No EOL
903 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Controls as QQC2
|
|
import org.kde.kirigami as Kirigami
|
|
import zone.xiv.auracite
|
|
|
|
Kirigami.ApplicationWindow {
|
|
id: root
|
|
|
|
title: "Auracite"
|
|
|
|
readonly property Backend backend: Backend {}
|
|
|
|
ColumnLayout {
|
|
QQC2.TextField {
|
|
id: characterNameField
|
|
|
|
placeholderText: "Full name of the character"
|
|
}
|
|
|
|
QQC2.CheckBox {
|
|
id: dalamudCheckbox
|
|
}
|
|
|
|
QQC2.Button {
|
|
text: "Archive"
|
|
onClicked: root.backend.archiveCharacter(characterNameField.text, dalamudCheckbox.checked)
|
|
}
|
|
}
|
|
|
|
Connections {
|
|
target: backend
|
|
|
|
function onArchiveSuccessful(): void {
|
|
console.info("Archive done!");
|
|
}
|
|
|
|
function onArchiveFailed(message: string): void {
|
|
console.error("Failed: " + message);
|
|
}
|
|
}
|
|
} |