added configure option for processors

This commit is contained in:
shim_ 2018-05-10 18:55:27 +02:00
parent 2f56ce4314
commit 77592fb78b
2 changed files with 104 additions and 51 deletions

View File

@ -27,6 +27,7 @@ class SeafileUploader():
self.parentWidget = parentWidget
self.settingsDialog = self.uil.load(QFile(workingDir + "/settings.ui"), parentWidget)
self.settingsDialog.group_account.widget_loggedIn.loginButton.connect("clicked()", self.startAuthenticationProcess)
self.settingsDialog.group_processor.widget_processor.configureButton.connect("clicked()", self.processor.configure(self.settingsDialog))
#self.settingsDialog.group_name.input_name.connect("textChanged(QString)", self.nameFormatEdited)
self.settingsDialog.group_location.widget_location.pathEdit.connect("textChanged(QString)", self.locationUpdate)
self.settingsDialog.group_location.widget_location.libraryEditDrop.connect("currentIndexChanged(QString)", self.locationUpdate)

View File

@ -6,10 +6,16 @@
<rect>
<x>0</x>
<y>0</y>
<width>437</width>
<height>475</height>
<width>500</width>
<height>589</height>
</rect>
</property>
<property name="maximumSize">
<size>
<width>500</width>
<height>600</height>
</size>
</property>
<property name="windowTitle">
<string>Seafile - Settings</string>
</property>
@ -78,6 +84,40 @@
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="group_processor">
<property name="enabled">
<bool>true</bool>
</property>
<property name="title">
<string>Processor</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QWidget" name="widget_processor" native="true">
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QComboBox" name="processorsDrop"/>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="configureButton">
<property name="maximumSize">
<size>
<width>100</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Configure</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="group_location">
<property name="enabled">
@ -89,6 +129,12 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>300</height>
</size>
</property>
<property name="baseSize">
<size>
<width>0</width>
@ -104,25 +150,25 @@
<property name="title">
<string>Location</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QWidget" name="widget_location" native="true">
<property name="geometry">
<rect>
<x>20</x>
<y>20</y>
<width>391</width>
<height>101</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>300</height>
</size>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3" stretch="1,1,1,1">
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
@ -153,7 +199,13 @@
<widget class="QLineEdit" name="pathEdit"/>
</item>
</layout>
<zorder>libraryEditDrop</zorder>
<zorder>label_5</zorder>
<zorder>label_4</zorder>
<zorder>pathEdit</zorder>
</widget>
</item>
</layout>
</widget>
</item>
<item>