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

showdrinks.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 "showdrinks.h"
00012 
00013 
00014 #include <qmultilineedit.h>
00015 #include <qpushbutton.h>
00016 #include <qlayout.h>
00017 
00018 //extern Bartender  *bart;
00019 
00020 Show_Drink::Show_Drink( QWidget* parent,  const char* name, bool modal, WFlags fl )
00021     : QDialog( parent, name, modal, fl ) {
00022     if ( !name )
00023     setName( drinkName);
00024 
00025     drinkName = name;
00026     setCaption( drinkName );
00027 
00028     Layout5 = new QGridLayout( this); 
00029     Layout5->setSpacing( 6 );
00030     Layout5->setMargin( 4 );
00031 
00032     
00033       editDrinkButton = new QPushButton( tr("Edit"), this,"editBtn");
00034       Layout5->addMultiCellWidget(  editDrinkButton, 0, 0, 0, 0 );
00035       connect(editDrinkButton, SIGNAL(clicked()), this, SLOT(slotEditDrink()));
00036             
00037     MultiLineEdit1 = new QMultiLineEdit( this, "MultiLineEdit1" );
00038     MultiLineEdit1->setWordWrap(QMultiLineEdit::WidgetWidth);
00039     MultiLineEdit1->setReadOnly(true);
00040     Layout5->addMultiCellWidget(  MultiLineEdit1, 1, 3, 0, 3 );
00041 }
00042 
00043 Show_Drink::~Show_Drink() {
00044 }
00045 
00046 void Show_Drink::slotEditDrink() {
00047    reject();
00048 }

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