1<?xml version="1.0" encoding="UTF-8"?> 2<ui version="4.0"> 3 <class>TorrentOptionsDialog</class> 4 <widget class="QDialog" name="TorrentOptionsDialog"> 5 <property name="geometry"> 6 <rect> 7 <x>0</x> 8 <y>0</y> 9 <width>390</width> 10 <height>450</height> 11 </rect> 12 </property> 13 <property name="windowTitle"> 14 <string>Torrent Options</string> 15 </property> 16 <layout class="QVBoxLayout" name="verticalLayout_2"> 17 <item> 18 <widget class="QGroupBox" name="groupBox"> 19 <property name="title"> 20 <string>Torrent speed limits</string> 21 </property> 22 <layout class="QGridLayout" name="gridLayout_2"> 23 <item row="1" column="0"> 24 <widget class="QLabel" name="label_2"> 25 <property name="text"> 26 <string>Download:</string> 27 </property> 28 </widget> 29 </item> 30 <item row="1" column="2"> 31 <widget class="QSpinBox" name="spinDownloadLimit"> 32 <property name="specialValueText"> 33 <string>∞</string> 34 </property> 35 <property name="suffix"> 36 <string> KiB/s</string> 37 </property> 38 <property name="maximum"> 39 <number>2000000</number> 40 </property> 41 </widget> 42 </item> 43 <item row="0" column="2"> 44 <widget class="QSpinBox" name="spinUploadLimit"> 45 <property name="specialValueText"> 46 <string>∞</string> 47 </property> 48 <property name="suffix"> 49 <string> KiB/s</string> 50 </property> 51 <property name="maximum"> 52 <number>2000000</number> 53 </property> 54 </widget> 55 </item> 56 <item row="2" column="1" colspan="2"> 57 <widget class="QLabel" name="labelWarning"> 58 <property name="text"> 59 <string>These will not exceed the global limits</string> 60 </property> 61 </widget> 62 </item> 63 <item row="0" column="0"> 64 <widget class="QLabel" name="label"> 65 <property name="text"> 66 <string>Upload:</string> 67 </property> 68 </widget> 69 </item> 70 <item row="0" column="1"> 71 <widget class="QSlider" name="sliderUploadLimit"> 72 <property name="orientation"> 73 <enum>Qt::Horizontal</enum> 74 </property> 75 </widget> 76 </item> 77 <item row="1" column="1"> 78 <widget class="QSlider" name="sliderDownloadLimit"> 79 <property name="orientation"> 80 <enum>Qt::Horizontal</enum> 81 </property> 82 </widget> 83 </item> 84 </layout> 85 </widget> 86 </item> 87 <item> 88 <widget class="QGroupBox" name="groupBox_2"> 89 <property name="title"> 90 <string>Torrent share limits</string> 91 </property> 92 <layout class="QVBoxLayout" name="verticalLayout"> 93 <item> 94 <widget class="QRadioButton" name="radioUseGlobalShareLimits"> 95 <property name="text"> 96 <string>Use global share limit</string> 97 </property> 98 <attribute name="buttonGroup"> 99 <string notr="true">buttonGroup</string> 100 </attribute> 101 </widget> 102 </item> 103 <item> 104 <widget class="QRadioButton" name="radioNoLimit"> 105 <property name="text"> 106 <string>Set no share limit</string> 107 </property> 108 <attribute name="buttonGroup"> 109 <string notr="true">buttonGroup</string> 110 </attribute> 111 </widget> 112 </item> 113 <item> 114 <layout class="QGridLayout" name="gridLayout"> 115 <item row="0" column="0"> 116 <widget class="QRadioButton" name="radioTorrentLimit"> 117 <property name="text"> 118 <string>Set share limit to</string> 119 </property> 120 <attribute name="buttonGroup"> 121 <string notr="true">buttonGroup</string> 122 </attribute> 123 </widget> 124 </item> 125 <item row="1" column="1"> 126 <widget class="QCheckBox" name="checkMaxTime"> 127 <property name="text"> 128 <string>minutes</string> 129 </property> 130 </widget> 131 </item> 132 <item row="0" column="2"> 133 <widget class="QDoubleSpinBox" name="spinRatioLimit"> 134 <property name="maximum"> 135 <double>9999.000000000000000</double> 136 </property> 137 <property name="singleStep"> 138 <double>0.050000000000000</double> 139 </property> 140 <property name="value"> 141 <double>1.000000000000000</double> 142 </property> 143 </widget> 144 </item> 145 <item row="1" column="2"> 146 <widget class="QSpinBox" name="spinTimeLimit"> 147 <property name="maximum"> 148 <number>525600</number> 149 </property> 150 <property name="value"> 151 <number>1440</number> 152 </property> 153 </widget> 154 </item> 155 <item row="1" column="3"> 156 <spacer name="horizontalSpacer"> 157 <property name="orientation"> 158 <enum>Qt::Horizontal</enum> 159 </property> 160 <property name="sizeHint" stdset="0"> 161 <size> 162 <width>40</width> 163 <height>20</height> 164 </size> 165 </property> 166 </spacer> 167 </item> 168 <item row="0" column="1"> 169 <widget class="QCheckBox" name="checkMaxRatio"> 170 <property name="text"> 171 <string>ratio</string> 172 </property> 173 </widget> 174 </item> 175 </layout> 176 </item> 177 </layout> 178 </widget> 179 </item> 180 <item> 181 <layout class="QGridLayout" name="gridLayout_3"> 182 <item row="0" column="0"> 183 <widget class="QCheckBox" name="checkDisableDHT"> 184 <property name="text"> 185 <string>Disable DHT for this torrent</string> 186 </property> 187 </widget> 188 </item> 189 <item row="0" column="1"> 190 <spacer name="horizontalSpacer_2"> 191 <property name="orientation"> 192 <enum>Qt::Horizontal</enum> 193 </property> 194 <property name="sizeHint" stdset="0"> 195 <size> 196 <width>40</width> 197 <height>20</height> 198 </size> 199 </property> 200 </spacer> 201 </item> 202 <item row="1" column="0"> 203 <widget class="QCheckBox" name="checkDisablePEX"> 204 <property name="text"> 205 <string>Disable PeX for this torrent</string> 206 </property> 207 </widget> 208 </item> 209 <item row="2" column="0"> 210 <widget class="QCheckBox" name="checkDisableLSD"> 211 <property name="text"> 212 <string>Disable LSD for this torrent</string> 213 </property> 214 </widget> 215 </item> 216 </layout> 217 </item> 218 <item> 219 <spacer name="verticalSpacer"> 220 <property name="orientation"> 221 <enum>Qt::Vertical</enum> 222 </property> 223 <property name="sizeHint" stdset="0"> 224 <size> 225 <width>20</width> 226 <height>0</height> 227 </size> 228 </property> 229 </spacer> 230 </item> 231 <item> 232 <widget class="QDialogButtonBox" name="buttonBox"> 233 <property name="standardButtons"> 234 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> 235 </property> 236 </widget> 237 </item> 238 </layout> 239 </widget> 240 <resources/> 241 <connections> 242 <connection> 243 <sender>buttonBox</sender> 244 <signal>rejected()</signal> 245 <receiver>TorrentOptionsDialog</receiver> 246 <slot>reject()</slot> 247 <hints> 248 <hint type="sourcelabel"> 249 <x>221</x> 250 <y>73</y> 251 </hint> 252 <hint type="destinationlabel"> 253 <x>221</x> 254 <y>82</y> 255 </hint> 256 </hints> 257 </connection> 258 <connection> 259 <sender>buttonBox</sender> 260 <signal>accepted()</signal> 261 <receiver>TorrentOptionsDialog</receiver> 262 <slot>accept()</slot> 263 <hints> 264 <hint type="sourcelabel"> 265 <x>277</x> 266 <y>59</y> 267 </hint> 268 <hint type="destinationlabel"> 269 <x>343</x> 270 <y>80</y> 271 </hint> 272 </hints> 273 </connection> 274 </connections> 275 <buttongroups> 276 <buttongroup name="buttonGroup"/> 277 </buttongroups> 278</ui> 279