blob: 19ab063434e7f077704eeb669c6b42f3350e99a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/*
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 <tqptrlist.h>
#include <tqlistview.h>
class Ignore;
class Ignore_Config : public Ignore_ConfigUI, public KonviSettingsPage
{
Q_OBJECT
public:
explicit Ignore_Config( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~Ignore_Config();
TQString flagNames;
virtual void restorePageToDefaults();
virtual void saveSettings();
virtual void loadSettings();
virtual bool hasChanged();
private:
TQStringList m_oldIgnoreList;
TQStringList currentIgnoreList(); // in hasChanged() format
TQPtrList<Ignore> getIgnoreList(); // in prefs format
void updateEnabledness();
public slots:
virtual void languageChange();
protected slots:
void newIgnore();
void removeIgnore();
void flagCheckboxChanged();
void select(TQListViewItem* item);
void removeAllIgnore();
signals:
void modified();
};
#endif // IGNORE_CONFIG_H
|