From bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57 Mon Sep 17 00:00:00 2001 From: mark Date: Sun, 14 Apr 2002 17:08:03 +0000 Subject: Import of kbill --- (limited to 'noncore/games/kbill/inputbox.cpp') 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 +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(); +} -- cgit v0.9.0.2