#include <MainForm.h>
Inheritance diagram for MainForm:
Public Member Functions | |
MainForm (QWidget *parent=0, const char *name=0, WFlags fl=0) | |
~MainForm () | |
Public Attributes | |
QButtonGroup * | buttonGroup1_2 |
QRadioButton * | AselectB |
QRadioButton * | BselectB |
QButtonGroup * | buttonGroup1 |
QRadioButton * | AplayB |
QRadioButton * | stopB |
QRadioButton * | BplayB |
QFrame * | line1 |
QPushButton * | nextB |
QProgressBar * | progressBar |
QLabel * | textLabel1 |
Protected Slots | |
virtual void | languageChange () |
Definition at line 27 of file MainForm.h.
|
Definition at line 27 of file MainForm.cpp. References AplayB, AselectB, BplayB, BselectB, buttonGroup1, buttonGroup1_2, languageChange(), line1, nextB, progressBar, stopB, and textLabel1. 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 }
|
|
Definition at line 91 of file MainForm.cpp.
|
|
Definition at line 100 of file MainForm.cpp. References AplayB, AselectB, BplayB, BselectB, buttonGroup1, buttonGroup1_2, nextB, stopB, and textLabel1. Referenced by MainForm(). 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 }
|
|
Definition at line 39 of file MainForm.h. Referenced by languageChange(), MainDialog::MainDialog(), MainForm(), and MainDialog::trialTick(). |
|
Definition at line 36 of file MainForm.h. Referenced by languageChange(), MainDialog::loggerTick(), MainForm(), and MainDialog::trialTick(). |
|
Definition at line 41 of file MainForm.h. Referenced by languageChange(), MainDialog::MainDialog(), MainForm(), and MainDialog::trialTick(). |
|
Definition at line 37 of file MainForm.h. Referenced by languageChange(), MainForm(), and MainDialog::trialTick(). |
|
Definition at line 38 of file MainForm.h. Referenced by languageChange(), and MainForm(). |
|
Definition at line 35 of file MainForm.h. Referenced by languageChange(), and MainForm(). |
|
Definition at line 42 of file MainForm.h. Referenced by MainForm(). |
|
Definition at line 43 of file MainForm.h. Referenced by languageChange(), MainDialog::MainDialog(), and MainForm(). |
|
Definition at line 44 of file MainForm.h. Referenced by MainDialog::MainDialog(), and MainForm(). |
|
Definition at line 40 of file MainForm.h. Referenced by languageChange(), MainDialog::MainDialog(), MainForm(), and MainDialog::trialTick(). |
|
Definition at line 45 of file MainForm.h. Referenced by languageChange(), and MainForm(). |