Compare commits

...

1 Commits

Author SHA1 Message Date
shim_
77592fb78b added configure option for processors 2018-05-10 18:55:27 +02:00
2 changed files with 104 additions and 51 deletions

View File

@ -27,6 +27,7 @@ class SeafileUploader():
self.parentWidget = parentWidget self.parentWidget = parentWidget
self.settingsDialog = self.uil.load(QFile(workingDir + "/settings.ui"), 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_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_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.pathEdit.connect("textChanged(QString)", self.locationUpdate)
self.settingsDialog.group_location.widget_location.libraryEditDrop.connect("currentIndexChanged(QString)", self.locationUpdate) self.settingsDialog.group_location.widget_location.libraryEditDrop.connect("currentIndexChanged(QString)", self.locationUpdate)

View File

@ -6,10 +6,16 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>437</width> <width>500</width>
<height>475</height> <height>589</height>
</rect> </rect>
</property> </property>
<property name="maximumSize">
<size>
<width>500</width>
<height>600</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Seafile - Settings</string> <string>Seafile - Settings</string>
</property> </property>
@ -78,6 +84,40 @@
</layout> </layout>
</widget> </widget>
</item> </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> <item>
<widget class="QGroupBox" name="group_location"> <widget class="QGroupBox" name="group_location">
<property name="enabled"> <property name="enabled">
@ -89,6 +129,12 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>300</height>
</size>
</property>
<property name="baseSize"> <property name="baseSize">
<size> <size>
<width>0</width> <width>0</width>
@ -104,25 +150,25 @@
<property name="title"> <property name="title">
<string>Location</string> <string>Location</string>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QWidget" name="widget_location" native="true"> <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"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>300</height>
</size>
</property>
<property name="layoutDirection"> <property name="layoutDirection">
<enum>Qt::LeftToRight</enum> <enum>Qt::LeftToRight</enum>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_3" stretch="1,1,1,1"> <layout class="QVBoxLayout" name="verticalLayout_3">
<property name="sizeConstraint"> <property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum> <enum>QLayout::SetDefaultConstraint</enum>
</property> </property>
@ -153,7 +199,13 @@
<widget class="QLineEdit" name="pathEdit"/> <widget class="QLineEdit" name="pathEdit"/>
</item> </item>
</layout> </layout>
<zorder>libraryEditDrop</zorder>
<zorder>label_5</zorder>
<zorder>label_4</zorder>
<zorder>pathEdit</zorder>
</widget> </widget>
</item>
</layout>
</widget> </widget>
</item> </item>
<item> <item>