2011-04-27 10:05:43 +00:00
|
|
|
/********************************************************************************
|
|
|
|
** Form generated from reading UI file 'addtorrentform.ui'
|
|
|
|
**
|
2012-12-13 12:48:18 +00:00
|
|
|
** Created by: Qt User Interface Compiler version 5.0.0
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
|
|
********************************************************************************/
|
|
|
|
|
|
|
|
#ifndef ADDTORRENTFORM_H
|
|
|
|
#define ADDTORRENTFORM_H
|
|
|
|
|
|
|
|
#include <QtCore/QVariant>
|
2011-09-22 13:09:37 +00:00
|
|
|
#include <QtWidgets/QAction>
|
|
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <QtWidgets/QButtonGroup>
|
|
|
|
#include <QtWidgets/QDialog>
|
|
|
|
#include <QtWidgets/QGridLayout>
|
|
|
|
#include <QtWidgets/QGroupBox>
|
|
|
|
#include <QtWidgets/QHBoxLayout>
|
|
|
|
#include <QtWidgets/QHeaderView>
|
|
|
|
#include <QtWidgets/QLabel>
|
|
|
|
#include <QtWidgets/QLineEdit>
|
|
|
|
#include <QtWidgets/QPushButton>
|
|
|
|
#include <QtWidgets/QSpacerItem>
|
|
|
|
#include <QtWidgets/QTextEdit>
|
|
|
|
#include <QtWidgets/QVBoxLayout>
|
|
|
|
#include <QtWidgets/QWidget>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
class Ui_AddTorrentFile
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
QVBoxLayout *vboxLayout;
|
|
|
|
QGroupBox *groupBox;
|
|
|
|
QWidget *widget;
|
|
|
|
QGridLayout *gridLayout;
|
|
|
|
QLabel *label_4;
|
|
|
|
QLineEdit *torrentFile;
|
|
|
|
QLabel *label_2;
|
|
|
|
QPushButton *browseTorrents;
|
|
|
|
QLabel *label_5;
|
|
|
|
QLabel *label_3;
|
|
|
|
QLabel *label_6;
|
|
|
|
QTextEdit *torrentContents;
|
|
|
|
QLineEdit *destinationFolder;
|
|
|
|
QLabel *announceUrl;
|
|
|
|
QLabel *label;
|
|
|
|
QPushButton *browseDestination;
|
|
|
|
QLabel *label_7;
|
|
|
|
QLabel *commentLabel;
|
|
|
|
QLabel *creatorLabel;
|
|
|
|
QLabel *sizeLabel;
|
|
|
|
QHBoxLayout *hboxLayout;
|
|
|
|
QSpacerItem *spacerItem;
|
|
|
|
QPushButton *okButton;
|
|
|
|
QPushButton *cancelButton;
|
|
|
|
|
|
|
|
void setupUi(QDialog *AddTorrentFile)
|
|
|
|
{
|
|
|
|
if (AddTorrentFile->objectName().isEmpty())
|
2011-12-11 15:55:01 +00:00
|
|
|
AddTorrentFile->setObjectName(QStringLiteral("AddTorrentFile"));
|
2011-04-27 10:05:43 +00:00
|
|
|
AddTorrentFile->resize(464, 385);
|
|
|
|
AddTorrentFile->setSizeGripEnabled(false);
|
|
|
|
AddTorrentFile->setModal(true);
|
|
|
|
vboxLayout = new QVBoxLayout(AddTorrentFile);
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
vboxLayout->setSpacing(6);
|
|
|
|
#endif
|
|
|
|
vboxLayout->setContentsMargins(8, 8, 8, 8);
|
2011-12-11 15:55:01 +00:00
|
|
|
vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
groupBox = new QGroupBox(AddTorrentFile);
|
2011-12-11 15:55:01 +00:00
|
|
|
groupBox->setObjectName(QStringLiteral("groupBox"));
|
2011-04-27 10:05:43 +00:00
|
|
|
widget = new QWidget(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
widget->setObjectName(QStringLiteral("widget"));
|
2011-04-27 10:05:43 +00:00
|
|
|
widget->setGeometry(QRect(10, 40, 364, 33));
|
|
|
|
gridLayout = new QGridLayout(groupBox);
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
gridLayout->setSpacing(6);
|
|
|
|
#endif
|
|
|
|
gridLayout->setContentsMargins(8, 8, 8, 8);
|
2011-12-11 15:55:01 +00:00
|
|
|
gridLayout->setObjectName(QStringLiteral("gridLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
label_4 = new QLabel(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
label_4->setObjectName(QStringLiteral("label_4"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(label_4, 6, 0, 1, 1);
|
|
|
|
|
|
|
|
torrentFile = new QLineEdit(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
torrentFile->setObjectName(QStringLiteral("torrentFile"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(torrentFile, 0, 1, 1, 2);
|
|
|
|
|
|
|
|
label_2 = new QLabel(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
label_2->setObjectName(QStringLiteral("label_2"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(label_2, 1, 0, 1, 1);
|
|
|
|
|
|
|
|
browseTorrents = new QPushButton(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
browseTorrents->setObjectName(QStringLiteral("browseTorrents"));
|
2011-04-27 10:05:43 +00:00
|
|
|
browseTorrents->setDefault(true);
|
|
|
|
|
|
|
|
gridLayout->addWidget(browseTorrents, 0, 3, 1, 1);
|
|
|
|
|
|
|
|
label_5 = new QLabel(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
label_5->setObjectName(QStringLiteral("label_5"));
|
2011-04-27 10:05:43 +00:00
|
|
|
label_5->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
|
|
|
|
|
|
|
|
gridLayout->addWidget(label_5, 5, 0, 1, 1);
|
|
|
|
|
|
|
|
label_3 = new QLabel(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
label_3->setObjectName(QStringLiteral("label_3"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(label_3, 4, 0, 1, 1);
|
|
|
|
|
|
|
|
label_6 = new QLabel(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
label_6->setObjectName(QStringLiteral("label_6"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(label_6, 2, 0, 1, 1);
|
|
|
|
|
|
|
|
torrentContents = new QTextEdit(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
torrentContents->setObjectName(QStringLiteral("torrentContents"));
|
2011-04-27 10:05:43 +00:00
|
|
|
torrentContents->setFocusPolicy(Qt::NoFocus);
|
|
|
|
torrentContents->setTabChangesFocus(true);
|
|
|
|
torrentContents->setLineWrapMode(QTextEdit::NoWrap);
|
|
|
|
torrentContents->setReadOnly(true);
|
|
|
|
|
|
|
|
gridLayout->addWidget(torrentContents, 5, 1, 1, 3);
|
|
|
|
|
|
|
|
destinationFolder = new QLineEdit(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
destinationFolder->setObjectName(QStringLiteral("destinationFolder"));
|
2011-04-27 10:05:43 +00:00
|
|
|
destinationFolder->setFocusPolicy(Qt::StrongFocus);
|
|
|
|
|
|
|
|
gridLayout->addWidget(destinationFolder, 6, 1, 1, 2);
|
|
|
|
|
|
|
|
announceUrl = new QLabel(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
announceUrl->setObjectName(QStringLiteral("announceUrl"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(announceUrl, 1, 1, 1, 3);
|
|
|
|
|
|
|
|
label = new QLabel(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
label->setObjectName(QStringLiteral("label"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(label, 0, 0, 1, 1);
|
|
|
|
|
|
|
|
browseDestination = new QPushButton(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
browseDestination->setObjectName(QStringLiteral("browseDestination"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(browseDestination, 6, 3, 1, 1);
|
|
|
|
|
|
|
|
label_7 = new QLabel(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
label_7->setObjectName(QStringLiteral("label_7"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(label_7, 3, 0, 1, 1);
|
|
|
|
|
|
|
|
commentLabel = new QLabel(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
commentLabel->setObjectName(QStringLiteral("commentLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(commentLabel, 3, 1, 1, 3);
|
|
|
|
|
|
|
|
creatorLabel = new QLabel(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
creatorLabel->setObjectName(QStringLiteral("creatorLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(creatorLabel, 2, 1, 1, 3);
|
|
|
|
|
|
|
|
sizeLabel = new QLabel(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
sizeLabel->setObjectName(QStringLiteral("sizeLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(sizeLabel, 4, 1, 1, 3);
|
|
|
|
|
|
|
|
|
|
|
|
vboxLayout->addWidget(groupBox);
|
|
|
|
|
|
|
|
hboxLayout = new QHBoxLayout();
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
hboxLayout->setSpacing(6);
|
|
|
|
#endif
|
|
|
|
hboxLayout->setContentsMargins(0, 0, 0, 0);
|
2011-12-11 15:55:01 +00:00
|
|
|
hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
spacerItem = new QSpacerItem(131, 31, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
|
|
|
|
|
|
|
hboxLayout->addItem(spacerItem);
|
|
|
|
|
|
|
|
okButton = new QPushButton(AddTorrentFile);
|
2011-12-11 15:55:01 +00:00
|
|
|
okButton->setObjectName(QStringLiteral("okButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
okButton->setEnabled(false);
|
|
|
|
|
|
|
|
hboxLayout->addWidget(okButton);
|
|
|
|
|
|
|
|
cancelButton = new QPushButton(AddTorrentFile);
|
2011-12-11 15:55:01 +00:00
|
|
|
cancelButton->setObjectName(QStringLiteral("cancelButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(cancelButton);
|
|
|
|
|
|
|
|
|
|
|
|
vboxLayout->addLayout(hboxLayout);
|
|
|
|
|
|
|
|
QWidget::setTabOrder(torrentFile, browseTorrents);
|
|
|
|
QWidget::setTabOrder(browseTorrents, torrentContents);
|
|
|
|
QWidget::setTabOrder(torrentContents, destinationFolder);
|
|
|
|
QWidget::setTabOrder(destinationFolder, browseDestination);
|
|
|
|
QWidget::setTabOrder(browseDestination, okButton);
|
|
|
|
QWidget::setTabOrder(okButton, cancelButton);
|
|
|
|
|
|
|
|
retranslateUi(AddTorrentFile);
|
|
|
|
QObject::connect(okButton, SIGNAL(clicked()), AddTorrentFile, SLOT(accept()));
|
|
|
|
QObject::connect(cancelButton, SIGNAL(clicked()), AddTorrentFile, SLOT(reject()));
|
|
|
|
|
|
|
|
QMetaObject::connectSlotsByName(AddTorrentFile);
|
|
|
|
} // setupUi
|
|
|
|
|
|
|
|
void retranslateUi(QDialog *AddTorrentFile)
|
|
|
|
{
|
2012-05-17 00:37:23 +00:00
|
|
|
AddTorrentFile->setWindowTitle(QApplication::translate("AddTorrentFile", "Add a torrent", 0));
|
|
|
|
groupBox->setTitle(QApplication::translate("AddTorrentFile", "Select a torrent source", 0));
|
|
|
|
label_4->setText(QApplication::translate("AddTorrentFile", "Destination:", 0));
|
|
|
|
label_2->setText(QApplication::translate("AddTorrentFile", "Tracker URL:", 0));
|
|
|
|
browseTorrents->setText(QApplication::translate("AddTorrentFile", "Browse", 0));
|
|
|
|
label_5->setText(QApplication::translate("AddTorrentFile", "File(s):", 0));
|
|
|
|
label_3->setText(QApplication::translate("AddTorrentFile", "Size:", 0));
|
|
|
|
label_6->setText(QApplication::translate("AddTorrentFile", "Creator:", 0));
|
|
|
|
announceUrl->setText(QApplication::translate("AddTorrentFile", "<none>", 0));
|
|
|
|
label->setText(QApplication::translate("AddTorrentFile", "Torrent file:", 0));
|
|
|
|
browseDestination->setText(QApplication::translate("AddTorrentFile", "Browse", 0));
|
|
|
|
label_7->setText(QApplication::translate("AddTorrentFile", "Comment:", 0));
|
|
|
|
commentLabel->setText(QApplication::translate("AddTorrentFile", "<none>", 0));
|
|
|
|
creatorLabel->setText(QApplication::translate("AddTorrentFile", "<none>", 0));
|
|
|
|
sizeLabel->setText(QApplication::translate("AddTorrentFile", "0", 0));
|
|
|
|
okButton->setText(QApplication::translate("AddTorrentFile", "&OK", 0));
|
|
|
|
cancelButton->setText(QApplication::translate("AddTorrentFile", "&Cancel", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
} // retranslateUi
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class AddTorrentFile: public Ui_AddTorrentFile {};
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
#endif // ADDTORRENTFORM_H
|