1200 fTabs =
new TGTab(fV1, fV1->GetWidth(), fV1->GetHeight());
1204 TGCompositeFrame *tf = 0;
1210 tf = fTabs->AddTab(
"View");
1211 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
1216 fAutoFrame =
new TGCompositeFrame(tf, tf->GetWidth(), tf->GetHeight(), kVerticalFrame);
1217 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX , 15, 15, 15, 10);
1218 fWidgets->Add(fLayout);
1219 tf->AddFrame(fAutoFrame, fLayout);
1220 fAutoFrame->SetBackgroundPixmap(
GetPic(
"AutoFrameBckgnd.gif"));
1223 fAutoTextFrame =
new TGCompositeFrame(fAutoFrame, fAutoFrame->GetWidth(), 30, kHorizontalFrame);
1224 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX, 0, 0, 0, 0);
1225 fWidgets->Add(fLayout);
1226 fAutoFrame->AddFrame(fAutoTextFrame, fLayout);
1227 fAutoTextFrame->SetBackgroundPixmap(
GetPic(
"AutoControlBckgnd.gif"));
1229 fAutoTextLabel =
new TGLabel(fAutoTextFrame,
"Auto Control ");
1230 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft | kLHintsExpandX , 2, 73, 4, 0);
1231 fWidgets->Add(fLayout);
1232 fAutoTextFrame->AddFrame(fAutoTextLabel, fLayout);
1233 fAutoTextLabel->SetBackgroundPixmap(
GetPic(
"AutoControlBckgnd.gif"));
1236 fFrameAutoRotate =
new TGGroupFrame(fAutoFrame,
"");
1237 fLayout =
new TGLayoutHints(kLHintsExpandX, 0, 0, 0, 0);
1239 fWidgets->Add(fLayout);
1240 fAutoFrame->AddFrame(fFrameAutoRotate, fLayout);
1244 fLayout =
new TGLayoutHints(kLHintsExpandX, 5, 5, 3, 2);
1245 fFrameAutoRotate->AddFrame(fChkBtnAutoRotate, fLayout);
1246 fChkBtnAutoRotate->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1249 fRotateSpeedFrame =
new TGCompositeFrame(fFrameAutoRotate, fFrameAutoRotate->GetWidth()-20, 30, kHorizontalFrame);
1250 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop, 0, 0, 2, 2);
1251 fWidgets->Add(fLayout);
1252 fFrameAutoRotate->AddFrame(fRotateSpeedFrame, fLayout);
1257 (TGNumberFormat::EStyle) 1, (TGNumberFormat::EAttribute) 1 );
1258 h = fNumEntryRotateSpeed->GetDefaultHeight();
1259 charw = fNumEntryRotateSpeed->GetCharWidth(
"0123456");
1260 w = charw * TMath::Abs(4) / 10 + 8 + 2 * h / 3;
1261 fNumEntryRotateSpeed->Resize(w, h);
1264 fNumEntryRotateSpeed->SetHeight(20);
1266 fNumEntryRotateSpeed->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()");
1267 fNumEntryRotateSpeed->Connect(
"TabPressed()",
"BesClient",
this,
"ChangeFocus()");
1268 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 4, 2, 2);
1269 fWidgets->Add(fLayout);
1270 fRotateSpeedFrame->AddFrame(fNumEntryRotateSpeed, fLayout);
1273 fRotateSpeedLabel =
new TGLabel(fRotateSpeedFrame,
" deg/sec ");
1274 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsRight, 2, 4, 2, 2);
1275 fWidgets->Add(fLayout);
1276 fRotateSpeedFrame->AddFrame(fRotateSpeedLabel, fLayout);
1279 fRotateFPSFrame =
new TGCompositeFrame(fFrameAutoRotate, fFrameAutoRotate->GetWidth()-20, 30, kHorizontalFrame);
1280 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop, 0, 0, 2, 2);
1281 fWidgets->Add(fLayout);
1282 fFrameAutoRotate->AddFrame(fRotateFPSFrame, fLayout);
1285 fNumEntryRotateFPS =
new TGNumberEntry(fRotateFPSFrame,this->
GetRotateFPS(), 3,
kM_Button_RotateFPS,(TGNumberFormat::EStyle) 0,(TGNumberFormat::EAttribute) 1);
1286 fNumEntryRotateFPS->SetHeight(20);
1288 fNumEntryRotateFPS->GetNumberEntry()->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()");
1289 fNumEntryRotateFPS->GetNumberEntry()->Connect(
"TabPressed()",
"BesClient",
this,
"ChangeFocus()");
1290 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 4, 2, 2);
1291 fWidgets->Add(fLayout);
1292 fRotateFPSFrame->AddFrame(fNumEntryRotateFPS, fLayout);
1295 fRotateFPSLabel =
new TGLabel(fRotateFPSFrame,
" fps ");
1296 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsRight, 2, 4, 2, 2);
1297 fWidgets->Add(fLayout);
1298 fRotateFPSFrame->AddFrame(fRotateFPSLabel, fLayout);
1304 fViewFrame =
new TGCompositeFrame(tf, tf->GetWidth(), tf->GetHeight(), kVerticalFrame);
1305 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX , 15, 15, 15, 10);
1306 fWidgets->Add(fLayout);
1307 tf->AddFrame(fViewFrame, fLayout);
1308 fViewFrame->SetBackgroundPixmap(
GetPic(
"ViewFrameBckgnd.gif"));
1311 fViewTextFrame =
new TGCompositeFrame(fViewFrame, fViewFrame->GetWidth(), 30, kHorizontalFrame);
1312 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX, 0, 0, 0, 0);
1313 fWidgets->Add(fLayout);
1314 fViewFrame->AddFrame(fViewTextFrame, fLayout);
1315 fViewTextFrame->SetBackgroundPixmap(
GetPic(
"ViewControlBckgnd.gif"));
1317 fViewTextLabel =
new TGLabel(fViewTextFrame,
"View Control ");
1318 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft | kLHintsExpandX , 2, 73, 4, 4);
1319 fWidgets->Add(fLayout);
1320 fViewTextFrame->AddFrame(fViewTextLabel, fLayout);
1321 fViewTextLabel->SetBackgroundPixmap(
GetPic(
"ViewControlBckgnd.gif"));
1325 fRotateStepFrame =
new TGCompositeFrame(fViewFrame, fViewFrame->GetWidth()-20, 30, kHorizontalFrame);
1326 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop, 0, 0, 8, 5);
1327 fWidgets->Add(fLayout);
1328 fViewFrame->AddFrame(fRotateStepFrame, fLayout);
1331 fRotateStepLabel =
new TGLabel(fRotateStepFrame,
" Step:");
1332 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 10, 2, 0, 0);
1333 fWidgets->Add(fLayout);
1334 fRotateStepFrame->AddFrame(fRotateStepLabel, fLayout);
1339 (TGNumberFormat::EStyle) 2, (TGNumberFormat::EAttribute) 1 );
1340 h = fNumEntryRotateStep->GetDefaultHeight();
1341 charw = fNumEntryRotateStep->GetCharWidth(
"0123456");
1342 w = charw * TMath::Abs(5) / 10 + 8 + 2 * h / 3;
1343 fNumEntryRotateStep->Resize(w, h);
1345 fNumEntryRotateStep->SetHeight(20);
1347 fNumEntryRotateStep->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()");
1348 fNumEntryRotateStep->Connect(
"TabPressed()",
"BesClient",
this,
"ChangeFocus()");
1349 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 0, 0, 0);
1350 fWidgets->Add(fLayout);
1351 fRotateStepFrame->AddFrame(fNumEntryRotateStep, fLayout);
1354 fRotateStepUnitLabel =
new TGLabel(fRotateStepFrame,
" deg ");
1355 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 0, 4, 0, 0);
1356 fWidgets->Add(fLayout);
1357 fRotateStepFrame->AddFrame(fRotateStepUnitLabel, fLayout);
1360 fViewContentFrame =
new TGCompositeFrame(fViewFrame, fViewFrame->GetWidth(), fViewFrame->GetHeight()-30, kVerticalFrame);
1361 fLayout =
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY , 0, 0, 0, 0);
1362 fWidgets->Add(fLayout);
1363 fViewFrame->AddFrame(fViewContentFrame, fLayout);
1366 fViewContent1Frame =
new TGCompositeFrame(fViewContentFrame, fViewFrame->GetWidth(), 39, kHorizontalFrame);
1367 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop , 0, 0, 3, 0);
1368 fWidgets->Add(fLayout);
1369 fViewContent1Frame->SetBackgroundPixmap(
GetPic(
"ViewContent1Bckgnd.gif"));
1370 fViewContentFrame->AddFrame(fViewContent1Frame, fLayout);
1374 gClient->GetPicture(
"ViewCounterClockwise.gif"),
1376 fViewCounterClockWiseButton->SetToolTipText(
"Rotate Counter Clockwise");
1377 fViewCounterClockWiseButton->SetHeight(37);
1378 fViewCounterClockWiseButton->SetWidth(37);
1379 fViewCounterClockWiseButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1381 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 5, 22, 0, 0);
1382 fWidgets->Add(fLayout);
1383 fViewContent1Frame->AddFrame(fViewCounterClockWiseButton, fLayout);
1387 gClient->GetPicture(
"ViewMoveUp.gif"),
1389 fViewMoveUpButton->SetToolTipText(
"Move Up");
1390 fViewMoveUpButton->SetHeight(20);
1391 fViewMoveUpButton->SetWidth(23);
1392 fViewMoveUpButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1394 fLayout =
new TGLayoutHints(kLHintsBottom | kLHintsCenterX, 5, 5, 0, 0);
1395 fWidgets->Add(fLayout);
1396 fViewContent1Frame->AddFrame(fViewMoveUpButton, fLayout);
1400 gClient->GetPicture(
"ViewClockwise.gif"),
1402 fViewClockWiseButton->SetToolTipText(
"Rotate Clockwise");
1403 fViewClockWiseButton->SetHeight(37);
1404 fViewClockWiseButton->SetWidth(37);
1405 fViewClockWiseButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1407 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsRight, 22, 5, 0, 0);
1408 fWidgets->Add(fLayout);
1409 fViewContent1Frame->AddFrame(fViewClockWiseButton, fLayout);
1412 fViewContent2Frame =
new TGCompositeFrame(fViewContentFrame, fViewFrame->GetWidth(), 23, kHorizontalFrame);
1413 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop , 0, 0, 0, 0);
1414 fWidgets->Add(fLayout);
1415 fViewContent2Frame->SetBackgroundPixmap(
GetPic(
"ViewContent2Bckgnd.gif"));
1416 fViewContentFrame->AddFrame(fViewContent2Frame, fLayout);
1420 gClient->GetPicture(
"ViewMoveLeft.gif"),
1422 fViewMoveLeftButton->SetToolTipText(
"Move Left");
1423 fViewMoveLeftButton->SetHeight(23);
1424 fViewMoveLeftButton->SetWidth(23);
1425 fViewMoveLeftButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1427 fLayout =
new TGLayoutHints(kLHintsBottom | kLHintsCenterX, 49, 2, 0, 0);
1428 fWidgets->Add(fLayout);
1429 fViewContent2Frame->AddFrame(fViewMoveLeftButton, fLayout);
1433 gClient->GetPicture(
"ViewMoveCenter.gif"),
1435 fViewMoveCenterButton->SetToolTipText(
"Move Center");
1436 fViewMoveCenterButton->SetHeight(13);
1437 fViewMoveCenterButton->SetWidth(13);
1438 fViewMoveCenterButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1440 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsCenterX, 0, 0, 0, 0);
1441 fWidgets->Add(fLayout);
1442 fViewContent2Frame->AddFrame(fViewMoveCenterButton, fLayout);
1446 gClient->GetPicture(
"ViewMoveRight.gif"),
1448 fViewMoveRightButton->SetToolTipText(
"Move Right");
1449 fViewMoveRightButton->SetHeight(23);
1450 fViewMoveRightButton->SetWidth(23);
1451 fViewMoveRightButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1453 fLayout =
new TGLayoutHints(kLHintsBottom | kLHintsCenterX, 2, 49, 0, 0);
1454 fWidgets->Add(fLayout);
1455 fViewContent2Frame->AddFrame(fViewMoveRightButton, fLayout);
1458 fViewContent3Frame =
new TGCompositeFrame(fViewContentFrame, fViewFrame->GetWidth(), 32, kHorizontalFrame);
1459 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop , 0, 0, 0, 3);
1460 fWidgets->Add(fLayout);
1461 fViewContent3Frame->SetBackgroundPixmap(
GetPic(
"ViewContent3Bckgnd.gif"));
1462 fViewContentFrame->AddFrame(fViewContent3Frame, fLayout);
1466 gClient->GetPicture(
"ViewMoveDown.gif"),
1468 fViewMoveDownButton->SetToolTipText(
"Move Down");
1469 fViewMoveDownButton->SetHeight(32);
1470 fViewMoveDownButton->SetWidth(23);
1471 fViewMoveDownButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1474 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 69, 0, 0, 0);
1475 fWidgets->Add(fLayout);
1476 fViewContent3Frame->AddFrame(fViewMoveDownButton, fLayout);
1480 gClient->GetPicture(
"ViewResetAngle.gif"),
1483 fViewResetAngleButton->SetToolTipText(
"Reset Angles");
1484 fViewResetAngleButton->SetHeight(27);
1485 fViewResetAngleButton->SetWidth(27);
1486 fViewResetAngleButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1488 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 30, 0, 0, 0);
1489 fWidgets->Add(fLayout);
1490 fViewContent3Frame->AddFrame(fViewResetAngleButton, fLayout);
1494 fViewAngleFrame =
new TGCompositeFrame(fViewContentFrame, fViewContentFrame->GetWidth(), 50, kHorizontalFrame);
1495 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop , 4, 4, 0, 0);
1496 fWidgets->Add(fLayout);
1497 fViewContentFrame->AddFrame(fViewAngleFrame, fLayout);
1500 fViewAngleThetaFrame =
new TGCompositeFrame(fViewAngleFrame, fViewAngleFrame->GetWidth(), 50, kVerticalFrame);
1501 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop , 3, 3, 3, 3);
1502 fWidgets->Add(fLayout);
1503 fViewAngleFrame->AddFrame(fViewAngleThetaFrame, fLayout);
1507 gClient->GetPicture(
"ViewAngleMinus.gif"),
1509 fViewAngleThetaMinusButton->SetToolTipText(
"Theta -");
1510 fViewAngleThetaMinusButton->SetHeight(22);
1511 fViewAngleThetaMinusButton->SetWidth(22);
1512 fViewAngleThetaMinusButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1514 fLayout =
new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1515 fWidgets->Add(fLayout);
1516 fViewAngleThetaFrame->AddFrame(fViewAngleThetaMinusButton, fLayout);
1520 fViewAngleThetaSlider->Connect(
"PositionChanged(Int_t)",
"BesClient",
this,
"HandleSliders(Int_t)");
1521 fViewAngleThetaSlider->SetRange(0, 180);
1522 fViewAngleThetaSlider->SetPosition(0);
1523 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsCenterX | kLHintsExpandY, 5, 5, 0, 0);
1524 fWidgets->Add(fLayout);
1525 fViewAngleThetaFrame->AddFrame(fViewAngleThetaSlider, fLayout);
1529 gClient->GetPicture(
"ViewAnglePlus.gif"),
1531 fViewAngleThetaPlusButton->SetToolTipText(
"Theta +");
1532 fViewAngleThetaPlusButton->SetHeight(22);
1533 fViewAngleThetaPlusButton->SetWidth(22);
1534 fViewAngleThetaPlusButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1536 fLayout =
new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1537 fWidgets->Add(fLayout);
1538 fViewAngleThetaFrame->AddFrame(fViewAngleThetaPlusButton, fLayout);
1544 fViewAngleThetaSlider->GetPosition(),
1545 (TGNumberFormat::EStyle) 1, (TGNumberFormat::EAttribute) 0 );
1546 fViewAngleThetaNumber->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()");
1547 h = fViewAngleThetaNumber->GetDefaultHeight();
1548 charw = fViewAngleThetaNumber->GetCharWidth(
"0123456");
1549 w = charw * TMath::Abs(4) / 10 + 8 + 2 * h / 3;
1550 fViewAngleThetaNumber->Resize(w, h);
1552 fLayout =
new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 0);
1553 fWidgets->Add(fLayout);
1554 fViewAngleThetaFrame->AddFrame(fViewAngleThetaNumber, fLayout);
1557 fViewAngleThetaLabel =
new TGLabel(fViewAngleThetaFrame,
"theta");
1558 fLayout =
new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 2);
1559 fWidgets->Add(fLayout);
1560 fViewAngleThetaFrame->AddFrame(fViewAngleThetaLabel, fLayout);
1563 fViewAnglePhiFrame =
new TGCompositeFrame(fViewAngleFrame, fViewAngleFrame->GetWidth(), 50, kVerticalFrame);
1564 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop , 3, 3, 3, 3);
1565 fWidgets->Add(fLayout);
1566 fViewAngleFrame->AddFrame(fViewAnglePhiFrame, fLayout);
1570 gClient->GetPicture(
"ViewAngleMinus.gif"),
1572 fViewAnglePhiMinusButton->SetToolTipText(
"Phi -");
1573 fViewAnglePhiMinusButton->SetHeight(22);
1574 fViewAnglePhiMinusButton->SetWidth(22);
1575 fViewAnglePhiMinusButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1577 fLayout =
new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1578 fWidgets->Add(fLayout);
1579 fViewAnglePhiFrame->AddFrame(fViewAnglePhiMinusButton, fLayout);
1582 fViewAnglePhiSlider =
new TGVSlider(fViewAnglePhiFrame, 120, kSlider2 | kScaleBoth,
kM_Slider_ViewAnglePhi);
1583 fViewAnglePhiSlider->Connect(
"PositionChanged(Int_t)",
"BesClient",
this,
"HandleSliders(Int_t)");
1584 fViewAnglePhiSlider->SetRange(0, 360);
1585 fViewAnglePhiSlider->SetPosition(0);
1586 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsCenterX | kLHintsExpandY, 5, 5, 0, 0);
1587 fWidgets->Add(fLayout);
1588 fViewAnglePhiFrame->AddFrame(fViewAnglePhiSlider, fLayout);
1592 gClient->GetPicture(
"ViewAnglePlus.gif"),
1594 fViewAnglePhiPlusButton->SetToolTipText(
"Phi +");
1595 fViewAnglePhiPlusButton->SetHeight(22);
1596 fViewAnglePhiPlusButton->SetWidth(22);
1597 fViewAnglePhiPlusButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1599 fLayout =
new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1600 fWidgets->Add(fLayout);
1601 fViewAnglePhiFrame->AddFrame(fViewAnglePhiPlusButton, fLayout);
1607 fViewAnglePhiSlider->GetPosition(),
1608 (TGNumberFormat::EStyle) 1, (TGNumberFormat::EAttribute) 0 );
1609 fViewAnglePhiNumber->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()");
1610 h = fViewAnglePhiNumber->GetDefaultHeight();
1611 charw = fViewAnglePhiNumber->GetCharWidth(
"0123456");
1612 w = charw * TMath::Abs(4) / 10 + 8 + 2 * h / 3;
1613 fViewAnglePhiNumber->Resize(w, h);
1615 fLayout =
new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 0);
1616 fWidgets->Add(fLayout);
1617 fViewAnglePhiFrame->AddFrame(fViewAnglePhiNumber, fLayout);
1620 fViewAnglePhiLabel =
new TGLabel(fViewAnglePhiFrame,
"phi");
1621 fLayout =
new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 2);
1622 fWidgets->Add(fLayout);
1623 fViewAnglePhiFrame->AddFrame(fViewAnglePhiLabel, fLayout);
1626 fViewAnglePsiFrame =
new TGCompositeFrame(fViewAngleFrame, fViewAngleFrame->GetWidth(), 50, kVerticalFrame);
1627 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop , 3, 3, 3, 3);
1628 fWidgets->Add(fLayout);
1629 fViewAngleFrame->AddFrame(fViewAnglePsiFrame, fLayout);
1633 gClient->GetPicture(
"ViewAngleMinus.gif"),
1635 fViewAnglePsiMinusButton->SetToolTipText(
"Psi -");
1636 fViewAnglePsiMinusButton->SetHeight(22);
1637 fViewAnglePsiMinusButton->SetWidth(22);
1638 fViewAnglePsiMinusButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1640 fLayout =
new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1641 fWidgets->Add(fLayout);
1642 fViewAnglePsiFrame->AddFrame(fViewAnglePsiMinusButton, fLayout);
1645 fViewAnglePsiSlider =
new TGVSlider(fViewAnglePsiFrame, 120, kSlider2 | kScaleBoth,
kM_Slider_ViewAnglePsi);
1646 fViewAnglePsiSlider->Connect(
"PositionChanged(Int_t)",
"BesClient",
this,
"HandleSliders(Int_t)");
1647 fViewAnglePsiSlider->SetRange(0, 360);
1648 fViewAnglePsiSlider->SetPosition(270);
1649 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsCenterX | kLHintsExpandY, 5, 5, 0, 0);
1650 fWidgets->Add(fLayout);
1651 fViewAnglePsiFrame->AddFrame(fViewAnglePsiSlider, fLayout);
1655 gClient->GetPicture(
"ViewAnglePlus.gif"),
1657 fViewAnglePsiPlusButton->SetToolTipText(
"Psi +");
1658 fViewAnglePsiPlusButton->SetHeight(22);
1659 fViewAnglePsiPlusButton->SetWidth(22);
1660 fViewAnglePsiPlusButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1662 fLayout =
new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1663 fWidgets->Add(fLayout);
1664 fViewAnglePsiFrame->AddFrame(fViewAnglePsiPlusButton, fLayout);
1670 fViewAnglePsiSlider->GetPosition(),
1671 (TGNumberFormat::EStyle) 1, (TGNumberFormat::EAttribute) 0 );
1672 fViewAnglePsiNumber->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()");
1673 h = fViewAnglePsiNumber->GetDefaultHeight();
1674 charw = fViewAnglePsiNumber->GetCharWidth(
"0123456");
1675 w = charw * TMath::Abs(4) / 10 + 8 + 2 * h / 3;
1676 fViewAnglePsiNumber->Resize(w, h);
1678 fLayout =
new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 0);
1679 fWidgets->Add(fLayout);
1680 fViewAnglePsiFrame->AddFrame(fViewAnglePsiNumber, fLayout);
1683 fViewAnglePsiLabel =
new TGLabel(fViewAnglePsiFrame,
"psi");
1684 fLayout =
new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 2);
1685 fWidgets->Add(fLayout);
1686 fViewAnglePsiFrame->AddFrame(fViewAnglePsiLabel, fLayout);
1691 tf = fTabs->AddTab(
"Event");
1692 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
1697 fEventControlFrame =
new TGCompositeFrame(tf, tf->GetWidth(), tf->GetHeight(), kVerticalFrame);
1698 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX , 15, 15, 15, 10);
1699 fWidgets->Add(fLayout);
1700 tf->AddFrame(fEventControlFrame, fLayout);
1701 fEventControlFrame->SetBackgroundPixmap(
GetPic(
"EventFrameBckgnd.gif"));
1705 fEventControlTextFrame =
new TGCompositeFrame(fEventControlFrame, fEventControlFrame->GetWidth(), 30, kHorizontalFrame);
1706 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX, 0, 0, 0, 0);
1707 fWidgets->Add(fLayout);
1708 fEventControlFrame->AddFrame(fEventControlTextFrame, fLayout);
1709 fEventControlTextFrame->SetBackgroundPixmap(
GetPic(
"EventControlBckgnd.gif"));
1711 fEventControlTextLabel =
new TGLabel(fEventControlTextFrame,
"Event Control ");
1712 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft | kLHintsExpandX , 2, 73, 4, 4);
1713 fWidgets->Add(fLayout);
1714 fEventControlTextFrame->AddFrame(fEventControlTextLabel, fLayout);
1715 fEventControlTextLabel->SetBackgroundPixmap(
GetPic(
"EventControlBckgnd.gif"));
1718 fBesRunFrame =
new TGHorizontalFrame(fEventControlFrame, fEventControlFrame->GetWidth(), 25);
1719 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsExpandX , 4, 4, 4, 4);
1720 fWidgets->Add(fLayout);
1721 fEventControlFrame->AddFrame(fBesRunFrame, fLayout);
1722 fBesRunFrame->SetBackgroundPixmap(
GetPic(
"EventFrameBckgnd.gif"));
1724 fBesLabelRun =
new TGLabel(fBesRunFrame,
"Run : ");
1725 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 4, 4, 4);
1726 fWidgets->Add(fLayout);
1727 fBesRunFrame->AddFrame(fBesLabelRun, fLayout);
1729 fNumEntryRunNo =
new TGNumberEntry(fBesRunFrame,this->
GetBesRunNo(),12,
kM_Button_BesRun,(TGNumberFormat::EStyle) 0,(TGNumberFormat::EAttribute) 1);
1730 fNumEntryRunNo->SetHeight(20);
1732 fNumEntryRunNo->GetNumberEntry()->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()");
1733 fNumEntryRunNo->GetNumberEntry()->Connect(
"TabPressed()",
"BesClient",
this,
"ChangeFocus()");
1734 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsRight, 4, 4, 4, 4);
1735 fWidgets->Add(fLayout);
1736 fBesRunFrame->AddFrame(fNumEntryRunNo, fLayout);
1739 fBesEventFrame =
new TGHorizontalFrame(fEventControlFrame, fEventControlFrame->GetWidth(), 25);
1740 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsExpandX , 4, 4, 4, 4);
1741 fWidgets->Add(fLayout);
1742 fEventControlFrame->AddFrame(fBesEventFrame, fLayout);
1744 fBesLabelEvent =
new TGLabel(fBesEventFrame,
"Event : ");
1745 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 4, 4, 4);
1746 fWidgets->Add(fLayout);
1747 fBesEventFrame->AddFrame(fBesLabelEvent, fLayout);
1749 fNumEntryEventNo =
new TGNumberEntry(fBesEventFrame,this->
GetBesEventNo(),12,
kM_Button_BesEvent,(TGNumberFormat::EStyle) 0,(TGNumberFormat::EAttribute) 1);
1750 fNumEntryEventNo->SetHeight(20);
1752 fNumEntryEventNo->GetNumberEntry()->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()");
1753 fNumEntryEventNo->GetNumberEntry()->Connect(
"TabPressed()",
"BesClient",
this,
"ChangeFocus()");
1754 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsRight, 4, 4, 4, 4);
1755 fWidgets->Add(fLayout);
1756 fBesEventFrame->AddFrame(fNumEntryEventNo, fLayout);
1763 fEventPlaySlider =
new TGHSlider(fEventControlFrame, 40, kSlider1 | kScaleNo,
kM_Slider_EventPlay);
1764 fEventPlaySlider->Connect(
"PositionChanged(Int_t)",
"BesClient",
this,
"HandleSliders(Int_t)");
1765 fEventPlaySlider->SetRange(0, 100);
1766 fEventPlaySlider->SetPosition(0);
1767 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsCenterX | kLHintsExpandX, 5, 5, 5, 0);
1768 fWidgets->Add(fLayout);
1769 fEventControlFrame->AddFrame(fEventPlaySlider, fLayout);
1772 fEventPlayButtonFrame =
new TGCompositeFrame(fEventControlFrame, fEventControlFrame->GetWidth(), 30, kHorizontalFrame);
1774 fLayout =
new TGLayoutHints(kLHintsCenterX | kLHintsTop, 2, 2, 2, 2);
1775 fWidgets->Add(fLayout);
1776 fEventControlFrame->AddFrame(fEventPlayButtonFrame, fLayout);
1780 gClient->GetPicture(
"ButtonEventPrev.gif"),
1782 fPrevEventButton->SetToolTipText(
"Previous Event");
1783 fPrevEventButton->SetHeight(26);
1784 fPrevEventButton->SetWidth(25);
1785 fPrevEventButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1787 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 8, 0, 0, 4);
1788 fWidgets->Add(fLayout);
1789 fEventPlayButtonFrame->AddFrame(fPrevEventButton, fLayout);
1794 fNextEventButton->SetToolTipText(
"Next Event");
1795 fNextEventButton->SetHeight(26);
1796 fNextEventButton->SetWidth(26);
1797 fNextEventButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1799 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 0, 10, 0, 4);
1800 fWidgets->Add(fLayout);
1801 fEventPlayButtonFrame->AddFrame(fNextEventButton, fLayout);
1805 gClient->GetPicture(
"ButtonEventPlay.gif"),
1807 fPlayEventButton->SetToolTipText(
"Play Event");
1808 fPlayEventButton->SetHeight(35);
1809 fPlayEventButton->SetWidth(34);
1810 fPlayEventButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1812 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 5, 0, 0, 4);
1813 fWidgets->Add(fLayout);
1814 fEventPlayButtonFrame->AddFrame(fPlayEventButton, fLayout);
1818 gClient->GetPicture(
"ButtonEventReturn.gif"),
1820 fFirstEventButton->SetToolTipText(
"First Event");
1821 fFirstEventButton->SetHeight(35);
1822 fFirstEventButton->SetWidth(25);
1823 fFirstEventButton->Connect(
"Clicked()",
"BesClient",
this,
"HandleButtons()");
1825 fLayout =
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 0, 8, 0, 4);
1826 fWidgets->Add(fLayout);
1827 fEventPlayButtonFrame->AddFrame(fFirstEventButton, fLayout);
1830 fEventPlayTextFrame =
new TGCompositeFrame(fEventControlFrame, fEventControlFrame->GetWidth(), 30, kHorizontalFrame);
1831 fLayout =
new TGLayoutHints(kLHintsCenterX | kLHintsTop, 2, 2, 2, 2);
1832 fWidgets->Add(fLayout);
1833 fEventControlFrame->AddFrame(fEventPlayTextFrame, fLayout);
1835 fEventPlayTextLabel =
new TGLabel(fEventPlayTextFrame,
"Prev,Next,Play/Stop,Return");
1836 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 5, 4, 2, 5);
1837 fWidgets->Add(fLayout);
1838 fEventPlayTextFrame->AddFrame(fEventPlayTextLabel, fLayout);
1842 fEventPlaySpeedFrame =
new TGCompositeFrame(fEventControlFrame, fEventControlFrame->GetWidth(), 30, kHorizontalFrame);
1843 fLayout =
new TGLayoutHints(kLHintsCenterX | kLHintsTop, 4, 4, 4, 4);
1844 fWidgets->Add(fLayout);
1845 fEventControlFrame->AddFrame(fEventPlaySpeedFrame, fLayout);
1848 fNumEntryEventPlaySpeed =
new TGNumberEntry(fEventPlaySpeedFrame,(Double_t)this->
GetEventPlaySpeed()/1000.0,4,
1850 (TGNumberFormat::EStyle) 1,(TGNumberFormat::EAttribute) 1);
1851 fNumEntryEventPlaySpeed->SetHeight(20);
1853 fNumEntryEventPlaySpeed->GetNumberEntry()->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()");
1854 fNumEntryEventPlaySpeed->GetNumberEntry()->Connect(
"TabPressed()",
"BesClient",
this,
"ChangeFocus()");
1855 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 4, 4, 4);
1856 fWidgets->Add(fLayout);
1857 fEventPlaySpeedFrame->AddFrame(fNumEntryEventPlaySpeed, fLayout);
1860 fEventPlaySpeedLabel =
new TGLabel(fEventPlaySpeedFrame,
" sec/event ");
1861 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsRight, 2, 4, 4, 10);
1862 fWidgets->Add(fLayout);
1863 fEventPlaySpeedFrame->AddFrame(fEventPlaySpeedLabel, fLayout);
1918 tf = fTabs->AddTab(
"REC");
1920 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
1923 fFrameHeader =
new TGGroupFrame(tf,
"Header");
1924 fLayout =
new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 5);
1925 fWidgets->Add(fLayout);
1926 tf->AddFrame(fFrameHeader, fLayout);
1927 fChkBtnHeaderGlobal =
new TGCheckButton(fFrameHeader,
"Header",
kM_Header_Global);
1928 fFrameHeader->AddFrame(fChkBtnHeaderGlobal);
1929 fChkBtnHeaderGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
1932 fFrameHits =
new TGGroupFrame(tf,
"Hits");
1933 fLayout =
new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 5);
1934 fWidgets->Add(fLayout);
1935 tf->AddFrame(fFrameHits, fLayout);
1939 fChkBtnCgemHitsGlobal =
new TGCheckButton(fFrameHits,
"CGEM hits",
kM_CgemHits_Global);
1940 fFrameHits->AddFrame(fChkBtnCgemHitsGlobal);
1942 fChkBtnCgemHitsXStrip =
new TGCheckButton(fFrameHits,
" X-strips ",
kM_CgemHits_XStrip);
1943 fLayout =
new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
1944 fWidgets->Add(fLayout);
1945 fFrameHits->AddFrame(fChkBtnCgemHitsXStrip, fLayout);
1947 fChkBtnCgemHitsVStrip =
new TGCheckButton(fFrameHits,
" V-strips ",
kM_CgemHits_VStrip);
1948 fFrameHits->AddFrame(fChkBtnCgemHitsVStrip, fLayout);
1951 fFrameHits->AddFrame(fChkBtnCgemHitsClusters, fLayout);
1953 fChkBtnCgemHitsFiredHL =
new TGCheckButton(fFrameHits,
" Highlight fired strips ",
kM_CgemHits_FiredHL);
1954 fFrameHits->AddFrame(fChkBtnCgemHitsFiredHL, fLayout);
1958 fChkBtnMdcHitsGlobal =
new TGCheckButton(fFrameHits,
"Mdc hits",
kM_MdcHits_Global);
1959 fFrameHits->AddFrame(fChkBtnMdcHitsGlobal);
1961 fChkBtnTofHitsGlobal =
new TGCheckButton(fFrameHits,
"Tof hits",
kM_TofHits_Global);
1962 fFrameHits->AddFrame(fChkBtnTofHitsGlobal);
1964 fChkBtnTofHitsEast =
new TGCheckButton(fFrameHits,
" East ",
kM_TofHits_East);
1965 fLayout =
new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
1966 fWidgets->Add(fLayout);
1967 fFrameHits->AddFrame(fChkBtnTofHitsEast, fLayout);
1969 fChkBtnTofHitsBarrel =
new TGCheckButton(fFrameHits,
" Barrel ",
kM_TofHits_Barrel);
1970 fFrameHits->AddFrame(fChkBtnTofHitsBarrel, fLayout);
1972 fChkBtnTofHitsWest =
new TGCheckButton(fFrameHits,
" West ",
kM_TofHits_West);
1973 fFrameHits->AddFrame(fChkBtnTofHitsWest, fLayout);
1975 fChkBtnEmcHitsGlobal =
new TGCheckButton(fFrameHits,
"Emc hits",
kM_EmcHits_Global);
1976 fFrameHits->AddFrame(fChkBtnEmcHitsGlobal);
1978 fChkBtnEmcHitsEast =
new TGCheckButton(fFrameHits,
" East ",
kM_EmcHits_East);
1979 fLayout =
new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
1980 fWidgets->Add(fLayout);
1981 fFrameHits->AddFrame(fChkBtnEmcHitsEast, fLayout);
1983 fChkBtnEmcHitsBarrel =
new TGCheckButton(fFrameHits,
" Barrel ",
kM_EmcHits_Barrel);
1984 fFrameHits->AddFrame(fChkBtnEmcHitsBarrel, fLayout);
1986 fChkBtnEmcHitsWest =
new TGCheckButton(fFrameHits,
" West ",
kM_EmcHits_West);
1987 fFrameHits->AddFrame(fChkBtnEmcHitsWest, fLayout);
1989 fChkBtnEmcHitsSide =
new TGCheckButton(fFrameHits,
" Side ",
kM_EmcHits_Side);
1990 fFrameHits->AddFrame(fChkBtnEmcHitsSide, fLayout);
1992 fChkBtnMucHitsGlobal =
new TGCheckButton(fFrameHits,
"Muc hits",
kM_MucHits_Global);
1993 fFrameHits->AddFrame(fChkBtnMucHitsGlobal);
1995 fChkBtnMucHitsEast =
new TGCheckButton(fFrameHits,
" East ",
kM_MucHits_East);
1996 fLayout =
new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
1997 fWidgets->Add(fLayout);
1998 fFrameHits->AddFrame(fChkBtnMucHitsEast, fLayout);
2000 fChkBtnMucHitsBarrel =
new TGCheckButton(fFrameHits,
" Barrel ",
kM_MucHits_Barrel);
2001 fFrameHits->AddFrame(fChkBtnMucHitsBarrel, fLayout);
2003 fChkBtnMucHitsWest =
new TGCheckButton(fFrameHits,
" West ",
kM_MucHits_West);
2004 fFrameHits->AddFrame(fChkBtnMucHitsWest, fLayout);
2007 fChkBtnCgemHitsGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2008 fChkBtnCgemHitsXStrip->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2009 fChkBtnCgemHitsVStrip->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2010 fChkBtnCgemHitsClusters->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2011 fChkBtnCgemHitsFiredHL->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2012 fChkBtnMdcHitsGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2013 fChkBtnTofHitsGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2014 fChkBtnTofHitsEast ->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2015 fChkBtnTofHitsBarrel->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2016 fChkBtnTofHitsWest ->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2017 fChkBtnEmcHitsGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2018 fChkBtnEmcHitsEast ->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2019 fChkBtnEmcHitsBarrel->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2020 fChkBtnEmcHitsWest ->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2021 fChkBtnEmcHitsSide ->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2022 fChkBtnMucHitsGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2023 fChkBtnMucHitsEast ->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2024 fChkBtnMucHitsBarrel->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2025 fChkBtnMucHitsWest ->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2028 fFrameTracks =
new TGGroupFrame(tf,
"Tracks");
2029 fLayout =
new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 5);
2030 fWidgets->Add(fLayout);
2031 tf->AddFrame(fFrameTracks, fLayout);
2033 fChkBtnTracksGlobal =
new TGCheckButton(fFrameTracks,
"REC Tracks",
kM_Tracks_Global);
2034 fFrameTracks->AddFrame(fChkBtnTracksGlobal);
2036 fChkBtnTracksMdc =
new TGCheckButton(fFrameTracks,
" Mdc && CGEM ",
kM_Tracks_Mdc);
2037 fLayout =
new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2038 fWidgets->Add(fLayout);
2039 fFrameTracks->AddFrame(fChkBtnTracksMdc, fLayout);
2041 fChkBtnTracksTof =
new TGCheckButton(fFrameTracks,
" Tof ",
kM_Tracks_Tof);
2042 fFrameTracks->AddFrame(fChkBtnTracksTof, fLayout);
2044 fChkBtnTracksEmc =
new TGCheckButton(fFrameTracks,
" Emc ",
kM_Tracks_Emc);
2045 fFrameTracks->AddFrame(fChkBtnTracksEmc, fLayout);
2047 fChkBtnTracksMuc =
new TGCheckButton(fFrameTracks,
" Muc ",
kM_Tracks_Muc);
2048 fFrameTracks->AddFrame(fChkBtnTracksMuc, fLayout);
2050 fChkBtnTracksExt =
new TGCheckButton(fFrameTracks,
" Ext ",
kM_Tracks_Ext);
2051 fFrameTracks->AddFrame(fChkBtnTracksExt, fLayout);
2053 fChkBtnTracksGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2054 fChkBtnTracksMdc->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2055 fChkBtnTracksTof->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2056 fChkBtnTracksEmc->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2057 fChkBtnTracksMuc->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2058 fChkBtnTracksExt->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2061 fChkBtnMCTruthTrack =
new TGCheckButton(fFrameTracks,
"MC Truth Tracks",
kM_MC_TruthTrack);
2062 fFrameTracks->AddFrame(fChkBtnMCTruthTrack);
2063 fChkBtnMCTruthTrack->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2066 fChkBtnTracksIdeal =
new TGCheckButton(fFrameTracks,
"Ideal Tracks",
kM_Tracks_Ideal);
2067 fFrameTracks->AddFrame(fChkBtnTracksIdeal);
2068 fChkBtnTracksIdeal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2073 tf = fTabs->AddTab(
"Detector");
2074 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
2077 fFrameSubDetector =
new TGGroupFrame(tf,
"Sub-Detector");
2080 fLayout =
new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 15);
2081 fWidgets->Add(fLayout);
2082 tf->AddFrame(fFrameSubDetector, fLayout);
2085 fChkBtnCgemGlobal =
new TGCheckButton(fFrameSubDetector,
"CGEM",
kM_Cgem_Global);
2086 fLayout =
new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2087 fFrameSubDetector->AddFrame(fChkBtnCgemGlobal, fLayout);
2088 fChkBtnCgemGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2090 fChkBtnCgemLayers =
new TGCheckButton(fFrameSubDetector,
"Layers",
kM_Cgem_Layers);
2091 fLayout =
new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2092 fFrameSubDetector->AddFrame(fChkBtnCgemLayers, fLayout);
2093 fChkBtnCgemLayers->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2095 fChkBtnCgemXStrips =
new TGCheckButton(fFrameSubDetector,
"X-strips",
kM_Cgem_XStrips);
2096 fFrameSubDetector->AddFrame(fChkBtnCgemXStrips, fLayout);
2097 fChkBtnCgemXStrips->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2099 fChkBtnCgemVStrips =
new TGCheckButton(fFrameSubDetector,
"V-strips",
kM_Cgem_VStrips);
2100 fFrameSubDetector->AddFrame(fChkBtnCgemVStrips, fLayout);
2101 fChkBtnCgemVStrips->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2104 fChkBtnMdcGlobal =
new TGCheckButton(fFrameSubDetector,
"Mdc",
kM_Mdc_Global);
2105 fLayout =
new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2106 fFrameSubDetector->AddFrame(fChkBtnMdcGlobal, fLayout);
2107 fChkBtnMdcGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2109 fChkBtnMdcTubes =
new TGCheckButton(fFrameSubDetector,
"Tubes",
kM_Mdc_Tubes);
2110 fLayout =
new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2111 fFrameSubDetector->AddFrame(fChkBtnMdcTubes, fLayout);
2112 fChkBtnMdcTubes->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2114 fChkBtnMdcWires =
new TGCheckButton(fFrameSubDetector,
"Wires",
kM_Mdc_Wires);
2115 fFrameSubDetector->AddFrame(fChkBtnMdcWires, fLayout);
2116 fChkBtnMdcWires->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2119 fChkBtnTofGlobal =
new TGCheckButton(fFrameSubDetector,
"Tof",
kM_Tof_Global);
2120 fLayout =
new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2121 fFrameSubDetector->AddFrame(fChkBtnTofGlobal, fLayout);
2122 fChkBtnTofGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2124 fChkBtnTofEast =
new TGCheckButton(fFrameSubDetector,
"East EC",
kM_Tof_East);
2125 fLayout =
new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2126 fFrameSubDetector->AddFrame(fChkBtnTofEast, fLayout);
2127 fChkBtnTofEast->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2129 fChkBtnTofBarrel =
new TGCheckButton(fFrameSubDetector,
"Barrel",
kM_Tof_Barrel);
2130 fFrameSubDetector->AddFrame(fChkBtnTofBarrel, fLayout);
2131 fChkBtnTofBarrel->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2133 fChkBtnTofWest =
new TGCheckButton(fFrameSubDetector,
"West EC",
kM_Tof_West);
2134 fFrameSubDetector->AddFrame(fChkBtnTofWest, fLayout);
2135 fChkBtnTofWest->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2138 fChkBtnEmcGlobal =
new TGCheckButton(fFrameSubDetector,
"Emc",
kM_Emc_Global);
2139 fLayout =
new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2140 fFrameSubDetector->AddFrame(fChkBtnEmcGlobal, fLayout);
2141 fChkBtnEmcGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2143 fChkBtnEmcEast =
new TGCheckButton(fFrameSubDetector,
"East EC",
kM_Emc_East);
2144 fLayout =
new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2145 fFrameSubDetector->AddFrame(fChkBtnEmcEast, fLayout);
2146 fChkBtnEmcEast->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2148 fChkBtnEmcBarrel =
new TGCheckButton(fFrameSubDetector,
"Barrel",
kM_Emc_Barrel);
2149 fFrameSubDetector->AddFrame(fChkBtnEmcBarrel, fLayout);
2150 fChkBtnEmcBarrel->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2152 fChkBtnEmcWest =
new TGCheckButton(fFrameSubDetector,
"West EC",
kM_Emc_West);
2153 fFrameSubDetector->AddFrame(fChkBtnEmcWest, fLayout);
2154 fChkBtnEmcWest->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2156 fChkBtnEmcSide =
new TGCheckButton(fFrameSubDetector,
"Side ",
kM_Emc_Side);
2157 fFrameSubDetector->AddFrame(fChkBtnEmcSide, fLayout);
2158 fChkBtnEmcSide->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2161 fChkBtnMucGlobal =
new TGCheckButton(fFrameSubDetector,
"Muc",
kM_Muc_Global);
2162 fLayout =
new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2163 fFrameSubDetector->AddFrame(fChkBtnMucGlobal, fLayout);
2164 fChkBtnMucGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2166 fChkBtnMucEast =
new TGCheckButton(fFrameSubDetector,
"East EC",
kM_Muc_East);
2167 fLayout =
new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2168 fFrameSubDetector->AddFrame(fChkBtnMucEast, fLayout);
2169 fChkBtnMucEast->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2171 fChkBtnMucBarrel =
new TGCheckButton(fFrameSubDetector,
"Barrel",
kM_Muc_Barrel);
2172 fFrameSubDetector->AddFrame(fChkBtnMucBarrel, fLayout);
2173 fChkBtnMucBarrel->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2175 fChkBtnMucWest =
new TGCheckButton(fFrameSubDetector,
"West EC",
kM_Muc_West);
2176 fFrameSubDetector->AddFrame(fChkBtnMucWest, fLayout);
2177 fChkBtnMucWest->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2179 fChkBtnMucStrips =
new TGCheckButton(fFrameSubDetector,
"Strips",
kM_Muc_Strips);
2180 fFrameSubDetector->AddFrame(fChkBtnMucStrips, fLayout);
2181 fChkBtnMucStrips->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2184 fFrameOthers =
new TGGroupFrame (tf,
"Others");
2185 fLayout =
new TGLayoutHints (kLHintsExpandX, 15, 15, 15, 15);
2186 fWidgets->Add(fLayout);
2187 tf->AddFrame (fFrameOthers, fLayout);
2189 fChkBtnBeamPipe =
new TGCheckButton (fFrameOthers,
"Beam Pipe",
kM_BeamPipe);
2190 fFrameOthers->AddFrame (fChkBtnBeamPipe);
2191 fChkBtnBeamPipe->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2193 fChkBtnZRPlaneOnXY =
new TGCheckButton (fFrameOthers,
"ZR plane on XY",
kM_ZRPlaneOnXY);
2194 fFrameOthers->AddFrame (fChkBtnZRPlaneOnXY);
2195 fChkBtnZRPlaneOnXY->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2197 fChkBtnAxis =
new TGCheckButton (fFrameOthers,
"Axis",
kM_Axis);
2198 fFrameOthers->AddFrame (fChkBtnAxis);
2199 fChkBtnAxis->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2204 tf = fTabs->AddTab(
"Others");
2205 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
2208 fFrameMdcMatch =
new TGGroupFrame(tf,
"Mdc Status");
2209 fLayout =
new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 15);
2210 fWidgets->Add(fLayout);
2211 tf->AddFrame(fFrameMdcMatch, fLayout);
2214 fChkBtnMdcTMatchGlobal->SetState(kButtonDown);
2216 fFrameMdcMatch->AddFrame(fChkBtnMdcTMatchGlobal);
2217 fChkBtnMdcTMatchGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2220 fChkBtnMdcQMatchGlobal->SetState(kButtonDown);
2222 fFrameMdcMatch->AddFrame(fChkBtnMdcQMatchGlobal);
2223 fChkBtnMdcQMatchGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2226 fChkBtnMdcQOverflowGlobal->SetState(kButtonUp);
2228 fFrameMdcMatch->AddFrame(fChkBtnMdcQOverflowGlobal);
2229 fChkBtnMdcQOverflowGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2233 fChkBtnMdcColorfulWireGlobal->SetState(kButtonUp);
2234 fFrameMdcMatch->AddFrame(fChkBtnMdcColorfulWireGlobal);
2235 fChkBtnMdcColorfulWireGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2239 fChkBtnMdcTimeSubEvTimeGlobal->SetState(kButtonUp);
2240 fFrameMdcMatch->AddFrame(fChkBtnMdcTimeSubEvTimeGlobal);
2241 fChkBtnMdcTimeSubEvTimeGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2244 fFrameTofMatch =
new TGGroupFrame(tf,
"Tof TQ Match");
2245 fLayout =
new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 15);
2246 fWidgets->Add(fLayout);
2247 tf->AddFrame(fFrameTofMatch, fLayout);
2250 fChkBtnTofTMatchGlobal->SetState(kButtonDown);
2252 fFrameTofMatch->AddFrame(fChkBtnTofTMatchGlobal);
2253 fChkBtnTofTMatchGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2256 fChkBtnTofQMatchGlobal->SetState(kButtonDown);
2258 fFrameTofMatch->AddFrame(fChkBtnTofQMatchGlobal);
2259 fChkBtnTofQMatchGlobal->Connect(
"Clicked()",
"BesClient",
this,
"SetState()");
2262 fFrameMagnetic =
new TGGroupFrame(tf,
"Magnetic Field(Tesla)");
2263 fLayout =
new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 15);
2264 fWidgets->Add(fLayout);
2265 tf->AddFrame(fFrameMagnetic, fLayout);
2268 fNumEntryMagnetic =
new TGNumberEntry(fFrameMagnetic,
2271 TGNumberFormat::kNESRealTwo,
2272 TGNumberFormat::kNEAAnyNumber);
2273 fNumEntryMagnetic->SetHeight(20);
2274 fNumEntryMagnetic->SetNumber(1.0);
2275 fNumEntryMagnetic->GetNumberEntry()
2276 ->Connect(
"ReturnPressed()",
"BesClient",
this,
"ExecuteReturn()");
2277 fNumEntryMagnetic->GetNumberEntry()
2278 ->Connect(
"TabPressed()",
"BesClient",
this,
"ChangeFocus()");
2279 fLayout =
new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 4, 4, 4);
2280 fWidgets->Add(fLayout);
2281 fFrameMagnetic->AddFrame(fNumEntryMagnetic, fLayout);
2284 for (Int_t iTab = 0; iTab < fTabs->GetNumberOfTabs(); iTab++) {
2285 fTabs->GetTabTab(iTab)->SetBackgroundPixmap(
GetPic(
"8.gif"));