added new drawer2type for replacing drawertype
This commit is contained in:
parent
4b7c8f21c2
commit
384ce9853b
24 changed files with 350 additions and 56 deletions
|
|
@ -365,14 +365,14 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
InstallController.removeCurrentlyProcessedContainer()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
}
|
||||
questionDrawer.visible = true
|
||||
questionDrawer.open()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -397,6 +397,7 @@ PageType {
|
|||
|
||||
QuestionDrawer {
|
||||
id: questionDrawer
|
||||
parent: root
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,8 +90,9 @@ PageType {
|
|||
|
||||
DividerType {}
|
||||
|
||||
DrawerType {
|
||||
Drawer2Type {
|
||||
id: configContentDrawer
|
||||
parent: root
|
||||
|
||||
width: parent.width
|
||||
height: parent.height * 0.9
|
||||
|
|
@ -179,14 +180,14 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
InstallController.removeCurrentlyProcessedContainer()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
}
|
||||
questionDrawer.visible = true
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
|
@ -201,6 +202,7 @@ PageType {
|
|||
|
||||
QuestionDrawer {
|
||||
id: questionDrawer
|
||||
parent: root
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,14 +68,14 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
InstallController.removeCurrentlyProcessedContainer()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
}
|
||||
questionDrawer.visible = true
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
|
@ -89,6 +89,7 @@ PageType {
|
|||
|
||||
QuestionDrawer {
|
||||
id: questionDrawer
|
||||
parent: root
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -265,14 +265,14 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
InstallController.removeCurrentlyProcessedContainer()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
}
|
||||
questionDrawer.visible = true
|
||||
questionDrawer.open()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -282,6 +282,7 @@ PageType {
|
|||
|
||||
QuestionDrawer {
|
||||
id: questionDrawer
|
||||
parent: root
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -143,20 +143,21 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
InstallController.removeCurrentlyProcessedContainer()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
}
|
||||
questionDrawer.visible = true
|
||||
questionDrawer.open()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QuestionDrawer {
|
||||
id: questionDrawer
|
||||
parent: root
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,6 +119,7 @@ PageType {
|
|||
|
||||
SelectLanguageDrawer {
|
||||
id: selectLanguageDrawer
|
||||
parent: root
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -151,14 +152,14 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
SettingsController.clearSettings()
|
||||
PageController.replaceStartPage()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
}
|
||||
questionDrawer.visible = true
|
||||
questionDrawer.open()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -166,6 +167,7 @@ PageType {
|
|||
|
||||
QuestionDrawer {
|
||||
id: questionDrawer
|
||||
parent: root
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,15 +138,15 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
PageController.showBusyIndicator(true)
|
||||
SettingsController.restoreAppConfig(filePath)
|
||||
PageController.showBusyIndicator(false)
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
}
|
||||
questionDrawer.visible = true
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
||||
QuestionDrawer {
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
SettingsController.primaryDns = "1.1.1.1"
|
||||
primaryDns.textFieldText = SettingsController.primaryDns
|
||||
SettingsController.secondaryDns = "1.0.0.1"
|
||||
|
|
@ -99,9 +99,9 @@ PageType {
|
|||
PageController.showNotificationMessage(qsTr("Settings have been reset"))
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
}
|
||||
questionDrawer.visible = true
|
||||
questionDrawer.open()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -123,6 +123,7 @@ PageType {
|
|||
}
|
||||
QuestionDrawer {
|
||||
id: questionDrawer
|
||||
parent: root
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -146,16 +146,16 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
PageController.showBusyIndicator(true)
|
||||
SettingsController.clearLogs()
|
||||
PageController.showBusyIndicator(false)
|
||||
PageController.showNotificationMessage(qsTr("Logs have been cleaned up"))
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
}
|
||||
questionDrawer.visible = true
|
||||
questionDrawer.open()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -171,6 +171,7 @@ PageType {
|
|||
|
||||
QuestionDrawer {
|
||||
id: questionDrawer
|
||||
parent: root
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,15 +94,15 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
PageController.showBusyIndicator(true)
|
||||
SettingsController.clearCachedProfiles()
|
||||
PageController.showBusyIndicator(false)
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
}
|
||||
questionDrawer.visible = true
|
||||
questionDrawer.open()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -172,7 +172,7 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
if (ServersModel.isDefaultServerCurrentlyProcessed() && ConnectionController.isConnected) {
|
||||
ConnectionController.closeConnection()
|
||||
|
|
@ -180,9 +180,9 @@ PageType {
|
|||
InstallController.removeAllContainers()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
}
|
||||
questionDrawer.visible = true
|
||||
questionDrawer.open()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -71,13 +71,14 @@ PageType {
|
|||
}
|
||||
|
||||
actionButtonFunction: function() {
|
||||
serverNameEditDrawer.visible = true
|
||||
serverNameEditDrawer.open()
|
||||
}
|
||||
}
|
||||
|
||||
DrawerType {
|
||||
Drawer2Type {
|
||||
id: serverNameEditDrawer
|
||||
|
||||
parent: root
|
||||
width: root.width
|
||||
height: root.height * 0.35
|
||||
|
||||
|
|
@ -95,6 +96,7 @@ PageType {
|
|||
anchors.leftMargin: 16
|
||||
anchors.rightMargin: 16
|
||||
|
||||
|
||||
TextFieldWithHeaderType {
|
||||
id: serverName
|
||||
|
||||
|
|
|
|||
|
|
@ -119,14 +119,14 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
PageController.goToPage(PageEnum.PageDeinstalling)
|
||||
InstallController.removeCurrentlyProcessedContainer()
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
}
|
||||
questionDrawer.visible = true
|
||||
questionDrawer.open()
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
|
|
|||
|
|
@ -200,13 +200,13 @@ PageType {
|
|||
questionDrawer.noButtonText = qsTr("Cancel")
|
||||
|
||||
questionDrawer.yesButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
SitesController.removeSite(index)
|
||||
}
|
||||
questionDrawer.noButtonFunction = function() {
|
||||
questionDrawer.visible = false
|
||||
questionDrawer.onClose()
|
||||
}
|
||||
questionDrawer.visible = true
|
||||
questionDrawer.open()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -214,6 +214,7 @@ PageType {
|
|||
|
||||
QuestionDrawer {
|
||||
id: questionDrawer
|
||||
parent: root
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -259,12 +260,14 @@ PageType {
|
|||
}
|
||||
}
|
||||
|
||||
DrawerType {
|
||||
Drawer2Type {
|
||||
id: moreActionsDrawer
|
||||
|
||||
width: parent.width
|
||||
height: parent.height * 0.4375
|
||||
|
||||
parent: root
|
||||
|
||||
FlickableType {
|
||||
anchors.fill: parent
|
||||
contentHeight: moreActionsDrawerContent.height
|
||||
|
|
@ -324,12 +327,14 @@ PageType {
|
|||
}
|
||||
}
|
||||
|
||||
DrawerType {
|
||||
Drawer2Type {
|
||||
id: importSitesDrawer
|
||||
|
||||
width: parent.width
|
||||
height: parent.height * 0.4375
|
||||
|
||||
parent: root
|
||||
|
||||
BackButtonType {
|
||||
id: importSitesDrawerBackButton
|
||||
|
||||
|
|
|
|||
|
|
@ -97,12 +97,14 @@ PageType {
|
|||
}
|
||||
}
|
||||
|
||||
DrawerType {
|
||||
Drawer2Type {
|
||||
id: showDetailsDrawer
|
||||
|
||||
width: parent.width
|
||||
height: parent.height * 0.9
|
||||
|
||||
parent: root
|
||||
|
||||
BackButtonType {
|
||||
id: showDetailsBackButton
|
||||
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ PageType {
|
|||
text: qsTr("I have the data to connect")
|
||||
|
||||
onClicked: {
|
||||
connectionTypeSelection.visible = true
|
||||
connectionTypeSelection.open()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -140,6 +140,7 @@ PageType {
|
|||
|
||||
ConnectionTypeSelectionDrawer {
|
||||
id: connectionTypeSelection
|
||||
parent: root
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -371,6 +371,7 @@ PageType {
|
|||
|
||||
ShareConnectionDrawer {
|
||||
id: shareConnectionDrawer
|
||||
parent: root
|
||||
}
|
||||
|
||||
BasicButtonType {
|
||||
|
|
|
|||
|
|
@ -135,6 +135,8 @@ PageType {
|
|||
var pagePath = PageController.getPagePath(PageEnum.PageHome)
|
||||
ServersModel.currentlyProcessedIndex = ServersModel.defaultIndex
|
||||
tabBarStackView.push(pagePath, { "objectName" : pagePath })
|
||||
|
||||
connectionTypeSelection.parent = tabBarStackView
|
||||
}
|
||||
|
||||
onWidthChanged: {
|
||||
|
|
@ -243,7 +245,7 @@ PageType {
|
|||
ConnectionTypeSelectionDrawer {
|
||||
id: connectionTypeSelection
|
||||
|
||||
onAboutToHide: {
|
||||
onClose: function() {
|
||||
tabBar.setCurrentIndex(tabBar.previousIndex)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue