Doomseeker
Wadseeker
Download
Tracker
Git
Docs
Main Page
Plugin API
Modules
Classes
Files
File List
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
src
core
gui
configuration
configurationbasebox.h
1
//------------------------------------------------------------------------------
2
// configurationbasebox.h
3
//------------------------------------------------------------------------------
4
//
5
// This program is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU General Public License
7
// as published by the Free Software Foundation; either version 2
8
// of the License, or (at your option) any later version.
9
//
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with this program; if not, write to the Free Software
17
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
// 02110-1301, USA.
19
//
20
//------------------------------------------------------------------------------
21
// Copyright (C) 2009 "Zalewa" <zalewapl@gmail.com>
22
//------------------------------------------------------------------------------
23
24
#ifndef __CONFIGURATION_BASE_BOX_H_
25
#define __CONFIGURATION_BASE_BOX_H_
26
27
#include "global.h"
28
#include "dptr.h"
29
#include <QWidget>
30
43
class
MAIN_EXPORT
ConfigurationBaseBox
:
public
QWidget
44
{
45
Q_OBJECT;
46
47
public
:
48
ConfigurationBaseBox
(QWidget* parent = NULL);
49
virtual
~
ConfigurationBaseBox
();
50
56
bool
allowSave();
61
bool
areSettingsAlreadyRead();
62
70
virtual
QIcon icon()
const
= 0;
71
76
virtual
QString name()
const
= 0;
77
82
void
setAllowSave(
bool
b);
86
void
read();
92
bool
save();
96
virtual
QString title()
const
;
97
98
signals:
106
void
appearanceChanged();
107
108
protected
:
112
virtual
void
readSettings()=0;
113
117
virtual
void
saveSettings()=0;
118
119
private
:
120
DPtr<ConfigurationBaseBox>
d;
121
};
122
123
#endif
DPtr< ConfigurationBaseBox >
ConfigurationBaseBox
Base class for configuration pages.
Definition:
configurationbasebox.h:43
Doomseeker © 2009-2024 The Doomseeker Team