BeoBotQtMainForm.cpp

00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'Qt/BeoBotQtMainForm.ui'
00003 **
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 ****************************************************************************/
00007 
00008 #include "Qt/ui/BeoBotQtMainForm.h"
00009 
00010 #include <qvariant.h>
00011 #include <GL/gl.h>
00012 #include <GL/glu.h>
00013 #include <qlabel.h>
00014 #include <qlayout.h>
00015 #include <qtooltip.h>
00016 #include <qwhatsthis.h>
00017 #include "Raster/Raster.H"
00018 #include "Qt/beobotmap.h"
00019 #include "Qt/BeoBotQtMainForm.ui.h"
00020 
00021 /*
00022  *  Constructs a BeoBotQtMainForm as a child of 'parent', with the
00023  *  name 'name' and widget flags set to 'f'.
00024  */
00025 BeoBotQtMainForm::BeoBotQtMainForm( QWidget* parent, const char* name, WFlags fl )
00026     : QWidget( parent, name, fl )
00027 {
00028     if ( !name )
00029         setName( "BeoBotQtMainForm" );
00030 
00031     MapLabel = new QLabel( this, "MapLabel" );
00032     MapLabel->setGeometry( QRect( 360, 10, 70, 20 ) );
00033 
00034     CameraLabel = new QLabel( this, "CameraLabel" );
00035     CameraLabel->setGeometry( QRect( 20, 10, 70, 20 ) );
00036 
00037     DisplayLabel = new QLabel( this, "DisplayLabel" );
00038     DisplayLabel->setGeometry( QRect( 20, 280, 70, 20 ) );
00039 
00040     ParameterLabel = new QLabel( this, "ParameterLabel" );
00041     ParameterLabel->setGeometry( QRect( 360, 280, 110, 20 ) );
00042 
00043     map = new BeoBotMap( this, "map" );
00044     map->setGeometry( QRect( 380, 40, 200, 200 ) );
00045 
00046     displayCoord = new QLabel( this, "displayCoord" );
00047     displayCoord->setGeometry( QRect( 360, 250, 110, 20 ) );
00048     displayCoord->setScaledContents( FALSE );
00049 
00050     displayImage3 = new QLabel( this, "displayImage3" );
00051     displayImage3->setGeometry( QRect( 20, 140, 120, 90 ) );
00052     displayImage3->setBackgroundMode( QLabel::PaletteBackground );
00053     displayImage3->setScaledContents( TRUE );
00054 
00055     displayImage4 = new QLabel( this, "displayImage4" );
00056     displayImage4->setGeometry( QRect( 150, 140, 120, 90 ) );
00057     displayImage4->setBackgroundMode( QLabel::PaletteBackground );
00058     displayImage4->setScaledContents( TRUE );
00059 
00060     displayImage2 = new QLabel( this, "displayImage2" );
00061     displayImage2->setGeometry( QRect( 150, 40, 120, 90 ) );
00062     displayImage2->setBackgroundMode( QLabel::PaletteBackground );
00063     displayImage2->setScaledContents( TRUE );
00064 
00065     displayImage1 = new QLabel( this, "displayImage1" );
00066     displayImage1->setGeometry( QRect( 20, 40, 120, 90 ) );
00067     displayImage1->setBackgroundMode( QLabel::PaletteBackground );
00068     displayImage1->setScaledContents( TRUE );
00069     languageChange();
00070     resize( QSize(600, 480).expandedTo(minimumSizeHint()) );
00071     clearWState( WState_Polished );
00072     init();
00073 }
00074 
00075 /*
00076  *  Destroys the object and frees any allocated resources
00077  */
00078 BeoBotQtMainForm::~BeoBotQtMainForm()
00079 {
00080     // no need to delete child widgets, Qt does it all for us
00081 }
00082 
00083 /*
00084  *  Sets the strings of the subwidgets using the current
00085  *  language.
00086  */
00087 void BeoBotQtMainForm::languageChange()
00088 {
00089     setCaption( tr( "BeoBotQt" ) );
00090     MapLabel->setText( tr( "<b>Map:</b>" ) );
00091     CameraLabel->setText( tr( "<b>Cameras:</b>" ) );
00092     DisplayLabel->setText( tr( "<b>display:</b>" ) );
00093     ParameterLabel->setText( tr( "<b>Parameters:</b>" ) );
00094     displayCoord->setText( QString::null );
00095     displayImage3->setText( QString::null );
00096     displayImage4->setText( QString::null );
00097     displayImage2->setText( QString::null );
00098     displayImage1->setText( QString::null );
00099 }
00100 
Generated on Sun May 8 08:05:33 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3