author | ar <ar> | 2003-12-22 17:29:18 (UTC) |
---|---|---|
committer | ar <ar> | 2003-12-22 17:29:18 (UTC) |
commit | f0a4320f43abb1a24f80d6de1a94d39453945355 (patch) (unidiff) | |
tree | 5ad5cd96bb659152a67c0f8b43726091615109e8 /noncore/settings | |
parent | 34194d7d8957b77fbc032efa5b89ef56e322d35f (diff) | |
download | opie-f0a4320f43abb1a24f80d6de1a94d39453945355.zip opie-f0a4320f43abb1a24f80d6de1a94d39453945355.tar.gz opie-f0a4320f43abb1a24f80d6de1a94d39453945355.tar.bz2 |
- remove stdlib.h and stdio.h
-rw-r--r-- | noncore/settings/usermanager/groupdialog.cpp | 2 | ||||
-rw-r--r-- | noncore/settings/usermanager/userdialog.cpp | 3 | ||||
-rw-r--r-- | noncore/settings/usermanager/usermanager.cpp | 1 |
3 files changed, 0 insertions, 6 deletions
diff --git a/noncore/settings/usermanager/groupdialog.cpp b/noncore/settings/usermanager/groupdialog.cpp index b595d31..76810be 100644 --- a/noncore/settings/usermanager/groupdialog.cpp +++ b/noncore/settings/usermanager/groupdialog.cpp | |||
@@ -1,41 +1,39 @@ | |||
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 | 9 | ||
10 | #include "groupdialog.h" | 10 | #include "groupdialog.h" |
11 | 11 | ||
12 | #include <qlabel.h> | 12 | #include <qlabel.h> |
13 | #include <qlayout.h> | 13 | #include <qlayout.h> |
14 | #include <qmessagebox.h> | 14 | #include <qmessagebox.h> |
15 | 15 | ||
16 | #include <stdlib.h> | ||
17 | |||
18 | #include "passwd.h" | 16 | #include "passwd.h" |
19 | 17 | ||
20 | GroupDialog::GroupDialog(QWidget* parent, const char* name, bool modal, WFlags fl) : QDialog(parent, name, modal, fl) { | 18 | GroupDialog::GroupDialog(QWidget* parent, const char* name, bool modal, WFlags fl) : QDialog(parent, name, modal, fl) { |
21 | // GID | 19 | // GID |
22 | QLabel *gidLabel=new QLabel(this,"gid: "); | 20 | QLabel *gidLabel=new QLabel(this,"gid: "); |
23 | gidLabel->setText("GroupID: "); | 21 | gidLabel->setText("GroupID: "); |
24 | gidLineEdit=new QLineEdit(this,"gid: "); | 22 | gidLineEdit=new QLineEdit(this,"gid: "); |
25 | gidLineEdit->setEnabled(false); | 23 | gidLineEdit->setEnabled(false); |
26 | 24 | ||
27 | // Groupname | 25 | // Groupname |
28 | QLabel *groupnameLabel=new QLabel(this,"groupname"); | 26 | QLabel *groupnameLabel=new QLabel(this,"groupname"); |
29 | groupnameLabel->setText("Groupname: "); | 27 | groupnameLabel->setText("Groupname: "); |
30 | groupnameLineEdit=new QLineEdit(this,"groupname"); | 28 | groupnameLineEdit=new QLineEdit(this,"groupname"); |
31 | 29 | ||
32 | // Widget layout | 30 | // Widget layout |
33 | QVBoxLayout *layout=new QVBoxLayout(this); | 31 | QVBoxLayout *layout=new QVBoxLayout(this); |
34 | layout->setMargin(5); | 32 | layout->setMargin(5); |
35 | QHBoxLayout *hlayout=new QHBoxLayout(-1,"hlayout"); | 33 | QHBoxLayout *hlayout=new QHBoxLayout(-1,"hlayout"); |
36 | layout->addLayout(hlayout); | 34 | layout->addLayout(hlayout); |
37 | QVBoxLayout *vlayout1=new QVBoxLayout(-1,"vlayout1"); | 35 | QVBoxLayout *vlayout1=new QVBoxLayout(-1,"vlayout1"); |
38 | QVBoxLayout *vlayout2=new QVBoxLayout(-1,"vlayout2"); | 36 | QVBoxLayout *vlayout2=new QVBoxLayout(-1,"vlayout2"); |
39 | // First column, labels | 37 | // First column, labels |
40 | vlayout1->addWidget(gidLabel); | 38 | vlayout1->addWidget(gidLabel); |
41 | vlayout1->addWidget(groupnameLabel); | 39 | vlayout1->addWidget(groupnameLabel); |
diff --git a/noncore/settings/usermanager/userdialog.cpp b/noncore/settings/usermanager/userdialog.cpp index 19b0e84..d87a005 100644 --- a/noncore/settings/usermanager/userdialog.cpp +++ b/noncore/settings/usermanager/userdialog.cpp | |||
@@ -1,43 +1,40 @@ | |||
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 | 9 | ||
10 | #include "userdialog.h" | 10 | #include "userdialog.h" |
11 | 11 | ||
12 | #include <qlayout.h> | 12 | #include <qlayout.h> |
13 | #include <qlabel.h> | 13 | #include <qlabel.h> |
14 | #include <qmessagebox.h> | 14 | #include <qmessagebox.h> |
15 | #include <qfile.h> | 15 | #include <qfile.h> |
16 | 16 | ||
17 | #include <stdlib.h> | ||
18 | |||
19 | #include <stdio.h> | ||
20 | #include <sys/types.h> | 17 | #include <sys/types.h> |
21 | #include <sys/wait.h> | 18 | #include <sys/wait.h> |
22 | #include <unistd.h> | 19 | #include <unistd.h> |
23 | #include <signal.h> | 20 | #include <signal.h> |
24 | 21 | ||
25 | #include "passwd.h" | 22 | #include "passwd.h" |
26 | 23 | ||
27 | #include <opie/odevice.h> | 24 | #include <opie/odevice.h> |
28 | using namespace Opie; | 25 | using namespace Opie; |
29 | 26 | ||
30 | 27 | ||
31 | /** | 28 | /** |
32 | * UserDialog constructor. Setup the dialog, fill the groupComboBox & groupsListView with all groups. | 29 | * UserDialog constructor. Setup the dialog, fill the groupComboBox & groupsListView with all groups. |
33 | * | 30 | * |
34 | */ | 31 | */ |
35 | UserDialog::UserDialog(int viewmode, QWidget* parent, const char* name, bool modal, WFlags fl) : QDialog(parent, name, modal, fl) { | 32 | UserDialog::UserDialog(int viewmode, QWidget* parent, const char* name, bool modal, WFlags fl) : QDialog(parent, name, modal, fl) { |
36 | vm=viewmode; | 33 | vm=viewmode; |
37 | QVBoxLayout *layout = new QVBoxLayout(this); | 34 | QVBoxLayout *layout = new QVBoxLayout(this); |
38 | myTabWidget=new QTabWidget(this,"User Tab Widget"); | 35 | myTabWidget=new QTabWidget(this,"User Tab Widget"); |
39 | layout->addWidget(myTabWidget); | 36 | layout->addWidget(myTabWidget); |
40 | setupTab1(); | 37 | setupTab1(); |
41 | setupTab2(); | 38 | setupTab2(); |
42 | 39 | ||
43 | accounts->groupStringList.sort(); | 40 | accounts->groupStringList.sort(); |
diff --git a/noncore/settings/usermanager/usermanager.cpp b/noncore/settings/usermanager/usermanager.cpp index 5c90525..5411995 100644 --- a/noncore/settings/usermanager/usermanager.cpp +++ b/noncore/settings/usermanager/usermanager.cpp | |||
@@ -1,37 +1,36 @@ | |||
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 | 9 | ||
10 | #include "usermanager.h" | 10 | #include "usermanager.h" |
11 | 11 | ||
12 | #include <qlayout.h> | 12 | #include <qlayout.h> |
13 | #include <stdio.h> | ||
14 | 13 | ||
15 | #include <qmessagebox.h> | 14 | #include <qmessagebox.h> |
16 | #include <qfile.h> | 15 | #include <qfile.h> |
17 | #include <qpe/resource.h> | 16 | #include <qpe/resource.h> |
18 | 17 | ||
19 | #include <qregexp.h> | 18 | #include <qregexp.h> |
20 | 19 | ||
21 | /** | 20 | /** |
22 | * The mainwindow constructor. | 21 | * The mainwindow constructor. |
23 | * | 22 | * |
24 | * @param QWidget *parent | 23 | * @param QWidget *parent |
25 | * @param const char *name | 24 | * @param const char *name |
26 | * @ param WFlags fl | 25 | * @ param WFlags fl |
27 | * | 26 | * |
28 | */ | 27 | */ |
29 | UserConfig::UserConfig(QWidget* parent, const char* name, WFlags fl) : QMainWindow(parent, name, fl) { | 28 | UserConfig::UserConfig(QWidget* parent, const char* name, WFlags fl) : QMainWindow(parent, name, fl) { |
30 | setCaption(tr("Opie User Manager")); | 29 | setCaption(tr("Opie User Manager")); |
31 | 30 | ||
32 | // Create an instance of the global object 'accounts'. This holds all user/group info, and functions to modify them. | 31 | // Create an instance of the global object 'accounts'. This holds all user/group info, and functions to modify them. |
33 | accounts=new Passwd(); | 32 | accounts=new Passwd(); |
34 | accounts->open();// This actually loads the files /etc/passwd & /etc/group into memory. | 33 | accounts->open();// This actually loads the files /etc/passwd & /etc/group into memory. |
35 | 34 | ||
36 | // Create the toolbar. | 35 | // Create the toolbar. |
37 | QToolBar *toolbar = new QToolBar(this,"Toolbar"); | 36 | QToolBar *toolbar = new QToolBar(this,"Toolbar"); |