summaryrefslogtreecommitdiff
path: root/noncore/games/kbill/inputbox.cpp
authormark <mark>2002-04-14 17:08:03 (UTC)
committer mark <mark>2002-04-14 17:08:03 (UTC)
commitbfeb067c8acfb5f1797fdc886ac71ca1b10ccf57 (patch) (side-by-side diff)
treead77e90c90f4bfb598bbe93aa4b3e14b689c96f4 /noncore/games/kbill/inputbox.cpp
parenta0fe593db4e700989cc19e28b67a58f87823afeb (diff)
downloadopie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.zip
opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.tar.gz
opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.tar.bz2
Import of kbill
Diffstat (limited to 'noncore/games/kbill/inputbox.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/kbill/inputbox.cpp51
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 @@
+/***************************************************************************
+ inputbox.cpp - description
+ -------------------
+ begin : Sat Jan 1 2000
+ copyright : (C) 2000 by Jurrien Loonstra
+ email : j.h.loonstra@st.hanze.nl
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "inputbox.h"
+#include <qdialog.h>
+InputBox::InputBox(QWidget *parent, const char *name, const char *caption, const char *text) : QDialog(parent, name, TRUE) {
+// setCaption(caption);
+//
+// question = new QLabel(this);
+// question->setText(text);
+// question->setGeometry(10, 10, 240, 50);
+//
+// input = new QLineEdit(this);
+// input->setGeometry(10, 60, 240, 30);
+// input->setFocus();
+// input->setMaxLength(19);
+//
+// ok = new QPushButton( "Ok", this );
+// ok->setGeometry(10, 100, 100,30 );
+// ok->setDefault(TRUE);
+// connect( ok, SIGNAL(clicked()), SLOT(accept()) );
+//
+// cancel = new QPushButton( "Cancel", this );
+// cancel->setGeometry(150, 100, 100,30 );
+// connect( cancel, SIGNAL(clicked()), SLOT(reject()) );
+}
+
+InputBox::~InputBox(){
+ delete ok;
+ delete cancel;
+ delete question;
+ delete input;
+}
+
+QString InputBox::getText() const{
+ return input->text();
+}