00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "lftvideodialogbase.h"
00010
00011 #include <qbuttongroup.h>
00012 #include <qframe.h>
00013 #include <qlabel.h>
00014 #include <qlcdnumber.h>
00015 #include <qpushbutton.h>
00016 #include <qslider.h>
00017 #include <qlayout.h>
00018 #include <qvariant.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021
00022
00023
00024
00025
00026
00027
00028
00029 LFTVideoDialogBase::LFTVideoDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
00030 : QDialog( parent, name, modal, fl )
00031 {
00032 if ( !name )
00033 setName( "LFTVideoDialogBase" );
00034 resize( 215, 620 );
00035 setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, sizePolicy().hasHeightForWidth() ) );
00036 setProperty( "minimumSize", QSize( 215, 620 ) );
00037 setProperty( "maximumSize", QSize( 215, 620 ) );
00038 setProperty( "cursor", QCursor( 0 ) );
00039 setProperty( "caption", tr( "LFTVideo" ) );
00040 setProperty( "sizeGripEnabled", QVariant( FALSE, 0 ) );
00041
00042 FrmCounter = new QFrame( this, "FrmCounter" );
00043 FrmCounter->setGeometry( QRect( 9, 555, 198, 58 ) );
00044 FrmCounter->setProperty( "frameShape", (int)QFrame::WinPanel );
00045 FrmCounter->setProperty( "frameShadow", (int)QFrame::Sunken );
00046 QToolTip::add( FrmCounter, tr( QString::fromUtf8( "Zählwerk" ) ) );
00047
00048 SldSecs = new QSlider( FrmCounter, "SldSecs" );
00049 SldSecs->setGeometry( QRect( 99, 40, 86, 16 ) );
00050 SldSecs->setProperty( "maxValue", 59 );
00051 SldSecs->setProperty( "pageStep", 5 );
00052 SldSecs->setProperty( "orientation", (int)QSlider::Horizontal );
00053 SldSecs->setProperty( "tickmarks", (int)QSlider::NoMarks );
00054 QToolTip::add( SldSecs, tr( "Sekundeneinsteller (ACHTUNG: Nicht in bereits ge-ratet-e Bereiche springen!)" ) );
00055
00056 TextLabelDoppelpunkt = new QLabel( FrmCounter, "TextLabelDoppelpunkt" );
00057 TextLabelDoppelpunkt->setGeometry( QRect( 96, 8, 7, 25 ) );
00058 QFont TextLabelDoppelpunkt_font( TextLabelDoppelpunkt->font() );
00059 TextLabelDoppelpunkt_font.setFamily( "Arial" );
00060 TextLabelDoppelpunkt_font.setPointSize( 16 );
00061 TextLabelDoppelpunkt->setFont( TextLabelDoppelpunkt_font );
00062 TextLabelDoppelpunkt->setProperty( "lineWidth", 0 );
00063 TextLabelDoppelpunkt->setProperty( "text", tr( ":" ) );
00064
00065 SldMins = new QSlider( FrmCounter, "SldMins" );
00066 SldMins->setGeometry( QRect( 9, 40, 83, 16 ) );
00067 SldMins->setProperty( "maxValue", 70 );
00068 SldMins->setProperty( "pageStep", 5 );
00069 SldMins->setProperty( "orientation", (int)QSlider::Horizontal );
00070 SldMins->setProperty( "tickmarks", (int)QSlider::NoMarks );
00071 QToolTip::add( SldMins, tr( "Minuteneinsteller (ACHTUNG: Nicht in bereits ge-ratet-e Bereiche springen!)" ) );
00072
00073 LCDSecs = new QLCDNumber( FrmCounter, "LCDSecs" );
00074 LCDSecs->setGeometry( QRect( 105, 5, 62, 33 ) );
00075 LCDSecs->setProperty( "numDigits", 2 );
00076 LCDSecs->setProperty( "segmentStyle", (int)QLCDNumber::Flat );
00077 QToolTip::add( LCDSecs, tr( "Sekunden" ) );
00078
00079 LCDMins = new QLCDNumber( FrmCounter, "LCDMins" );
00080 LCDMins->setGeometry( QRect( 30, 5, 63, 32 ) );
00081 LCDMins->setProperty( "numDigits", 3 );
00082 LCDMins->setProperty( "segmentStyle", (int)QLCDNumber::Flat );
00083 QToolTip::add( LCDMins, tr( "Minuten" ) );
00084
00085 infoline2 = new QLabel( this, "infoline2" );
00086 infoline2->setGeometry( QRect( 10, 481, 194, 71 ) );
00087 infoline2->setProperty( "text", tr( "Infoline 2" ) );
00088 infoline2->setProperty( "textFormat", (int)QLabel::PlainText );
00089 infoline2->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignCenter ) );
00090
00091 BtKonfiguration = new QPushButton( this, "BtKonfiguration" );
00092 BtKonfiguration->setGeometry( QRect( 29, 0, 146, 27 ) );
00093 BtKonfiguration->setProperty( "text", tr( "Sitzungskonfiguration" ) );
00094 QToolTip::add( BtKonfiguration, tr( QString::fromUtf8( "Muss VOR jedem einzelnen Sitzungsrating ausgefüllt werden" ) ) );
00095
00096 infoline1 = new QLabel( this, "infoline1" );
00097 infoline1->setGeometry( QRect( 6, 28, 199, 67 ) );
00098 infoline1->setProperty( "text", tr( QString::fromUtf8( "Bitte zunächst die Sitzung konfigurieren" ) ) );
00099 infoline1->setProperty( "textFormat", (int)QLabel::PlainText );
00100 infoline1->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignCenter ) );
00101
00102 FrmRun = new QFrame( this, "FrmRun" );
00103 FrmRun->setGeometry( QRect( 14, 97, 179, 74 ) );
00104 FrmRun->setProperty( "frameShape", (int)QFrame::WinPanel );
00105 FrmRun->setProperty( "frameShadow", (int)QFrame::Sunken );
00106
00107 BtSave = new QPushButton( FrmRun, "BtSave" );
00108 BtSave->setGeometry( QRect( 96, 5, 75, 48 ) );
00109 BtSave->setProperty( "text", tr( "Ende" ) );
00110 QToolTip::add( BtSave, tr( "Erst ganz am Ende eines Videos werden auf Tastendruck alle Daten auf die Festplatte geschrieben" ) );
00111
00112 PushButtonCountdown = new QPushButton( FrmRun, "PushButtonCountdown" );
00113 PushButtonCountdown->setGeometry( QRect( 11, 53, 75, 19 ) );
00114 PushButtonCountdown->setProperty( "text", tr( "countdown" ) );
00115 PushButtonCountdown->setProperty( "toggleButton", QVariant( TRUE, 0 ) );
00116 PushButtonCountdown->setProperty( "toggleButton", QVariant( TRUE, 0 ) );
00117
00118 BtRun = new QPushButton( FrmRun, "BtRun" );
00119 BtRun->setGeometry( QRect( 11, 5, 75, 48 ) );
00120 BtRun->setProperty( "text", tr( "&Run" ) );
00121 BtRun->setProperty( "accel", 268435570 );
00122 BtRun->setProperty( "toggleButton", QVariant( TRUE, 0 ) );
00123 BtRun->setProperty( "toggleButton", QVariant( TRUE, 0 ) );
00124 QToolTip::add( BtRun, tr( QString::fromUtf8( "Start und Pause für das Zählwerk" ) ) );
00125
00126 BtGrpRating = new QButtonGroup( this, "BtGrpRating" );
00127 BtGrpRating->setProperty( "enabled", QVariant( FALSE, 0 ) );
00128 BtGrpRating->setGeometry( QRect( 0, 172, 212, 309 ) );
00129 BtGrpRating->setProperty( "frameShape", (int)QButtonGroup::NoFrame );
00130 BtGrpRating->setProperty( "title", tr( "" ) );
00131
00132 TextLabelMittlereDauer = new QLabel( BtGrpRating, "TextLabelMittlereDauer" );
00133 TextLabelMittlereDauer->setGeometry( QRect( 154, 12, 51, 22 ) );
00134 TextLabelMittlereDauer->setProperty( "text", tr( "" ) );
00135
00136 TextLabelTitelMittlereDauer = new QLabel( BtGrpRating, "TextLabelTitelMittlereDauer" );
00137 TextLabelTitelMittlereDauer->setGeometry( QRect( 92, 10, 52, 24 ) );
00138 TextLabelTitelMittlereDauer->setProperty( "text", tr( "mittlere\nDauer" ) );
00139 TextLabelTitelMittlereDauer->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );
00140 QToolTip::add( TextLabelTitelMittlereDauer, tr( "Gesamtdauer / Anzahl" ) );
00141
00142 TextLabelTitelAnzahl_2 = new QLabel( BtGrpRating, "TextLabelTitelAnzahl_2" );
00143 TextLabelTitelAnzahl_2->setGeometry( QRect( 10, 2, 42, 41 ) );
00144 TextLabelTitelAnzahl_2->setProperty( "text", tr( QString::fromUtf8( "Anzahl\nTasten\ndrücke" ) ) );
00145 QToolTip::add( TextLabelTitelAnzahl_2, tr( "Dies kann von der Anzahl der gespeicherten Einschaetzungen abweichen, wenn mehrmals pro Sekunde!" ) );
00146
00147 TextLabelAnzahl = new QLabel( BtGrpRating, "TextLabelAnzahl" );
00148 TextLabelAnzahl->setGeometry( QRect( 51, 13, 41, 22 ) );
00149 TextLabelAnzahl->setProperty( "text", tr( "" ) );
00150 TextLabelAnzahl->setProperty( "alignment", int( QLabel::AlignCenter ) );
00151
00152 TextLabelTherapeut_2 = new QLabel( BtGrpRating, "TextLabelTherapeut_2" );
00153 TextLabelTherapeut_2->setGeometry( QRect( 23, 190, 42, 22 ) );
00154 QFont TextLabelTherapeut_2_font( TextLabelTherapeut_2->font() );
00155 TextLabelTherapeut_2_font.setPointSize( 9 );
00156 TextLabelTherapeut_2_font.setBold( TRUE );
00157 TextLabelTherapeut_2_font.setUnderline( TRUE );
00158 TextLabelTherapeut_2->setFont( TextLabelTherapeut_2_font );
00159 TextLabelTherapeut_2->setProperty( "text", tr( "Klient" ) );
00160
00161 TextLabelTherapeut = new QLabel( BtGrpRating, "TextLabelTherapeut" );
00162 TextLabelTherapeut->setGeometry( QRect( 14, 54, 61, 22 ) );
00163 QFont TextLabelTherapeut_font( TextLabelTherapeut->font() );
00164 TextLabelTherapeut_font.setBold( TRUE );
00165 TextLabelTherapeut_font.setUnderline( TRUE );
00166 TextLabelTherapeut->setFont( TextLabelTherapeut_font );
00167 TextLabelTherapeut->setProperty( "text", tr( "Therapeut" ) );
00168
00169 Line1_2_2 = new QFrame( BtGrpRating, "Line1_2_2" );
00170 Line1_2_2->setGeometry( QRect( 7, 220, 204, 4 ) );
00171 Line1_2_2->setProperty( "midLineWidth", 1 );
00172 Line1_2_2->setProperty( "frameStyle", QFrame::HLine | QFrame::Sunken );
00173
00174 Line1_2 = new QFrame( BtGrpRating, "Line1_2" );
00175 Line1_2->setGeometry( QRect( 4, 45, 204, 4 ) );
00176 Line1_2->setProperty( "midLineWidth", 1 );
00177 Line1_2->setProperty( "frameStyle", QFrame::HLine | QFrame::Sunken );
00178
00179 Line1_2_3 = new QFrame( BtGrpRating, "Line1_2_3" );
00180 Line1_2_3->setGeometry( QRect( 178, 271, 28, 16 ) );
00181 Line1_2_3->setProperty( "midLineWidth", 1 );
00182 Line1_2_3->setProperty( "frameStyle", QFrame::HLine | QFrame::Sunken );
00183
00184 Line1_2_3_2 = new QFrame( BtGrpRating, "Line1_2_3_2" );
00185 Line1_2_3_2->setGeometry( QRect( 10, 271, 28, 16 ) );
00186 Line1_2_3_2->setProperty( "midLineWidth", 1 );
00187 Line1_2_3_2->setProperty( "frameStyle", QFrame::HLine | QFrame::Sunken );
00188
00189 FrmKorrigieren = new QFrame( BtGrpRating, "FrmKorrigieren" );
00190 FrmKorrigieren->setGeometry( QRect( 45, 252, 130, 50 ) );
00191 FrmKorrigieren->setProperty( "frameShape", (int)QFrame::StyledPanel );
00192 FrmKorrigieren->setProperty( "frameShadow", (int)QFrame::Raised );
00193
00194 BtKorrigieren = new QPushButton( FrmKorrigieren, "BtKorrigieren" );
00195 BtKorrigieren->setGeometry( QRect( 25, 5, 80, 40 ) );
00196 BtKorrigieren->setProperty( "text", tr( "Korrigieren (0)" ) );
00197 BtKorrigieren->setProperty( "accel", 268435504 );
00198 BtKorrigieren->setProperty( "toggleButton", QVariant( TRUE, 0 ) );
00199 BtKorrigieren->setProperty( "toggleButton", QVariant( TRUE, 0 ) );
00200 QToolTip::add( BtKorrigieren, tr( QString::fromUtf8( "Die jeweils LETZTE Einschätzung kann noch korrigiert werden." ) ) );
00201
00202 BtKlient_NLF = new QPushButton( BtGrpRating, "BtKlient_NLF" );
00203 BtKlient_NLF->setGeometry( QRect( 110, 140, 100, 45 ) );
00204 BtKlient_NLF->setProperty( "text", tr( QString::fromUtf8( "nicht Lös.sprache (3)" ) ) );
00205 BtKlient_NLF->setProperty( "accel", 268435507 );
00206 BtGrpRating->insert( BtKlient_NLF, 5 );
00207 QToolTip::add( BtKlient_NLF, tr( QString::fromUtf8( "KLIENT hat NICHT lösungsfokussiert kommuniziert" ) ) );
00208
00209 BtKlient_U = new QPushButton( BtGrpRating, "BtKlient_U" );
00210 BtKlient_U->setGeometry( QRect( 90, 188, 110, 30 ) );
00211 BtKlient_U->setProperty( "text", tr( "unklar (2)" ) );
00212 BtKlient_U->setProperty( "accel", 268435506 );
00213 BtKlient_U->setProperty( "autoDefault", QVariant( TRUE, 0 ) );
00214 BtGrpRating->insert( BtKlient_U, 6 );
00215 QToolTip::add( BtKlient_U, tr( QString::fromUtf8( "KLIENT, Einschätzung unklar" ) ) );
00216
00217 BtTherapeut_U = new QPushButton( BtGrpRating, "BtTherapeut_U" );
00218 BtTherapeut_U->setGeometry( QRect( 90, 52, 110, 30 ) );
00219 BtTherapeut_U->setProperty( "text", tr( "unklar (5)" ) );
00220 BtTherapeut_U->setProperty( "accel", 268435509 );
00221 BtTherapeut_U->setProperty( "autoDefault", QVariant( TRUE, 0 ) );
00222 BtGrpRating->insert( BtTherapeut_U, 3 );
00223 QToolTip::add( BtTherapeut_U, tr( QString::fromUtf8( "THERAPEUT, Einschätzung unklar" ) ) );
00224
00225 BtTherapeut_LF = new QPushButton( BtGrpRating, "BtTherapeut_LF" );
00226 BtTherapeut_LF->setGeometry( QRect( 5, 84, 101, 45 ) );
00227 BtTherapeut_LF->setProperty( "text", tr( QString::fromUtf8( "Lös.sprache (4)" ) ) );
00228 BtTherapeut_LF->setProperty( "accel", 268435508 );
00229 BtTherapeut_LF->setProperty( "autoDefault", QVariant( TRUE, 0 ) );
00230 BtGrpRating->insert( BtTherapeut_LF, 1 );
00231 QToolTip::add( BtTherapeut_LF, tr( QString::fromUtf8( "THERAPEUT hat lösungsfokussiert kommuniziert" ) ) );
00232
00233 BtTherapeut_NLF = new QPushButton( BtGrpRating, "BtTherapeut_NLF" );
00234 BtTherapeut_NLF->setGeometry( QRect( 110, 84, 100, 45 ) );
00235 BtTherapeut_NLF->setProperty( "text", tr( QString::fromUtf8( "nicht Lös.sprache (6)" ) ) );
00236 BtTherapeut_NLF->setProperty( "accel", 268435510 );
00237 BtGrpRating->insert( BtTherapeut_NLF, 2 );
00238 QToolTip::add( BtTherapeut_NLF, tr( QString::fromUtf8( "THERAPEUT hat NICHT lösungsfokussiert kommuniziert" ) ) );
00239
00240 BtKlient_LF = new QPushButton( BtGrpRating, "BtKlient_LF" );
00241 BtKlient_LF->setGeometry( QRect( 5, 140, 100, 45 ) );
00242 BtKlient_LF->setProperty( "text", tr( QString::fromUtf8( "Lös.sprache (1)" ) ) );
00243 BtKlient_LF->setProperty( "accel", 268435505 );
00244 BtKlient_LF->setProperty( "autoDefault", QVariant( TRUE, 0 ) );
00245 BtGrpRating->insert( BtKlient_LF, 4 );
00246 QToolTip::add( BtKlient_LF, tr( QString::fromUtf8( "KLIENT hat lösungsfokussiert kommuniziert" ) ) );
00247
00248 PushButton12 = new QPushButton( BtGrpRating, "PushButton12" );
00249 PushButton12->setGeometry( QRect( 14, 226, 190, 23 ) );
00250 PushButton12->setProperty( "text", tr( "nix (Pause, Hinsetzen, ...) (7)" ) );
00251 PushButton12->setProperty( "accel", 268435511 );
00252 BtGrpRating->insert( PushButton12, 7 );
00253 QToolTip::add( PushButton12, tr( QString::fromUtf8( "Wenn beide sich nicht äussern ..." ) ) );
00254
00255
00256 connect( SldMins, SIGNAL( valueChanged(int) ), LCDMins, SLOT( display(int) ) );
00257 connect( SldSecs, SIGNAL( valueChanged(int) ), LCDSecs, SLOT( display(int) ) );
00258 connect( BtRun, SIGNAL( toggled(bool) ), BtSave, SLOT( setDisabled(bool) ) );
00259 connect( BtRun, SIGNAL( toggled(bool) ), BtKonfiguration, SLOT( setDisabled(bool) ) );
00260 connect( BtRun, SIGNAL( toggled(bool) ), BtGrpRating, SLOT( setEnabled(bool) ) );
00261 connect( PushButtonCountdown, SIGNAL( toggled(bool) ), this, SLOT( setDisabled(bool) ) );
00262 connect( BtRun, SIGNAL( toggled(bool) ), PushButtonCountdown, SLOT( setDisabled(bool) ) );
00263
00264
00265 setTabOrder( BtKonfiguration, BtRun );
00266 setTabOrder( BtRun, BtSave );
00267 setTabOrder( BtSave, BtTherapeut_U );
00268 setTabOrder( BtTherapeut_U, BtTherapeut_LF );
00269 setTabOrder( BtTherapeut_LF, BtTherapeut_NLF );
00270 setTabOrder( BtTherapeut_NLF, BtKorrigieren );
00271 setTabOrder( BtKorrigieren, BtKlient_LF );
00272 setTabOrder( BtKlient_LF, BtKlient_NLF );
00273 setTabOrder( BtKlient_NLF, BtKlient_U );
00274 setTabOrder( BtKlient_U, SldMins );
00275 setTabOrder( SldMins, SldSecs );
00276 }
00277
00278
00279
00280
00281 LFTVideoDialogBase::~LFTVideoDialogBase()
00282 {
00283
00284 }
00285
00286
00287
00288
00289
00290 bool LFTVideoDialogBase::event( QEvent* ev )
00291 {
00292 bool ret = QDialog::event( ev );
00293 if ( ev->type() == QEvent::ApplicationFontChange ) {
00294 QFont TextLabelDoppelpunkt_font( TextLabelDoppelpunkt->font() );
00295 TextLabelDoppelpunkt_font.setFamily( "Arial" );
00296 TextLabelDoppelpunkt_font.setPointSize( 16 );
00297 TextLabelDoppelpunkt->setFont( TextLabelDoppelpunkt_font );
00298 QFont TextLabelTherapeut_2_font( TextLabelTherapeut_2->font() );
00299 TextLabelTherapeut_2_font.setPointSize( 9 );
00300 TextLabelTherapeut_2_font.setBold( TRUE );
00301 TextLabelTherapeut_2_font.setUnderline( TRUE );
00302 TextLabelTherapeut_2->setFont( TextLabelTherapeut_2_font );
00303 QFont TextLabelTherapeut_font( TextLabelTherapeut->font() );
00304 TextLabelTherapeut_font.setBold( TRUE );
00305 TextLabelTherapeut_font.setUnderline( TRUE );
00306 TextLabelTherapeut->setFont( TextLabelTherapeut_font );
00307 }
00308 return ret;
00309 }
00310