|
|
@ -50,6 +50,7 @@ |
|
|
|
#include "base/utils/fs.h" |
|
|
|
#include "base/utils/fs.h" |
|
|
|
#include "base/utils/string.h" |
|
|
|
#include "base/utils/string.h" |
|
|
|
#include "gui/autoexpandabledialog.h" |
|
|
|
#include "gui/autoexpandabledialog.h" |
|
|
|
|
|
|
|
#include "gui/torrentcategorydialog.h" |
|
|
|
#include "gui/uithememanager.h" |
|
|
|
#include "gui/uithememanager.h" |
|
|
|
#include "gui/utils.h" |
|
|
|
#include "gui/utils.h" |
|
|
|
#include "ui_automatedrssdownloader.h" |
|
|
|
#include "ui_automatedrssdownloader.h" |
|
|
@ -68,6 +69,7 @@ AutomatedRssDownloader::AutomatedRssDownloader(QWidget *parent) |
|
|
|
// Icons
|
|
|
|
// Icons
|
|
|
|
m_ui->removeRuleBtn->setIcon(UIThemeManager::instance()->getIcon("list-remove")); |
|
|
|
m_ui->removeRuleBtn->setIcon(UIThemeManager::instance()->getIcon("list-remove")); |
|
|
|
m_ui->addRuleBtn->setIcon(UIThemeManager::instance()->getIcon("list-add")); |
|
|
|
m_ui->addRuleBtn->setIcon(UIThemeManager::instance()->getIcon("list-add")); |
|
|
|
|
|
|
|
m_ui->addCategoryBtn->setIcon(UIThemeManager::instance()->getIcon("list-add")); |
|
|
|
|
|
|
|
|
|
|
|
// Ui Settings
|
|
|
|
// Ui Settings
|
|
|
|
m_ui->listRules->setSortingEnabled(true); |
|
|
|
m_ui->listRules->setSortingEnabled(true); |
|
|
@ -405,6 +407,17 @@ void AutomatedRssDownloader::on_removeRuleBtn_clicked() |
|
|
|
RSS::AutoDownloader::instance()->removeRule(item->text()); |
|
|
|
RSS::AutoDownloader::instance()->removeRule(item->text()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void AutomatedRssDownloader::on_addCategoryBtn_clicked() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
const QString newCategoryName = TorrentCategoryDialog::createCategory(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!newCategoryName.isEmpty()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
m_ui->comboCategory->addItem(newCategoryName); |
|
|
|
|
|
|
|
m_ui->comboCategory->setCurrentText(newCategoryName); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void AutomatedRssDownloader::on_exportBtn_clicked() |
|
|
|
void AutomatedRssDownloader::on_exportBtn_clicked() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (RSS::AutoDownloader::instance()->rules().isEmpty()) |
|
|
|
if (RSS::AutoDownloader::instance()->rules().isEmpty()) |
|
|
|