not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kcontrol / kdm / kdm-dlg.h
bloba41670abdf8f500e99a998d5693a53f546a6a646
1 /*
2 Copyright (C) 1997 Thomas Tanghus (tanghus@earthling.net)
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
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 GNU
12 General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
21 #ifndef __KDMDLG_H__
22 #define __KDMDLG_H__
24 #include <QWidget>
26 class KLineEdit;
27 class Positioner;
28 class QLabel;
29 class QPushButton;
30 class QRadioButton;
32 class KDMDialogWidget : public QWidget {
33 Q_OBJECT
35 public:
36 KDMDialogWidget( QWidget *parent );
38 void load();
39 void save();
40 void defaults();
41 void makeReadOnly();
42 QString quickHelp() const;
44 bool eventFilter( QObject *, QEvent * );
46 Q_SIGNALS:
47 void changed();
49 protected:
50 void iconLoaderDragEnterEvent( QDragEnterEvent *event );
51 void iconLoaderDropEvent( QDropEvent *event );
52 bool setLogo( const QString &logo );
54 private Q_SLOTS:
55 void slotAreaRadioClicked( int id );
56 void slotLogoButtonClicked();
58 private:
59 enum { KdmNone, KdmClock, KdmLogo };
60 QLabel *logoLabel;
61 QPushButton *logobutton;
62 KLineEdit *greetstr_lined;
63 QString logopath;
64 QRadioButton *noneRadio;
65 QRadioButton *clockRadio;
66 QRadioButton *logoRadio;
67 Positioner *positioner;
71 #endif