author | kergoth <kergoth> | 2003-08-09 17:14:54 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-08-09 17:14:54 (UTC) |
commit | a7e015198a8c5ad3b6e144a9032b059086253e00 (patch) (unidiff) | |
tree | b712b6f11310d88744fe393a92b3160b741a7efe /noncore/settings/usermanager/userdialog.h | |
parent | beba0e73306815337bf04dee39502233595e9739 (diff) | |
download | opie-a7e015198a8c5ad3b6e144a9032b059086253e00.zip opie-a7e015198a8c5ad3b6e144a9032b059086253e00.tar.gz opie-a7e015198a8c5ad3b6e144a9032b059086253e00.tar.bz2 |
Merge from BRANCH_1_0
Diffstat (limited to 'noncore/settings/usermanager/userdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/usermanager/userdialog.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/settings/usermanager/userdialog.h b/noncore/settings/usermanager/userdialog.h index b7b925d..3272afc 100644 --- a/noncore/settings/usermanager/userdialog.h +++ b/noncore/settings/usermanager/userdialog.h | |||
@@ -1,66 +1,67 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * * | 2 | * * |
3 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * (at your option) any later version. * | 6 | * (at your option) any later version. * |
7 | * * | 7 | * * |
8 | ***************************************************************************/ | 8 | ***************************************************************************/ |
9 | #ifndef USERDIALOG_H | 9 | #ifndef USERDIALOG_H |
10 | #define USERDIALOG_H | 10 | #define USERDIALOG_H |
11 | 11 | ||
12 | #include <qdialog.h> | 12 | #include <qdialog.h> |
13 | #include <qlineedit.h> | 13 | #include <qlineedit.h> |
14 | #include <qcombobox.h> | 14 | #include <qcombobox.h> |
15 | #include <qlistview.h> | 15 | #include <qlistview.h> |
16 | #include <qtabwidget.h> | 16 | #include <qtabwidget.h> |
17 | #include <qpushbutton.h> | 17 | #include <qpushbutton.h> |
18 | #include <qcheckbox.h> | 18 | #include <qcheckbox.h> |
19 | #include <qlabel.h> | ||
19 | 20 | ||
20 | #include <qpe/resource.h> | 21 | #include <qpe/resource.h> |
21 | 22 | ||
22 | #include <opie/ofiledialog.h> | 23 | #include <opie/ofiledialog.h> |
23 | 24 | ||
24 | class UserDialog : public QDialog | 25 | class UserDialog : public QDialog |
25 | { | 26 | { |
26 | Q_OBJECT | 27 | Q_OBJECT |
27 | private: | 28 | private: |
28 | QTabWidget *myTabWidget; | 29 | QTabWidget *myTabWidget; |
29 | QPushButton *picturePushButton; | 30 | QPushButton *picturePushButton; |
30 | QLineEdit *loginLineEdit; | 31 | QLineEdit *loginLineEdit; |
31 | QLineEdit *uidLineEdit; | 32 | QLineEdit *uidLineEdit; |
32 | QLineEdit *gecosLineEdit; | 33 | QLineEdit *gecosLineEdit; |
33 | QLineEdit *passwordLineEdit; | 34 | QLineEdit *passwordLineEdit; |
34 | QComboBox *shellComboBox; | 35 | QComboBox *shellComboBox; |
35 | QComboBox *groupComboBox; | 36 | QComboBox *groupComboBox; |
36 | QLabel *skelLabel; | 37 | QLabel *skelLabel; |
37 | QCheckBox *skelCheckBox; | 38 | QCheckBox *skelCheckBox; |
38 | QListView *groupsListView; | 39 | QListView *groupsListView; |
39 | 40 | ||
40 | QStringList groupMembers; | 41 | QStringList groupMembers; |
41 | QString pictureLocation; | 42 | QString pictureLocation; |
42 | QImage userImage; | 43 | QImage userImage; |
43 | int groupID; | 44 | int groupID; |
44 | int userID; | 45 | int userID; |
45 | int vm; | 46 | int vm; |
46 | enum VIEWMODE { | 47 | enum VIEWMODE { |
47 | VIEWMODE_NEW, | 48 | VIEWMODE_NEW, |
48 | VIEWMODE_EDIT | 49 | VIEWMODE_EDIT |
49 | }; | 50 | }; |
50 | 51 | ||
51 | void setupTab1(void); | 52 | void setupTab1(void); |
52 | void setupTab2(void); | 53 | void setupTab2(void); |
53 | void accept(void); | 54 | void accept(void); |
54 | 55 | ||
55 | private slots: | 56 | private slots: |
56 | void clickedPicture(void); | 57 | void clickedPicture(void); |
57 | 58 | ||
58 | public: | 59 | public: |
59 | UserDialog( int viewmode=VIEWMODE_NEW, QWidget* parent = 0, const char* name = 0, bool modal=true, WFlags fl = 0 ); | 60 | UserDialog( int viewmode=VIEWMODE_NEW, QWidget* parent = 0, const char* name = 0, bool modal=true, WFlags fl = 0 ); |
60 | ~UserDialog(); | 61 | ~UserDialog(); |
61 | static bool addUser(int uid, int gid); | 62 | static bool addUser(int uid, int gid); |
62 | static bool editUser(const char *username); | 63 | static bool editUser(const char *username); |
63 | static bool delUser(const char *username); | 64 | static bool delUser(const char *username); |
64 | }; | 65 | }; |
65 | 66 | ||
66 | #endif | 67 | #endif |