Diffstat (limited to 'noncore/games/kbill/inputbox.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/kbill/inputbox.cpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/noncore/games/kbill/inputbox.cpp b/noncore/games/kbill/inputbox.cpp new file mode 100644 index 0000000..b191ea8 --- a/dev/null +++ b/noncore/games/kbill/inputbox.cpp | |||
@@ -0,0 +1,51 @@ | |||
1 | /*************************************************************************** | ||
2 | inputbox.cpp - description | ||
3 | ------------------- | ||
4 | begin : Sat Jan 1 2000 | ||
5 | copyright : (C) 2000 by Jurrien Loonstra | ||
6 | email : j.h.loonstra@st.hanze.nl | ||
7 | ***************************************************************************/ | ||
8 | |||
9 | /*************************************************************************** | ||
10 | * * | ||
11 | * This program is free software; you can redistribute it and/or modify * | ||
12 | * it under the terms of the GNU General Public License as published by * | ||
13 | * the Free Software Foundation; either version 2 of the License, or * | ||
14 | * (at your option) any later version. * | ||
15 | * * | ||
16 | ***************************************************************************/ | ||
17 | |||
18 | #include "inputbox.h" | ||
19 | #include <qdialog.h> | ||
20 | InputBox::InputBox(QWidget *parent, const char *name, const char *caption, const char *text) : QDialog(parent, name, TRUE) { | ||
21 | // setCaption(caption); | ||
22 | // | ||
23 | // question = new QLabel(this); | ||
24 | // question->setText(text); | ||
25 | // question->setGeometry(10, 10, 240, 50); | ||
26 | // | ||
27 | // input = new QLineEdit(this); | ||
28 | // input->setGeometry(10, 60, 240, 30); | ||
29 | // input->setFocus(); | ||
30 | // input->setMaxLength(19); | ||
31 | // | ||
32 | // ok = new QPushButton( "Ok", this ); | ||
33 | // ok->setGeometry(10, 100, 100,30 ); | ||
34 | // ok->setDefault(TRUE); | ||
35 | // connect( ok, SIGNAL(clicked()), SLOT(accept()) ); | ||
36 | // | ||
37 | // cancel = new QPushButton( "Cancel", this ); | ||
38 | // cancel->setGeometry(150, 100, 100,30 ); | ||
39 | // connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); | ||
40 | } | ||
41 | |||
42 | InputBox::~InputBox(){ | ||
43 | delete ok; | ||
44 | delete cancel; | ||
45 | delete question; | ||
46 | delete input; | ||
47 | } | ||
48 | |||
49 | QString InputBox::getText() const{ | ||
50 | return input->text(); | ||
51 | } | ||