Browse Source

Merge pull request #13265 from Chocobo1/pr_13259

Add a scroll area to torrent creator dialog
adaptive-webui-19844
Mike Tzou 4 years ago committed by GitHub
parent
commit
207337682c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 645
      src/gui/torrentcreatordialog.ui

645
src/gui/torrentcreatordialog.ui

@ -18,332 +18,369 @@
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<widget class="QGroupBox" name="groupBox"> <widget class="QScrollArea" name="scrollArea">
<property name="title"> <property name="frameShape">
<string>Select file/folder to share</string> <enum>QFrame::NoFrame</enum>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_3"> <property name="widgetResizable">
<item> <bool>true</bool>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Path:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="textInputPath">
<property name="acceptDrops">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="label_2">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>[Drag and drop area]</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="addFileButton">
<property name="text">
<string>Select file</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="addFolderButton">
<property name="text">
<string>Select folder</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Settings</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <widget class="QWidget" name="scrollAreaWidgetContents">
<item> <property name="geometry">
<layout class="QHBoxLayout" name="pieceSizeLayout"> <rect>
<item> <x>0</x>
<widget class="QLabel" name="txtPieceSize"> <y>0</y>
<property name="text"> <width>574</width>
<string>Piece size:</string> <height>649</height>
</property> </rect>
</widget> </property>
</item> <layout class="QVBoxLayout" name="verticalLayout_5">
<item> <property name="spacing">
<widget class="QComboBox" name="comboPieceSize"> <number>0</number>
<property name="currentIndex"> </property>
<number>0</number> <property name="leftMargin">
</property> <number>0</number>
<property name="minimumContentsLength"> </property>
<number>7</number> <property name="topMargin">
</property> <number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Select file/folder to share</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item> <item>
<property name="text"> <layout class="QHBoxLayout" name="horizontalLayout">
<string>Auto</string> <item>
</property> <widget class="QLabel" name="label">
<property name="text">
<string>Path:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="textInputPath">
<property name="acceptDrops">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item> </item>
<item> <item>
<property name="text"> <layout class="QHBoxLayout" name="horizontalLayout_3">
<string>16 KiB</string> <item>
</property> <widget class="QLabel" name="label_2">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>[Drag and drop area]</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="addFileButton">
<property name="text">
<string>Select file</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="addFolderButton">
<property name="text">
<string>Select folder</string>
</property>
</widget>
</item>
</layout>
</item> </item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Settings</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item> <item>
<property name="text"> <layout class="QHBoxLayout" name="pieceSizeLayout">
<string>32 KiB</string> <item>
</property> <widget class="QLabel" name="txtPieceSize">
<property name="text">
<string>Piece size:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboPieceSize">
<property name="currentIndex">
<number>0</number>
</property>
<property name="minimumContentsLength">
<number>7</number>
</property>
<item>
<property name="text">
<string>Auto</string>
</property>
</item>
<item>
<property name="text">
<string>16 KiB</string>
</property>
</item>
<item>
<property name="text">
<string>32 KiB</string>
</property>
</item>
<item>
<property name="text">
<string>64 KiB</string>
</property>
</item>
<item>
<property name="text">
<string>128 KiB</string>
</property>
</item>
<item>
<property name="text">
<string>256 KiB</string>
</property>
</item>
<item>
<property name="text">
<string>512 KiB</string>
</property>
</item>
<item>
<property name="text">
<string>1 MiB</string>
</property>
</item>
<item>
<property name="text">
<string>2 MiB</string>
</property>
</item>
<item>
<property name="text">
<string>4 MiB</string>
</property>
</item>
<item>
<property name="text">
<string>8 MiB</string>
</property>
</item>
<item>
<property name="text">
<string>16 MiB</string>
</property>
</item>
<item>
<property name="text">
<string>32 MiB</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonCalcTotalPieces">
<property name="text">
<string>Calculate number of pieces:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelTotalPieces">
<property name="text">
<string notr="true">0</string>
</property>
</widget>
</item>
<item>
<spacer name="spacer1">
<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>
<property name="text"> <widget class="QCheckBox" name="checkPrivate">
<string>64 KiB</string> <property name="text">
</property> <string>Private torrent (Won't distribute on DHT network)</string>
</property>
</widget>
</item> </item>
<item> <item>
<property name="text"> <widget class="QCheckBox" name="checkStartSeeding">
<string>128 KiB</string> <property name="text">
</property> <string>Start seeding immediately</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item> </item>
<item> <item>
<property name="text"> <widget class="QCheckBox" name="checkIgnoreShareLimits">
<string>256 KiB</string> <property name="text">
</property> <string>Ignore share ratio limits for this torrent</string>
</property>
</widget>
</item> </item>
<item> <item>
<property name="text"> <widget class="QGroupBox" name="checkOptimizeAlignment">
<string>512 KiB</string> <property name="title">
</property> <string>Optimize alignment</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="lblPaddedFileSizeLimit">
<property name="text">
<string>Align to piece boundary for files larger than:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinPaddedFileSizeLimit">
<property name="specialValueText">
<string>Disabled</string>
</property>
<property name="suffix">
<string> KiB</string>
</property>
<property name="minimum">
<number>-1</number>
</property>
<property name="maximum">
<number>2147483647</number>
</property>
<property name="value">
<number>-1</number>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<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>
<item> </layout>
<property name="text"> </widget>
<string>1 MiB</string> </item>
</property> <item>
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>Fields</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="1">
<widget class="QTextEdit" name="trackersList">
<property name="toolTip">
<string>You can separate tracker tiers / groups with an empty line.</string>
</property>
<property name="acceptRichText">
<bool>false</bool>
</property>
</widget>
</item> </item>
<item> <item row="1" column="0">
<property name="text"> <widget class="QLabel" name="urlSeeds_lbl">
<string>2 MiB</string> <property name="text">
</property> <string>Web seed URLs:</string>
</property>
</widget>
</item> </item>
<item> <item row="1" column="1">
<property name="text"> <widget class="QTextEdit" name="URLSeedsList">
<string>4 MiB</string> <property name="acceptRichText">
</property> <bool>false</bool>
</property>
</widget>
</item> </item>
<item> <item row="2" column="1">
<property name="text"> <widget class="QTextEdit" name="txtComment">
<string>8 MiB</string> <property name="acceptRichText">
</property> <bool>false</bool>
</property>
</widget>
</item> </item>
<item> <item row="0" column="0">
<property name="text"> <widget class="QLabel" name="lbl_announce_url">
<string>16 MiB</string> <property name="text">
</property> <string>Tracker URLs:</string>
</property>
</widget>
</item> </item>
<item> <item row="2" column="0">
<property name="text"> <widget class="QLabel" name="lbl_comment">
<string>32 MiB</string> <property name="text">
</property> <string>Comments:</string>
</property>
</widget>
</item> </item>
</widget> <item row="3" column="0">
</item> <widget class="QLabel" name="labelSource">
<item> <property name="text">
<widget class="QPushButton" name="buttonCalcTotalPieces"> <string>Source:</string>
<property name="text"> </property>
<string>Calculate number of pieces:</string> </widget>
</property> </item>
</widget> <item row="3" column="1">
</item> <widget class="QLineEdit" name="lineEditSource"/>
<item> </item>
<widget class="QLabel" name="labelTotalPieces"> </layout>
<property name="text"> </widget>
<string notr="true">0</string> </item>
</property> </layout>
</widget> </widget>
</item>
<item>
<spacer name="spacer1">
<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>
<widget class="QCheckBox" name="checkPrivate">
<property name="text">
<string>Private torrent (Won't distribute on DHT network)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkStartSeeding">
<property name="text">
<string>Start seeding immediately</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkIgnoreShareLimits">
<property name="text">
<string>Ignore share ratio limits for this torrent</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="checkOptimizeAlignment">
<property name="title">
<string>Optimize alignment</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="lblPaddedFileSizeLimit">
<property name="text">
<string>Align to piece boundary for files larger than:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinPaddedFileSizeLimit">
<property name="specialValueText">
<string>Disabled</string>
</property>
<property name="suffix">
<string> KiB</string>
</property>
<property name="minimum">
<number>-1</number>
</property>
<property name="maximum">
<number>2147483647</number>
</property>
<property name="value">
<number>-1</number>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<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>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>Fields</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="1">
<widget class="QTextEdit" name="trackersList">
<property name="toolTip">
<string>You can separate tracker tiers / groups with an empty line.</string>
</property>
<property name="acceptRichText">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="urlSeeds_lbl">
<property name="text">
<string>Web seed URLs:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QTextEdit" name="URLSeedsList">
<property name="acceptRichText">
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QTextEdit" name="txtComment">
<property name="acceptRichText">
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="lbl_announce_url">
<property name="text">
<string>Tracker URLs:</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="lbl_comment">
<property name="text">
<string>Comments:</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="labelSource">
<property name="text">
<string>Source:</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="lineEditSource"/>
</item>
</layout>
</widget> </widget>
</item> </item>
<item> <item>

Loading…
Cancel
Save