summaryrefslogtreecommitdiffstats
path: root/konversation/src/ignore_preferences.h
diff options
context:
space:
mode:
Diffstat (limited to 'konversation/src/ignore_preferences.h')
-rw-r--r--konversation/src/ignore_preferences.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/konversation/src/ignore_preferences.h b/konversation/src/ignore_preferences.h
new file mode 100644
index 0000000..2b90bce
--- /dev/null
+++ b/konversation/src/ignore_preferences.h
@@ -0,0 +1,58 @@
+/*
+ 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.
+*/
+
+/*
+ Copyright (C) 2006 Dario Abatianni <eisfuchs@tigress.com>
+ Copyright (C) 2006 John Tapsell <johnflux@gmail.com>
+*/
+
+#ifndef IGNORE_CONFIG_H
+#define IGNORE_CONFIG_H
+
+#include "ignore_preferencesui.h"
+#include "konvisettingspage.h"
+
+#include <qptrlist.h>
+
+
+class Ignore;
+class Ignore_Config : public Ignore_ConfigUI, public KonviSettingsPage
+{
+ Q_OBJECT
+
+ public:
+ explicit Ignore_Config( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ ~Ignore_Config();
+ QString flagNames;
+
+ virtual void restorePageToDefaults();
+ virtual void saveSettings();
+ virtual void loadSettings();
+
+ virtual bool hasChanged();
+
+ private:
+ QStringList m_oldIgnoreList;
+
+ QStringList currentIgnoreList(); // in hasChanged() format
+ QPtrList<Ignore> getIgnoreList(); // in prefs format
+ void updateEnabledness();
+
+ public slots:
+ virtual void languageChange();
+
+ protected slots:
+ void newIgnore();
+ void removeIgnore();
+ void flagCheckboxChanged();
+ void select(QListViewItem* item);
+ void removeAllIgnore();
+ signals:
+ void modified();
+};
+
+#endif // IGNORE_CONFIG_H