Browse Source

- Started work on temp folder

- Use a proper icon for browse buttons
adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
ee99df0ba9
  1. BIN
      src/Icons/oxygen/browse.png
  2. 1
      src/icons.qrc
  3. 491
      src/options.ui

BIN
src/Icons/oxygen/browse.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 796 B

1
src/icons.qrc

@ -42,6 +42,7 @@
<file>Icons/flags/turkey.png</file> <file>Icons/flags/turkey.png</file>
<file>Icons/flags/ukraine.png</file> <file>Icons/flags/ukraine.png</file>
<file>Icons/flags/united_kingdom.png</file> <file>Icons/flags/united_kingdom.png</file>
<file>Icons/oxygen/browse.png</file>
<file>Icons/oxygen/bt_settings.png</file> <file>Icons/oxygen/bt_settings.png</file>
<file>Icons/oxygen/bug.png</file> <file>Icons/oxygen/bug.png</file>
<file>Icons/oxygen/button_cancel.png</file> <file>Icons/oxygen/button_cancel.png</file>

491
src/options.ui

@ -590,7 +590,7 @@
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="tabOptionPage2"> <widget class="QWidget" name="tabOptionPage2">
<layout class="QVBoxLayout" name="verticalLayout_5"> <layout class="QVBoxLayout" name="verticalLayout_13">
<item> <item>
<widget class="QGroupBox" name="fileSystemBox"> <widget class="QGroupBox" name="fileSystemBox">
<property name="sizePolicy"> <property name="sizePolicy">
@ -602,14 +602,7 @@
<property name="title"> <property name="title">
<string>File system</string> <string>File system</string>
</property> </property>
<layout class="QVBoxLayout"> <layout class="QVBoxLayout" name="verticalLayout_12">
<item>
<widget class="QLabel" name="lblSavePath">
<property name="text">
<string>Put downloads in this folder:</string>
</property>
</widget>
</item>
<item> <item>
<layout class="QHBoxLayout"> <layout class="QHBoxLayout">
<property name="spacing"> <property name="spacing">
@ -626,6 +619,13 @@
<property name="margin"> <property name="margin">
<number>0</number> <number>0</number>
</property> </property>
<item>
<widget class="QLabel" name="lblSavePath">
<property name="text">
<string>Download folder:</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QLineEdit" name="textSavePath"> <widget class="QLineEdit" name="textSavePath">
<property name="text"> <property name="text">
@ -635,8 +635,24 @@
</item> </item>
<item> <item>
<widget class="QToolButton" name="browseSaveDirButton"> <widget class="QToolButton" name="browseSaveDirButton">
<property name="text"> <property name="enabled">
<string>...</string> <bool>true</bool>
</property>
<property name="minimumSize">
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>25</width>
<height>27</height>
</size>
</property>
<property name="icon">
<iconset resource="icons.qrc">
<normaloff>:/Icons/oxygen/browse.png</normaloff>:/Icons/oxygen/browse.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
@ -645,61 +661,53 @@
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="checkPreallocateAll"> <layout class="QHBoxLayout" name="horizontalLayout_7">
<property name="text">
<string>Pre-allocate all files</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="torrentAdditionBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>When adding a torrent</string>
</property>
<layout class="QVBoxLayout">
<item>
<layout class="QHBoxLayout">
<item> <item>
<widget class="QCheckBox" name="checkAdditionDialog"> <widget class="QCheckBox" name="checkBox">
<property name="text"> <property name="text">
<string>Display torrent content and some options</string> <string>Temp folder:</string>
</property> </property>
<property name="checked"> </widget>
<bool>true</bool> </item>
<item>
<widget class="QLineEdit" name="tempSavePath">
<property name="enabled">
<bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<spacer> <widget class="QToolButton" name="browseTempDirButton">
<property name="orientation"> <property name="enabled">
<enum>Qt::Horizontal</enum> <bool>false</bool>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>25</horstretch>
<verstretch>27</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size> <size>
<width>40</width> <width>22</width>
<height>20</height> <height>22</height>
</size> </size>
</property> </property>
</spacer> <property name="icon">
</item> <iconset resource="icons.qrc">
<item> <normaloff>:/Icons/oxygen/browse.png</normaloff>:/Icons/oxygen/browse.png</iconset>
<widget class="QCheckBox" name="checkStartPaused">
<property name="text">
<string comment="The torrent will be added to download list in pause state">Do not start download automatically</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QCheckBox" name="checkPreallocateAll">
<property name="text">
<string>Pre-allocate all files</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -742,8 +750,21 @@
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="minimumSize">
<string>...</string> <size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>25</width>
<height>27</height>
</size>
</property>
<property name="icon">
<iconset resource="icons.qrc">
<normaloff>:/Icons/oxygen/browse.png</normaloff>:/Icons/oxygen/browse.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
@ -753,149 +774,236 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="groupQueueing"> <layout class="QHBoxLayout" name="horizontalLayout_6">
<property name="title"> <item>
<string>Torrent queueing</string> <widget class="QGroupBox" name="groupQueueing">
</property> <property name="title">
<layout class="QVBoxLayout" name="verticalLayout"> <string>Torrent queueing</string>
<item> </property>
<widget class="QCheckBox" name="checkEnableQueueing"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="text">
<string>Enable queueing system</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="_2">
<item>
<widget class="QLabel" name="label_max_active_dl">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Maximum active downloads:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinMaxActiveDownloads">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimum">
<number>-1</number>
</property>
<property name="maximum">
<number>999</number>
</property>
<property name="value">
<number>3</number>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="_6">
<item> <item>
<widget class="QLabel" name="label_max_active_up"> <widget class="QCheckBox" name="checkEnableQueueing">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text"> <property name="text">
<string>Maximum active uploads:</string> <string>Enable queueing system</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinMaxActiveUploads">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimum">
<number>-1</number>
</property>
<property name="maximum">
<number>999</number>
</property>
<property name="value">
<number>3</number>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<spacer> <layout class="QHBoxLayout" name="_2">
<property name="orientation"> <item>
<enum>Qt::Horizontal</enum> <widget class="QLabel" name="label_max_active_dl">
</property> <property name="enabled">
<property name="sizeHint" stdset="0"> <bool>false</bool>
<size> </property>
<width>40</width> <property name="text">
<height>20</height> <string>Maximum active downloads:</string>
</size> </property>
</property> </widget>
</spacer> </item>
</item> <item>
</layout> <widget class="QSpinBox" name="spinMaxActiveDownloads">
</item> <property name="enabled">
<item> <bool>false</bool>
<layout class="QHBoxLayout" name="_7"> </property>
<item> <property name="minimum">
<widget class="QLabel" name="maxActiveTorrents_lbl"> <number>-1</number>
<property name="enabled"> </property>
<bool>false</bool> <property name="maximum">
</property> <number>999</number>
<property name="text"> </property>
<string>Maximum active torrents:</string> <property name="value">
</property> <number>3</number>
</widget> </property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item> </item>
<item> <item>
<widget class="QSpinBox" name="spinMaxActiveTorrents"> <layout class="QHBoxLayout" name="_6">
<property name="enabled"> <item>
<bool>false</bool> <widget class="QLabel" name="label_max_active_up">
</property> <property name="enabled">
<property name="minimum"> <bool>false</bool>
<number>-1</number> </property>
</property> <property name="text">
<property name="maximum"> <string>Maximum active uploads:</string>
<number>999</number> </property>
</property> </widget>
<property name="value"> </item>
<number>5</number> <item>
</property> <widget class="QSpinBox" name="spinMaxActiveUploads">
</widget> <property name="enabled">
<bool>false</bool>
</property>
<property name="minimum">
<number>-1</number>
</property>
<property name="maximum">
<number>999</number>
</property>
<property name="value">
<number>3</number>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item> </item>
<item> <item>
<spacer> <layout class="QHBoxLayout" name="_7">
<property name="orientation"> <item>
<enum>Qt::Horizontal</enum> <widget class="QLabel" name="maxActiveTorrents_lbl">
</property> <property name="enabled">
<property name="sizeHint" stdset="0"> <bool>false</bool>
<size> </property>
<width>381</width> <property name="text">
<height>20</height> <string>Maximum active torrents:</string>
</size> </property>
</property> </widget>
</spacer> </item>
<item>
<widget class="QSpinBox" name="spinMaxActiveTorrents">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimum">
<number>-1</number>
</property>
<property name="maximum">
<number>999</number>
</property>
<property name="value">
<number>5</number>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>381</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item> </item>
</layout> </layout>
</item> </widget>
</layout> </item>
</widget> <item>
<layout class="QVBoxLayout" name="verticalLayout_11">
<item>
<widget class="QGroupBox" name="torrentAdditionBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>When adding a torrent</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QCheckBox" name="checkAdditionDialog">
<property name="text">
<string>Display torrent content and some options</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QCheckBox" name="checkStartPaused">
<property name="text">
<string comment="The torrent will be added to download list in pause state">Do not start download automatically</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item> </item>
<item> <item>
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
@ -2045,8 +2153,21 @@
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="minimumSize">
<string>...</string> <size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>25</width>
<height>27</height>
</size>
</property>
<property name="icon">
<iconset resource="icons.qrc">
<normaloff>:/Icons/oxygen/browse.png</normaloff>:/Icons/oxygen/browse.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>

Loading…
Cancel
Save