00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __KDMCONV_H__
00023 #define __KDMCONV_H__
00024
00025 #include <tqptrlist.h>
00026 #include <tqstring.h>
00027 #include <tqimage.h>
00028 #include <tqgroupbox.h>
00029 #include <tqradiobutton.h>
00030 #include <tqcheckbox.h>
00031 #include <tqspinbox.h>
00032
00033 #include <klistbox.h>
00034 #include <kcombobox.h>
00035 #include <kcolorbutton.h>
00036 #include <klistview.h>
00037 #include <kurl.h>
00038
00039 #include <pwd.h>
00040
00041
00042 class KDMConvenienceWidget : public QWidget
00043 {
00044 Q_OBJECT
00045
00046 public:
00047 KDMConvenienceWidget(TQWidget *parent=0, const char *name=0);
00048
00049 void load();
00050 void save();
00051 void defaults();
00052 void makeReadOnly();
00053
00054 public slots:
00055 void slotClearUsers();
00056 void slotAddUsers(const TQMap<TQString,int> &);
00057 void slotDelUsers(const TQMap<TQString,int> &);
00058
00059
00060 signals:
00061 void changed( bool state );
00062
00063 private slots:
00064 void slotPresChanged();
00065 void slotChanged();
00066 void slotSetAutoUser( const TQString &user );
00067 void slotSetPreselUser( const TQString &user );
00068 void slotUpdateNoPassUser( TQListViewItem *item );
00069
00070 private:
00071 QGroupBox *alGroup, *puGroup, *npGroup, *btGroup;
00072 QCheckBox *againcb, *cbarlen, *cbjumppw, *autoLockCheck;
00073 QRadioButton *npRadio, *ppRadio, *spRadio;
00074 KComboBox *userlb, *puserlb;
00075 QSpinBox *delaysb;
00076 KListView *npuserlv;
00077 QLabel *u_label, *d_label, *pu_label, *w_label, *n_label, *pl_label;
00078 QString autoUser, preselUser;
00079 QStringList noPassUsers;
00080 };
00081
00082 #endif
00083
00084