summaryrefslogtreecommitdiff
authorbenmeyer <benmeyer>2002-10-02 18:53:13 (UTC)
committer benmeyer <benmeyer>2002-10-02 18:53:13 (UTC)
commitc997983c6917885f6c487b942a9b294fa50ae618 (patch) (unidiff)
treeaa876ae8bd51e11e4e0e943f961702c88fba1c8c
parent56a0a990842a5b57b961c064809aae27f087562d (diff)
downloadopie-c997983c6917885f6c487b942a9b294fa50ae618.zip
opie-c997983c6917885f6c487b942a9b294fa50ae618.tar.gz
opie-c997983c6917885f6c487b942a9b294fa50ae618.tar.bz2
initial commit
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/namedialog.cpp61
-rw-r--r--noncore/net/networksetup/namedialog.h36
-rw-r--r--noncore/settings/networksettings/namedialog.cpp61
-rw-r--r--noncore/settings/networksettings/namedialog.h36
4 files changed, 194 insertions, 0 deletions
diff --git a/noncore/net/networksetup/namedialog.cpp b/noncore/net/networksetup/namedialog.cpp
new file mode 100644
index 0000000..c5efa37
--- a/dev/null
+++ b/noncore/net/networksetup/namedialog.cpp
@@ -0,0 +1,61 @@
1/****************************************************************************
2** Form implementation generated from reading ui file 'namedialog.ui'
3**
4** Created: Sat Dec 15 04:36:20 2001
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#include "namedialog.h"
10
11#include <qlineedit.h>
12#include <qpushbutton.h>
13#include <qlayout.h>
14#include <qvariant.h>
15#include <qtooltip.h>
16#include <qwhatsthis.h>
17
18/*
19 * Constructs a NameDialog which is a child of 'parent', with the
20 * name 'name' and widget flags set to 'f'
21 *
22 * The dialog will by default be modeless, unless you set 'modal' to
23 * TRUE to construct a modal dialog.
24 */
25NameDialog::NameDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
26 : QDialog( parent, name, modal, fl )
27{
28 if ( !name )
29 setName( "NameDialog" );
30 resize( 176, 65 );
31 setCaption( tr( "Enter A Name" ) );
32 NameDialogLayout = new QGridLayout( this );
33 NameDialogLayout->setSpacing( 6 );
34 NameDialogLayout->setMargin( 5 );
35
36 Name = new QLineEdit( this, "Name" );
37
38 NameDialogLayout->addMultiCellWidget( Name, 0, 0, 0, 1 );
39
40 cancel = new QPushButton( this, "Cancel" );
41 cancel->setText( tr( "&Cancel" ) );
42
43 NameDialogLayout->addWidget( cancel, 1, 1 );
44
45 ok = new QPushButton( this, "ok" );
46 ok->setText( tr( "&Ok" ) );
47
48 NameDialogLayout->addWidget( ok, 1, 0 );
49
50 connect( ok, SIGNAL( clicked() ), this, SLOT( accept() ) );
51 connect( cancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
52 connect( Name, SIGNAL(returnPressed () ), this, SLOT(accept() ) );
53}
54
55QString NameDialog::go(){
56 if( exec() ) //pressed OK
57 return (Name->text());
58 else //pressed cancel
59 return QString();
60}
61
diff --git a/noncore/net/networksetup/namedialog.h b/noncore/net/networksetup/namedialog.h
new file mode 100644
index 0000000..4c4e149
--- a/dev/null
+++ b/noncore/net/networksetup/namedialog.h
@@ -0,0 +1,36 @@
1/****************************************************************************
2** Form interface generated from reading ui file 'namedialog.ui'
3**
4** Created: Sat Dec 15 04:36:14 2001
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#ifndef NAMEDIALOG_H
10#define NAMEDIALOG_H
11
12#include <qvariant.h>
13#include <qdialog.h>
14class QVBoxLayout;
15class QHBoxLayout;
16class QGridLayout;
17class QLineEdit;
18class QPushButton;
19
20class NameDialog : public QDialog
21{
22 Q_OBJECT
23
24public:
25 NameDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
26
27 QLineEdit* Name;
28 QPushButton* cancel;
29 QPushButton* ok;
30 QString go();
31
32protected:
33 QGridLayout* NameDialogLayout;
34};
35
36#endif // NAMEDIALOG_H
diff --git a/noncore/settings/networksettings/namedialog.cpp b/noncore/settings/networksettings/namedialog.cpp
new file mode 100644
index 0000000..c5efa37
--- a/dev/null
+++ b/noncore/settings/networksettings/namedialog.cpp
@@ -0,0 +1,61 @@
1/****************************************************************************
2** Form implementation generated from reading ui file 'namedialog.ui'
3**
4** Created: Sat Dec 15 04:36:20 2001
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#include "namedialog.h"
10
11#include <qlineedit.h>
12#include <qpushbutton.h>
13#include <qlayout.h>
14#include <qvariant.h>
15#include <qtooltip.h>
16#include <qwhatsthis.h>
17
18/*
19 * Constructs a NameDialog which is a child of 'parent', with the
20 * name 'name' and widget flags set to 'f'
21 *
22 * The dialog will by default be modeless, unless you set 'modal' to
23 * TRUE to construct a modal dialog.
24 */
25NameDialog::NameDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
26 : QDialog( parent, name, modal, fl )
27{
28 if ( !name )
29 setName( "NameDialog" );
30 resize( 176, 65 );
31 setCaption( tr( "Enter A Name" ) );
32 NameDialogLayout = new QGridLayout( this );
33 NameDialogLayout->setSpacing( 6 );
34 NameDialogLayout->setMargin( 5 );
35
36 Name = new QLineEdit( this, "Name" );
37
38 NameDialogLayout->addMultiCellWidget( Name, 0, 0, 0, 1 );
39
40 cancel = new QPushButton( this, "Cancel" );
41 cancel->setText( tr( "&Cancel" ) );
42
43 NameDialogLayout->addWidget( cancel, 1, 1 );
44
45 ok = new QPushButton( this, "ok" );
46 ok->setText( tr( "&Ok" ) );
47
48 NameDialogLayout->addWidget( ok, 1, 0 );
49
50 connect( ok, SIGNAL( clicked() ), this, SLOT( accept() ) );
51 connect( cancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
52 connect( Name, SIGNAL(returnPressed () ), this, SLOT(accept() ) );
53}
54
55QString NameDialog::go(){
56 if( exec() ) //pressed OK
57 return (Name->text());
58 else //pressed cancel
59 return QString();
60}
61
diff --git a/noncore/settings/networksettings/namedialog.h b/noncore/settings/networksettings/namedialog.h
new file mode 100644
index 0000000..4c4e149
--- a/dev/null
+++ b/noncore/settings/networksettings/namedialog.h
@@ -0,0 +1,36 @@
1/****************************************************************************
2** Form interface generated from reading ui file 'namedialog.ui'
3**
4** Created: Sat Dec 15 04:36:14 2001
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#ifndef NAMEDIALOG_H
10#define NAMEDIALOG_H
11
12#include <qvariant.h>
13#include <qdialog.h>
14class QVBoxLayout;
15class QHBoxLayout;
16class QGridLayout;
17class QLineEdit;
18class QPushButton;
19
20class NameDialog : public QDialog
21{
22 Q_OBJECT
23
24public:
25 NameDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
26
27 QLineEdit* Name;
28 QPushButton* cancel;
29 QPushButton* ok;
30 QString go();
31
32protected:
33 QGridLayout* NameDialogLayout;
34};
35
36#endif // NAMEDIALOG_H