Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

inputDialog.cpp

Go to the documentation of this file.
00001 /*
00002                             This file is part of the Opie Project
00003 
00004                              Copyright (c)  2002,2003 Max Reiss <harlekin@handhelds.org>
00005                              Copyright (c)  2002 L. Potter <ljp@llornkcor.com>
00006               =.
00007             .=l.
00008            .>+-=
00009  _;:,     .>    :=|.         This program is free software; you can
00010 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00011 :`=1 )Y*s>-.--   :           the terms of the GNU General Public
00012 .="- .-=="i,     .._         License as published by the Free Software
00013  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00014      ._= =}       :          or (at your option) any later version.
00015     .%`+i>       _;_.
00016     .i_,=:_.      -<s.       This program is distributed in the hope that
00017      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00018     : ..    .:,     . . .    without even the implied warranty of
00019     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00020   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00021 ..}^=.=       =       ;      General Public License for more
00022 ++=   -.     .`     .:       details.
00023  :     =  ...= . :.=-
00024  -.   .:....=;==+<;          You should have received a copy of the GNU
00025   -_. . .   )=.  =           General Public License along with
00026     --        :-=`           this library; see the file COPYING.LIB.
00027                              If not, write to the Free Software Foundation,
00028                              Inc., 59 Temple Place - Suite 330,
00029                              Boston, MA 02111-1307, USA.
00030 
00031 */
00032 
00033 
00034 #include "inputDialog.h"
00035 
00036 
00037 #include <qlineedit.h>
00038 
00039 InputDialog::InputDialog( QWidget* parent,  const char* name, bool modal, WFlags fl )
00040     : QDialog( parent, name, modal, fl ) {
00041     if ( !name ) {
00042         setName( "InputDialog" );
00043     }
00044     resize( 234, 115);
00045     setMaximumSize( QSize( 240, 40));
00046     setCaption( tr( name ) );
00047 
00048     QPushButton *browserButton;
00049     //browserButton = new QPushButton( Resource::loadIconSet("fileopen"),"",this,"BrowseButton");
00050     //browserButton->setGeometry( QRect( 205, 10, 22, 22));
00051     //connect( browserButton, SIGNAL(released()),this,SLOT(browse()));
00052     LineEdit1 = new QLineEdit( this, "LineEdit1" );
00053     LineEdit1->setGeometry( QRect( 4, 10, 190, 22 ) );
00054     LineEdit1->setFocus();
00055 }
00056 /*
00057  * return the current text(input)
00058  */
00059 QString InputDialog::text() const {
00060    return LineEdit1->text();
00061 }
00062 /*
00063  *  Destroys the object and frees any allocated resources
00064  */
00065 InputDialog::~InputDialog() {
00066 }
00067 

Generated on Sat Nov 5 16:15:34 2005 for OPIE by  doxygen 1.4.2