1/*
2 Copyright (C) 2002-2005, Jason Katz-Brown <jasonkb@mit.edu>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17*/
18
19#ifndef KOLF_CONFIG_H
20#define KOLF_CONFIG_H
21
22#include <QFrame>
23
24class Config : public QFrame
25{
26 Q_OBJECT
27
28public:
29 Config(QWidget *parent);
30 void ctorDone();
31
32signals:
33 void modified();
34
35protected:
36 int spacingHint();
37 int marginHint();
38 bool startedUp;
39 void changed();
40};
41
42// this is easy to use to show a message
43class MessageConfig : public Config
44{
45 Q_OBJECT
46
47public:
48 MessageConfig(const QString &text, QWidget *parent);
49};
50
51// internal
52class DefaultConfig : public MessageConfig
53{
54 Q_OBJECT
55
56public:
57 DefaultConfig(QWidget *parent);
58};
59
60#endif
61