summaryrefslogtreecommitdiff
path: root/src/adblock/adblockwidget.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-08-04 11:43:23 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-08-04 11:48:57 +0200
commit309cd39927b613c378346a29330333be727c2a99 (patch)
tree994c7b1b0f189eddb530c5d83688b9c6016ac9a9 /src/adblock/adblockwidget.h
parentaction to search with default searchEnine in marked text's context menu. REVI... (diff)
downloadrekonq-309cd39927b613c378346a29330333be727c2a99.tar.xz
Tools Action Menu
- Removed showDeveloperTools action - Moved adblock GUI to adblock part - renamed toolsMenu and developerMenu to reflect their real/new roles - Added UserAgent action to the tools menu REVIEW:102170 REVIEWED-BY: fritz_van_tom
Diffstat (limited to 'src/adblock/adblockwidget.h')
-rw-r--r--src/adblock/adblockwidget.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/adblock/adblockwidget.h b/src/adblock/adblockwidget.h
new file mode 100644
index 00000000..08194ada
--- /dev/null
+++ b/src/adblock/adblockwidget.h
@@ -0,0 +1,66 @@
+/* ============================================================
+*
+* This file is a part of the rekonq project
+*
+* Copyright (C) 2010-2011 by Andrea Diamantini <adjam7 at gmail dot com>
+*
+*
+* 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) version 3 or any later version
+* accepted by the membership of KDE e.V. (or its successor approved
+* by the membership of KDE e.V.), which shall act as a proxy
+* defined in Section 14 of version 3 of the license.
+*
+* 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, see <http://www.gnu.org/licenses/>.
+*
+* ============================================================ */
+
+
+#ifndef ADBLOCK_WIDGET_H
+#define ADBLOCK_WIDGET_H
+
+
+// Ui Includes
+#include "ui_settings_adblock.h"
+
+// Qt Includes
+#include <QtGui/QWidget>
+#include <QtGui/QTreeWidgetItem>
+
+
+class AdBlockWidget : public QWidget, private Ui::adblock
+{
+ Q_OBJECT
+
+public:
+ AdBlockWidget(QWidget *parent = 0);
+
+ void save();
+ bool changed();
+
+signals:
+ void changed(bool);
+
+private slots:
+ void hasChanged();
+
+ void slotInfoLinkActivated(const QString &);
+ void insertRule();
+ void removeRule();
+
+private:
+ void load();
+ void loadRules(QTreeWidgetItem *item);
+
+ bool _changed;
+};
+
+#endif // ADBLOCK_WIDGET_H