Biomechanical Joint Model
 Author: Anderson Maciel

modeljoint/src/dlgnewmaterial.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'dlgnewmaterial.ui'
00003 **
00004 ** Created: Wed Aug 25 12:21:18 2004
00005 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.2.3   edited May 19 14:22 $)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
00008 ****************************************************************************/
00009 
00010 #include "dlgnewmaterial.h"
00011 
00012 #include <qvariant.h>
00013 #include <qpushbutton.h>
00014 #include <qlabel.h>
00015 #include <qlineedit.h>
00016 #include <qlayout.h>
00017 #include <qtooltip.h>
00018 #include <qwhatsthis.h>
00019 #include <qimage.h>
00020 #include <qpixmap.h>
00021 
00022 /*
00023  *  Constructs a dlgNewMaterial as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  *
00026  *  The dialog will by default be modeless, unless you set 'modal' to
00027  *  TRUE to construct a modal dialog.
00028  */
00029 dlgNewMaterial::dlgNewMaterial( QWidget* parent, const char* name, bool modal, WFlags fl )
00030     : QDialog( parent, name, modal, fl )
00031 {
00032     if ( !name )
00033         setName( "dlgNewMaterial" );
00034     setSizeGripEnabled( TRUE );
00035 
00036     QWidget* privateLayoutWidget = new QWidget( this, "Layout1" );
00037     privateLayoutWidget->setGeometry( QRect( 10, 140, 350, 33 ) );
00038     Layout1 = new QHBoxLayout( privateLayoutWidget, 0, 6, "Layout1"); 
00039 
00040     buttonHelp = new QPushButton( privateLayoutWidget, "buttonHelp" );
00041     buttonHelp->setAutoDefault( TRUE );
00042     Layout1->addWidget( buttonHelp );
00043     QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00044     Layout1->addItem( spacer );
00045 
00046     buttonOk = new QPushButton( privateLayoutWidget, "buttonOk" );
00047     buttonOk->setAutoDefault( TRUE );
00048     buttonOk->setDefault( TRUE );
00049     Layout1->addWidget( buttonOk );
00050 
00051     buttonCancel = new QPushButton( privateLayoutWidget, "buttonCancel" );
00052     buttonCancel->setAutoDefault( TRUE );
00053     Layout1->addWidget( buttonCancel );
00054 
00055     textLabel1 = new QLabel( this, "textLabel1" );
00056     textLabel1->setGeometry( QRect( 19, 92, 128, 20 ) );
00057 
00058     newDescription = new QLineEdit( this, "newDescription" );
00059     newDescription->setGeometry( QRect( 150, 90, 210, 24 ) );
00060     languageChange();
00061     resize( QSize(373, 182).expandedTo(minimumSizeHint()) );
00062     clearWState( WState_Polished );
00063 
00064     // signals and slots connections
00065     connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
00066     connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00067 }
00068 
00069 /*
00070  *  Destroys the object and frees any allocated resources
00071  */
00072 dlgNewMaterial::~dlgNewMaterial()
00073 {
00074     // no need to delete child widgets, Qt does it all for us
00075 }
00076 
00077 /*
00078  *  Sets the strings of the subwidgets using the current
00079  *  language.
00080  */
00081 void dlgNewMaterial::languageChange()
00082 {
00083     setCaption( tr( "New Material" ) );
00084     buttonHelp->setText( tr( "&Help" ) );
00085     buttonHelp->setAccel( QKeySequence( tr( "F1" ) ) );
00086     buttonOk->setText( tr( "&OK" ) );
00087     buttonOk->setAccel( QKeySequence( QString::null ) );
00088     buttonCancel->setText( tr( "&Cancel" ) );
00089     buttonCancel->setAccel( QKeySequence( QString::null ) );
00090     textLabel1->setText( tr( "Material description:" ) );
00091 }
00092 

Generated on Thu Dec 1 10:13:37 2005 for COME - Biomechanical Joint Model by  doxygen 1.4.5