summaryrefslogtreecommitdiffstats
path: root/kcontrol/kdm/background.h
blob: bc1e48213f8eba49b7a309f1c6499454f4764b6f (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
/* vi: ts=8 sts=4 sw=4
 *
 * This file is part of the KDE project, module kcmdisplay.
 * Copyright (C) 1999 Geert Jansen <g.t.jansen@stud.tue.nl>
 *
 * You can Freely distribute this program under the GNU General Public
 * License. See the file "COPYING" for the exact licensing terms.
 */

#ifndef __Bgnd_h_Included__
#define __Bgnd_h_Included__

#include <qobject.h>
#include <qwidget.h>


class KSimpleConfig;
class BGDialog;
class KGlobalBackgroundSettings;
class QCheckBox;
class QLabel;

class KBackground: public QWidget
{
    Q_OBJECT
public:
    KBackground(QWidget *parent=0, const char *name=0);
    ~KBackground();

    void load();
    void save();
    void defaults();
    void makeReadOnly();
signals:
    void changed(bool);

private slots:
    void slotEnableChanged();
private:
    void init();
    void apply();

    QCheckBox *m_pCBEnable;
    QLabel *m_pMLabel;
    KSimpleConfig *m_simpleConf;
    BGDialog *m_background;
};


#endif // __Bgnd_h_Included__