diff --git a/src/blacklistpage.cpp b/src/blacklistpage.cpp new file mode 100644 index 0000000..b039b07 --- /dev/null +++ b/src/blacklistpage.cpp @@ -0,0 +1,38 @@ +/* + * Copyright 2015 Luca Beltrame + * + * This file is part of Danbooru Client. + * + * Danbooru Client 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 3 of the License, or + * (at your option) any later version. + * + * Danbooru Client 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 Danbooru Client. If not, see . + */ + +#include "blacklistpage.h" +#include "danboorusettings.h" + +namespace Danbooru { + +BlacklistPage::BlacklistPage(DanbooruSettings *preferences, QWidget *parent): QWidget(parent) +{ + setupUi(this); + kcfg_TagBlacklist->insertStringList(preferences->boards()); + +} + + +BlacklistPage::~BlacklistPage() +{ +} + + +} // namespace Danbooru \ No newline at end of file diff --git a/src/blacklistpage.h b/src/blacklistpage.h new file mode 100644 index 0000000..488d8ab --- /dev/null +++ b/src/blacklistpage.h @@ -0,0 +1,43 @@ +/* + * Copyright 2015 Luca Beltrame + * + * This file is part of Danbooru Client. + * + * Danbooru Client 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 3 of the License, or + * (at your option) any later version. + * + * Danbooru Client 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 Danbooru Client. If not, see . + */ + +#ifndef DANBOORU_BLACKLISTPAGE_H +#define DANBOORU_BLACKLISTPAGE_H + +#include "ui_blacklistpage.h" + +namespace Danbooru { + +class DanbooruSettings; + +class BlacklistPage: public QWidget, public Ui::BlacklistPage { + + Q_OBJECT + +public: + explicit BlacklistPage(DanbooruSettings *preferences, QWidget* parent=0); + ~BlacklistPage(); + +}; + + +} // namespace Danbooru + + +#endif diff --git a/src/ui/blacklistpage.ui b/src/ui/blacklistpage.ui new file mode 100644 index 0000000..70fe43a --- /dev/null +++ b/src/ui/blacklistpage.ui @@ -0,0 +1,44 @@ + + + BlacklistPage + + + + 0 + 0 + 400 + 318 + + + + Form + + + + + + Blacklisted tags + + + + + + KEditListWidget::Add|KEditListWidget::Remove + + + + + + + + + + + KEditListWidget + QWidget +
keditlistwidget.h
+
+
+ + +