gui: session group has Name only; all else under Agent
This commit is contained in:
parent
1b67305ef7
commit
68a84a2404
54
gui/main.qml
54
gui/main.qml
|
|
@ -354,6 +354,20 @@ ApplicationWindow {
|
||||||
// --- Session ---
|
// --- Session ---
|
||||||
Label { text: "Session"; font.bold: true; font.pointSize: theme.fontSize > 0 ? theme.fontSize + 1 : Qt.application.font.pointSize + 1 }
|
Label { text: "Session"; font.bold: true; font.pointSize: theme.fontSize > 0 ? theme.fontSize + 1 : Qt.application.font.pointSize + 1 }
|
||||||
|
|
||||||
|
// Name
|
||||||
|
RowLayout {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Label { text: "Name:"; Layout.preferredWidth: 80 }
|
||||||
|
TextField {
|
||||||
|
id: nameField
|
||||||
|
Layout.fillWidth: true
|
||||||
|
placeholderText: "(auto-generated)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// --- Agent ---
|
||||||
|
Label { text: "Agent"; font.bold: true; font.pointSize: theme.fontSize > 0 ? theme.fontSize + 1 : Qt.application.font.pointSize + 1 }
|
||||||
|
|
||||||
// Directory
|
// Directory
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -374,17 +388,6 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Name
|
|
||||||
RowLayout {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Label { text: "Name:"; Layout.preferredWidth: 80 }
|
|
||||||
TextField {
|
|
||||||
id: nameField
|
|
||||||
Layout.fillWidth: true
|
|
||||||
placeholderText: "(auto-generated)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Backend
|
// Backend
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -418,21 +421,7 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remote
|
// Profile
|
||||||
RowLayout {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Label { text: "Remote:"; Layout.preferredWidth: 80 }
|
|
||||||
TextField {
|
|
||||||
id: remoteField
|
|
||||||
Layout.fillWidth: true
|
|
||||||
placeholderText: "user@host:port"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// --- Agent ---
|
|
||||||
Label { text: "Agent"; font.bold: true; font.pointSize: theme.fontSize > 0 ? theme.fontSize + 1 : Qt.application.font.pointSize + 1 }
|
|
||||||
|
|
||||||
// Agent profile
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Label { text: "Profile:"; Layout.preferredWidth: 80 }
|
Label { text: "Profile:"; Layout.preferredWidth: 80 }
|
||||||
|
|
@ -445,7 +434,7 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Agent Name
|
// Alias
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Label { text: "Alias:"; Layout.preferredWidth: 80 }
|
Label { text: "Alias:"; Layout.preferredWidth: 80 }
|
||||||
|
|
@ -456,6 +445,17 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remote
|
||||||
|
RowLayout {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Label { text: "Remote:"; Layout.preferredWidth: 80 }
|
||||||
|
TextField {
|
||||||
|
id: remoteField
|
||||||
|
Layout.fillWidth: true
|
||||||
|
placeholderText: "user@host:port"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (!ollie.rootBackendsLoaded) ollie.loadRootBackends()
|
if (!ollie.rootBackendsLoaded) ollie.loadRootBackends()
|
||||||
if (!ollie.rootAgentsLoaded) ollie.loadRootAgents()
|
if (!ollie.rootAgentsLoaded) ollie.loadRootAgents()
|
||||||
|
|
|
||||||
Reference in New Issue