add more spacing
[personal-kdebase.git] / workspace / kcontrol / kdm / kdm-conv.h
blob495365638535fc3d7cbd1e9fb5c4844a8e0d31f3
1 /*
2 Copyright (C) 2000 Oswald Buddenhagen <ossi@kde.org>
3 Based on several other files.
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
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 GNU
13 General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 #ifndef __KDMCONV_H__
22 #define __KDMCONV_H__
24 #include <QWidget>
26 class QListWidget;
27 class QListWidgetItem;
28 class KComboBox;
29 class QCheckBox;
30 class QGroupBox;
31 class QLabel;
32 class QRadioButton;
34 class KDMConvenienceWidget : public QWidget {
35 Q_OBJECT
37 public:
38 KDMConvenienceWidget( QWidget *parent = 0 );
40 void load();
41 void save();
42 void defaults();
43 void makeReadOnly();
45 public Q_SLOTS:
46 void slotClearUsers();
47 void slotAddUsers( const QMap<QString,int> & );
48 void slotDelUsers( const QMap<QString,int> & );
51 Q_SIGNALS:
52 void changed();
54 private Q_SLOTS:
55 void slotPresChanged();
56 void slotSetAutoUser( const QString &user );
57 void slotSetPreselUser( const QString &user );
58 void slotUpdateNoPassUser( QListWidgetItem *item );
60 private:
61 QGroupBox *alGroup, *puGroup, *npGroup, *btGroup;
62 QCheckBox *cbarlen, *cbjumppw, *autoLockCheck;
63 QRadioButton *npRadio, *ppRadio, *spRadio;
64 KComboBox *userlb, *puserlb;
65 QListWidget *npuserlv;
66 QLabel *pu_label;
67 QString autoUser, preselUser;
68 QStringList noPassUsers;
71 #endif