summaryrefslogtreecommitdiffstats
path: root/configdialog/kbfxconfigapp.h
blob: ffcd6b14de6c169e28c434f2ec820b55f7e0af41 (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/*
 *   Copyright (C) 2006
 *   Siraj Razick <siraj@kdemail.net>
 *   PhobosK <phobosk@mail.kbfx.org>
 *   see Also AUTHORS
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Library General Public License version 2 as
 *   published by the Free Software Foundation
 *
 *   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 Library General Public
 *   License along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */


#ifndef _KBFXCONFIGAPP_H_
#define _KBFXCONFIGAPP_H_

#include <config.h>

#include <tqbuttongroup.h>
#include <tqgroupbox.h>
#include <tqlabel.h>
#include <tqlayout.h>
#include <tqmap.h>
#include <tqpushbutton.h>
#include <tqtabwidget.h>
#include <tqtextbrowser.h>
#include <tqtimer.h>
#include <tqtoolbox.h>
#include <tqtooltip.h>
#include <tqvariant.h>
#include <tqwhatsthis.h>
#include <tqwidgetstack.h>

#include <dcopref.h>
#include <kactivelabel.h>
#include <karchive.h>
#include <tdecmdlineargs.h>
#include <kcombobox.h>
#include <kdebug.h>
#include <tdefiledialog.h>
#include <tdehtml_part.h>
#include <tdehtmlview.h>
#include <kicondialog.h>
#include <tdeio/job.h>
#include <tdeio/netaccess.h>
#include <tdelocale.h>
#include <tdemainwindow.h>
#include <tdemessagebox.h>
#include <kpushbutton.h>
#include <krun.h>
#include <kstandarddirs.h>
#include <ktar.h>
#include <tdetempfile.h>
#include <ktextedit.h>
#include <kurl.h>
#include <kurlrequester.h>

#include <kbfxconfig.h>
#include <kbfxkiodownload.h>
#include <kbfxthemesdata.h>

#include "kbfxconfigdlgabout.h"
#include "kbfxconfigdlgbutton.h"
#include "kbfxconfigdlgfonts-old.h"
#include "kbfxconfigdlglayout.h"
#include "kbfxconfigdlgmain.h"
#include "kbfxconfigdlgplugins.h"
#include "kbfxconfigdlgstyle.h"
#include "kbfxconfigdlgthemes.h"
#include "kbfxconfigdlgtooltip.h"

/**
 * @short Application Main Window
 * @author PhobosK <phobosk@mail.kbfx.org>
 * @version 0.1
 */

enum {THEMES=0, BUTTON, FONTS, LAYOUT, PLUGINS, TOOLTIP, STYLE, ABOUT};

class KbfxConfigApp : public KbfxConfigDlgMain
{
		Q_OBJECT
  
	public:
		/**
		 * Default Constructor
		 */
		KbfxConfigApp ( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );

		/**
		 * Default Destructor
		 */
		virtual ~KbfxConfigApp();
		void InitForm();

		TQString m_KbfxVersion;
		TQString m_KbfxVersion2;
		TQString m_KbfxNewsBrowserError;
		TQString m_KbfxNewsBrowserAddress;

		void browserInit();


	private:
		TQString m_KbfxLogoButton;
		TQString m_KbfxLogoThemes;
		TQString m_KbfxLogoAbout;
		TQString m_KbfxLogoLayout;
		TQString m_KbfxLogoTooltip;
		TQString m_KbfxLogoFonts;
		TQString m_KbfxLogoStyle;
		TQString m_KbfxLogoPlugins;
		KbfxConfigDlgButton *pageButton;
		KbfxConfigDlgThemes *pageThemes;
		KbfxConfigDlgFonts *pageFonts;
		KbfxConfigDlgStyle *pageStyle;
		KbfxConfigDlgPlugins *pagePlugins;
		KbfxConfigDlgLayout *pageLayout;
		KbfxConfigDlgTooltip *pageTooltip;
		KbfxConfigDlgAbout *pageAbout;
		TDEHTMLPart * browser;
		KbfxKioDownload * tdeio;
		TQString m_KbfxThemeUrl;
		TQString m_KbfxThemeFolderUrl;
		int m_KbfxPage;

	public slots:
		virtual void btn_DefaultClicked();
		virtual void btn_HelpClicked();
		virtual void btn_SaveApplyClicked();
		virtual void KbfxMenuItemChanged ( int index );
		virtual void KbfxNewsBrowserOpenURLRequest ( const KURL &, const KParts::URLArgs & );
		virtual void KbfxNewsBrowserCompleted();
		virtual void KbfxNewsBrowserLoad();
		virtual void KbfxGetMoreThemesClicked();
		virtual void KbfxThemeInstall ( TQString & );

	signals:
		void KbfxConfigDlgButtonChanged();
		void KbfxConfigDlgThemesChanged();
		void KbfxConfigDlgStyleChanged();
		void KbfxConfigDlgTooltipChanged();
		void KbfxConfigDlgLayoutChanged();
		void KbfxConfigDlgLayoutLeft();
		void KbfxConfigDlgPluginsChanged();
		void KbfxConfigDlgFontsChanged();
		void KbfxThemeDoInstall( TQString & );

};

#endif // _KBFXCONFIGAPP_H_