- FEATURE: Implemented a RSS feed downloader with filter support - FEATURE: Save old RSS item to hard disk to remember them on start up - FEATURE: RSS Feeds can now be copied to the clipboardadaptive-webui-19844
@ -0,0 +1,331 @@ |
|||||||
|
/*
|
||||||
|
* Bittorrent Client using Qt4 and libtorrent. |
||||||
|
* Copyright (C) 2006 Christophe Dumez |
||||||
|
* |
||||||
|
* This program is free software; you can redistribute it and/or |
||||||
|
* modify it under the terms of the GNU General Public License |
||||||
|
* as published by the Free Software Foundation; either version 2 |
||||||
|
* of the License, or (at your option) any later version. |
||||||
|
* |
||||||
|
* This program is distributed in the hope that it will be useful, |
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||||
|
* GNU General Public License for more details. |
||||||
|
* |
||||||
|
* You should have received a copy of the GNU General Public License |
||||||
|
* along with this program; if not, write to the Free Software |
||||||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
||||||
|
* |
||||||
|
* In addition, as a special exception, the copyright holders give permission to |
||||||
|
* link this program with the OpenSSL project's "OpenSSL" library (or with |
||||||
|
* modified versions of it that use the same license as the "OpenSSL" library), |
||||||
|
* and distribute the linked executables. You must obey the GNU General Public |
||||||
|
* License in all respects for all of the code used other than "OpenSSL". If you |
||||||
|
* modify file(s), you may extend this exception to your version of the file(s), |
||||||
|
* but you are not obligated to do so. If you do not wish to do so, delete this |
||||||
|
* exception statement from your version. |
||||||
|
* |
||||||
|
* Contact : chris@qbittorrent.org |
||||||
|
*/ |
||||||
|
|
||||||
|
#ifndef FEEDDOWNLOADER_H |
||||||
|
#define FEEDDOWNLOADER_H |
||||||
|
|
||||||
|
#include <QString> |
||||||
|
#include <QHash> |
||||||
|
#include <QSettings> |
||||||
|
#include <QListWidget> |
||||||
|
#include <QListWidgetItem> |
||||||
|
#include <QInputDialog> |
||||||
|
#include <QMessageBox> |
||||||
|
#include <QRegExp> |
||||||
|
|
||||||
|
#include "bittorrent.h" |
||||||
|
#include "ui_FeedDownloader.h" |
||||||
|
|
||||||
|
class FeedFilter: public QHash<QString, QVariant> { |
||||||
|
private: |
||||||
|
bool valid; |
||||||
|
public: |
||||||
|
FeedFilter():valid(true) {} |
||||||
|
FeedFilter(bool valid): valid(valid) {} |
||||||
|
FeedFilter(QHash<QString, QVariant> filter): QHash<QString, QVariant>(filter), valid(true) {} |
||||||
|
|
||||||
|
bool matches(QString s) { |
||||||
|
QStringList tokens = getMatchingTokens(); |
||||||
|
foreach(const QString& token, tokens) { |
||||||
|
QRegExp reg(token, Qt::CaseInsensitive); |
||||||
|
if(reg.indexIn(s) < 0) return false; |
||||||
|
} |
||||||
|
return true; |
||||||
|
} |
||||||
|
|
||||||
|
bool isValid() const { |
||||||
|
return valid; |
||||||
|
} |
||||||
|
|
||||||
|
QStringList getMatchingTokens() const { |
||||||
|
QString matches = this->value("matches", "*").toString(); |
||||||
|
return matches.split(" "); |
||||||
|
} |
||||||
|
|
||||||
|
QString getMatchingTokens_str() const { |
||||||
|
return this->value("matches", "*").toString(); |
||||||
|
} |
||||||
|
|
||||||
|
void setMatchingTokens(QString tokens) { |
||||||
|
tokens = tokens.trimmed(); |
||||||
|
if(tokens.isEmpty()) |
||||||
|
(*this)["matches"] = "*"; |
||||||
|
else |
||||||
|
(*this)["matches"] = tokens; |
||||||
|
} |
||||||
|
|
||||||
|
QStringList getNotMatchingTokens() const { |
||||||
|
QString notmatching = this->value("not", "").toString(); |
||||||
|
return notmatching.split(" "); |
||||||
|
} |
||||||
|
|
||||||
|
QString getNotMatchingTokens_str() const { |
||||||
|
return this->value("not", "").toString(); |
||||||
|
} |
||||||
|
|
||||||
|
void setNotMatchingTokens(QString tokens) { |
||||||
|
(*this)["not"] = tokens.trimmed(); |
||||||
|
} |
||||||
|
|
||||||
|
QString getSavePath() const { |
||||||
|
return this->value("save_path", "").toString(); |
||||||
|
} |
||||||
|
|
||||||
|
void setSavePath(QString save_path) { |
||||||
|
(*this)["save_path"] = save_path; |
||||||
|
} |
||||||
|
|
||||||
|
}; |
||||||
|
|
||||||
|
class FeedFilters : public QHash<QString, QVariant> { |
||||||
|
|
||||||
|
private: |
||||||
|
QString feed_url; |
||||||
|
|
||||||
|
public: |
||||||
|
FeedFilters() {} |
||||||
|
FeedFilters(QString feed_url, QHash<QString, QVariant> filters): QHash<QString, QVariant>(filters), feed_url(feed_url) {} |
||||||
|
|
||||||
|
bool hasFilter(QString name) const { |
||||||
|
return this->contains(name); |
||||||
|
} |
||||||
|
|
||||||
|
FeedFilter* matches(QString s) { |
||||||
|
if(!isDownloadingEnabled()) return 0; |
||||||
|
if(this->size() == 0) return new FeedFilter(false); |
||||||
|
foreach(QVariant var_hash_filter, this->values()) { |
||||||
|
QHash<QString, QVariant> hash_filter = var_hash_filter.toHash(); |
||||||
|
FeedFilter *filter = new FeedFilter(hash_filter); |
||||||
|
if(filter->matches(s)) |
||||||
|
return filter; |
||||||
|
else |
||||||
|
delete filter; |
||||||
|
} |
||||||
|
return 0; |
||||||
|
} |
||||||
|
|
||||||
|
QStringList names() const { |
||||||
|
return this->keys(); |
||||||
|
} |
||||||
|
|
||||||
|
FeedFilter getFilter(QString name) const { |
||||||
|
if(this->contains(name)) |
||||||
|
return FeedFilter(this->value(name).toHash()); |
||||||
|
return FeedFilter(); |
||||||
|
} |
||||||
|
|
||||||
|
void setFilter(QString name, FeedFilter f) { |
||||||
|
(*this)[name] = f; |
||||||
|
} |
||||||
|
|
||||||
|
bool isDownloadingEnabled() const { |
||||||
|
QSettings qBTRSS("qBittorrent", "qBittorrent-rss"); |
||||||
|
QHash<QString, QVariant> feeds_w_downloader = qBTRSS.value("downloader_on", QHash<QString, QVariant>()).toHash(); |
||||||
|
return feeds_w_downloader.value(feed_url, false).toBool(); |
||||||
|
} |
||||||
|
|
||||||
|
void setDownloadingEnabled(bool enabled) { |
||||||
|
QSettings qBTRSS("qBittorrent", "qBittorrent-rss"); |
||||||
|
QHash<QString, QVariant> feeds_w_downloader = qBTRSS.value("downloader_on", QHash<QString, QVariant>()).toHash(); |
||||||
|
feeds_w_downloader[feed_url] = enabled; |
||||||
|
qBTRSS.setValue("downloader_on", feeds_w_downloader); |
||||||
|
} |
||||||
|
|
||||||
|
static FeedFilters getFeedFilters(QString url) { |
||||||
|
QSettings qBTRSS("qBittorrent", "qBittorrent-rss"); |
||||||
|
QHash<QString, QVariant> all_feeds_filters = qBTRSS.value("feed_filters", QHash<QString, QVariant>()).toHash(); |
||||||
|
return FeedFilters(url, all_feeds_filters.value(url, QHash<QString, QVariant>()).toHash()); |
||||||
|
} |
||||||
|
|
||||||
|
void save() { |
||||||
|
QSettings qBTRSS("qBittorrent", "qBittorrent-rss"); |
||||||
|
QHash<QString, QVariant> all_feeds_filters = qBTRSS.value("feed_filters", QHash<QString, QVariant>()).toHash(); |
||||||
|
qDebug("Saving filters for feed: %s (%d filters)", feed_url.toLocal8Bit().data(), (*this).size()); |
||||||
|
all_feeds_filters[feed_url] = *this; |
||||||
|
qBTRSS.setValue("feed_filters", all_feeds_filters); |
||||||
|
} |
||||||
|
}; |
||||||
|
|
||||||
|
class FeedDownloaderDlg : public QDialog, private Ui_FeedDownloader{ |
||||||
|
Q_OBJECT |
||||||
|
|
||||||
|
private: |
||||||
|
QString feed_url; |
||||||
|
QString feed_name; |
||||||
|
FeedFilters filters; |
||||||
|
bittorrent *BTSession; |
||||||
|
QString selected_filter; // name
|
||||||
|
|
||||||
|
public: |
||||||
|
FeedDownloaderDlg(QWidget *parent, QString feed_url, QString feed_name, bittorrent* BTSession): QDialog(parent), feed_url(feed_url), feed_name(feed_name), BTSession(BTSession), selected_filter(QString::null){ |
||||||
|
setupUi(this); |
||||||
|
setAttribute(Qt::WA_DeleteOnClose); |
||||||
|
Q_ASSERT(!feed_name.isEmpty()); |
||||||
|
rssfeed_lbl->setText(feed_name); |
||||||
|
filters = FeedFilters::getFeedFilters(feed_url); |
||||||
|
// Connect Signals/Slots
|
||||||
|
connect(filtersList, SIGNAL(currentItemChanged(QListWidgetItem* , QListWidgetItem *)), this, SLOT(showFilterSettings(QListWidgetItem *))); |
||||||
|
connect(del_button, SIGNAL(clicked(bool)), this, SLOT(deleteFilter())); |
||||||
|
connect(add_button, SIGNAL(clicked(bool)), this, SLOT(addFilter())); |
||||||
|
connect(enableDl_cb, SIGNAL(stateChanged(int)), this, SLOT(enableFilterBox(int))); |
||||||
|
// Restore saved info
|
||||||
|
enableDl_cb->setChecked(filters.isDownloadingEnabled()); |
||||||
|
// Fill filter list
|
||||||
|
foreach(QString filter_name, filters.names()) { |
||||||
|
new QListWidgetItem(filter_name, filtersList); |
||||||
|
} |
||||||
|
if(filters.size() > 0) { |
||||||
|
// Select first filter
|
||||||
|
filtersList->setCurrentItem(filtersList->item(0)); |
||||||
|
//showFilterSettings(filtersList->item(0));
|
||||||
|
} |
||||||
|
// Show
|
||||||
|
show(); |
||||||
|
} |
||||||
|
|
||||||
|
~FeedDownloaderDlg() { |
||||||
|
// Make sure we save everything
|
||||||
|
saveCurrentFilterSettings(); |
||||||
|
filters.save(); |
||||||
|
} |
||||||
|
|
||||||
|
protected slots: |
||||||
|
void saveCurrentFilterSettings() { |
||||||
|
if(!selected_filter.isEmpty()) { |
||||||
|
FeedFilter filter = filters.getFilter(selected_filter); |
||||||
|
filter.setMatchingTokens(match_line->text()); |
||||||
|
filter.setNotMatchingTokens(notmatch_line->text()); |
||||||
|
QString save_path = savepath_line->text().trimmed(); |
||||||
|
if(save_path.isEmpty()) |
||||||
|
save_path = BTSession->getDefaultSavePath(); |
||||||
|
filter.setSavePath(save_path); |
||||||
|
// Save updated filter
|
||||||
|
filters.setFilter(selected_filter, filter); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
void showFilterSettings(QListWidgetItem *item) { |
||||||
|
// First, save current filter settings
|
||||||
|
saveCurrentFilterSettings(); |
||||||
|
if(!item) { |
||||||
|
qDebug("No new selected item"); |
||||||
|
return; |
||||||
|
} |
||||||
|
// Actually show filter settings
|
||||||
|
QString filter_name = item->text(); |
||||||
|
FeedFilter filter = filters.getFilter(filter_name); |
||||||
|
filterSettingsBox->setEnabled(true); |
||||||
|
match_line->setText(filter.getMatchingTokens_str()); |
||||||
|
notmatch_line->setText(filter.getNotMatchingTokens_str()); |
||||||
|
QString save_path = filter.getSavePath(); |
||||||
|
if(save_path.isEmpty()) |
||||||
|
save_path = BTSession->getDefaultSavePath(); |
||||||
|
savepath_line->setText(save_path); |
||||||
|
// Update selected filter
|
||||||
|
selected_filter = filter_name; |
||||||
|
} |
||||||
|
|
||||||
|
void deleteFilter() { |
||||||
|
QList<QListWidgetItem *> items = filtersList->selectedItems(); |
||||||
|
if(items.size() == 1) { |
||||||
|
filters.remove(selected_filter); |
||||||
|
selected_filter = QString::null; |
||||||
|
QListWidgetItem * item = items.first(); |
||||||
|
delete item; |
||||||
|
// Reset Filter settings view
|
||||||
|
if(filters.size() == 0) { |
||||||
|
clearFields(); |
||||||
|
filterSettingsBox->setEnabled(false); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
void enableFilterBox(int state) { |
||||||
|
if(state == Qt::Checked) { |
||||||
|
filtersBox->setEnabled(true); |
||||||
|
filters.setDownloadingEnabled(true); |
||||||
|
} else { |
||||||
|
filtersBox->setEnabled(false); |
||||||
|
filters.setDownloadingEnabled(false); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
QString askFilterName(QString name=QString::null) { |
||||||
|
QString name_prop; |
||||||
|
if(name.isEmpty()) |
||||||
|
name_prop = tr("New filter"); |
||||||
|
else |
||||||
|
name_prop = name; |
||||||
|
QString new_name; |
||||||
|
bool validated = false; |
||||||
|
do { |
||||||
|
bool ok; |
||||||
|
new_name = QInputDialog::getText(this, tr("Please choose a name for this filter"), tr("Filter name:"), QLineEdit::Normal, name_prop, &ok); |
||||||
|
if(!ok) { |
||||||
|
return QString::null; |
||||||
|
} |
||||||
|
// Validate filter name
|
||||||
|
new_name = new_name.trimmed(); |
||||||
|
if(new_name.isEmpty()) { |
||||||
|
// Cannot be left empty
|
||||||
|
QMessageBox::critical(0, tr("Invalid filter name"), tr("The filter name cannot be left empty.")); |
||||||
|
} else { |
||||||
|
validated = true; |
||||||
|
} |
||||||
|
} while(!validated); |
||||||
|
return new_name; |
||||||
|
} |
||||||
|
|
||||||
|
void addFilter() { |
||||||
|
QString filter_name = QString::null; |
||||||
|
bool validated = false; |
||||||
|
do { |
||||||
|
filter_name = askFilterName(); |
||||||
|
if(filters.hasFilter(filter_name)) { |
||||||
|
// Filter alread exists
|
||||||
|
QMessageBox::critical(0, tr("Invalid filter name"), tr("This filter name is already in use.")); |
||||||
|
} else { |
||||||
|
validated = true; |
||||||
|
} |
||||||
|
}while(!validated); |
||||||
|
QListWidgetItem *it = new QListWidgetItem(filter_name, filtersList); |
||||||
|
filtersList->setCurrentItem(it); |
||||||
|
//showFilterSettings(it);
|
||||||
|
} |
||||||
|
|
||||||
|
void clearFields() { |
||||||
|
match_line->clear(); |
||||||
|
notmatch_line->clear(); |
||||||
|
savepath_line->clear(); |
||||||
|
} |
||||||
|
|
||||||
|
}; |
||||||
|
|
||||||
|
#endif // FEEDDOWNLOADER_H
|
@ -0,0 +1,377 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<ui version="4.0"> |
||||||
|
<class>FeedDownloader</class> |
||||||
|
<widget class="QDialog" name="FeedDownloader"> |
||||||
|
<property name="geometry"> |
||||||
|
<rect> |
||||||
|
<x>0</x> |
||||||
|
<y>0</y> |
||||||
|
<width>737</width> |
||||||
|
<height>392</height> |
||||||
|
</rect> |
||||||
|
</property> |
||||||
|
<property name="windowTitle"> |
||||||
|
<string>RSS Feed downloader</string> |
||||||
|
</property> |
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_7"> |
||||||
|
<item> |
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_4"> |
||||||
|
<item> |
||||||
|
<widget class="QLabel" name="label_2"> |
||||||
|
<property name="font"> |
||||||
|
<font> |
||||||
|
<pointsize>16</pointsize> |
||||||
|
<weight>75</weight> |
||||||
|
<bold>true</bold> |
||||||
|
</font> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>RSS feed:</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QLabel" name="rssfeed_lbl"> |
||||||
|
<property name="font"> |
||||||
|
<font> |
||||||
|
<pointsize>16</pointsize> |
||||||
|
<weight>75</weight> |
||||||
|
<bold>true</bold> |
||||||
|
</font> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Feed name</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<spacer name="horizontalSpacer_5"> |
||||||
|
<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="enableDl_cb"> |
||||||
|
<property name="text"> |
||||||
|
<string>Automatically download torrents from this feed</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QGroupBox" name="filtersBox"> |
||||||
|
<property name="enabled"> |
||||||
|
<bool>false</bool> |
||||||
|
</property> |
||||||
|
<property name="font"> |
||||||
|
<font> |
||||||
|
<weight>75</weight> |
||||||
|
<bold>true</bold> |
||||||
|
</font> |
||||||
|
</property> |
||||||
|
<property name="title"> |
||||||
|
<string>Download filters</string> |
||||||
|
</property> |
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_3"> |
||||||
|
<item> |
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_6"> |
||||||
|
<item> |
||||||
|
<layout class="QVBoxLayout" name="verticalLayout"> |
||||||
|
<item> |
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout"> |
||||||
|
<item> |
||||||
|
<widget class="QLabel" name="label"> |
||||||
|
<property name="font"> |
||||||
|
<font> |
||||||
|
<weight>75</weight> |
||||||
|
<bold>true</bold> |
||||||
|
</font> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Filters:</string> |
||||||
|
</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> |
||||||
|
<item> |
||||||
|
<widget class="QListWidget" name="filtersList"/> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_5"> |
||||||
|
<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> |
||||||
|
<item> |
||||||
|
<widget class="QPushButton" name="del_button"> |
||||||
|
<property name="text"> |
||||||
|
<string/> |
||||||
|
</property> |
||||||
|
<property name="icon"> |
||||||
|
<iconset resource="icons.qrc"> |
||||||
|
<normaloff>:/Icons/oxygen/list-remove.png</normaloff>:/Icons/oxygen/list-remove.png</iconset> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<spacer name="horizontalSpacer_4"> |
||||||
|
<property name="orientation"> |
||||||
|
<enum>Qt::Horizontal</enum> |
||||||
|
</property> |
||||||
|
<property name="sizeType"> |
||||||
|
<enum>QSizePolicy::Fixed</enum> |
||||||
|
</property> |
||||||
|
<property name="sizeHint" stdset="0"> |
||||||
|
<size> |
||||||
|
<width>10</width> |
||||||
|
<height>20</height> |
||||||
|
</size> |
||||||
|
</property> |
||||||
|
</spacer> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QPushButton" name="add_button"> |
||||||
|
<property name="text"> |
||||||
|
<string/> |
||||||
|
</property> |
||||||
|
<property name="icon"> |
||||||
|
<iconset resource="icons.qrc"> |
||||||
|
<normaloff>:/Icons/oxygen/list-add.png</normaloff>:/Icons/oxygen/list-add.png</iconset> |
||||||
|
</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> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QGroupBox" name="filterSettingsBox"> |
||||||
|
<property name="enabled"> |
||||||
|
<bool>false</bool> |
||||||
|
</property> |
||||||
|
<property name="font"> |
||||||
|
<font> |
||||||
|
<weight>75</weight> |
||||||
|
<bold>true</bold> |
||||||
|
</font> |
||||||
|
</property> |
||||||
|
<property name="autoFillBackground"> |
||||||
|
<bool>false</bool> |
||||||
|
</property> |
||||||
|
<property name="styleSheet"> |
||||||
|
<string/> |
||||||
|
</property> |
||||||
|
<property name="title"> |
||||||
|
<string>Filter settings</string> |
||||||
|
</property> |
||||||
|
<property name="flat"> |
||||||
|
<bool>false</bool> |
||||||
|
</property> |
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_6"> |
||||||
|
<item> |
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_5"> |
||||||
|
<item> |
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_3"> |
||||||
|
<item> |
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_2"> |
||||||
|
<item> |
||||||
|
<widget class="QLabel" name="label_3"> |
||||||
|
<property name="font"> |
||||||
|
<font> |
||||||
|
<weight>50</weight> |
||||||
|
<bold>false</bold> |
||||||
|
</font> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Matches:</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QLabel" name="label_4"> |
||||||
|
<property name="font"> |
||||||
|
<font> |
||||||
|
<weight>50</weight> |
||||||
|
<bold>false</bold> |
||||||
|
</font> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Does not match:</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QLabel" name="label_5"> |
||||||
|
<property name="font"> |
||||||
|
<font> |
||||||
|
<weight>50</weight> |
||||||
|
<bold>false</bold> |
||||||
|
</font> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Destination folder:</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_4"> |
||||||
|
<item> |
||||||
|
<widget class="QLineEdit" name="match_line"> |
||||||
|
<property name="text"> |
||||||
|
<string/> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QLineEdit" name="notmatch_line"/> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
||||||
|
<item> |
||||||
|
<widget class="QLineEdit" name="savepath_line"> |
||||||
|
<property name="minimumSize"> |
||||||
|
<size> |
||||||
|
<width>300</width> |
||||||
|
<height>0</height> |
||||||
|
</size> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QToolButton" name="browse_button"> |
||||||
|
<property name="font"> |
||||||
|
<font> |
||||||
|
<weight>50</weight> |
||||||
|
<bold>false</bold> |
||||||
|
</font> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>...</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<spacer name="verticalSpacer"> |
||||||
|
<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> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QDialogButtonBox" name="buttonBox"> |
||||||
|
<property name="orientation"> |
||||||
|
<enum>Qt::Horizontal</enum> |
||||||
|
</property> |
||||||
|
<property name="standardButtons"> |
||||||
|
<set>QDialogButtonBox::Close</set> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</widget> |
||||||
|
<resources> |
||||||
|
<include location="icons.qrc"/> |
||||||
|
</resources> |
||||||
|
<connections> |
||||||
|
<connection> |
||||||
|
<sender>buttonBox</sender> |
||||||
|
<signal>accepted()</signal> |
||||||
|
<receiver>FeedDownloader</receiver> |
||||||
|
<slot>accept()</slot> |
||||||
|
<hints> |
||||||
|
<hint type="sourcelabel"> |
||||||
|
<x>248</x> |
||||||
|
<y>254</y> |
||||||
|
</hint> |
||||||
|
<hint type="destinationlabel"> |
||||||
|
<x>157</x> |
||||||
|
<y>274</y> |
||||||
|
</hint> |
||||||
|
</hints> |
||||||
|
</connection> |
||||||
|
<connection> |
||||||
|
<sender>buttonBox</sender> |
||||||
|
<signal>rejected()</signal> |
||||||
|
<receiver>FeedDownloader</receiver> |
||||||
|
<slot>reject()</slot> |
||||||
|
<hints> |
||||||
|
<hint type="sourcelabel"> |
||||||
|
<x>316</x> |
||||||
|
<y>260</y> |
||||||
|
</hint> |
||||||
|
<hint type="destinationlabel"> |
||||||
|
<x>286</x> |
||||||
|
<y>274</y> |
||||||
|
</hint> |
||||||
|
</hints> |
||||||
|
</connection> |
||||||
|
</connections> |
||||||
|
</ui> |
After Width: | Height: | Size: 907 B |
After Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 739 B After Width: | Height: | Size: 752 B |
Before Width: | Height: | Size: 842 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 629 B After Width: | Height: | Size: 722 B |