blob: 7ae308753bb4a10c38569142007bbe71286233c5 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
/*
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 John Tapsell <johnflux@gmail.com>
Copyright (C) 2006 Eike Hein <hein@kde.org>
*/
#ifndef KONVISETTINGSDIALOG_H
#define KONVISETTINGSDIALOG_H
#include "konviconfigdialog.h"
#include "konvisettingspage.h"
#include <kdialogbase.h>
#include <tqasciidict.h>
#include <tqintdict.h>
class Warnings_Config;
class ChatWindowAppearance_Config;
class FontAppearance_Config;
class Theme_Config;
class ColorsAppearance_Config;
class GeneralBehavior_Config;
class ConnectionBehavior_Config;
class ChatwindowBehaviour_Config;
class NictdelistBehavior_Config;
class Tabs_Config;
class Alias_Config;
class QuickButtons_Config;
class Autoreplace_Config;
class Log_Config;
class DCC_Config;
class WatchedNicknames_Config;
class Highlight_Config;
class OSD_Config;
class Ignore_Config;
class TabNotifications_Config;
class TDEUI_EXPORT KonviSettingsDialog : public KonviConfigDialog
{
Q_OBJECT
protected:
Warnings_Config* m_confWarningsWdg;
ChatWindowAppearance_Config* m_confChatWindowAppearanceWdg;
FontAppearance_Config* m_confFontAppearanceWdg;
Theme_Config* m_confThemeWdg;
ColorsAppearance_Config* m_confColorsAppearanceWdg;
GeneralBehavior_Config* m_confGeneralBehaviorWdg;
ConnectionBehavior_Config* m_confConnectionBehaviorWdg;
ChatwindowBehaviour_Config* m_confChatwindowBehaviourWdg;
NictdelistBehavior_Config* m_confNictdelistBehaviorWdg;
Tabs_Config* m_confTabBarWdg;
Alias_Config* m_confAliasWdg;
QuickButtons_Config* m_confQuickButtonsWdg;
Autoreplace_Config* m_confAutoreplaceWdg;
Log_Config* m_confLogWdg;
DCC_Config* m_confDCCWdg;
WatchedNicknames_Config* m_confWatchedNicknamesWdg;
Highlight_Config* m_confHighlightWdg;
OSD_Config* m_confOSDWdg;
Ignore_Config* m_confIgnoreWdg;
TabNotifications_Config* m_confTabNotificationsWdg;
bool m_modified;
public:
explicit KonviSettingsDialog(TQWidget *parent);
~KonviSettingsDialog();
void openWatchedNicknamesPage();
protected slots:
virtual void updateSettings();
virtual void updateWidgets();
virtual void updateWidgetsDefault();
void modifiedSlot();
protected:
virtual bool hasChanged();
virtual bool isDefault();
virtual void showEvent(TQShowEvent* e);
// remember page index
unsigned int m_watchedNicknamesIndex;
TQIntDict<KonviSettingsPage> m_indexToPageMapping;
};
#endif //KONVISETTINGSDIALOG_H
|