Browse Source

- Redesigned options

- Updated TODO
- Added UPnP option entry (but still not taken into consideration nor saved)
adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
9408e8006d
  1. 3
      Changelog
  2. 2
      TODO
  3. BIN
      src/Icons/connection.png
  4. 1
      src/icons.qrc
  5. 605
      src/options.ui
  6. 11
      src/options_imp.cpp

3
Changelog

@ -1,8 +1,9 @@
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v0.10.0 or v1.0.0? * Unknown - Christophe Dumez <chris@qbittorrent.org> - v0.10.0
- FEATURE: Added UPnP port forwarding support - FEATURE: Added UPnP port forwarding support
- FEATURE: Display more infos about the torrent in its properties - FEATURE: Display more infos about the torrent in its properties
- FEATURE: Allow the user to edit torrents' trackers - FEATURE: Allow the user to edit torrents' trackers
- COSMETIC: Redesigned torrent properties a little - COSMETIC: Redesigned torrent properties a little
- COSMETIC: Redesigned options a little
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v0.9.0 * Unknown - Christophe Dumez <chris@qbittorrent.org> - v0.9.0
- FEATURE: Based on libtorrent v0.12 - FEATURE: Based on libtorrent v0.12

2
TODO

@ -41,3 +41,5 @@
- Update v0.9.0 changelog after its release - Update v0.9.0 changelog after its release
- Display Url seeds in torrent properties and allow to edit them - Display Url seeds in torrent properties and allow to edit them
- Improve Ipfilter.dat parser (move to a thread ?) - Improve Ipfilter.dat parser (move to a thread ?)
- Use tooltips to explain options
- Exit confirmation only if there are active downloads

BIN
src/Icons/connection.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

1
src/icons.qrc

@ -21,6 +21,7 @@
<file>Icons/home.png</file> <file>Icons/home.png</file>
<file>Icons/uparrow.png</file> <file>Icons/uparrow.png</file>
<file>Icons/downarrow.png</file> <file>Icons/downarrow.png</file>
<file>Icons/connection.png</file>
<file>Icons/flags/portugal.png</file> <file>Icons/flags/portugal.png</file>
<file>Icons/flags/france.png</file> <file>Icons/flags/france.png</file>
<file>Icons/flags/ukraine.png</file> <file>Icons/flags/ukraine.png</file>

605
src/options.ui

@ -5,8 +5,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>506</width> <width>545</width>
<height>508</height> <height>530</height>
</rect> </rect>
</property> </property>
<property name="minimumSize" > <property name="minimumSize" >
@ -54,7 +54,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QTabWidget" name="tabWidget" > <widget class="QTabWidget" name="tabOptions" >
<property name="tabPosition" > <property name="tabPosition" >
<enum>QTabWidget::North</enum> <enum>QTabWidget::North</enum>
</property> </property>
@ -64,9 +64,18 @@
<property name="currentIndex" > <property name="currentIndex" >
<number>0</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="tab" > <property name="iconSize" >
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="elideMode" >
<enum>Qt::ElideLeft</enum>
</property>
<widget class="QWidget" name="Connection" >
<attribute name="title" > <attribute name="title" >
<string>Main</string> <string>Connection</string>
</attribute> </attribute>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" > <property name="margin" >
@ -76,15 +85,9 @@
<number>6</number> <number>6</number>
</property> </property>
<item> <item>
<widget class="QGroupBox" name="groupBox" > <widget class="QGroupBox" name="groupMainConnec" >
<property name="minimumSize" >
<size>
<width>0</width>
<height>191</height>
</size>
</property>
<property name="title" > <property name="title" >
<string>Connection Settings</string> <string>Main</string>
</property> </property>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" > <property name="margin" >
@ -124,9 +127,6 @@
<property name="text" > <property name="text" >
<string>Upload Limit:</string> <string>Upload Limit:</string>
</property> </property>
<property name="buddy" >
<cstring>enableScan_checkBox</cstring>
</property>
</widget> </widget>
</item> </item>
<item> <item>
@ -502,17 +502,268 @@
</item> </item>
</layout> </layout>
</item> </item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Peer eXchange (PeX)</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item> <item>
<widget class="QCheckBox" name="disableDHT" > <widget class="QCheckBox" name="disablePeX" >
<property name="text" > <property name="text" >
<string>Disable DHT (Trackerless)</string> <string>Disable Peer eXchange (PeX)</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="groupMainDHT" >
<property name="title" >
<string>DHT (trackerless)</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QCheckBox" name="disableDHT" >
<property name="text" >
<string>Disable DHT (Trackerless)</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupDHT" >
<property name="title" >
<string>DHT configuration</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="dhtPort_lbl" >
<property name="text" >
<string>DHT port:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spin_dht_port" >
<property name="minimumSize" >
<size>
<width>6</width>
<height>0</height>
</size>
</property>
<property name="maximum" >
<number>65525</number>
</property>
<property name="minimum" >
<number>1000</number>
</property>
<property name="value" >
<number>6881</number>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupMainUPnP" >
<property name="title" >
<string>UPnP port forwarding</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QCheckBox" name="disableUPnP" >
<property name="text" >
<string>Disable UPnP port forwarding</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupUPnP" >
<property name="title" >
<string>UPnP configuration</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="UPnPPort_lbl" >
<property name="text" >
<string>UPnP port:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spin_UPnP_port" >
<property name="minimumSize" >
<size>
<width>6</width>
<height>0</height>
</size>
</property>
<property name="maximum" >
<number>65525</number>
</property>
<property name="minimum" >
<number>1000</number>
</property>
<property name="value" >
<number>50000</number>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="Behaviour" >
<attribute name="title" >
<string>Behaviour</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="groupTorrentAddition" >
<property name="title" >
<string>Torrent addition</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QCheckBox" name="checkAdditionDialog" >
<property name="text" >
<string>Display a torrent addition dialog everytime I add a torrent</string>
</property>
<property name="checked" >
<bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="groupDHT" > <widget class="QGroupBox" name="groupSavePath" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="title" > <property name="title" >
<string>DHT configuration</string> <string>Default save path</string>
</property> </property>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" > <property name="margin" >
@ -530,53 +781,83 @@
<number>6</number> <number>6</number>
</property> </property>
<item> <item>
<widget class="QLabel" name="dhtPort_lbl" > <widget class="QLabel" name="lbl_savePath" >
<property name="text" > <property name="text" >
<string>DHT port:</string> <string>Save Path:</string>
</property> </property>
</widget> <property name="buddy" >
</item> <cstring>proxy_username</cstring>
<item>
<widget class="QSpinBox" name="spin_dht_port" >
<property name="minimumSize" >
<size>
<width>6</width>
<height>0</height>
</size>
</property>
<property name="maximum" >
<number>65525</number>
</property>
<property name="minimum" >
<number>1000</number>
</property>
<property name="value" >
<number>6881</number>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<spacer> <layout class="QHBoxLayout" >
<property name="orientation" > <property name="margin" >
<enum>Qt::Horizontal</enum> <number>0</number>
</property> </property>
<property name="sizeHint" > <property name="spacing" >
<size> <number>6</number>
<width>40</width>
<height>20</height>
</size>
</property> </property>
</spacer> <item>
<widget class="QLineEdit" name="txt_savePath" >
<property name="text" >
<string/>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="browse_button" >
<property name="text" >
<string>...</string>
</property>
</widget>
</item>
</layout>
</item> </item>
</layout> </layout>
</item> </item>
</layout> </layout>
</widget> </widget>
</item> </item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_3" >
<property name="title" >
<string>Main window</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item> <item>
<widget class="QCheckBox" name="disablePeX" > <widget class="QCheckBox" name="confirmExit_checkBox" >
<property name="text" > <property name="text" >
<string>Disable Peer eXchange (PeX)</string> <string>Ask for confirmation on exit</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="check_goToSysTray" >
<property name="text" >
<string>Go to systray when minimizing window</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="check_closeToSysTray" >
<property name="text" >
<string>Go to systray when closing main window</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -584,62 +865,44 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="enableScan_checkBox" > <widget class="QGroupBox" name="groupOSD" >
<property name="text" > <property name="title" >
<string>Enable directory scan (auto add torrent files inside)</string> <string>Systray messages</string>
</property> </property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QRadioButton" name="alwaysOSD" >
<property name="text" >
<string>Always display systray messages</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="someOSD" >
<property name="text" >
<string>Display systray messages only when window is hidden</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="neverOSD" >
<property name="text" >
<string>Never display systray messages</string>
</property>
</widget>
</item>
</layout>
</widget> </widget>
</item> </item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="lbl_scanDir" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Scanned Dir:</string>
</property>
<property name="buddy" >
<cstring>proxy_username</cstring>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLineEdit" name="scanDir" >
<property name="enabled" >
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="browse_button_scan" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>...</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item> <item>
<spacer> <spacer>
<property name="orientation" > <property name="orientation" >
@ -647,8 +910,8 @@
</property> </property>
<property name="sizeHint" > <property name="sizeHint" >
<size> <size>
<width>20</width> <width>466</width>
<height>40</height> <height>31</height>
</size> </size>
</property> </property>
</spacer> </spacer>
@ -1156,22 +1419,9 @@
<number>6</number> <number>6</number>
</property> </property>
<item> <item>
<widget class="QCheckBox" name="checkAdditionDialog" > <widget class="QGroupBox" name="groupScan" >
<property name="text" >
<string>Display a torrent addition dialog everytime I add a torrent</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupSavePath" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="title" > <property name="title" >
<string>Default save path</string> <string>Directory scan</string>
</property> </property>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" > <property name="margin" >
@ -1180,6 +1430,13 @@
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<item>
<widget class="QCheckBox" name="enableScan_checkBox" >
<property name="text" >
<string>Enable directory scan (auto add torrent files inside)</string>
</property>
</widget>
</item>
<item> <item>
<layout class="QHBoxLayout" > <layout class="QHBoxLayout" >
<property name="margin" > <property name="margin" >
@ -1189,9 +1446,12 @@
<number>6</number> <number>6</number>
</property> </property>
<item> <item>
<widget class="QLabel" name="lbl_savePath" > <widget class="QLabel" name="lbl_scanDir" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" > <property name="text" >
<string>Save Path:</string> <string>Scanned Dir:</string>
</property> </property>
<property name="buddy" > <property name="buddy" >
<cstring>proxy_username</cstring> <cstring>proxy_username</cstring>
@ -1207,14 +1467,17 @@
<number>6</number> <number>6</number>
</property> </property>
<item> <item>
<widget class="QLineEdit" name="txt_savePath" > <widget class="QLineEdit" name="scanDir" >
<property name="text" > <property name="enabled" >
<string/> <bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="browse_button" > <widget class="QToolButton" name="browse_button_scan" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" > <property name="text" >
<string>...</string> <string>...</string>
</property> </property>
@ -1227,48 +1490,6 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item>
<widget class="QGroupBox" name="groupBox_3" >
<property name="title" >
<string>Behaviour</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QCheckBox" name="confirmExit_checkBox" >
<property name="text" >
<string>Ask for confirmation on exit</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="check_goToSysTray" >
<property name="text" >
<string>Go to systray when minimizing window</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="check_closeToSysTray" >
<property name="text" >
<string>Go to systray when closing main window</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item> <item>
<widget class="QGroupBox" name="groupBox_4" > <widget class="QGroupBox" name="groupBox_4" >
<property name="title" > <property name="title" >
@ -1312,43 +1533,17 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="groupOSD" > <spacer>
<property name="title" > <property name="orientation" >
<string>Systray Messages</string> <enum>Qt::Vertical</enum>
</property> </property>
<layout class="QVBoxLayout" > <property name="sizeHint" >
<property name="margin" > <size>
<number>9</number> <width>466</width>
</property> <height>41</height>
<property name="spacing" > </size>
<number>6</number> </property>
</property> </spacer>
<item>
<widget class="QRadioButton" name="alwaysOSD" >
<property name="text" >
<string>Always display systray messages</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="someOSD" >
<property name="text" >
<string>Display systray messages only when window is hidden</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="neverOSD" >
<property name="text" >
<string>Never display systray messages</string>
</property>
</widget>
</item>
</layout>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>

11
src/options_imp.cpp

@ -34,11 +34,12 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
QString savePath; QString savePath;
setupUi(this); setupUi(this);
// Setting icons // Setting icons
tabWidget->setTabIcon(0, QIcon(QString::fromUtf8(":/Icons/systemtray.png"))); tabOptions->setTabIcon(0, QIcon(QString::fromUtf8(":/Icons/connection.png")));
tabWidget->setTabIcon(1, QIcon(QString::fromUtf8(":/Icons/locale.png"))); tabOptions->setTabIcon(1, QIcon(QString::fromUtf8(":/Icons/style.png")));
tabWidget->setTabIcon(2, QIcon(QString::fromUtf8(":/Icons/filter.png"))); tabOptions->setTabIcon(2, QIcon(QString::fromUtf8(":/Icons/locale.png")));
tabWidget->setTabIcon(3, QIcon(QString::fromUtf8(":/Icons/proxy.png"))); tabOptions->setTabIcon(3, QIcon(QString::fromUtf8(":/Icons/filter.png")));
tabWidget->setTabIcon(4, QIcon(QString::fromUtf8(":/Icons/style.png"))); tabOptions->setTabIcon(4, QIcon(QString::fromUtf8(":/Icons/proxy.png")));
tabOptions->setTabIcon(5, QIcon(QString::fromUtf8(":/Icons/wizard.png")));
lbl_icon_i18n->setPixmap(QPixmap(QString::fromUtf8(":/Icons/locale.png"))); lbl_icon_i18n->setPixmap(QPixmap(QString::fromUtf8(":/Icons/locale.png")));
addFilterRange->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/add.png"))); addFilterRange->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/add.png")));
delFilterRange->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/remove.png"))); delFilterRange->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/remove.png")));

Loading…
Cancel
Save