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

newdrinks.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Created: Sat Jul 20 08:23:27 2002
00003 **      by:  L.J. Potter <ljp@llornkcor.com>
00004 **     copyright            : (C) 2002 by ljp
00005     email                : ljp@llornkcor.com
00006     *   This program is free software; you can redistribute it and/or modify  *
00007     *   it under the terms of the GNU General Public License as published by  *
00008     *   the Free Software Foundation; either version 2 of the License, or     *
00009     *   (at your option) any later version.                                   *
00010     ***************************************************************************/
00011 #include "newdrinks.h"
00012 
00013 
00014 #include <qlabel.h>
00015 #include <qlineedit.h>
00016 #include <qmultilineedit.h>
00017 #include <qlayout.h>
00018 
00019 New_Drink::New_Drink( QWidget* parent,  const char* name, bool modal, WFlags fl )
00020     : QDialog( parent, name, modal, fl )
00021 {
00022     QString drinkName = name;
00023     if ( !name )
00024         setName( drinkName );
00025     setCaption( drinkName);
00026 
00027     Layout5 = new QGridLayout( this); 
00028     Layout5->setSpacing( 6 );
00029     Layout5->setMargin( 4 );
00030 
00031 //      Layout4 = new QHBoxLayout; 
00032 //      Layout4->setSpacing( 6 );
00033 //      Layout4->setMargin( 4 );
00034 
00035     TextLabel1 = new QLabel( this, "TextLabel1" );
00036     TextLabel1->setText( tr( "Name" ) );
00037     Layout5->addMultiCellWidget( TextLabel1, 0, 0, 0, 0);
00038 
00039     LineEdit1 = new QLineEdit( this, "LineEdit1" );
00040     Layout5->addMultiCellWidget( LineEdit1, 0, 0, 1, 2);
00041 
00042 
00043     TextLabel2 = new QLabel( this, "TextLabel2" );
00044     TextLabel2->setText( tr( "Ingredients" ) );
00045 
00046     Layout5->addMultiCellWidget( TextLabel2, 1, 1, 0, 0);
00047 
00048     MultiLineEdit1 = new QMultiLineEdit( this, "MultiLineEdit1" );
00049     MultiLineEdit1->setWordWrap(QMultiLineEdit::WidgetWidth);
00050 
00051     Layout5->addMultiCellWidget( MultiLineEdit1, 2, 2, 0, 2);
00052 }
00053 
00054 /*  
00055  *  Destroys the object and frees any allocated resources
00056  */
00057 New_Drink::~New_Drink()
00058 {
00059     // no need to delete child widgets, Qt does it all for us
00060 }
00061 

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