00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "MainForm.h"
00011
00012 #include <qvariant.h>
00013 #include <qbuttongroup.h>
00014 #include <qradiobutton.h>
00015 #include <qframe.h>
00016 #include <qpushbutton.h>
00017 #include <qprogressbar.h>
00018 #include <qlabel.h>
00019 #include <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qwhatsthis.h>
00022
00023
00024
00025
00026
00027 MainForm::MainForm( QWidget* parent, const char* name, WFlags fl )
00028 : QWidget( parent, name, fl )
00029 {
00030 if ( !name )
00031 setName( "MainForm" );
00032 setPaletteBackgroundColor( QColor( 170, 170, 127 ) );
00033
00034 buttonGroup1_2 = new QButtonGroup( this, "buttonGroup1_2" );
00035 buttonGroup1_2->setGeometry( QRect( 70, 140, 351, 71 ) );
00036 buttonGroup1_2->setFrameShape( QButtonGroup::NoFrame );
00037
00038 AselectB = new QRadioButton( buttonGroup1_2, "AselectB" );
00039 AselectB->setGeometry( QRect( 40, 10, 104, 20 ) );
00040 AselectB->setPaletteForegroundColor( QColor( 255, 255, 255 ) );
00041 AselectB->setFocusPolicy( QRadioButton::NoFocus );
00042
00043 BselectB = new QRadioButton( buttonGroup1_2, "BselectB" );
00044 BselectB->setGeometry( QRect( 270, 10, 104, 20 ) );
00045 BselectB->setPaletteForegroundColor( QColor( 255, 255, 255 ) );
00046 BselectB->setFocusPolicy( QRadioButton::NoFocus );
00047
00048 buttonGroup1 = new QButtonGroup( this, "buttonGroup1" );
00049 buttonGroup1->setGeometry( QRect( 70, 50, 351, 71 ) );
00050 buttonGroup1->setFrameShape( QButtonGroup::NoFrame );
00051
00052 AplayB = new QRadioButton( buttonGroup1, "AplayB" );
00053 AplayB->setGeometry( QRect( 40, 50, 104, 20 ) );
00054 AplayB->setPaletteForegroundColor( QColor( 255, 255, 255 ) );
00055 AplayB->setFocusPolicy( QRadioButton::NoFocus );
00056
00057 stopB = new QRadioButton( buttonGroup1, "stopB" );
00058 stopB->setGeometry( QRect( 170, 20, 104, 20 ) );
00059 stopB->setFocusPolicy( QRadioButton::NoFocus );
00060
00061 BplayB = new QRadioButton( buttonGroup1, "BplayB" );
00062 BplayB->setGeometry( QRect( 270, 50, 104, 20 ) );
00063 BplayB->setPaletteForegroundColor( QColor( 255, 255, 255 ) );
00064 BplayB->setFocusPolicy( QRadioButton::NoFocus );
00065
00066 line1 = new QFrame( this, "line1" );
00067 line1->setGeometry( QRect( 240, 90, 20, 130 ) );
00068 line1->setFrameShape( QFrame::VLine );
00069 line1->setFrameShadow( QFrame::Sunken );
00070 line1->setFrameShape( QFrame::VLine );
00071
00072 nextB = new QPushButton( this, "nextB" );
00073 nextB->setGeometry( QRect( 190, 230, 120, 30 ) );
00074 nextB->setPaletteBackgroundColor( QColor( 136, 136, 102 ) );
00075 nextB->setFocusPolicy( QPushButton::NoFocus );
00076
00077 progressBar = new QProgressBar( this, "progressBar" );
00078 progressBar->setGeometry( QRect( 100, 290, 321, 24 ) );
00079 progressBar->setPercentageVisible( FALSE );
00080
00081 textLabel1 = new QLabel( this, "textLabel1" );
00082 textLabel1->setGeometry( QRect( 90, 10, 340, 33 ) );
00083 languageChange();
00084 resize( QSize(517, 472).expandedTo(minimumSizeHint()) );
00085 clearWState( WState_Polished );
00086 }
00087
00088
00089
00090
00091 MainForm::~MainForm()
00092 {
00093
00094 }
00095
00096
00097
00098
00099
00100 void MainForm::languageChange()
00101 {
00102 setCaption( tr( "MASS listening test" ) );
00103 buttonGroup1_2->setTitle( QString::null );
00104 AselectB->setText( tr( "SELECT" ) );
00105 BselectB->setText( tr( "SELECT" ) );
00106 buttonGroup1->setTitle( QString::null );
00107 AplayB->setText( tr( "PLAY" ) );
00108 stopB->setText( tr( "STOP" ) );
00109 BplayB->setText( tr( "PLAY" ) );
00110 nextB->setText( tr( "OK, NEXT PAIR" ) );
00111 textLabel1->setText( tr( "Listen to a pair of recordings and select the one with\n"
00112 "the MOST conversation happening in the room outside." ) );
00113 }
00114