1142 fTabs =
new TGTab( fV1, fV1->GetWidth(), fV1->GetHeight() );
1146 TGCompositeFrame* tf = 0;
1152 tf = fTabs->AddTab(
"View" );
1153 tf->SetBackgroundPixmap(
GetPic(
"8.gif" ) );
1158 fAutoFrame =
new TGCompositeFrame( tf, tf->GetWidth(), tf->GetHeight(), kVerticalFrame );
1159 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop | kLHintsExpandX, 15, 15, 15, 10 );
1160 fWidgets->Add( fLayout );
1161 tf->AddFrame( fAutoFrame, fLayout );
1162 fAutoFrame->SetBackgroundPixmap(
GetPic(
"AutoFrameBckgnd.gif" ) );
1166 new TGCompositeFrame( fAutoFrame, fAutoFrame->GetWidth(), 30, kHorizontalFrame );
1167 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop | kLHintsExpandX, 0, 0, 0, 0 );
1168 fWidgets->Add( fLayout );
1169 fAutoFrame->AddFrame( fAutoTextFrame, fLayout );
1170 fAutoTextFrame->SetBackgroundPixmap(
GetPic(
"AutoControlBckgnd.gif" ) );
1172 fAutoTextLabel =
new TGLabel( fAutoTextFrame,
"Auto Control " );
1173 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft | kLHintsExpandX, 2, 73, 4, 0 );
1174 fWidgets->Add( fLayout );
1175 fAutoTextFrame->AddFrame( fAutoTextLabel, fLayout );
1176 fAutoTextLabel->SetBackgroundPixmap(
GetPic(
"AutoControlBckgnd.gif" ) );
1179 fFrameAutoRotate =
new TGGroupFrame( fAutoFrame,
"" );
1180 fLayout =
new TGLayoutHints( kLHintsExpandX, 0, 0, 0, 0 );
1182 fWidgets->Add( fLayout );
1183 fAutoFrame->AddFrame( fFrameAutoRotate, fLayout );
1187 fLayout =
new TGLayoutHints( kLHintsExpandX, 5, 5, 3, 2 );
1188 fFrameAutoRotate->AddFrame( fChkBtnAutoRotate, fLayout );
1189 fChkBtnAutoRotate->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1192 fRotateSpeedFrame =
new TGCompositeFrame(
1193 fFrameAutoRotate, fFrameAutoRotate->GetWidth() - 20, 30, kHorizontalFrame );
1194 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop, 0, 0, 2, 2 );
1195 fWidgets->Add( fLayout );
1196 fFrameAutoRotate->AddFrame( fRotateSpeedFrame, fLayout );
1199 fNumEntryRotateSpeed =
1201 (TGNumberFormat::EStyle)1, (TGNumberFormat::EAttribute)1 );
1202 h = fNumEntryRotateSpeed->GetDefaultHeight();
1203 charw = fNumEntryRotateSpeed->GetCharWidth(
"0123456" );
1204 w = charw * TMath::Abs( 4 ) / 10 + 8 + 2 * h / 3;
1205 fNumEntryRotateSpeed->Resize(
w, h );
1209 fNumEntryRotateSpeed->SetHeight( 20 );
1211 fNumEntryRotateSpeed->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()" );
1212 fNumEntryRotateSpeed->Connect(
"TabPressed()",
"BesClient",
this,
"ChangeFocus()" );
1213 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 4, 4, 2, 2 );
1214 fWidgets->Add( fLayout );
1215 fRotateSpeedFrame->AddFrame( fNumEntryRotateSpeed, fLayout );
1218 fRotateSpeedLabel =
new TGLabel( fRotateSpeedFrame,
" deg/sec " );
1219 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsRight, 2, 4, 2, 2 );
1220 fWidgets->Add( fLayout );
1221 fRotateSpeedFrame->AddFrame( fRotateSpeedLabel, fLayout );
1224 fRotateFPSFrame =
new TGCompositeFrame( fFrameAutoRotate, fFrameAutoRotate->GetWidth() - 20,
1225 30, kHorizontalFrame );
1226 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop, 0, 0, 2, 2 );
1227 fWidgets->Add( fLayout );
1228 fFrameAutoRotate->AddFrame( fRotateFPSFrame, fLayout );
1231 fNumEntryRotateFPS =
1233 (TGNumberFormat::EStyle)0, (TGNumberFormat::EAttribute)1 );
1234 fNumEntryRotateFPS->SetHeight( 20 );
1236 fNumEntryRotateFPS->GetNumberEntry()->Connect(
"ReturnPressed()",
"BesClient",
this,
1237 "ExecuteReturn()" );
1238 fNumEntryRotateFPS->GetNumberEntry()->Connect(
"TabPressed()",
"BesClient",
this,
1240 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 4, 4, 2, 2 );
1241 fWidgets->Add( fLayout );
1242 fRotateFPSFrame->AddFrame( fNumEntryRotateFPS, fLayout );
1245 fRotateFPSLabel =
new TGLabel( fRotateFPSFrame,
" fps " );
1246 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsRight, 2, 4, 2, 2 );
1247 fWidgets->Add( fLayout );
1248 fRotateFPSFrame->AddFrame( fRotateFPSLabel, fLayout );
1253 fViewFrame =
new TGCompositeFrame( tf, tf->GetWidth(), tf->GetHeight(), kVerticalFrame );
1254 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop | kLHintsExpandX, 15, 15, 15, 10 );
1255 fWidgets->Add( fLayout );
1256 tf->AddFrame( fViewFrame, fLayout );
1257 fViewFrame->SetBackgroundPixmap(
GetPic(
"ViewFrameBckgnd.gif" ) );
1261 new TGCompositeFrame( fViewFrame, fViewFrame->GetWidth(), 30, kHorizontalFrame );
1262 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop | kLHintsExpandX, 0, 0, 0, 0 );
1263 fWidgets->Add( fLayout );
1264 fViewFrame->AddFrame( fViewTextFrame, fLayout );
1265 fViewTextFrame->SetBackgroundPixmap(
GetPic(
"ViewControlBckgnd.gif" ) );
1267 fViewTextLabel =
new TGLabel( fViewTextFrame,
"View Control " );
1268 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft | kLHintsExpandX, 2, 73, 4, 4 );
1269 fWidgets->Add( fLayout );
1270 fViewTextFrame->AddFrame( fViewTextLabel, fLayout );
1271 fViewTextLabel->SetBackgroundPixmap(
GetPic(
"ViewControlBckgnd.gif" ) );
1275 new TGCompositeFrame( fViewFrame, fViewFrame->GetWidth() - 20, 30, kHorizontalFrame );
1276 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop, 0, 0, 8, 5 );
1277 fWidgets->Add( fLayout );
1278 fViewFrame->AddFrame( fRotateStepFrame, fLayout );
1281 fRotateStepLabel =
new TGLabel( fRotateStepFrame,
" Step:" );
1282 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 10, 2, 0, 0 );
1283 fWidgets->Add( fLayout );
1284 fRotateStepFrame->AddFrame( fRotateStepLabel, fLayout );
1287 fNumEntryRotateStep =
1289 (TGNumberFormat::EStyle)2, (TGNumberFormat::EAttribute)1 );
1290 h = fNumEntryRotateStep->GetDefaultHeight();
1291 charw = fNumEntryRotateStep->GetCharWidth(
"0123456" );
1292 w = charw * TMath::Abs( 5 ) / 10 + 8 + 2 * h / 3;
1293 fNumEntryRotateStep->Resize(
w, h );
1295 fNumEntryRotateStep->SetHeight( 20 );
1297 fNumEntryRotateStep->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()" );
1298 fNumEntryRotateStep->Connect(
"TabPressed()",
"BesClient",
this,
"ChangeFocus()" );
1299 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 4, 0, 0, 0 );
1300 fWidgets->Add( fLayout );
1301 fRotateStepFrame->AddFrame( fNumEntryRotateStep, fLayout );
1304 fRotateStepUnitLabel =
new TGLabel( fRotateStepFrame,
" deg " );
1305 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 0, 4, 0, 0 );
1306 fWidgets->Add( fLayout );
1307 fRotateStepFrame->AddFrame( fRotateStepUnitLabel, fLayout );
1310 fViewContentFrame =
new TGCompositeFrame( fViewFrame, fViewFrame->GetWidth(),
1311 fViewFrame->GetHeight() - 30, kVerticalFrame );
1312 fLayout =
new TGLayoutHints( kLHintsExpandX | kLHintsExpandY, 0, 0, 0, 0 );
1313 fWidgets->Add( fLayout );
1314 fViewFrame->AddFrame( fViewContentFrame, fLayout );
1317 fViewContent1Frame =
1318 new TGCompositeFrame( fViewContentFrame, fViewFrame->GetWidth(), 39, kHorizontalFrame );
1319 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop, 0, 0, 3, 0 );
1320 fWidgets->Add( fLayout );
1321 fViewContent1Frame->SetBackgroundPixmap(
GetPic(
"ViewContent1Bckgnd.gif" ) );
1322 fViewContentFrame->AddFrame( fViewContent1Frame, fLayout );
1326 fViewContent1Frame, gClient->GetPicture(
"ViewCounterClockwise.gif" ),
1328 fViewCounterClockWiseButton->SetToolTipText(
"Rotate Counter Clockwise" );
1329 fViewCounterClockWiseButton->SetHeight( 37 );
1330 fViewCounterClockWiseButton->SetWidth( 37 );
1331 fViewCounterClockWiseButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1333 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 5, 22, 0, 0 );
1334 fWidgets->Add( fLayout );
1335 fViewContent1Frame->AddFrame( fViewCounterClockWiseButton, fLayout );
1340 fViewMoveUpButton->SetToolTipText(
"Move Up" );
1341 fViewMoveUpButton->SetHeight( 20 );
1342 fViewMoveUpButton->SetWidth( 23 );
1343 fViewMoveUpButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1345 fLayout =
new TGLayoutHints( kLHintsBottom | kLHintsCenterX, 5, 5, 0, 0 );
1346 fWidgets->Add( fLayout );
1347 fViewContent1Frame->AddFrame( fViewMoveUpButton, fLayout );
1350 fViewClockWiseButton =
1351 new BesGPictureButton( fViewContent1Frame, gClient->GetPicture(
"ViewClockwise.gif" ),
1353 fViewClockWiseButton->SetToolTipText(
"Rotate Clockwise" );
1354 fViewClockWiseButton->SetHeight( 37 );
1355 fViewClockWiseButton->SetWidth( 37 );
1356 fViewClockWiseButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1358 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsRight, 22, 5, 0, 0 );
1359 fWidgets->Add( fLayout );
1360 fViewContent1Frame->AddFrame( fViewClockWiseButton, fLayout );
1363 fViewContent2Frame =
1364 new TGCompositeFrame( fViewContentFrame, fViewFrame->GetWidth(), 23, kHorizontalFrame );
1365 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop, 0, 0, 0, 0 );
1366 fWidgets->Add( fLayout );
1367 fViewContent2Frame->SetBackgroundPixmap(
GetPic(
"ViewContent2Bckgnd.gif" ) );
1368 fViewContentFrame->AddFrame( fViewContent2Frame, fLayout );
1373 fViewMoveLeftButton->SetToolTipText(
"Move Left" );
1374 fViewMoveLeftButton->SetHeight( 23 );
1375 fViewMoveLeftButton->SetWidth( 23 );
1376 fViewMoveLeftButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1378 fLayout =
new TGLayoutHints( kLHintsBottom | kLHintsCenterX, 49, 2, 0, 0 );
1379 fWidgets->Add( fLayout );
1380 fViewContent2Frame->AddFrame( fViewMoveLeftButton, fLayout );
1383 fViewMoveCenterButton =
1384 new BesGPictureButton( fViewContent2Frame, gClient->GetPicture(
"ViewMoveCenter.gif" ),
1386 fViewMoveCenterButton->SetToolTipText(
"Move Center" );
1387 fViewMoveCenterButton->SetHeight( 13 );
1388 fViewMoveCenterButton->SetWidth( 13 );
1389 fViewMoveCenterButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1391 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsCenterX, 0, 0, 0, 0 );
1392 fWidgets->Add( fLayout );
1393 fViewContent2Frame->AddFrame( fViewMoveCenterButton, fLayout );
1396 fViewMoveRightButton =
1397 new BesGPictureButton( fViewContent2Frame, gClient->GetPicture(
"ViewMoveRight.gif" ),
1399 fViewMoveRightButton->SetToolTipText(
"Move Right" );
1400 fViewMoveRightButton->SetHeight( 23 );
1401 fViewMoveRightButton->SetWidth( 23 );
1402 fViewMoveRightButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1404 fLayout =
new TGLayoutHints( kLHintsBottom | kLHintsCenterX, 2, 49, 0, 0 );
1405 fWidgets->Add( fLayout );
1406 fViewContent2Frame->AddFrame( fViewMoveRightButton, fLayout );
1409 fViewContent3Frame =
1410 new TGCompositeFrame( fViewContentFrame, fViewFrame->GetWidth(), 32, kHorizontalFrame );
1411 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop, 0, 0, 0, 3 );
1412 fWidgets->Add( fLayout );
1413 fViewContent3Frame->SetBackgroundPixmap(
GetPic(
"ViewContent3Bckgnd.gif" ) );
1414 fViewContentFrame->AddFrame( fViewContent3Frame, fLayout );
1419 fViewMoveDownButton->SetToolTipText(
"Move Down" );
1420 fViewMoveDownButton->SetHeight( 32 );
1421 fViewMoveDownButton->SetWidth( 23 );
1422 fViewMoveDownButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1425 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 69, 0, 0, 0 );
1426 fWidgets->Add( fLayout );
1427 fViewContent3Frame->AddFrame( fViewMoveDownButton, fLayout );
1430 fViewResetAngleButton =
1431 new BesGPictureButton( fViewContent3Frame, gClient->GetPicture(
"ViewResetAngle.gif" ),
1434 fViewResetAngleButton->SetToolTipText(
"Reset Angles" );
1435 fViewResetAngleButton->SetHeight( 27 );
1436 fViewResetAngleButton->SetWidth( 27 );
1437 fViewResetAngleButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1439 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 30, 0, 0, 0 );
1440 fWidgets->Add( fLayout );
1441 fViewContent3Frame->AddFrame( fViewResetAngleButton, fLayout );
1444 fViewAngleFrame =
new TGCompositeFrame( fViewContentFrame, fViewContentFrame->GetWidth(), 50,
1446 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop, 4, 4, 0, 0 );
1447 fWidgets->Add( fLayout );
1448 fViewContentFrame->AddFrame( fViewAngleFrame, fLayout );
1451 fViewAngleThetaFrame =
1452 new TGCompositeFrame( fViewAngleFrame, fViewAngleFrame->GetWidth(), 50, kVerticalFrame );
1453 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop, 3, 3, 3, 3 );
1454 fWidgets->Add( fLayout );
1455 fViewAngleFrame->AddFrame( fViewAngleThetaFrame, fLayout );
1458 fViewAngleThetaMinusButton =
1459 new BesGPictureButton( fViewAngleThetaFrame, gClient->GetPicture(
"ViewAngleMinus.gif" ),
1461 fViewAngleThetaMinusButton->SetToolTipText(
"Theta -" );
1462 fViewAngleThetaMinusButton->SetHeight( 22 );
1463 fViewAngleThetaMinusButton->SetWidth( 22 );
1464 fViewAngleThetaMinusButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1466 fLayout =
new TGLayoutHints( kLHintsTop | kLHintsCenterX, 5, 5, 0, 0 );
1467 fWidgets->Add( fLayout );
1468 fViewAngleThetaFrame->AddFrame( fViewAngleThetaMinusButton, fLayout );
1471 fViewAngleThetaSlider =
new TGVSlider( fViewAngleThetaFrame, 120, kSlider2 | kScaleBoth,
1473 fViewAngleThetaSlider->Connect(
"PositionChanged(Int_t)",
"BesClient",
this,
1474 "HandleSliders(Int_t)" );
1475 fViewAngleThetaSlider->SetRange( 0, 180 );
1476 fViewAngleThetaSlider->SetPosition( 0 );
1477 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsCenterX | kLHintsExpandY, 5, 5, 0, 0 );
1478 fWidgets->Add( fLayout );
1479 fViewAngleThetaFrame->AddFrame( fViewAngleThetaSlider, fLayout );
1482 fViewAngleThetaPlusButton =
1483 new BesGPictureButton( fViewAngleThetaFrame, gClient->GetPicture(
"ViewAnglePlus.gif" ),
1485 fViewAngleThetaPlusButton->SetToolTipText(
"Theta +" );
1486 fViewAngleThetaPlusButton->SetHeight( 22 );
1487 fViewAngleThetaPlusButton->SetWidth( 22 );
1488 fViewAngleThetaPlusButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1490 fLayout =
new TGLayoutHints( kLHintsTop | kLHintsCenterX, 5, 5, 0, 0 );
1491 fWidgets->Add( fLayout );
1492 fViewAngleThetaFrame->AddFrame( fViewAngleThetaPlusButton, fLayout );
1499 fViewAngleThetaNumber =
1501 fViewAngleThetaSlider->GetPosition(), (TGNumberFormat::EStyle)1,
1502 (TGNumberFormat::EAttribute)0 );
1503 fViewAngleThetaNumber->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()" );
1504 h = fViewAngleThetaNumber->GetDefaultHeight();
1505 charw = fViewAngleThetaNumber->GetCharWidth(
"0123456" );
1506 w = charw * TMath::Abs( 4 ) / 10 + 8 + 2 * h / 3;
1507 fViewAngleThetaNumber->Resize(
w, h );
1509 fLayout =
new TGLayoutHints( kLHintsTop | kLHintsCenterX, 2, 2, 2, 0 );
1510 fWidgets->Add( fLayout );
1511 fViewAngleThetaFrame->AddFrame( fViewAngleThetaNumber, fLayout );
1514 fViewAngleThetaLabel =
new TGLabel( fViewAngleThetaFrame,
"theta" );
1515 fLayout =
new TGLayoutHints( kLHintsTop | kLHintsCenterX, 2, 2, 2, 2 );
1516 fWidgets->Add( fLayout );
1517 fViewAngleThetaFrame->AddFrame( fViewAngleThetaLabel, fLayout );
1520 fViewAnglePhiFrame =
1521 new TGCompositeFrame( fViewAngleFrame, fViewAngleFrame->GetWidth(), 50, kVerticalFrame );
1522 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop, 3, 3, 3, 3 );
1523 fWidgets->Add( fLayout );
1524 fViewAngleFrame->AddFrame( fViewAnglePhiFrame, fLayout );
1527 fViewAnglePhiMinusButton =
1528 new BesGPictureButton( fViewAnglePhiFrame, gClient->GetPicture(
"ViewAngleMinus.gif" ),
1530 fViewAnglePhiMinusButton->SetToolTipText(
"Phi -" );
1531 fViewAnglePhiMinusButton->SetHeight( 22 );
1532 fViewAnglePhiMinusButton->SetWidth( 22 );
1533 fViewAnglePhiMinusButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1535 fLayout =
new TGLayoutHints( kLHintsTop | kLHintsCenterX, 5, 5, 0, 0 );
1536 fWidgets->Add( fLayout );
1537 fViewAnglePhiFrame->AddFrame( fViewAnglePhiMinusButton, fLayout );
1540 fViewAnglePhiSlider =
1542 fViewAnglePhiSlider->Connect(
"PositionChanged(Int_t)",
"BesClient",
this,
1543 "HandleSliders(Int_t)" );
1544 fViewAnglePhiSlider->SetRange( 0, 360 );
1545 fViewAnglePhiSlider->SetPosition( 0 );
1546 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsCenterX | kLHintsExpandY, 5, 5, 0, 0 );
1547 fWidgets->Add( fLayout );
1548 fViewAnglePhiFrame->AddFrame( fViewAnglePhiSlider, fLayout );
1551 fViewAnglePhiPlusButton =
1552 new BesGPictureButton( fViewAnglePhiFrame, gClient->GetPicture(
"ViewAnglePlus.gif" ),
1554 fViewAnglePhiPlusButton->SetToolTipText(
"Phi +" );
1555 fViewAnglePhiPlusButton->SetHeight( 22 );
1556 fViewAnglePhiPlusButton->SetWidth( 22 );
1557 fViewAnglePhiPlusButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1559 fLayout =
new TGLayoutHints( kLHintsTop | kLHintsCenterX, 5, 5, 0, 0 );
1560 fWidgets->Add( fLayout );
1561 fViewAnglePhiFrame->AddFrame( fViewAnglePhiPlusButton, fLayout );
1568 fViewAnglePhiNumber =
new TGNumberEntryField(
1570 (TGNumberFormat::EStyle)1, (TGNumberFormat::EAttribute)0 );
1571 fViewAnglePhiNumber->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()" );
1572 h = fViewAnglePhiNumber->GetDefaultHeight();
1573 charw = fViewAnglePhiNumber->GetCharWidth(
"0123456" );
1574 w = charw * TMath::Abs( 4 ) / 10 + 8 + 2 * h / 3;
1575 fViewAnglePhiNumber->Resize(
w, h );
1577 fLayout =
new TGLayoutHints( kLHintsTop | kLHintsCenterX, 2, 2, 2, 0 );
1578 fWidgets->Add( fLayout );
1579 fViewAnglePhiFrame->AddFrame( fViewAnglePhiNumber, fLayout );
1582 fViewAnglePhiLabel =
new TGLabel( fViewAnglePhiFrame,
"phi" );
1583 fLayout =
new TGLayoutHints( kLHintsTop | kLHintsCenterX, 2, 2, 2, 2 );
1584 fWidgets->Add( fLayout );
1585 fViewAnglePhiFrame->AddFrame( fViewAnglePhiLabel, fLayout );
1588 fViewAnglePsiFrame =
1589 new TGCompositeFrame( fViewAngleFrame, fViewAngleFrame->GetWidth(), 50, kVerticalFrame );
1590 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop, 3, 3, 3, 3 );
1591 fWidgets->Add( fLayout );
1592 fViewAngleFrame->AddFrame( fViewAnglePsiFrame, fLayout );
1595 fViewAnglePsiMinusButton =
1596 new BesGPictureButton( fViewAnglePsiFrame, gClient->GetPicture(
"ViewAngleMinus.gif" ),
1598 fViewAnglePsiMinusButton->SetToolTipText(
"Psi -" );
1599 fViewAnglePsiMinusButton->SetHeight( 22 );
1600 fViewAnglePsiMinusButton->SetWidth( 22 );
1601 fViewAnglePsiMinusButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1603 fLayout =
new TGLayoutHints( kLHintsTop | kLHintsCenterX, 5, 5, 0, 0 );
1604 fWidgets->Add( fLayout );
1605 fViewAnglePsiFrame->AddFrame( fViewAnglePsiMinusButton, fLayout );
1608 fViewAnglePsiSlider =
1610 fViewAnglePsiSlider->Connect(
"PositionChanged(Int_t)",
"BesClient",
this,
1611 "HandleSliders(Int_t)" );
1612 fViewAnglePsiSlider->SetRange( 0, 360 );
1613 fViewAnglePsiSlider->SetPosition( 270 );
1614 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsCenterX | kLHintsExpandY, 5, 5, 0, 0 );
1615 fWidgets->Add( fLayout );
1616 fViewAnglePsiFrame->AddFrame( fViewAnglePsiSlider, fLayout );
1619 fViewAnglePsiPlusButton =
1620 new BesGPictureButton( fViewAnglePsiFrame, gClient->GetPicture(
"ViewAnglePlus.gif" ),
1622 fViewAnglePsiPlusButton->SetToolTipText(
"Psi +" );
1623 fViewAnglePsiPlusButton->SetHeight( 22 );
1624 fViewAnglePsiPlusButton->SetWidth( 22 );
1625 fViewAnglePsiPlusButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1627 fLayout =
new TGLayoutHints( kLHintsTop | kLHintsCenterX, 5, 5, 0, 0 );
1628 fWidgets->Add( fLayout );
1629 fViewAnglePsiFrame->AddFrame( fViewAnglePsiPlusButton, fLayout );
1636 fViewAnglePsiNumber =
new TGNumberEntryField(
1638 (TGNumberFormat::EStyle)1, (TGNumberFormat::EAttribute)0 );
1639 fViewAnglePsiNumber->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()" );
1640 h = fViewAnglePsiNumber->GetDefaultHeight();
1641 charw = fViewAnglePsiNumber->GetCharWidth(
"0123456" );
1642 w = charw * TMath::Abs( 4 ) / 10 + 8 + 2 * h / 3;
1643 fViewAnglePsiNumber->Resize(
w, h );
1645 fLayout =
new TGLayoutHints( kLHintsTop | kLHintsCenterX, 2, 2, 2, 0 );
1646 fWidgets->Add( fLayout );
1647 fViewAnglePsiFrame->AddFrame( fViewAnglePsiNumber, fLayout );
1650 fViewAnglePsiLabel =
new TGLabel( fViewAnglePsiFrame,
"psi" );
1651 fLayout =
new TGLayoutHints( kLHintsTop | kLHintsCenterX, 2, 2, 2, 2 );
1652 fWidgets->Add( fLayout );
1653 fViewAnglePsiFrame->AddFrame( fViewAnglePsiLabel, fLayout );
1658 tf = fTabs->AddTab(
"Event" );
1659 tf->SetBackgroundPixmap(
GetPic(
"8.gif" ) );
1664 fEventControlFrame =
1665 new TGCompositeFrame( tf, tf->GetWidth(), tf->GetHeight(), kVerticalFrame );
1666 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop | kLHintsExpandX, 15, 15, 15, 10 );
1667 fWidgets->Add( fLayout );
1668 tf->AddFrame( fEventControlFrame, fLayout );
1669 fEventControlFrame->SetBackgroundPixmap(
GetPic(
"EventFrameBckgnd.gif" ) );
1672 fEventControlTextFrame =
new TGCompositeFrame(
1673 fEventControlFrame, fEventControlFrame->GetWidth(), 30, kHorizontalFrame );
1674 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsTop | kLHintsExpandX, 0, 0, 0, 0 );
1675 fWidgets->Add( fLayout );
1676 fEventControlFrame->AddFrame( fEventControlTextFrame, fLayout );
1677 fEventControlTextFrame->SetBackgroundPixmap(
GetPic(
"EventControlBckgnd.gif" ) );
1679 fEventControlTextLabel =
new TGLabel( fEventControlTextFrame,
"Event Control " );
1680 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft | kLHintsExpandX, 2, 73, 4, 4 );
1681 fWidgets->Add( fLayout );
1682 fEventControlTextFrame->AddFrame( fEventControlTextLabel, fLayout );
1683 fEventControlTextLabel->SetBackgroundPixmap(
GetPic(
"EventControlBckgnd.gif" ) );
1687 new TGHorizontalFrame( fEventControlFrame, fEventControlFrame->GetWidth(), 25 );
1688 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsExpandX, 4, 4, 4, 4 );
1689 fWidgets->Add( fLayout );
1690 fEventControlFrame->AddFrame( fBesRunFrame, fLayout );
1691 fBesRunFrame->SetBackgroundPixmap(
GetPic(
"EventFrameBckgnd.gif" ) );
1693 fBesLabelRun =
new TGLabel( fBesRunFrame,
"Run : " );
1694 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 4, 4, 4, 4 );
1695 fWidgets->Add( fLayout );
1696 fBesRunFrame->AddFrame( fBesLabelRun, fLayout );
1698 fNumEntryRunNo =
new TGNumberEntry(
1700 (TGNumberFormat::EAttribute)1 );
1701 fNumEntryRunNo->SetHeight( 20 );
1703 fNumEntryRunNo->GetNumberEntry()->Connect(
"ReturnPressed()",
"BesClient",
this,
1704 "ExecuteReturn()" );
1705 fNumEntryRunNo->GetNumberEntry()->Connect(
"TabPressed()",
"BesClient",
this,
1707 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsRight, 4, 4, 4, 4 );
1708 fWidgets->Add( fLayout );
1709 fBesRunFrame->AddFrame( fNumEntryRunNo, fLayout );
1713 new TGHorizontalFrame( fEventControlFrame, fEventControlFrame->GetWidth(), 25 );
1714 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsExpandX, 4, 4, 4, 4 );
1715 fWidgets->Add( fLayout );
1716 fEventControlFrame->AddFrame( fBesEventFrame, fLayout );
1718 fBesLabelEvent =
new TGLabel( fBesEventFrame,
"Event : " );
1719 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 4, 4, 4, 4 );
1720 fWidgets->Add( fLayout );
1721 fBesEventFrame->AddFrame( fBesLabelEvent, fLayout );
1725 (TGNumberFormat::EStyle)0, (TGNumberFormat::EAttribute)1 );
1726 fNumEntryEventNo->SetHeight( 20 );
1728 fNumEntryEventNo->GetNumberEntry()->Connect(
"ReturnPressed()",
"BesClient",
this,
1729 "ExecuteReturn()" );
1730 fNumEntryEventNo->GetNumberEntry()->Connect(
"TabPressed()",
"BesClient",
this,
1732 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsRight, 4, 4, 4, 4 );
1733 fWidgets->Add( fLayout );
1734 fBesEventFrame->AddFrame( fNumEntryEventNo, fLayout );
1743 fEventPlaySlider->Connect(
"PositionChanged(Int_t)",
"BesClient",
this,
1744 "HandleSliders(Int_t)" );
1745 fEventPlaySlider->SetRange( 0, 100 );
1746 fEventPlaySlider->SetPosition( 0 );
1747 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsCenterX | kLHintsExpandX, 5, 5, 5, 0 );
1748 fWidgets->Add( fLayout );
1749 fEventControlFrame->AddFrame( fEventPlaySlider, fLayout );
1752 fEventPlayButtonFrame =
new TGCompositeFrame(
1753 fEventControlFrame, fEventControlFrame->GetWidth(), 30, kHorizontalFrame );
1755 fLayout =
new TGLayoutHints( kLHintsCenterX | kLHintsTop, 2, 2, 2, 2 );
1756 fWidgets->Add( fLayout );
1757 fEventControlFrame->AddFrame( fEventPlayButtonFrame, fLayout );
1761 gClient->GetPicture(
"ButtonEventPrev.gif" ),
1763 fPrevEventButton->SetToolTipText(
"Previous Event" );
1764 fPrevEventButton->SetHeight( 26 );
1765 fPrevEventButton->SetWidth( 25 );
1766 fPrevEventButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1768 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 8, 0, 0, 4 );
1769 fWidgets->Add( fLayout );
1770 fEventPlayButtonFrame->AddFrame( fPrevEventButton, fLayout );
1774 gClient->GetPicture(
"ButtonEventNext.gif" ),
1776 fNextEventButton->SetToolTipText(
"Next Event" );
1777 fNextEventButton->SetHeight( 26 );
1778 fNextEventButton->SetWidth( 26 );
1779 fNextEventButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1781 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsCenterY, 0, 10, 0, 4 );
1782 fWidgets->Add( fLayout );
1783 fEventPlayButtonFrame->AddFrame( fNextEventButton, fLayout );
1787 gClient->GetPicture(
"ButtonEventPlay.gif" ),
1789 fPlayEventButton->SetToolTipText(
"Play Event" );
1790 fPlayEventButton->SetHeight( 35 );
1791 fPlayEventButton->SetWidth( 34 );
1792 fPlayEventButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1794 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 5, 0, 0, 4 );
1795 fWidgets->Add( fLayout );
1796 fEventPlayButtonFrame->AddFrame( fPlayEventButton, fLayout );
1800 gClient->GetPicture(
"ButtonEventReturn.gif" ),
1802 fFirstEventButton->SetToolTipText(
"First Event" );
1803 fFirstEventButton->SetHeight( 35 );
1804 fFirstEventButton->SetWidth( 25 );
1805 fFirstEventButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()" );
1807 fLayout =
new TGLayoutHints( kLHintsLeft | kLHintsCenterY, 0, 8, 0, 4 );
1808 fWidgets->Add( fLayout );
1809 fEventPlayButtonFrame->AddFrame( fFirstEventButton, fLayout );
1812 fEventPlayTextFrame =
new TGCompositeFrame(
1813 fEventControlFrame, fEventControlFrame->GetWidth(), 30, kHorizontalFrame );
1814 fLayout =
new TGLayoutHints( kLHintsCenterX | kLHintsTop, 2, 2, 2, 2 );
1815 fWidgets->Add( fLayout );
1816 fEventControlFrame->AddFrame( fEventPlayTextFrame, fLayout );
1818 fEventPlayTextLabel =
new TGLabel( fEventPlayTextFrame,
"Prev,Next,Play/Stop,Return" );
1819 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 5, 4, 2, 5 );
1820 fWidgets->Add( fLayout );
1821 fEventPlayTextFrame->AddFrame( fEventPlayTextLabel, fLayout );
1824 fEventPlaySpeedFrame =
new TGCompositeFrame(
1825 fEventControlFrame, fEventControlFrame->GetWidth(), 30, kHorizontalFrame );
1826 fLayout =
new TGLayoutHints( kLHintsCenterX | kLHintsTop, 4, 4, 4, 4 );
1827 fWidgets->Add( fLayout );
1828 fEventControlFrame->AddFrame( fEventPlaySpeedFrame, fLayout );
1831 fNumEntryEventPlaySpeed =
new TGNumberEntry(
1834 fNumEntryEventPlaySpeed->SetHeight( 20 );
1836 fNumEntryEventPlaySpeed->GetNumberEntry()->Connect(
"ReturnPressed()",
"BesClient",
this,
1837 "ExecuteReturn()" );
1838 fNumEntryEventPlaySpeed->GetNumberEntry()->Connect(
"TabPressed()",
"BesClient",
this,
1840 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 4, 4, 4, 4 );
1841 fWidgets->Add( fLayout );
1842 fEventPlaySpeedFrame->AddFrame( fNumEntryEventPlaySpeed, fLayout );
1845 fEventPlaySpeedLabel =
new TGLabel( fEventPlaySpeedFrame,
" sec/event " );
1846 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsRight, 2, 4, 4, 10 );
1847 fWidgets->Add( fLayout );
1848 fEventPlaySpeedFrame->AddFrame( fEventPlaySpeedLabel, fLayout );
1900 tf = fTabs->AddTab(
"REC" );
1902 tf->SetBackgroundPixmap(
GetPic(
"8.gif" ) );
1905 fFrameHeader =
new TGGroupFrame( tf,
"Header" );
1906 fLayout =
new TGLayoutHints( kLHintsExpandX, 15, 15, 15,
1908 fWidgets->Add( fLayout );
1909 tf->AddFrame( fFrameHeader, fLayout );
1910 fChkBtnHeaderGlobal =
new TGCheckButton( fFrameHeader,
"Header",
kM_Header_Global );
1911 fFrameHeader->AddFrame( fChkBtnHeaderGlobal );
1912 fChkBtnHeaderGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1915 fFrameHits =
new TGGroupFrame( tf,
"Hits" );
1916 fLayout =
new TGLayoutHints( kLHintsExpandX, 15, 15, 15,
1918 fWidgets->Add( fLayout );
1919 tf->AddFrame( fFrameHits, fLayout );
1923 fChkBtnMdcHitsGlobal =
new TGCheckButton( fFrameHits,
"Mdc hits",
kM_MdcHits_Global );
1924 fFrameHits->AddFrame( fChkBtnMdcHitsGlobal );
1926 fChkBtnTofHitsGlobal =
new TGCheckButton( fFrameHits,
"Tof hits",
kM_TofHits_Global );
1927 fFrameHits->AddFrame( fChkBtnTofHitsGlobal );
1929 fChkBtnTofHitsEast =
new TGCheckButton( fFrameHits,
" East ",
kM_TofHits_East );
1930 fLayout =
new TGLayoutHints( kLHintsLeft, 20, 0, 0, 0 );
1931 fWidgets->Add( fLayout );
1932 fFrameHits->AddFrame( fChkBtnTofHitsEast, fLayout );
1934 fChkBtnTofHitsBarrel =
new TGCheckButton( fFrameHits,
" Barrel ",
kM_TofHits_Barrel );
1935 fFrameHits->AddFrame( fChkBtnTofHitsBarrel, fLayout );
1937 fChkBtnTofHitsWest =
new TGCheckButton( fFrameHits,
" West ",
kM_TofHits_West );
1938 fFrameHits->AddFrame( fChkBtnTofHitsWest, fLayout );
1940 fChkBtnEmcHitsGlobal =
new TGCheckButton( fFrameHits,
"Emc hits",
kM_EmcHits_Global );
1941 fFrameHits->AddFrame( fChkBtnEmcHitsGlobal );
1943 fChkBtnEmcHitsEast =
new TGCheckButton( fFrameHits,
" East ",
kM_EmcHits_East );
1944 fLayout =
new TGLayoutHints( kLHintsLeft, 20, 0, 0, 0 );
1945 fWidgets->Add( fLayout );
1946 fFrameHits->AddFrame( fChkBtnEmcHitsEast, fLayout );
1948 fChkBtnEmcHitsBarrel =
new TGCheckButton( fFrameHits,
" Barrel ",
kM_EmcHits_Barrel );
1949 fFrameHits->AddFrame( fChkBtnEmcHitsBarrel, fLayout );
1951 fChkBtnEmcHitsWest =
new TGCheckButton( fFrameHits,
" West ",
kM_EmcHits_West );
1952 fFrameHits->AddFrame( fChkBtnEmcHitsWest, fLayout );
1954 fChkBtnEmcHitsSide =
new TGCheckButton( fFrameHits,
" Side ",
kM_EmcHits_Side );
1955 fFrameHits->AddFrame( fChkBtnEmcHitsSide, fLayout );
1957 fChkBtnMucHitsGlobal =
new TGCheckButton( fFrameHits,
"Muc hits",
kM_MucHits_Global );
1958 fFrameHits->AddFrame( fChkBtnMucHitsGlobal );
1960 fChkBtnMucHitsEast =
new TGCheckButton( fFrameHits,
" East ",
kM_MucHits_East );
1961 fLayout =
new TGLayoutHints( kLHintsLeft, 20, 0, 0, 0 );
1962 fWidgets->Add( fLayout );
1963 fFrameHits->AddFrame( fChkBtnMucHitsEast, fLayout );
1965 fChkBtnMucHitsBarrel =
new TGCheckButton( fFrameHits,
" Barrel ",
kM_MucHits_Barrel );
1966 fFrameHits->AddFrame( fChkBtnMucHitsBarrel, fLayout );
1968 fChkBtnMucHitsWest =
new TGCheckButton( fFrameHits,
" West ",
kM_MucHits_West );
1969 fFrameHits->AddFrame( fChkBtnMucHitsWest, fLayout );
1971 fChkBtnMdcHitsGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1972 fChkBtnTofHitsGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1973 fChkBtnTofHitsEast->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1974 fChkBtnTofHitsBarrel->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1975 fChkBtnTofHitsWest->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1976 fChkBtnEmcHitsGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1977 fChkBtnEmcHitsEast->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1978 fChkBtnEmcHitsBarrel->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1979 fChkBtnEmcHitsWest->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1980 fChkBtnEmcHitsSide->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1981 fChkBtnMucHitsGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1982 fChkBtnMucHitsEast->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1983 fChkBtnMucHitsBarrel->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1984 fChkBtnMucHitsWest->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
1987 fFrameTracks =
new TGGroupFrame( tf,
"Tracks" );
1988 fLayout =
new TGLayoutHints( kLHintsExpandX, 15, 15, 15,
1990 fWidgets->Add( fLayout );
1991 tf->AddFrame( fFrameTracks, fLayout );
1993 fChkBtnTracksGlobal =
new TGCheckButton( fFrameTracks,
"Tracks",
kM_Tracks_Global );
1994 fFrameTracks->AddFrame( fChkBtnTracksGlobal );
1996 fChkBtnTracksMdc =
new TGCheckButton( fFrameTracks,
" Mdc ",
kM_Tracks_Mdc );
1997 fLayout =
new TGLayoutHints( kLHintsLeft, 20, 0, 0, 0 );
1998 fWidgets->Add( fLayout );
1999 fFrameTracks->AddFrame( fChkBtnTracksMdc, fLayout );
2001 fChkBtnTracksTof =
new TGCheckButton( fFrameTracks,
" Tof ",
kM_Tracks_Tof );
2002 fFrameTracks->AddFrame( fChkBtnTracksTof, fLayout );
2004 fChkBtnTracksEmc =
new TGCheckButton( fFrameTracks,
" Emc ",
kM_Tracks_Emc );
2005 fFrameTracks->AddFrame( fChkBtnTracksEmc, fLayout );
2007 fChkBtnTracksMuc =
new TGCheckButton( fFrameTracks,
" Muc ",
kM_Tracks_Muc );
2008 fFrameTracks->AddFrame( fChkBtnTracksMuc, fLayout );
2010 fChkBtnTracksExt =
new TGCheckButton( fFrameTracks,
" Ext ",
kM_Tracks_Ext );
2011 fFrameTracks->AddFrame( fChkBtnTracksExt, fLayout );
2013 fChkBtnTracksGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2014 fChkBtnTracksMdc->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2015 fChkBtnTracksTof->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2016 fChkBtnTracksEmc->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2017 fChkBtnTracksMuc->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2018 fChkBtnTracksExt->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2023 tf = fTabs->AddTab(
"Detector" );
2024 tf->SetBackgroundPixmap(
GetPic(
"8.gif" ) );
2027 fFrameSubDetector =
new TGGroupFrame( tf,
"Sub-Detector" );
2030 fLayout =
new TGLayoutHints( kLHintsExpandX, 15, 15, 15, 15 );
2031 fWidgets->Add( fLayout );
2032 tf->AddFrame( fFrameSubDetector, fLayout );
2035 fChkBtnMdcGlobal =
new TGCheckButton( fFrameSubDetector,
"Mdc",
kM_Mdc_Global );
2036 fLayout =
new TGLayoutHints( kLHintsExpandX, 0, 0, 10, 0 );
2037 fFrameSubDetector->AddFrame( fChkBtnMdcGlobal, fLayout );
2038 fChkBtnMdcGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2040 fChkBtnMdcTubes =
new TGCheckButton( fFrameSubDetector,
"Tubes",
kM_Mdc_Tubes );
2041 fLayout =
new TGLayoutHints( kLHintsLeft, 20, 0, 0, 0 );
2042 fFrameSubDetector->AddFrame( fChkBtnMdcTubes, fLayout );
2043 fChkBtnMdcTubes->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2045 fChkBtnMdcWires =
new TGCheckButton( fFrameSubDetector,
"Wires",
kM_Mdc_Wires );
2046 fFrameSubDetector->AddFrame( fChkBtnMdcWires, fLayout );
2047 fChkBtnMdcWires->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2050 fChkBtnTofGlobal =
new TGCheckButton( fFrameSubDetector,
"Tof",
kM_Tof_Global );
2051 fLayout =
new TGLayoutHints( kLHintsExpandX, 0, 0, 10, 0 );
2052 fFrameSubDetector->AddFrame( fChkBtnTofGlobal, fLayout );
2053 fChkBtnTofGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2055 fChkBtnTofEast =
new TGCheckButton( fFrameSubDetector,
"East EC",
kM_Tof_East );
2056 fLayout =
new TGLayoutHints( kLHintsLeft, 20, 0, 0, 0 );
2057 fFrameSubDetector->AddFrame( fChkBtnTofEast, fLayout );
2058 fChkBtnTofEast->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2060 fChkBtnTofBarrel =
new TGCheckButton( fFrameSubDetector,
"Barrel",
kM_Tof_Barrel );
2061 fFrameSubDetector->AddFrame( fChkBtnTofBarrel, fLayout );
2062 fChkBtnTofBarrel->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2064 fChkBtnTofWest =
new TGCheckButton( fFrameSubDetector,
"West EC",
kM_Tof_West );
2065 fFrameSubDetector->AddFrame( fChkBtnTofWest, fLayout );
2066 fChkBtnTofWest->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2069 fChkBtnEmcGlobal =
new TGCheckButton( fFrameSubDetector,
"Emc",
kM_Emc_Global );
2070 fLayout =
new TGLayoutHints( kLHintsExpandX, 0, 0, 10, 0 );
2071 fFrameSubDetector->AddFrame( fChkBtnEmcGlobal, fLayout );
2072 fChkBtnEmcGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2074 fChkBtnEmcEast =
new TGCheckButton( fFrameSubDetector,
"East EC",
kM_Emc_East );
2075 fLayout =
new TGLayoutHints( kLHintsLeft, 20, 0, 0, 0 );
2076 fFrameSubDetector->AddFrame( fChkBtnEmcEast, fLayout );
2077 fChkBtnEmcEast->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2079 fChkBtnEmcBarrel =
new TGCheckButton( fFrameSubDetector,
"Barrel",
kM_Emc_Barrel );
2080 fFrameSubDetector->AddFrame( fChkBtnEmcBarrel, fLayout );
2081 fChkBtnEmcBarrel->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2083 fChkBtnEmcWest =
new TGCheckButton( fFrameSubDetector,
"West EC",
kM_Emc_West );
2084 fFrameSubDetector->AddFrame( fChkBtnEmcWest, fLayout );
2085 fChkBtnEmcWest->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2087 fChkBtnEmcSide =
new TGCheckButton( fFrameSubDetector,
"Side ",
kM_Emc_Side );
2088 fFrameSubDetector->AddFrame( fChkBtnEmcSide, fLayout );
2089 fChkBtnEmcSide->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2092 fChkBtnMucGlobal =
new TGCheckButton( fFrameSubDetector,
"Muc",
kM_Muc_Global );
2093 fLayout =
new TGLayoutHints( kLHintsExpandX, 0, 0, 10, 0 );
2094 fFrameSubDetector->AddFrame( fChkBtnMucGlobal, fLayout );
2095 fChkBtnMucGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2097 fChkBtnMucEast =
new TGCheckButton( fFrameSubDetector,
"East EC",
kM_Muc_East );
2098 fLayout =
new TGLayoutHints( kLHintsLeft, 20, 0, 0, 0 );
2099 fFrameSubDetector->AddFrame( fChkBtnMucEast, fLayout );
2100 fChkBtnMucEast->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2102 fChkBtnMucBarrel =
new TGCheckButton( fFrameSubDetector,
"Barrel",
kM_Muc_Barrel );
2103 fFrameSubDetector->AddFrame( fChkBtnMucBarrel, fLayout );
2104 fChkBtnMucBarrel->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2106 fChkBtnMucWest =
new TGCheckButton( fFrameSubDetector,
"West EC",
kM_Muc_West );
2107 fFrameSubDetector->AddFrame( fChkBtnMucWest, fLayout );
2108 fChkBtnMucWest->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2110 fChkBtnMucStrips =
new TGCheckButton( fFrameSubDetector,
"Strips",
kM_Muc_Strips );
2111 fFrameSubDetector->AddFrame( fChkBtnMucStrips, fLayout );
2112 fChkBtnMucStrips->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2115 fFrameOthers =
new TGGroupFrame( tf,
"Others" );
2116 fLayout =
new TGLayoutHints( kLHintsExpandX, 15, 15, 15, 15 );
2117 fWidgets->Add( fLayout );
2118 tf->AddFrame( fFrameOthers, fLayout );
2120 fChkBtnBeamPipe =
new TGCheckButton( fFrameOthers,
"Beam Pipe",
kM_BeamPipe );
2121 fFrameOthers->AddFrame( fChkBtnBeamPipe );
2122 fChkBtnBeamPipe->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2124 fChkBtnZRPlaneOnXY =
new TGCheckButton( fFrameOthers,
"ZR plane on XY",
kM_ZRPlaneOnXY );
2125 fFrameOthers->AddFrame( fChkBtnZRPlaneOnXY );
2126 fChkBtnZRPlaneOnXY->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2128 fChkBtnAxis =
new TGCheckButton( fFrameOthers,
"Axis",
kM_Axis );
2129 fFrameOthers->AddFrame( fChkBtnAxis );
2130 fChkBtnAxis->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2135 tf = fTabs->AddTab(
"Others" );
2136 tf->SetBackgroundPixmap(
GetPic(
"8.gif" ) );
2139 fFrameMdcMatch =
new TGGroupFrame( tf,
"Mdc Status" );
2140 fLayout =
new TGLayoutHints( kLHintsExpandX, 15, 15, 15, 15 );
2141 fWidgets->Add( fLayout );
2142 tf->AddFrame( fFrameMdcMatch, fLayout );
2145 fChkBtnMdcTMatchGlobal->SetState( kButtonDown );
2147 fFrameMdcMatch->AddFrame( fChkBtnMdcTMatchGlobal );
2148 fChkBtnMdcTMatchGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2151 fChkBtnMdcQMatchGlobal->SetState( kButtonDown );
2153 fFrameMdcMatch->AddFrame( fChkBtnMdcQMatchGlobal );
2154 fChkBtnMdcQMatchGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2156 fChkBtnMdcQOverflowGlobal =
2158 fChkBtnMdcQOverflowGlobal->SetState( kButtonUp );
2160 fFrameMdcMatch->AddFrame( fChkBtnMdcQOverflowGlobal );
2161 fChkBtnMdcQOverflowGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2164 fChkBtnMdcColorfulWireGlobal =
2166 fChkBtnMdcColorfulWireGlobal->SetState( kButtonUp );
2167 fFrameMdcMatch->AddFrame( fChkBtnMdcColorfulWireGlobal );
2168 fChkBtnMdcColorfulWireGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2171 fChkBtnMdcTimeSubEvTimeGlobal =
2173 fChkBtnMdcTimeSubEvTimeGlobal->SetState( kButtonUp );
2174 fFrameMdcMatch->AddFrame( fChkBtnMdcTimeSubEvTimeGlobal );
2175 fChkBtnMdcTimeSubEvTimeGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2178 fFrameTofMatch =
new TGGroupFrame( tf,
"Tof TQ Match" );
2179 fLayout =
new TGLayoutHints( kLHintsExpandX, 15, 15, 15, 15 );
2180 fWidgets->Add( fLayout );
2181 tf->AddFrame( fFrameTofMatch, fLayout );
2183 fChkBtnTofTMatchGlobal =
2185 fChkBtnTofTMatchGlobal->SetState( kButtonDown );
2187 fFrameTofMatch->AddFrame( fChkBtnTofTMatchGlobal );
2188 fChkBtnTofTMatchGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2190 fChkBtnTofQMatchGlobal =
2192 fChkBtnTofQMatchGlobal->SetState( kButtonDown );
2194 fFrameTofMatch->AddFrame( fChkBtnTofQMatchGlobal );
2195 fChkBtnTofQMatchGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()" );
2198 fFrameMagnetic =
new TGGroupFrame( tf,
"Magnetic Field(Tesla)" );
2199 fLayout =
new TGLayoutHints( kLHintsExpandX, 15, 15, 15, 15 );
2200 fWidgets->Add( fLayout );
2201 tf->AddFrame( fFrameMagnetic, fLayout );
2206 TGNumberFormat::kNESRealTwo, TGNumberFormat::kNEAAnyNumber );
2207 fNumEntryMagnetic->SetHeight( 20 );
2208 fNumEntryMagnetic->SetNumber( 1.0 );
2209 fNumEntryMagnetic->GetNumberEntry()->Connect(
"ReturnPressed()",
"BesClient",
this,
2210 "ExecuteReturn()" );
2211 fNumEntryMagnetic->GetNumberEntry()->Connect(
"TabPressed()",
"BesClient",
this,
2213 fLayout =
new TGLayoutHints( kLHintsCenterY | kLHintsLeft, 4, 4, 4, 4 );
2214 fWidgets->Add( fLayout );
2215 fFrameMagnetic->AddFrame( fNumEntryMagnetic, fLayout );
2217 for ( Int_t iTab = 0; iTab < fTabs->GetNumberOfTabs(); iTab++ )
2218 { fTabs->GetTabTab( iTab )->SetBackgroundPixmap(
GetPic(
"8.gif" ) ); }