Commit 7a98545c authored by Rajko Albrecht's avatar Rajko Albrecht
Browse files

ui

parent d0e2d362
......@@ -9,4 +9,5 @@ class OpenBackup(QtWidgets.QWizard, Ui_OpenBackup):
self.setupUi(self)
def backup_url(self):
return self.urlEdit.text()
return self.inputUrlPage.backup_url()
# -*- coding: utf-8 -*-
from PyQt5.QtWidgets import QWizardPage
from dupstep.ui.Ui_backup_url_page import Ui_BackupUrlPage
#from PyQt5.QtCore import pyqtSlot
class BackupUrlPage(QWizardPage, Ui_BackupUrlPage):
def __init__(self, parent=None):
QWizardPage.__init__(self, parent)
self.setupUi(self)
self.registerField("inputUrl*", self.urlEdit)
def backup_url(self):
return self.urlEdit.text()
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>BackupUrlPage</class>
<widget class="QWizardPage" name="BackupUrlPage">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>WizardPage</string>
</property>
<property name="title">
<string>Enter &amp;url of backup</string>
</property>
<property name="subTitle">
<string>Must be a valid URL readable by duplicity</string>
</property>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Backup url</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="urlEdit"/>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
......@@ -22,30 +22,7 @@
<property name="options">
<set>QWizard::HaveHelpButton</set>
</property>
<widget class="QWizardPage" name="inputUrlPage">
<property name="title">
<string>Enter url of backup</string>
</property>
<property name="subTitle">
<string>Must be a valid URL readable by duplicity</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Backup url</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="urlEdit"/>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="BackupUrlPage" name="inputUrlPage"/>
<widget class="BackupOptionsPage" name="backupOptionsPage"/>
</widget>
<customwidgets>
......@@ -55,6 +32,12 @@
<header>dupstep/ui/backup_options_page.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>BackupUrlPage</class>
<extends>QWizardPage</extends>
<header>dupstep/ui/backup_url_page.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment