1196 {
1197
1198
1199
1200 fTabs = new TGTab(fV1, fV1->GetWidth(), fV1->GetHeight());
1201
1202
1203
1204 TGCompositeFrame *tf = 0;
1205 Int_t h, charw, w;
1206
1207
1208
1209
1210 tf = fTabs->AddTab("View");
1211 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
1212
1213
1214
1215
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"));
1221
1222
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"));
1228
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"));
1234
1235
1236 fFrameAutoRotate = new TGGroupFrame(fAutoFrame, "");
1237 fLayout = new TGLayoutHints(kLHintsExpandX, 0, 0, 0, 0);
1238
1239 fWidgets->Add(fLayout);
1240 fAutoFrame->AddFrame(fFrameAutoRotate, fLayout);
1241
1242
1244 fLayout = new TGLayoutHints(kLHintsExpandX, 5, 5, 3, 2);
1245 fFrameAutoRotate->AddFrame(fChkBtnAutoRotate, fLayout);
1246 fChkBtnAutoRotate->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1247
1248
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);
1253
1254
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);
1262
1263
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);
1271
1272
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);
1277
1278
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);
1283
1284
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);
1293
1294
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);
1299
1300
1301
1302
1303
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"));
1309
1310
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"));
1316
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"));
1322
1323
1324
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);
1329
1330
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);
1335
1336
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);
1344
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);
1352
1353
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);
1358
1359
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);
1364
1365
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);
1371
1372
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()");
1380
1381 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 5, 22, 0, 0);
1382 fWidgets->Add(fLayout);
1383 fViewContent1Frame->AddFrame(fViewCounterClockWiseButton, fLayout);
1384
1385
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()");
1393
1394 fLayout = new TGLayoutHints(kLHintsBottom | kLHintsCenterX, 5, 5, 0, 0);
1395 fWidgets->Add(fLayout);
1396 fViewContent1Frame->AddFrame(fViewMoveUpButton, fLayout);
1397
1398
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()");
1406
1407 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsRight, 22, 5, 0, 0);
1408 fWidgets->Add(fLayout);
1409 fViewContent1Frame->AddFrame(fViewClockWiseButton, fLayout);
1410
1411
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);
1417
1418
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()");
1426
1427 fLayout = new TGLayoutHints(kLHintsBottom | kLHintsCenterX, 49, 2, 0, 0);
1428 fWidgets->Add(fLayout);
1429 fViewContent2Frame->AddFrame(fViewMoveLeftButton, fLayout);
1430
1431
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()");
1439
1440 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsCenterX, 0, 0, 0, 0);
1441 fWidgets->Add(fLayout);
1442 fViewContent2Frame->AddFrame(fViewMoveCenterButton, fLayout);
1443
1444
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()");
1452
1453 fLayout = new TGLayoutHints(kLHintsBottom | kLHintsCenterX, 2, 49, 0, 0);
1454 fWidgets->Add(fLayout);
1455 fViewContent2Frame->AddFrame(fViewMoveRightButton, fLayout);
1456
1457
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);
1463
1464
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()");
1472
1473
1474 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 69, 0, 0, 0);
1475 fWidgets->Add(fLayout);
1476 fViewContent3Frame->AddFrame(fViewMoveDownButton, fLayout);
1477
1478
1480 gClient->GetPicture("ViewResetAngle.gif"),
1482
1483 fViewResetAngleButton->SetToolTipText("Reset Angles");
1484 fViewResetAngleButton->SetHeight(27);
1485 fViewResetAngleButton->SetWidth(27);
1486 fViewResetAngleButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1487
1488 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 30, 0, 0, 0);
1489 fWidgets->Add(fLayout);
1490 fViewContent3Frame->AddFrame(fViewResetAngleButton, fLayout);
1491
1492
1493
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);
1498
1499
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);
1504
1505
1507 gClient->GetPicture("ViewAngleMinus.gif"),
1509 fViewAngleThetaMinusButton->SetToolTipText("Theta -");
1510 fViewAngleThetaMinusButton->SetHeight(22);
1511 fViewAngleThetaMinusButton->SetWidth(22);
1512 fViewAngleThetaMinusButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1513
1514 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1515 fWidgets->Add(fLayout);
1516 fViewAngleThetaFrame->AddFrame(fViewAngleThetaMinusButton, fLayout);
1517
1518
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);
1526
1527
1529 gClient->GetPicture("ViewAnglePlus.gif"),
1531 fViewAngleThetaPlusButton->SetToolTipText("Theta +");
1532 fViewAngleThetaPlusButton->SetHeight(22);
1533 fViewAngleThetaPlusButton->SetWidth(22);
1534 fViewAngleThetaPlusButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1535
1536 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1537 fWidgets->Add(fLayout);
1538 fViewAngleThetaFrame->AddFrame(fViewAngleThetaPlusButton, fLayout);
1539
1540
1541
1542
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);
1551
1552 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 0);
1553 fWidgets->Add(fLayout);
1554 fViewAngleThetaFrame->AddFrame(fViewAngleThetaNumber, fLayout);
1555
1556
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);
1561
1562
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);
1567
1568
1570 gClient->GetPicture("ViewAngleMinus.gif"),
1572 fViewAnglePhiMinusButton->SetToolTipText("Phi -");
1573 fViewAnglePhiMinusButton->SetHeight(22);
1574 fViewAnglePhiMinusButton->SetWidth(22);
1575 fViewAnglePhiMinusButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1576
1577 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1578 fWidgets->Add(fLayout);
1579 fViewAnglePhiFrame->AddFrame(fViewAnglePhiMinusButton, fLayout);
1580
1581
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);
1589
1590
1592 gClient->GetPicture("ViewAnglePlus.gif"),
1594 fViewAnglePhiPlusButton->SetToolTipText("Phi +");
1595 fViewAnglePhiPlusButton->SetHeight(22);
1596 fViewAnglePhiPlusButton->SetWidth(22);
1597 fViewAnglePhiPlusButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1598
1599 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1600 fWidgets->Add(fLayout);
1601 fViewAnglePhiFrame->AddFrame(fViewAnglePhiPlusButton, fLayout);
1602
1603
1604
1605
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);
1614
1615 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 0);
1616 fWidgets->Add(fLayout);
1617 fViewAnglePhiFrame->AddFrame(fViewAnglePhiNumber, fLayout);
1618
1619
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);
1624
1625
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);
1630
1631
1633 gClient->GetPicture("ViewAngleMinus.gif"),
1635 fViewAnglePsiMinusButton->SetToolTipText("Psi -");
1636 fViewAnglePsiMinusButton->SetHeight(22);
1637 fViewAnglePsiMinusButton->SetWidth(22);
1638 fViewAnglePsiMinusButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1639
1640 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1641 fWidgets->Add(fLayout);
1642 fViewAnglePsiFrame->AddFrame(fViewAnglePsiMinusButton, fLayout);
1643
1644
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);
1652
1653
1655 gClient->GetPicture("ViewAnglePlus.gif"),
1657 fViewAnglePsiPlusButton->SetToolTipText("Psi +");
1658 fViewAnglePsiPlusButton->SetHeight(22);
1659 fViewAnglePsiPlusButton->SetWidth(22);
1660 fViewAnglePsiPlusButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1661
1662 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1663 fWidgets->Add(fLayout);
1664 fViewAnglePsiFrame->AddFrame(fViewAnglePsiPlusButton, fLayout);
1665
1666
1667
1668
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);
1677
1678 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 0);
1679 fWidgets->Add(fLayout);
1680 fViewAnglePsiFrame->AddFrame(fViewAnglePsiNumber, fLayout);
1681
1682
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);
1687
1688
1689
1690
1691 tf = fTabs->AddTab("Event");
1692 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
1693
1694
1695
1696
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"));
1702
1703
1704
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"));
1710
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"));
1716
1717
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"));
1723
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);
1728
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);
1737
1738
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);
1743
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);
1748
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);
1757
1758
1759
1760
1761
1762
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);
1770
1771
1772 fEventPlayButtonFrame = new TGCompositeFrame(fEventControlFrame, fEventControlFrame->GetWidth(), 30, kHorizontalFrame);
1773
1774 fLayout = new TGLayoutHints(kLHintsCenterX | kLHintsTop, 2, 2, 2, 2);
1775 fWidgets->Add(fLayout);
1776 fEventControlFrame->AddFrame(fEventPlayButtonFrame, fLayout);
1777
1778
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()");
1786
1787 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 8, 0, 0, 4);
1788 fWidgets->Add(fLayout);
1789 fEventPlayButtonFrame->AddFrame(fPrevEventButton, fLayout);
1790
1791
1794 fNextEventButton->SetToolTipText("Next Event");
1795 fNextEventButton->SetHeight(26);
1796 fNextEventButton->SetWidth(26);
1797 fNextEventButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1798
1799 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 0, 10, 0, 4);
1800 fWidgets->Add(fLayout);
1801 fEventPlayButtonFrame->AddFrame(fNextEventButton, fLayout);
1802
1803
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()");
1811
1812 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 5, 0, 0, 4);
1813 fWidgets->Add(fLayout);
1814 fEventPlayButtonFrame->AddFrame(fPlayEventButton, fLayout);
1815
1816
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()");
1824
1825 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 0, 8, 0, 4);
1826 fWidgets->Add(fLayout);
1827 fEventPlayButtonFrame->AddFrame(fFirstEventButton, fLayout);
1828
1829
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);
1834
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);
1839
1840
1841
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);
1846
1847
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);
1858
1859
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);
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918 tf = fTabs->AddTab("REC");
1919
1920 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
1921
1922
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()");
1930
1931
1932 fFrameHits = new TGGroupFrame(tf, "Hits");
1933 fLayout = new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 5);
1934 fWidgets->Add(fLayout);
1935 tf->AddFrame(fFrameHits, fLayout);
1936
1937
1938
1939 fChkBtnCgemHitsGlobal =
new TGCheckButton(fFrameHits,
"CGEM hits",
kM_CgemHits_Global);
1940 fFrameHits->AddFrame(fChkBtnCgemHitsGlobal);
1941
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);
1946
1947 fChkBtnCgemHitsVStrip =
new TGCheckButton(fFrameHits,
" V-strips ",
kM_CgemHits_VStrip);
1948 fFrameHits->AddFrame(fChkBtnCgemHitsVStrip, fLayout);
1949
1951 fFrameHits->AddFrame(fChkBtnCgemHitsClusters, fLayout);
1952
1953 fChkBtnCgemHitsFiredHL =
new TGCheckButton(fFrameHits,
" Highlight fired strips ",
kM_CgemHits_FiredHL);
1954 fFrameHits->AddFrame(fChkBtnCgemHitsFiredHL, fLayout);
1955
1956
1957
1958 fChkBtnMdcHitsGlobal =
new TGCheckButton(fFrameHits,
"Mdc hits",
kM_MdcHits_Global);
1959 fFrameHits->AddFrame(fChkBtnMdcHitsGlobal);
1960
1961 fChkBtnTofHitsGlobal =
new TGCheckButton(fFrameHits,
"Tof hits",
kM_TofHits_Global);
1962 fFrameHits->AddFrame(fChkBtnTofHitsGlobal);
1963
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);
1968
1969 fChkBtnTofHitsBarrel =
new TGCheckButton(fFrameHits,
" Barrel ",
kM_TofHits_Barrel);
1970 fFrameHits->AddFrame(fChkBtnTofHitsBarrel, fLayout);
1971
1972 fChkBtnTofHitsWest =
new TGCheckButton(fFrameHits,
" West ",
kM_TofHits_West);
1973 fFrameHits->AddFrame(fChkBtnTofHitsWest, fLayout);
1974
1975 fChkBtnEmcHitsGlobal =
new TGCheckButton(fFrameHits,
"Emc hits",
kM_EmcHits_Global);
1976 fFrameHits->AddFrame(fChkBtnEmcHitsGlobal);
1977
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);
1982
1983 fChkBtnEmcHitsBarrel =
new TGCheckButton(fFrameHits,
" Barrel ",
kM_EmcHits_Barrel);
1984 fFrameHits->AddFrame(fChkBtnEmcHitsBarrel, fLayout);
1985
1986 fChkBtnEmcHitsWest =
new TGCheckButton(fFrameHits,
" West ",
kM_EmcHits_West);
1987 fFrameHits->AddFrame(fChkBtnEmcHitsWest, fLayout);
1988
1989 fChkBtnEmcHitsSide =
new TGCheckButton(fFrameHits,
" Side ",
kM_EmcHits_Side);
1990 fFrameHits->AddFrame(fChkBtnEmcHitsSide, fLayout);
1991
1992 fChkBtnMucHitsGlobal =
new TGCheckButton(fFrameHits,
"Muc hits",
kM_MucHits_Global);
1993 fFrameHits->AddFrame(fChkBtnMucHitsGlobal);
1994
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);
1999
2000 fChkBtnMucHitsBarrel =
new TGCheckButton(fFrameHits,
" Barrel ",
kM_MucHits_Barrel);
2001 fFrameHits->AddFrame(fChkBtnMucHitsBarrel, fLayout);
2002
2003 fChkBtnMucHitsWest =
new TGCheckButton(fFrameHits,
" West ",
kM_MucHits_West);
2004 fFrameHits->AddFrame(fChkBtnMucHitsWest, fLayout);
2005
2006
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()");
2026
2027
2028 fFrameTracks = new TGGroupFrame(tf, "Tracks");
2029 fLayout = new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 5);
2030 fWidgets->Add(fLayout);
2031 tf->AddFrame(fFrameTracks, fLayout);
2032
2033 fChkBtnTracksGlobal =
new TGCheckButton(fFrameTracks,
"REC Tracks",
kM_Tracks_Global);
2034 fFrameTracks->AddFrame(fChkBtnTracksGlobal);
2035
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);
2040
2041 fChkBtnTracksTof =
new TGCheckButton(fFrameTracks,
" Tof ",
kM_Tracks_Tof);
2042 fFrameTracks->AddFrame(fChkBtnTracksTof, fLayout);
2043
2044 fChkBtnTracksEmc =
new TGCheckButton(fFrameTracks,
" Emc ",
kM_Tracks_Emc);
2045 fFrameTracks->AddFrame(fChkBtnTracksEmc, fLayout);
2046
2047 fChkBtnTracksMuc =
new TGCheckButton(fFrameTracks,
" Muc ",
kM_Tracks_Muc);
2048 fFrameTracks->AddFrame(fChkBtnTracksMuc, fLayout);
2049
2050 fChkBtnTracksExt =
new TGCheckButton(fFrameTracks,
" Ext ",
kM_Tracks_Ext);
2051 fFrameTracks->AddFrame(fChkBtnTracksExt, fLayout);
2052
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()");
2059
2060
2061 fChkBtnMCTruthTrack =
new TGCheckButton(fFrameTracks,
"MC Truth Tracks",
kM_MC_TruthTrack);
2062 fFrameTracks->AddFrame(fChkBtnMCTruthTrack);
2063 fChkBtnMCTruthTrack->Connect("Clicked()", "BesClient", this, "SetState()");
2064
2065
2066
2067
2068 tf = fTabs->AddTab("Detector");
2069 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
2070
2071
2072 fFrameSubDetector = new TGGroupFrame(tf, "Sub-Detector");
2073
2074
2075 fLayout = new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 15);
2076 fWidgets->Add(fLayout);
2077 tf->AddFrame(fFrameSubDetector, fLayout);
2078
2079
2080 fChkBtnCgemGlobal =
new TGCheckButton(fFrameSubDetector,
"CGEM",
kM_Cgem_Global);
2081 fLayout = new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2082 fFrameSubDetector->AddFrame(fChkBtnCgemGlobal, fLayout);
2083 fChkBtnCgemGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2084
2085 fChkBtnCgemLayers =
new TGCheckButton(fFrameSubDetector,
"Layers",
kM_Cgem_Layers);
2086 fLayout = new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2087 fFrameSubDetector->AddFrame(fChkBtnCgemLayers, fLayout);
2088 fChkBtnCgemLayers->Connect("Clicked()", "BesClient", this, "SetState()");
2089
2090 fChkBtnCgemXStrips =
new TGCheckButton(fFrameSubDetector,
"X-strips",
kM_Cgem_XStrips);
2091 fFrameSubDetector->AddFrame(fChkBtnCgemXStrips, fLayout);
2092 fChkBtnCgemXStrips->Connect("Clicked()", "BesClient", this, "SetState()");
2093
2094 fChkBtnCgemVStrips =
new TGCheckButton(fFrameSubDetector,
"V-strips",
kM_Cgem_VStrips);
2095 fFrameSubDetector->AddFrame(fChkBtnCgemVStrips, fLayout);
2096 fChkBtnCgemVStrips->Connect("Clicked()", "BesClient", this, "SetState()");
2097
2098
2099 fChkBtnMdcGlobal =
new TGCheckButton(fFrameSubDetector,
"Mdc",
kM_Mdc_Global);
2100 fLayout = new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2101 fFrameSubDetector->AddFrame(fChkBtnMdcGlobal, fLayout);
2102 fChkBtnMdcGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2103
2104 fChkBtnMdcTubes =
new TGCheckButton(fFrameSubDetector,
"Tubes",
kM_Mdc_Tubes);
2105 fLayout = new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2106 fFrameSubDetector->AddFrame(fChkBtnMdcTubes, fLayout);
2107 fChkBtnMdcTubes->Connect("Clicked()", "BesClient", this, "SetState()");
2108
2109 fChkBtnMdcWires =
new TGCheckButton(fFrameSubDetector,
"Wires",
kM_Mdc_Wires);
2110 fFrameSubDetector->AddFrame(fChkBtnMdcWires, fLayout);
2111 fChkBtnMdcWires->Connect("Clicked()", "BesClient", this, "SetState()");
2112
2113
2114 fChkBtnTofGlobal =
new TGCheckButton(fFrameSubDetector,
"Tof",
kM_Tof_Global);
2115 fLayout = new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2116 fFrameSubDetector->AddFrame(fChkBtnTofGlobal, fLayout);
2117 fChkBtnTofGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2118
2119 fChkBtnTofEast =
new TGCheckButton(fFrameSubDetector,
"East EC",
kM_Tof_East);
2120 fLayout = new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2121 fFrameSubDetector->AddFrame(fChkBtnTofEast, fLayout);
2122 fChkBtnTofEast->Connect("Clicked()", "BesClient", this, "SetState()");
2123
2124 fChkBtnTofBarrel =
new TGCheckButton(fFrameSubDetector,
"Barrel",
kM_Tof_Barrel);
2125 fFrameSubDetector->AddFrame(fChkBtnTofBarrel, fLayout);
2126 fChkBtnTofBarrel->Connect("Clicked()", "BesClient", this, "SetState()");
2127
2128 fChkBtnTofWest =
new TGCheckButton(fFrameSubDetector,
"West EC",
kM_Tof_West);
2129 fFrameSubDetector->AddFrame(fChkBtnTofWest, fLayout);
2130 fChkBtnTofWest->Connect("Clicked()", "BesClient", this, "SetState()");
2131
2132
2133 fChkBtnEmcGlobal =
new TGCheckButton(fFrameSubDetector,
"Emc",
kM_Emc_Global);
2134 fLayout = new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2135 fFrameSubDetector->AddFrame(fChkBtnEmcGlobal, fLayout);
2136 fChkBtnEmcGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2137
2138 fChkBtnEmcEast =
new TGCheckButton(fFrameSubDetector,
"East EC",
kM_Emc_East);
2139 fLayout = new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2140 fFrameSubDetector->AddFrame(fChkBtnEmcEast, fLayout);
2141 fChkBtnEmcEast->Connect("Clicked()", "BesClient", this, "SetState()");
2142
2143 fChkBtnEmcBarrel =
new TGCheckButton(fFrameSubDetector,
"Barrel",
kM_Emc_Barrel);
2144 fFrameSubDetector->AddFrame(fChkBtnEmcBarrel, fLayout);
2145 fChkBtnEmcBarrel->Connect("Clicked()", "BesClient", this, "SetState()");
2146
2147 fChkBtnEmcWest =
new TGCheckButton(fFrameSubDetector,
"West EC",
kM_Emc_West);
2148 fFrameSubDetector->AddFrame(fChkBtnEmcWest, fLayout);
2149 fChkBtnEmcWest->Connect("Clicked()", "BesClient", this, "SetState()");
2150
2151 fChkBtnEmcSide =
new TGCheckButton(fFrameSubDetector,
"Side ",
kM_Emc_Side);
2152 fFrameSubDetector->AddFrame(fChkBtnEmcSide, fLayout);
2153 fChkBtnEmcSide->Connect("Clicked()", "BesClient", this, "SetState()");
2154
2155
2156 fChkBtnMucGlobal =
new TGCheckButton(fFrameSubDetector,
"Muc",
kM_Muc_Global);
2157 fLayout = new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2158 fFrameSubDetector->AddFrame(fChkBtnMucGlobal, fLayout);
2159 fChkBtnMucGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2160
2161 fChkBtnMucEast =
new TGCheckButton(fFrameSubDetector,
"East EC",
kM_Muc_East);
2162 fLayout = new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2163 fFrameSubDetector->AddFrame(fChkBtnMucEast, fLayout);
2164 fChkBtnMucEast->Connect("Clicked()", "BesClient", this, "SetState()");
2165
2166 fChkBtnMucBarrel =
new TGCheckButton(fFrameSubDetector,
"Barrel",
kM_Muc_Barrel);
2167 fFrameSubDetector->AddFrame(fChkBtnMucBarrel, fLayout);
2168 fChkBtnMucBarrel->Connect("Clicked()", "BesClient", this, "SetState()");
2169
2170 fChkBtnMucWest =
new TGCheckButton(fFrameSubDetector,
"West EC",
kM_Muc_West);
2171 fFrameSubDetector->AddFrame(fChkBtnMucWest, fLayout);
2172 fChkBtnMucWest->Connect("Clicked()", "BesClient", this, "SetState()");
2173
2174 fChkBtnMucStrips =
new TGCheckButton(fFrameSubDetector,
"Strips",
kM_Muc_Strips);
2175 fFrameSubDetector->AddFrame(fChkBtnMucStrips, fLayout);
2176 fChkBtnMucStrips->Connect("Clicked()", "BesClient", this, "SetState()");
2177
2178
2179 fFrameOthers = new TGGroupFrame (tf, "Others");
2180 fLayout = new TGLayoutHints (kLHintsExpandX, 15, 15, 15, 15);
2181 fWidgets->Add(fLayout);
2182 tf->AddFrame (fFrameOthers, fLayout);
2183
2184 fChkBtnBeamPipe =
new TGCheckButton (fFrameOthers,
"Beam Pipe",
kM_BeamPipe);
2185 fFrameOthers->AddFrame (fChkBtnBeamPipe);
2186 fChkBtnBeamPipe->Connect("Clicked()", "BesClient", this, "SetState()");
2187
2188 fChkBtnZRPlaneOnXY =
new TGCheckButton (fFrameOthers,
"ZR plane on XY",
kM_ZRPlaneOnXY);
2189 fFrameOthers->AddFrame (fChkBtnZRPlaneOnXY);
2190 fChkBtnZRPlaneOnXY->Connect("Clicked()", "BesClient", this, "SetState()");
2191
2192 fChkBtnAxis =
new TGCheckButton (fFrameOthers,
"Axis",
kM_Axis);
2193 fFrameOthers->AddFrame (fChkBtnAxis);
2194 fChkBtnAxis->Connect("Clicked()", "BesClient", this, "SetState()");
2195
2196
2197
2198
2199 tf = fTabs->AddTab("Others");
2200 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
2201
2202
2203 fFrameMdcMatch =new TGGroupFrame(tf, "Mdc Status");
2204 fLayout = new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 15);
2205 fWidgets->Add(fLayout);
2206 tf->AddFrame(fFrameMdcMatch, fLayout);
2207
2209 fChkBtnMdcTMatchGlobal->SetState(kButtonDown);
2210
2211 fFrameMdcMatch->AddFrame(fChkBtnMdcTMatchGlobal);
2212 fChkBtnMdcTMatchGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2213
2215 fChkBtnMdcQMatchGlobal->SetState(kButtonDown);
2216
2217 fFrameMdcMatch->AddFrame(fChkBtnMdcQMatchGlobal);
2218 fChkBtnMdcQMatchGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2219
2221 fChkBtnMdcQOverflowGlobal->SetState(kButtonUp);
2222
2223 fFrameMdcMatch->AddFrame(fChkBtnMdcQOverflowGlobal);
2224 fChkBtnMdcQOverflowGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2225
2226
2228 fChkBtnMdcColorfulWireGlobal->SetState(kButtonUp);
2229 fFrameMdcMatch->AddFrame(fChkBtnMdcColorfulWireGlobal);
2230 fChkBtnMdcColorfulWireGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2231
2232
2234 fChkBtnMdcTimeSubEvTimeGlobal->SetState(kButtonUp);
2235 fFrameMdcMatch->AddFrame(fChkBtnMdcTimeSubEvTimeGlobal);
2236 fChkBtnMdcTimeSubEvTimeGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2237
2238
2239 fFrameTofMatch =new TGGroupFrame(tf, "Tof TQ Match");
2240 fLayout = new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 15);
2241 fWidgets->Add(fLayout);
2242 tf->AddFrame(fFrameTofMatch, fLayout);
2243
2245 fChkBtnTofTMatchGlobal->SetState(kButtonDown);
2246
2247 fFrameTofMatch->AddFrame(fChkBtnTofTMatchGlobal);
2248 fChkBtnTofTMatchGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2249
2251 fChkBtnTofQMatchGlobal->SetState(kButtonDown);
2252
2253 fFrameTofMatch->AddFrame(fChkBtnTofQMatchGlobal);
2254 fChkBtnTofQMatchGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2255
2256
2257 fFrameMagnetic =new TGGroupFrame(tf, "Magnetic Field(Tesla)");
2258 fLayout = new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 15);
2259 fWidgets->Add(fLayout);
2260 tf->AddFrame(fFrameMagnetic, fLayout);
2261
2262
2263 fNumEntryMagnetic = new TGNumberEntry(fFrameMagnetic,
2264 1.0, 4,
2266 TGNumberFormat::kNESRealTwo,
2267 TGNumberFormat::kNEAAnyNumber);
2268 fNumEntryMagnetic->SetHeight(20);
2269 fNumEntryMagnetic->SetNumber(1.0);
2270 fNumEntryMagnetic->GetNumberEntry()
2271 ->Connect("ReturnPressed()","BesClient",this,"ExecuteReturn()");
2272 fNumEntryMagnetic->GetNumberEntry()
2273 ->Connect("TabPressed()","BesClient",this,"ChangeFocus()");
2274 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 4, 4, 4);
2275 fWidgets->Add(fLayout);
2276 fFrameMagnetic->AddFrame(fNumEntryMagnetic, fLayout);
2277
2278
2279 for (Int_t iTab = 0; iTab < fTabs->GetNumberOfTabs(); iTab++) {
2280 fTabs->GetTabTab(iTab)->SetBackgroundPixmap(
GetPic(
"8.gif"));
2281 }
2282}
@ kM_Mdc_QNotOverflow_Global
@ kM_Mdc_ColorfulWire_Global
@ kM_Mdc_MdcTimeSubEvTime_Global
@ kM_Button_ViewAnglePhiMinus
@ kM_Button_ViewAnglePsiNumber
@ kM_Button_ViewAnglePhiNumber
@ kM_Button_ViewResetAngle
@ kM_Slider_ViewAngleTheta
@ kM_Button_ViewAnglePhiPlus
@ kM_Button_ViewMoveRight
@ kM_Button_ViewMoveCenter
@ kM_Button_EventPlaySpeed
@ kM_Button_ViewClockWise
@ kM_Button_ViewAngleThetaMinus
@ kM_Button_ViewAnglePsiMinus
@ kM_Button_ViewAnglePsiPlus
@ kM_Button_ViewCounterClockWise
@ kM_Button_ViewAngleThetaPlus
@ kM_Button_ViewAngleThetaNumber
Int_t GetEventPlaySpeed()
Double_t GetRotateSpeed()