summaryrefslogtreecommitdiffstats
path: root/knights/dlg_settings.h
blob: 997db072a00b94534cf2ab9ef653d92527b3a61f (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
/***************************************************************************
                          dlg_settings.h  -  description
                             -------------------
    begin                : Mon Jul 16 2001
    copyright            : (C) 2003 by Troy Corbin Jr.
    email                : tcorbin@users.sourceforge.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef DLG_SETTINGS_H
#define DLG_SETTINGS_H

#include <klocale.h>
#include <kdialogbase.h>
#include <qwidget.h>
#include <qlayout.h>
#include <qgroupbox.h>
#include <qvbox.h>
#include "definitions.h"
#include "resource.h"

class setPageDisplay;
class setPageAudio;
class setPageEngines;
class setPageServers;
class setPageGeneral;

/**
  *@author Troy Corbin Jr.
  */

class dlg_settings : public KDialogBase
{
   Q_OBJECT
	public:
													dlg_settings(QWidget *parent=0, const char *name=0, resource *Rsrc=0);
													~dlg_settings();

	public slots:
		void									slotOk( void );
		void									slotApply( void );
		void									slotCancel( void );
		void									slotEnableApply( void );
		void									slotThemesAdded( void );
		void									slotPageChanging( QWidget* );

	signals:
		void									themeChanged( int, int );
		void									redrawBoard( void );
		void									rebuildConsole( void );
		void									resetServer( void );

	private:
		resource							*Resource;

		QFrame								*FRAME_General;
		setPageGeneral				*PAGE_General;

		QFrame								*FRAME_Display;
		setPageDisplay				*PAGE_Display;

		QFrame								*FRAME_Audio;
		setPageAudio					*PAGE_Audio;
		
		QFrame								*FRAME_Engines;
		setPageEngines				*PAGE_Engines;
		
		QFrame								*FRAME_Servers;
		setPageServers				*PAGE_Servers;
};

#endif