1156 {
1157
1158
1159
1160 fTabs = new TGTab(fV1, fV1->GetWidth(), fV1->GetHeight());
1161
1162
1163
1164 TGCompositeFrame *tf = 0;
1166
1167
1168
1169
1170 tf = fTabs->AddTab("View");
1171 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
1172
1173
1174
1175
1176 fAutoFrame = new TGCompositeFrame(tf, tf->GetWidth(), tf->GetHeight(), kVerticalFrame);
1177 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX , 15, 15, 15, 10);
1178 fWidgets->Add(fLayout);
1179 tf->AddFrame(fAutoFrame, fLayout);
1180 fAutoFrame->SetBackgroundPixmap(
GetPic(
"AutoFrameBckgnd.gif"));
1181
1182
1183 fAutoTextFrame = new TGCompositeFrame(fAutoFrame, fAutoFrame->GetWidth(), 30, kHorizontalFrame);
1184 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX, 0, 0, 0, 0);
1185 fWidgets->Add(fLayout);
1186 fAutoFrame->AddFrame(fAutoTextFrame, fLayout);
1187 fAutoTextFrame->SetBackgroundPixmap(
GetPic(
"AutoControlBckgnd.gif"));
1188
1189 fAutoTextLabel = new TGLabel(fAutoTextFrame,"Auto Control ");
1190 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft | kLHintsExpandX , 2, 73, 4, 0);
1191 fWidgets->Add(fLayout);
1192 fAutoTextFrame->AddFrame(fAutoTextLabel, fLayout);
1193 fAutoTextLabel->SetBackgroundPixmap(
GetPic(
"AutoControlBckgnd.gif"));
1194
1195
1196 fFrameAutoRotate = new TGGroupFrame(fAutoFrame, "");
1197 fLayout = new TGLayoutHints(kLHintsExpandX, 0, 0, 0, 0);
1198
1199 fWidgets->Add(fLayout);
1200 fAutoFrame->AddFrame(fFrameAutoRotate, fLayout);
1201
1202
1204 fLayout = new TGLayoutHints(kLHintsExpandX, 5, 5, 3, 2);
1205 fFrameAutoRotate->AddFrame(fChkBtnAutoRotate, fLayout);
1206 fChkBtnAutoRotate->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1207
1208
1209 fRotateSpeedFrame = new TGCompositeFrame(fFrameAutoRotate, fFrameAutoRotate->GetWidth()-20, 30, kHorizontalFrame);
1210 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop, 0, 0, 2, 2);
1211 fWidgets->Add(fLayout);
1212 fFrameAutoRotate->AddFrame(fRotateSpeedFrame, fLayout);
1213
1214
1217 (TGNumberFormat::EStyle) 1, (TGNumberFormat::EAttribute) 1 );
1218 h = fNumEntryRotateSpeed->GetDefaultHeight();
1219 charw = fNumEntryRotateSpeed->GetCharWidth("0123456");
1220 w = charw * TMath::Abs(4) / 10 + 8 + 2 * h / 3;
1221 fNumEntryRotateSpeed->Resize(
w, h);
1222
1223
1224 fNumEntryRotateSpeed->SetHeight(20);
1226 fNumEntryRotateSpeed->Connect("ReturnPressed()","BesClient",this,"ExecuteReturn()");
1227 fNumEntryRotateSpeed->Connect("TabPressed()","BesClient",this,"ChangeFocus()");
1228 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 4, 2, 2);
1229 fWidgets->Add(fLayout);
1230 fRotateSpeedFrame->AddFrame(fNumEntryRotateSpeed, fLayout);
1231
1232
1233 fRotateSpeedLabel = new TGLabel(fRotateSpeedFrame," deg/sec ");
1234 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsRight, 2, 4, 2, 2);
1235 fWidgets->Add(fLayout);
1236 fRotateSpeedFrame->AddFrame(fRotateSpeedLabel, fLayout);
1237
1238
1239 fRotateFPSFrame = new TGCompositeFrame(fFrameAutoRotate, fFrameAutoRotate->GetWidth()-20, 30, kHorizontalFrame);
1240 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop, 0, 0, 2, 2);
1241 fWidgets->Add(fLayout);
1242 fFrameAutoRotate->AddFrame(fRotateFPSFrame, fLayout);
1243
1244
1245 fNumEntryRotateFPS =
new TGNumberEntry(fRotateFPSFrame,this->
GetRotateFPS(), 3,
kM_Button_RotateFPS,(TGNumberFormat::EStyle) 0,(TGNumberFormat::EAttribute) 1);
1246 fNumEntryRotateFPS->SetHeight(20);
1248 fNumEntryRotateFPS->GetNumberEntry()->Connect("ReturnPressed()","BesClient",this,"ExecuteReturn()");
1249 fNumEntryRotateFPS->GetNumberEntry()->Connect("TabPressed()","BesClient",this,"ChangeFocus()");
1250 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 4, 2, 2);
1251 fWidgets->Add(fLayout);
1252 fRotateFPSFrame->AddFrame(fNumEntryRotateFPS, fLayout);
1253
1254
1255 fRotateFPSLabel = new TGLabel(fRotateFPSFrame," fps ");
1256 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsRight, 2, 4, 2, 2);
1257 fWidgets->Add(fLayout);
1258 fRotateFPSFrame->AddFrame(fRotateFPSLabel, fLayout);
1259
1260
1261
1262
1263
1264 fViewFrame = new TGCompositeFrame(tf, tf->GetWidth(), tf->GetHeight(), kVerticalFrame);
1265 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX , 15, 15, 15, 10);
1266 fWidgets->Add(fLayout);
1267 tf->AddFrame(fViewFrame, fLayout);
1268 fViewFrame->SetBackgroundPixmap(
GetPic(
"ViewFrameBckgnd.gif"));
1269
1270
1271 fViewTextFrame = new TGCompositeFrame(fViewFrame, fViewFrame->GetWidth(), 30, kHorizontalFrame);
1272 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX, 0, 0, 0, 0);
1273 fWidgets->Add(fLayout);
1274 fViewFrame->AddFrame(fViewTextFrame, fLayout);
1275 fViewTextFrame->SetBackgroundPixmap(
GetPic(
"ViewControlBckgnd.gif"));
1276
1277 fViewTextLabel = new TGLabel(fViewTextFrame,"View Control ");
1278 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft | kLHintsExpandX , 2, 73, 4, 4);
1279 fWidgets->Add(fLayout);
1280 fViewTextFrame->AddFrame(fViewTextLabel, fLayout);
1281 fViewTextLabel->SetBackgroundPixmap(
GetPic(
"ViewControlBckgnd.gif"));
1282
1283
1284
1285 fRotateStepFrame = new TGCompositeFrame(fViewFrame, fViewFrame->GetWidth()-20, 30, kHorizontalFrame);
1286 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop, 0, 0, 8, 5);
1287 fWidgets->Add(fLayout);
1288 fViewFrame->AddFrame(fRotateStepFrame, fLayout);
1289
1290
1291 fRotateStepLabel = new TGLabel(fRotateStepFrame," Step:");
1292 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 10, 2, 0, 0);
1293 fWidgets->Add(fLayout);
1294 fRotateStepFrame->AddFrame(fRotateStepLabel, fLayout);
1295
1296
1299 (TGNumberFormat::EStyle) 2, (TGNumberFormat::EAttribute) 1 );
1300 h = fNumEntryRotateStep->GetDefaultHeight();
1301 charw = fNumEntryRotateStep->GetCharWidth("0123456");
1302 w = charw * TMath::Abs(5) / 10 + 8 + 2 * h / 3;
1303 fNumEntryRotateStep->Resize(
w, h);
1304
1305 fNumEntryRotateStep->SetHeight(20);
1307 fNumEntryRotateStep->Connect("ReturnPressed()","BesClient",this,"ExecuteReturn()");
1308 fNumEntryRotateStep->Connect("TabPressed()","BesClient",this,"ChangeFocus()");
1309 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 0, 0, 0);
1310 fWidgets->Add(fLayout);
1311 fRotateStepFrame->AddFrame(fNumEntryRotateStep, fLayout);
1312
1313
1314 fRotateStepUnitLabel = new TGLabel(fRotateStepFrame," deg ");
1315 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 0, 4, 0, 0);
1316 fWidgets->Add(fLayout);
1317 fRotateStepFrame->AddFrame(fRotateStepUnitLabel, fLayout);
1318
1319
1320 fViewContentFrame = new TGCompositeFrame(fViewFrame, fViewFrame->GetWidth(), fViewFrame->GetHeight()-30, kVerticalFrame);
1321 fLayout = new TGLayoutHints(kLHintsExpandX | kLHintsExpandY , 0, 0, 0, 0);
1322 fWidgets->Add(fLayout);
1323 fViewFrame->AddFrame(fViewContentFrame, fLayout);
1324
1325
1326 fViewContent1Frame = new TGCompositeFrame(fViewContentFrame, fViewFrame->GetWidth(), 39, kHorizontalFrame);
1327 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop , 0, 0, 3, 0);
1328 fWidgets->Add(fLayout);
1329 fViewContent1Frame->SetBackgroundPixmap(
GetPic(
"ViewContent1Bckgnd.gif"));
1330 fViewContentFrame->AddFrame(fViewContent1Frame, fLayout);
1331
1332
1334 gClient->GetPicture("ViewCounterClockwise.gif"),
1336 fViewCounterClockWiseButton->SetToolTipText("Rotate Counter Clockwise");
1337 fViewCounterClockWiseButton->SetHeight(37);
1338 fViewCounterClockWiseButton->SetWidth(37);
1339 fViewCounterClockWiseButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1340
1341 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 5, 22, 0, 0);
1342 fWidgets->Add(fLayout);
1343 fViewContent1Frame->AddFrame(fViewCounterClockWiseButton, fLayout);
1344
1345
1347 gClient->GetPicture("ViewMoveUp.gif"),
1349 fViewMoveUpButton->SetToolTipText("Move Up");
1350 fViewMoveUpButton->SetHeight(20);
1351 fViewMoveUpButton->SetWidth(23);
1352 fViewMoveUpButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1353
1354 fLayout = new TGLayoutHints(kLHintsBottom | kLHintsCenterX, 5, 5, 0, 0);
1355 fWidgets->Add(fLayout);
1356 fViewContent1Frame->AddFrame(fViewMoveUpButton, fLayout);
1357
1358
1360 gClient->GetPicture("ViewClockwise.gif"),
1362 fViewClockWiseButton->SetToolTipText("Rotate Clockwise");
1363 fViewClockWiseButton->SetHeight(37);
1364 fViewClockWiseButton->SetWidth(37);
1365 fViewClockWiseButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1366
1367 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsRight, 22, 5, 0, 0);
1368 fWidgets->Add(fLayout);
1369 fViewContent1Frame->AddFrame(fViewClockWiseButton, fLayout);
1370
1371
1372 fViewContent2Frame = new TGCompositeFrame(fViewContentFrame, fViewFrame->GetWidth(), 23, kHorizontalFrame);
1373 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop , 0, 0, 0, 0);
1374 fWidgets->Add(fLayout);
1375 fViewContent2Frame->SetBackgroundPixmap(
GetPic(
"ViewContent2Bckgnd.gif"));
1376 fViewContentFrame->AddFrame(fViewContent2Frame, fLayout);
1377
1378
1380 gClient->GetPicture("ViewMoveLeft.gif"),
1382 fViewMoveLeftButton->SetToolTipText("Move Left");
1383 fViewMoveLeftButton->SetHeight(23);
1384 fViewMoveLeftButton->SetWidth(23);
1385 fViewMoveLeftButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1386
1387 fLayout = new TGLayoutHints(kLHintsBottom | kLHintsCenterX, 49, 2, 0, 0);
1388 fWidgets->Add(fLayout);
1389 fViewContent2Frame->AddFrame(fViewMoveLeftButton, fLayout);
1390
1391
1393 gClient->GetPicture("ViewMoveCenter.gif"),
1395 fViewMoveCenterButton->SetToolTipText("Move Center");
1396 fViewMoveCenterButton->SetHeight(13);
1397 fViewMoveCenterButton->SetWidth(13);
1398 fViewMoveCenterButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1399
1400 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsCenterX, 0, 0, 0, 0);
1401 fWidgets->Add(fLayout);
1402 fViewContent2Frame->AddFrame(fViewMoveCenterButton, fLayout);
1403
1404
1406 gClient->GetPicture("ViewMoveRight.gif"),
1408 fViewMoveRightButton->SetToolTipText("Move Right");
1409 fViewMoveRightButton->SetHeight(23);
1410 fViewMoveRightButton->SetWidth(23);
1411 fViewMoveRightButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1412
1413 fLayout = new TGLayoutHints(kLHintsBottom | kLHintsCenterX, 2, 49, 0, 0);
1414 fWidgets->Add(fLayout);
1415 fViewContent2Frame->AddFrame(fViewMoveRightButton, fLayout);
1416
1417
1418 fViewContent3Frame = new TGCompositeFrame(fViewContentFrame, fViewFrame->GetWidth(), 32, kHorizontalFrame);
1419 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop , 0, 0, 0, 3);
1420 fWidgets->Add(fLayout);
1421 fViewContent3Frame->SetBackgroundPixmap(
GetPic(
"ViewContent3Bckgnd.gif"));
1422 fViewContentFrame->AddFrame(fViewContent3Frame, fLayout);
1423
1424
1426 gClient->GetPicture("ViewMoveDown.gif"),
1428 fViewMoveDownButton->SetToolTipText("Move Down");
1429 fViewMoveDownButton->SetHeight(32);
1430 fViewMoveDownButton->SetWidth(23);
1431 fViewMoveDownButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1432
1433
1434 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 69, 0, 0, 0);
1435 fWidgets->Add(fLayout);
1436 fViewContent3Frame->AddFrame(fViewMoveDownButton, fLayout);
1437
1438
1440 gClient->GetPicture("ViewResetAngle.gif"),
1442
1443 fViewResetAngleButton->SetToolTipText("Reset Angles");
1444 fViewResetAngleButton->SetHeight(27);
1445 fViewResetAngleButton->SetWidth(27);
1446 fViewResetAngleButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1447
1448 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 30, 0, 0, 0);
1449 fWidgets->Add(fLayout);
1450 fViewContent3Frame->AddFrame(fViewResetAngleButton, fLayout);
1451
1452
1453
1454 fViewAngleFrame = new TGCompositeFrame(fViewContentFrame, fViewContentFrame->GetWidth(), 50, kHorizontalFrame);
1455 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop , 4, 4, 0, 0);
1456 fWidgets->Add(fLayout);
1457 fViewContentFrame->AddFrame(fViewAngleFrame, fLayout);
1458
1459
1460 fViewAngleThetaFrame = new TGCompositeFrame(fViewAngleFrame, fViewAngleFrame->GetWidth(), 50, kVerticalFrame);
1461 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop , 3, 3, 3, 3);
1462 fWidgets->Add(fLayout);
1463 fViewAngleFrame->AddFrame(fViewAngleThetaFrame, fLayout);
1464
1465
1467 gClient->GetPicture("ViewAngleMinus.gif"),
1469 fViewAngleThetaMinusButton->SetToolTipText("Theta -");
1470 fViewAngleThetaMinusButton->SetHeight(22);
1471 fViewAngleThetaMinusButton->SetWidth(22);
1472 fViewAngleThetaMinusButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1473
1474 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1475 fWidgets->Add(fLayout);
1476 fViewAngleThetaFrame->AddFrame(fViewAngleThetaMinusButton, fLayout);
1477
1478
1480 fViewAngleThetaSlider->Connect("PositionChanged(Int_t)", "BesClient", this, "HandleSliders(Int_t)");
1481 fViewAngleThetaSlider->SetRange(0, 180);
1482 fViewAngleThetaSlider->SetPosition(0);
1483 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsCenterX | kLHintsExpandY, 5, 5, 0, 0);
1484 fWidgets->Add(fLayout);
1485 fViewAngleThetaFrame->AddFrame(fViewAngleThetaSlider, fLayout);
1486
1487
1489 gClient->GetPicture("ViewAnglePlus.gif"),
1491 fViewAngleThetaPlusButton->SetToolTipText("Theta +");
1492 fViewAngleThetaPlusButton->SetHeight(22);
1493 fViewAngleThetaPlusButton->SetWidth(22);
1494 fViewAngleThetaPlusButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1495
1496 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1497 fWidgets->Add(fLayout);
1498 fViewAngleThetaFrame->AddFrame(fViewAngleThetaPlusButton, fLayout);
1499
1500
1501
1502
1504 fViewAngleThetaSlider->GetPosition(),
1505 (TGNumberFormat::EStyle) 1, (TGNumberFormat::EAttribute) 0 );
1506 fViewAngleThetaNumber->Connect("ReturnPressed()","BesClient",this,"ExecuteReturn()");
1507 h = fViewAngleThetaNumber->GetDefaultHeight();
1508 charw = fViewAngleThetaNumber->GetCharWidth("0123456");
1509 w = charw * TMath::Abs(4) / 10 + 8 + 2 * h / 3;
1510 fViewAngleThetaNumber->Resize(
w, h);
1511
1512 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 0);
1513 fWidgets->Add(fLayout);
1514 fViewAngleThetaFrame->AddFrame(fViewAngleThetaNumber, fLayout);
1515
1516
1517 fViewAngleThetaLabel = new TGLabel(fViewAngleThetaFrame,"theta");
1518 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 2);
1519 fWidgets->Add(fLayout);
1520 fViewAngleThetaFrame->AddFrame(fViewAngleThetaLabel, fLayout);
1521
1522
1523 fViewAnglePhiFrame = new TGCompositeFrame(fViewAngleFrame, fViewAngleFrame->GetWidth(), 50, kVerticalFrame);
1524 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop , 3, 3, 3, 3);
1525 fWidgets->Add(fLayout);
1526 fViewAngleFrame->AddFrame(fViewAnglePhiFrame, fLayout);
1527
1528
1530 gClient->GetPicture("ViewAngleMinus.gif"),
1532 fViewAnglePhiMinusButton->SetToolTipText("Phi -");
1533 fViewAnglePhiMinusButton->SetHeight(22);
1534 fViewAnglePhiMinusButton->SetWidth(22);
1535 fViewAnglePhiMinusButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1536
1537 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1538 fWidgets->Add(fLayout);
1539 fViewAnglePhiFrame->AddFrame(fViewAnglePhiMinusButton, fLayout);
1540
1541
1542 fViewAnglePhiSlider =
new TGVSlider(fViewAnglePhiFrame, 120, kSlider2 | kScaleBoth,
kM_Slider_ViewAnglePhi);
1543 fViewAnglePhiSlider->Connect("PositionChanged(Int_t)", "BesClient", this, "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);
1549
1550
1552 gClient->GetPicture("ViewAnglePlus.gif"),
1554 fViewAnglePhiPlusButton->SetToolTipText("Phi +");
1555 fViewAnglePhiPlusButton->SetHeight(22);
1556 fViewAnglePhiPlusButton->SetWidth(22);
1557 fViewAnglePhiPlusButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1558
1559 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1560 fWidgets->Add(fLayout);
1561 fViewAnglePhiFrame->AddFrame(fViewAnglePhiPlusButton, fLayout);
1562
1563
1564
1565
1567 fViewAnglePhiSlider->GetPosition(),
1568 (TGNumberFormat::EStyle) 1, (TGNumberFormat::EAttribute) 0 );
1569 fViewAnglePhiNumber->Connect("ReturnPressed()","BesClient",this,"ExecuteReturn()");
1570 h = fViewAnglePhiNumber->GetDefaultHeight();
1571 charw = fViewAnglePhiNumber->GetCharWidth("0123456");
1572 w = charw * TMath::Abs(4) / 10 + 8 + 2 * h / 3;
1573 fViewAnglePhiNumber->Resize(
w, h);
1574
1575 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 0);
1576 fWidgets->Add(fLayout);
1577 fViewAnglePhiFrame->AddFrame(fViewAnglePhiNumber, fLayout);
1578
1579
1580 fViewAnglePhiLabel = new TGLabel(fViewAnglePhiFrame,"phi");
1581 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 2);
1582 fWidgets->Add(fLayout);
1583 fViewAnglePhiFrame->AddFrame(fViewAnglePhiLabel, fLayout);
1584
1585
1586 fViewAnglePsiFrame = new TGCompositeFrame(fViewAngleFrame, fViewAngleFrame->GetWidth(), 50, kVerticalFrame);
1587 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop , 3, 3, 3, 3);
1588 fWidgets->Add(fLayout);
1589 fViewAngleFrame->AddFrame(fViewAnglePsiFrame, fLayout);
1590
1591
1593 gClient->GetPicture("ViewAngleMinus.gif"),
1595 fViewAnglePsiMinusButton->SetToolTipText("Psi -");
1596 fViewAnglePsiMinusButton->SetHeight(22);
1597 fViewAnglePsiMinusButton->SetWidth(22);
1598 fViewAnglePsiMinusButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1599
1600 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1601 fWidgets->Add(fLayout);
1602 fViewAnglePsiFrame->AddFrame(fViewAnglePsiMinusButton, fLayout);
1603
1604
1605 fViewAnglePsiSlider =
new TGVSlider(fViewAnglePsiFrame, 120, kSlider2 | kScaleBoth,
kM_Slider_ViewAnglePsi);
1606 fViewAnglePsiSlider->Connect("PositionChanged(Int_t)", "BesClient", this, "HandleSliders(Int_t)");
1607 fViewAnglePsiSlider->SetRange(0, 360);
1608 fViewAnglePsiSlider->SetPosition(270);
1609 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsCenterX | kLHintsExpandY, 5, 5, 0, 0);
1610 fWidgets->Add(fLayout);
1611 fViewAnglePsiFrame->AddFrame(fViewAnglePsiSlider, fLayout);
1612
1613
1615 gClient->GetPicture("ViewAnglePlus.gif"),
1617 fViewAnglePsiPlusButton->SetToolTipText("Psi +");
1618 fViewAnglePsiPlusButton->SetHeight(22);
1619 fViewAnglePsiPlusButton->SetWidth(22);
1620 fViewAnglePsiPlusButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1621
1622 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5, 5, 0, 0);
1623 fWidgets->Add(fLayout);
1624 fViewAnglePsiFrame->AddFrame(fViewAnglePsiPlusButton, fLayout);
1625
1626
1627
1628
1630 fViewAnglePsiSlider->GetPosition(),
1631 (TGNumberFormat::EStyle) 1, (TGNumberFormat::EAttribute) 0 );
1632 fViewAnglePsiNumber->Connect("ReturnPressed()","BesClient",this,"ExecuteReturn()");
1633 h = fViewAnglePsiNumber->GetDefaultHeight();
1634 charw = fViewAnglePsiNumber->GetCharWidth("0123456");
1635 w = charw * TMath::Abs(4) / 10 + 8 + 2 * h / 3;
1636 fViewAnglePsiNumber->Resize(
w, h);
1637
1638 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 0);
1639 fWidgets->Add(fLayout);
1640 fViewAnglePsiFrame->AddFrame(fViewAnglePsiNumber, fLayout);
1641
1642
1643 fViewAnglePsiLabel = new TGLabel(fViewAnglePsiFrame,"psi");
1644 fLayout = new TGLayoutHints(kLHintsTop | kLHintsCenterX, 2, 2, 2, 2);
1645 fWidgets->Add(fLayout);
1646 fViewAnglePsiFrame->AddFrame(fViewAnglePsiLabel, fLayout);
1647
1648
1649
1650
1651 tf = fTabs->AddTab("Event");
1652 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
1653
1654
1655
1656
1657 fEventControlFrame = new TGCompositeFrame(tf, tf->GetWidth(), tf->GetHeight(), kVerticalFrame);
1658 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX , 15, 15, 15, 10);
1659 fWidgets->Add(fLayout);
1660 tf->AddFrame(fEventControlFrame, fLayout);
1661 fEventControlFrame->SetBackgroundPixmap(
GetPic(
"EventFrameBckgnd.gif"));
1662
1663
1664
1665 fEventControlTextFrame = new TGCompositeFrame(fEventControlFrame, fEventControlFrame->GetWidth(), 30, kHorizontalFrame);
1666 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX, 0, 0, 0, 0);
1667 fWidgets->Add(fLayout);
1668 fEventControlFrame->AddFrame(fEventControlTextFrame, fLayout);
1669 fEventControlTextFrame->SetBackgroundPixmap(
GetPic(
"EventControlBckgnd.gif"));
1670
1671 fEventControlTextLabel = new TGLabel(fEventControlTextFrame,"Event Control ");
1672 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft | kLHintsExpandX , 2, 73, 4, 4);
1673 fWidgets->Add(fLayout);
1674 fEventControlTextFrame->AddFrame(fEventControlTextLabel, fLayout);
1675 fEventControlTextLabel->SetBackgroundPixmap(
GetPic(
"EventControlBckgnd.gif"));
1676
1677
1678 fBesRunFrame = new TGHorizontalFrame(fEventControlFrame, fEventControlFrame->GetWidth(), 25);
1679 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsExpandX , 4, 4, 4, 4);
1680 fWidgets->Add(fLayout);
1681 fEventControlFrame->AddFrame(fBesRunFrame, fLayout);
1682 fBesRunFrame->SetBackgroundPixmap(
GetPic(
"EventFrameBckgnd.gif"));
1683
1684 fBesLabelRun = new TGLabel(fBesRunFrame, "Run : ");
1685 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 4, 4, 4);
1686 fWidgets->Add(fLayout);
1687 fBesRunFrame->AddFrame(fBesLabelRun, fLayout);
1688
1689 fNumEntryRunNo =
new TGNumberEntry(fBesRunFrame,this->
GetBesRunNo(),12,
kM_Button_BesRun,(TGNumberFormat::EStyle) 0,(TGNumberFormat::EAttribute) 1);
1690 fNumEntryRunNo->SetHeight(20);
1692 fNumEntryRunNo->GetNumberEntry()->Connect("ReturnPressed()","BesClient",this,"ExecuteReturn()");
1693 fNumEntryRunNo->GetNumberEntry()->Connect("TabPressed()","BesClient",this,"ChangeFocus()");
1694 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsRight, 4, 4, 4, 4);
1695 fWidgets->Add(fLayout);
1696 fBesRunFrame->AddFrame(fNumEntryRunNo, fLayout);
1697
1698
1699 fBesEventFrame = new TGHorizontalFrame(fEventControlFrame, fEventControlFrame->GetWidth(), 25);
1700 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsExpandX , 4, 4, 4, 4);
1701 fWidgets->Add(fLayout);
1702 fEventControlFrame->AddFrame(fBesEventFrame, fLayout);
1703
1704 fBesLabelEvent = new TGLabel(fBesEventFrame, "Event : ");
1705 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 4, 4, 4);
1706 fWidgets->Add(fLayout);
1707 fBesEventFrame->AddFrame(fBesLabelEvent, fLayout);
1708
1709 fNumEntryEventNo =
new TGNumberEntry(fBesEventFrame,this->
GetBesEventNo(),12,
kM_Button_BesEvent,(TGNumberFormat::EStyle) 0,(TGNumberFormat::EAttribute) 1);
1710 fNumEntryEventNo->SetHeight(20);
1712 fNumEntryEventNo->GetNumberEntry()->Connect("ReturnPressed()","BesClient",this,"ExecuteReturn()");
1713 fNumEntryEventNo->GetNumberEntry()->Connect("TabPressed()","BesClient",this,"ChangeFocus()");
1714 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsRight, 4, 4, 4, 4);
1715 fWidgets->Add(fLayout);
1716 fBesEventFrame->AddFrame(fNumEntryEventNo, fLayout);
1717
1718
1719
1720
1721
1722
1723 fEventPlaySlider =
new TGHSlider(fEventControlFrame, 40, kSlider1 | kScaleNo,
kM_Slider_EventPlay);
1724 fEventPlaySlider->Connect("PositionChanged(Int_t)", "BesClient", this, "HandleSliders(Int_t)");
1725 fEventPlaySlider->SetRange(0, 100);
1726 fEventPlaySlider->SetPosition(0);
1727 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsCenterX | kLHintsExpandX, 5, 5, 5, 0);
1728 fWidgets->Add(fLayout);
1729 fEventControlFrame->AddFrame(fEventPlaySlider, fLayout);
1730
1731
1732 fEventPlayButtonFrame = new TGCompositeFrame(fEventControlFrame, fEventControlFrame->GetWidth(), 30, kHorizontalFrame);
1733
1734 fLayout = new TGLayoutHints(kLHintsCenterX | kLHintsTop, 2, 2, 2, 2);
1735 fWidgets->Add(fLayout);
1736 fEventControlFrame->AddFrame(fEventPlayButtonFrame, fLayout);
1737
1738
1740 gClient->GetPicture("ButtonEventPrev.gif"),
1742 fPrevEventButton->SetToolTipText("Previous Event");
1743 fPrevEventButton->SetHeight(26);
1744 fPrevEventButton->SetWidth(25);
1745 fPrevEventButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1746
1747 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 8, 0, 0, 4);
1748 fWidgets->Add(fLayout);
1749 fEventPlayButtonFrame->AddFrame(fPrevEventButton, fLayout);
1750
1751
1754 fNextEventButton->SetToolTipText("Next Event");
1755 fNextEventButton->SetHeight(26);
1756 fNextEventButton->SetWidth(26);
1757 fNextEventButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1758
1759 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 0, 10, 0, 4);
1760 fWidgets->Add(fLayout);
1761 fEventPlayButtonFrame->AddFrame(fNextEventButton, fLayout);
1762
1763
1765 gClient->GetPicture("ButtonEventPlay.gif"),
1767 fPlayEventButton->SetToolTipText("Play Event");
1768 fPlayEventButton->SetHeight(35);
1769 fPlayEventButton->SetWidth(34);
1770 fPlayEventButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1771
1772 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 5, 0, 0, 4);
1773 fWidgets->Add(fLayout);
1774 fEventPlayButtonFrame->AddFrame(fPlayEventButton, fLayout);
1775
1776
1778 gClient->GetPicture("ButtonEventReturn.gif"),
1780 fFirstEventButton->SetToolTipText("First Event");
1781 fFirstEventButton->SetHeight(35);
1782 fFirstEventButton->SetWidth(25);
1783 fFirstEventButton->Connect("Clicked()", "BesClient", this, "HandleButtons()");
1784
1785 fLayout = new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 0, 8, 0, 4);
1786 fWidgets->Add(fLayout);
1787 fEventPlayButtonFrame->AddFrame(fFirstEventButton, fLayout);
1788
1789
1790 fEventPlayTextFrame = new TGCompositeFrame(fEventControlFrame, fEventControlFrame->GetWidth(), 30, kHorizontalFrame);
1791 fLayout = new TGLayoutHints(kLHintsCenterX | kLHintsTop, 2, 2, 2, 2);
1792 fWidgets->Add(fLayout);
1793 fEventControlFrame->AddFrame(fEventPlayTextFrame, fLayout);
1794
1795 fEventPlayTextLabel = new TGLabel(fEventPlayTextFrame,"Prev,Next,Play/Stop,Return");
1796 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 5, 4, 2, 5);
1797 fWidgets->Add(fLayout);
1798 fEventPlayTextFrame->AddFrame(fEventPlayTextLabel, fLayout);
1799
1800
1801
1802 fEventPlaySpeedFrame = new TGCompositeFrame(fEventControlFrame, fEventControlFrame->GetWidth(), 30, kHorizontalFrame);
1803 fLayout = new TGLayoutHints(kLHintsCenterX | kLHintsTop, 4, 4, 4, 4);
1804 fWidgets->Add(fLayout);
1805 fEventControlFrame->AddFrame(fEventPlaySpeedFrame, fLayout);
1806
1807
1808 fNumEntryEventPlaySpeed =
new TGNumberEntry(fEventPlaySpeedFrame,(Double_t)this->
GetEventPlaySpeed()/1000.0,4,
1810 (TGNumberFormat::EStyle) 1,(TGNumberFormat::EAttribute) 1);
1811 fNumEntryEventPlaySpeed->SetHeight(20);
1813 fNumEntryEventPlaySpeed->GetNumberEntry()->Connect("ReturnPressed()","BesClient",this,"ExecuteReturn()");
1814 fNumEntryEventPlaySpeed->GetNumberEntry()->Connect("TabPressed()","BesClient",this,"ChangeFocus()");
1815 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 4, 4, 4);
1816 fWidgets->Add(fLayout);
1817 fEventPlaySpeedFrame->AddFrame(fNumEntryEventPlaySpeed, fLayout);
1818
1819
1820 fEventPlaySpeedLabel = new TGLabel(fEventPlaySpeedFrame," sec/event ");
1821 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsRight, 2, 4, 4, 10);
1822 fWidgets->Add(fLayout);
1823 fEventPlaySpeedFrame->AddFrame(fEventPlaySpeedLabel, fLayout);
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878 tf = fTabs->AddTab("REC");
1879
1880 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
1881
1882
1883 fFrameHeader =new TGGroupFrame(tf, "Header");
1884 fLayout = new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 5);
1885 fWidgets->Add(fLayout);
1886 tf->AddFrame(fFrameHeader, fLayout);
1887 fChkBtnHeaderGlobal =
new TGCheckButton(fFrameHeader,
"Header",
kM_Header_Global);
1888 fFrameHeader->AddFrame(fChkBtnHeaderGlobal);
1889 fChkBtnHeaderGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
1890
1891
1892 fFrameHits = new TGGroupFrame(tf, "Hits");
1893 fLayout = new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 5);
1894 fWidgets->Add(fLayout);
1895 tf->AddFrame(fFrameHits, fLayout);
1896
1897
1898
1899 fChkBtnMdcHitsGlobal =
new TGCheckButton(fFrameHits,
"Mdc hits",
kM_MdcHits_Global);
1900 fFrameHits->AddFrame(fChkBtnMdcHitsGlobal);
1901
1902 fChkBtnTofHitsGlobal =
new TGCheckButton(fFrameHits,
"Tof hits",
kM_TofHits_Global);
1903 fFrameHits->AddFrame(fChkBtnTofHitsGlobal);
1904
1905 fChkBtnTofHitsEast =
new TGCheckButton(fFrameHits,
" East ",
kM_TofHits_East);
1906 fLayout = new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
1907 fWidgets->Add(fLayout);
1908 fFrameHits->AddFrame(fChkBtnTofHitsEast, fLayout);
1909
1910 fChkBtnTofHitsBarrel =
new TGCheckButton(fFrameHits,
" Barrel ",
kM_TofHits_Barrel);
1911 fFrameHits->AddFrame(fChkBtnTofHitsBarrel, fLayout);
1912
1913 fChkBtnTofHitsWest =
new TGCheckButton(fFrameHits,
" West ",
kM_TofHits_West);
1914 fFrameHits->AddFrame(fChkBtnTofHitsWest, fLayout);
1915
1916 fChkBtnEmcHitsGlobal =
new TGCheckButton(fFrameHits,
"Emc hits",
kM_EmcHits_Global);
1917 fFrameHits->AddFrame(fChkBtnEmcHitsGlobal);
1918
1919 fChkBtnEmcHitsEast =
new TGCheckButton(fFrameHits,
" East ",
kM_EmcHits_East);
1920 fLayout = new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
1921 fWidgets->Add(fLayout);
1922 fFrameHits->AddFrame(fChkBtnEmcHitsEast, fLayout);
1923
1924 fChkBtnEmcHitsBarrel =
new TGCheckButton(fFrameHits,
" Barrel ",
kM_EmcHits_Barrel);
1925 fFrameHits->AddFrame(fChkBtnEmcHitsBarrel, fLayout);
1926
1927 fChkBtnEmcHitsWest =
new TGCheckButton(fFrameHits,
" West ",
kM_EmcHits_West);
1928 fFrameHits->AddFrame(fChkBtnEmcHitsWest, fLayout);
1929
1930 fChkBtnEmcHitsSide =
new TGCheckButton(fFrameHits,
" Side ",
kM_EmcHits_Side);
1931 fFrameHits->AddFrame(fChkBtnEmcHitsSide, fLayout);
1932
1933 fChkBtnMucHitsGlobal =
new TGCheckButton(fFrameHits,
"Muc hits",
kM_MucHits_Global);
1934 fFrameHits->AddFrame(fChkBtnMucHitsGlobal);
1935
1936 fChkBtnMucHitsEast =
new TGCheckButton(fFrameHits,
" East ",
kM_MucHits_East);
1937 fLayout = new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
1938 fWidgets->Add(fLayout);
1939 fFrameHits->AddFrame(fChkBtnMucHitsEast, fLayout);
1940
1941 fChkBtnMucHitsBarrel =
new TGCheckButton(fFrameHits,
" Barrel ",
kM_MucHits_Barrel);
1942 fFrameHits->AddFrame(fChkBtnMucHitsBarrel, fLayout);
1943
1944 fChkBtnMucHitsWest =
new TGCheckButton(fFrameHits,
" West ",
kM_MucHits_West);
1945 fFrameHits->AddFrame(fChkBtnMucHitsWest, fLayout);
1946
1947 fChkBtnMdcHitsGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
1948 fChkBtnTofHitsGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
1949 fChkBtnTofHitsEast ->Connect("Clicked()", "BesClient", this, "SetState()");
1950 fChkBtnTofHitsBarrel->Connect("Clicked()", "BesClient", this, "SetState()");
1951 fChkBtnTofHitsWest ->Connect("Clicked()", "BesClient", this, "SetState()");
1952 fChkBtnEmcHitsGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
1953 fChkBtnEmcHitsEast ->Connect("Clicked()", "BesClient", this, "SetState()");
1954 fChkBtnEmcHitsBarrel->Connect("Clicked()", "BesClient", this, "SetState()");
1955 fChkBtnEmcHitsWest ->Connect("Clicked()", "BesClient", this, "SetState()");
1956 fChkBtnEmcHitsSide ->Connect("Clicked()", "BesClient", this, "SetState()");
1957 fChkBtnMucHitsGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
1958 fChkBtnMucHitsEast ->Connect("Clicked()", "BesClient", this, "SetState()");
1959 fChkBtnMucHitsBarrel->Connect("Clicked()", "BesClient", this, "SetState()");
1960 fChkBtnMucHitsWest ->Connect("Clicked()", "BesClient", this, "SetState()");
1961
1962
1963 fFrameTracks = new TGGroupFrame(tf, "Tracks");
1964 fLayout = new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 5);
1965 fWidgets->Add(fLayout);
1966 tf->AddFrame(fFrameTracks, fLayout);
1967
1968 fChkBtnTracksGlobal =
new TGCheckButton(fFrameTracks,
"Tracks",
kM_Tracks_Global);
1969 fFrameTracks->AddFrame(fChkBtnTracksGlobal);
1970
1971 fChkBtnTracksMdc =
new TGCheckButton(fFrameTracks,
" Mdc ",
kM_Tracks_Mdc);
1972 fLayout = new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
1973 fWidgets->Add(fLayout);
1974 fFrameTracks->AddFrame(fChkBtnTracksMdc, fLayout);
1975
1976 fChkBtnTracksTof =
new TGCheckButton(fFrameTracks,
" Tof ",
kM_Tracks_Tof);
1977 fFrameTracks->AddFrame(fChkBtnTracksTof, fLayout);
1978
1979 fChkBtnTracksEmc =
new TGCheckButton(fFrameTracks,
" Emc ",
kM_Tracks_Emc);
1980 fFrameTracks->AddFrame(fChkBtnTracksEmc, fLayout);
1981
1982 fChkBtnTracksMuc =
new TGCheckButton(fFrameTracks,
" Muc ",
kM_Tracks_Muc);
1983 fFrameTracks->AddFrame(fChkBtnTracksMuc, fLayout);
1984
1985 fChkBtnTracksExt =
new TGCheckButton(fFrameTracks,
" Ext ",
kM_Tracks_Ext);
1986 fFrameTracks->AddFrame(fChkBtnTracksExt, fLayout);
1987
1988 fChkBtnTracksGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
1989 fChkBtnTracksMdc->Connect("Clicked()", "BesClient", this, "SetState()");
1990 fChkBtnTracksTof->Connect("Clicked()", "BesClient", this, "SetState()");
1991 fChkBtnTracksEmc->Connect("Clicked()", "BesClient", this, "SetState()");
1992 fChkBtnTracksMuc->Connect("Clicked()", "BesClient", this, "SetState()");
1993 fChkBtnTracksExt->Connect("Clicked()", "BesClient", this, "SetState()");
1994
1995
1996
1997
1998 tf = fTabs->AddTab("Detector");
1999 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
2000
2001
2002 fFrameSubDetector = new TGGroupFrame(tf, "Sub-Detector");
2003
2004
2005 fLayout = new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 15);
2006 fWidgets->Add(fLayout);
2007 tf->AddFrame(fFrameSubDetector, fLayout);
2008
2009
2010 fChkBtnMdcGlobal =
new TGCheckButton(fFrameSubDetector,
"Mdc",
kM_Mdc_Global);
2011 fLayout = new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2012 fFrameSubDetector->AddFrame(fChkBtnMdcGlobal, fLayout);
2013 fChkBtnMdcGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2014
2015 fChkBtnMdcTubes =
new TGCheckButton(fFrameSubDetector,
"Tubes",
kM_Mdc_Tubes);
2016 fLayout = new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2017 fFrameSubDetector->AddFrame(fChkBtnMdcTubes, fLayout);
2018 fChkBtnMdcTubes->Connect("Clicked()", "BesClient", this, "SetState()");
2019
2020 fChkBtnMdcWires =
new TGCheckButton(fFrameSubDetector,
"Wires",
kM_Mdc_Wires);
2021 fFrameSubDetector->AddFrame(fChkBtnMdcWires, fLayout);
2022 fChkBtnMdcWires->Connect("Clicked()", "BesClient", this, "SetState()");
2023
2024
2025 fChkBtnTofGlobal =
new TGCheckButton(fFrameSubDetector,
"Tof",
kM_Tof_Global);
2026 fLayout = new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2027 fFrameSubDetector->AddFrame(fChkBtnTofGlobal, fLayout);
2028 fChkBtnTofGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2029
2030 fChkBtnTofEast =
new TGCheckButton(fFrameSubDetector,
"East EC",
kM_Tof_East);
2031 fLayout = new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2032 fFrameSubDetector->AddFrame(fChkBtnTofEast, fLayout);
2033 fChkBtnTofEast->Connect("Clicked()", "BesClient", this, "SetState()");
2034
2035 fChkBtnTofBarrel =
new TGCheckButton(fFrameSubDetector,
"Barrel",
kM_Tof_Barrel);
2036 fFrameSubDetector->AddFrame(fChkBtnTofBarrel, fLayout);
2037 fChkBtnTofBarrel->Connect("Clicked()", "BesClient", this, "SetState()");
2038
2039 fChkBtnTofWest =
new TGCheckButton(fFrameSubDetector,
"West EC",
kM_Tof_West);
2040 fFrameSubDetector->AddFrame(fChkBtnTofWest, fLayout);
2041 fChkBtnTofWest->Connect("Clicked()", "BesClient", this, "SetState()");
2042
2043
2044 fChkBtnEmcGlobal =
new TGCheckButton(fFrameSubDetector,
"Emc",
kM_Emc_Global);
2045 fLayout = new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2046 fFrameSubDetector->AddFrame(fChkBtnEmcGlobal, fLayout);
2047 fChkBtnEmcGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2048
2049 fChkBtnEmcEast =
new TGCheckButton(fFrameSubDetector,
"East EC",
kM_Emc_East);
2050 fLayout = new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2051 fFrameSubDetector->AddFrame(fChkBtnEmcEast, fLayout);
2052 fChkBtnEmcEast->Connect("Clicked()", "BesClient", this, "SetState()");
2053
2054 fChkBtnEmcBarrel =
new TGCheckButton(fFrameSubDetector,
"Barrel",
kM_Emc_Barrel);
2055 fFrameSubDetector->AddFrame(fChkBtnEmcBarrel, fLayout);
2056 fChkBtnEmcBarrel->Connect("Clicked()", "BesClient", this, "SetState()");
2057
2058 fChkBtnEmcWest =
new TGCheckButton(fFrameSubDetector,
"West EC",
kM_Emc_West);
2059 fFrameSubDetector->AddFrame(fChkBtnEmcWest, fLayout);
2060 fChkBtnEmcWest->Connect("Clicked()", "BesClient", this, "SetState()");
2061
2062 fChkBtnEmcSide =
new TGCheckButton(fFrameSubDetector,
"Side ",
kM_Emc_Side);
2063 fFrameSubDetector->AddFrame(fChkBtnEmcSide, fLayout);
2064 fChkBtnEmcSide->Connect("Clicked()", "BesClient", this, "SetState()");
2065
2066
2067 fChkBtnMucGlobal =
new TGCheckButton(fFrameSubDetector,
"Muc",
kM_Muc_Global);
2068 fLayout = new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0);
2069 fFrameSubDetector->AddFrame(fChkBtnMucGlobal, fLayout);
2070 fChkBtnMucGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2071
2072 fChkBtnMucEast =
new TGCheckButton(fFrameSubDetector,
"East EC",
kM_Muc_East);
2073 fLayout = new TGLayoutHints(kLHintsLeft, 20, 0, 0, 0);
2074 fFrameSubDetector->AddFrame(fChkBtnMucEast, fLayout);
2075 fChkBtnMucEast->Connect("Clicked()", "BesClient", this, "SetState()");
2076
2077 fChkBtnMucBarrel =
new TGCheckButton(fFrameSubDetector,
"Barrel",
kM_Muc_Barrel);
2078 fFrameSubDetector->AddFrame(fChkBtnMucBarrel, fLayout);
2079 fChkBtnMucBarrel->Connect("Clicked()", "BesClient", this, "SetState()");
2080
2081 fChkBtnMucWest =
new TGCheckButton(fFrameSubDetector,
"West EC",
kM_Muc_West);
2082 fFrameSubDetector->AddFrame(fChkBtnMucWest, fLayout);
2083 fChkBtnMucWest->Connect("Clicked()", "BesClient", this, "SetState()");
2084
2085 fChkBtnMucStrips =
new TGCheckButton(fFrameSubDetector,
"Strips",
kM_Muc_Strips);
2086 fFrameSubDetector->AddFrame(fChkBtnMucStrips, fLayout);
2087 fChkBtnMucStrips->Connect("Clicked()", "BesClient", this, "SetState()");
2088
2089
2090 fFrameOthers = new TGGroupFrame (tf, "Others");
2091 fLayout = new TGLayoutHints (kLHintsExpandX, 15, 15, 15, 15);
2092 fWidgets->Add(fLayout);
2093 tf->AddFrame (fFrameOthers, fLayout);
2094
2095 fChkBtnBeamPipe =
new TGCheckButton (fFrameOthers,
"Beam Pipe",
kM_BeamPipe);
2096 fFrameOthers->AddFrame (fChkBtnBeamPipe);
2097 fChkBtnBeamPipe->Connect("Clicked()", "BesClient", this, "SetState()");
2098
2099 fChkBtnZRPlaneOnXY =
new TGCheckButton (fFrameOthers,
"ZR plane on XY",
kM_ZRPlaneOnXY);
2100 fFrameOthers->AddFrame (fChkBtnZRPlaneOnXY);
2101 fChkBtnZRPlaneOnXY->Connect("Clicked()", "BesClient", this, "SetState()");
2102
2103 fChkBtnAxis =
new TGCheckButton (fFrameOthers,
"Axis",
kM_Axis);
2104 fFrameOthers->AddFrame (fChkBtnAxis);
2105 fChkBtnAxis->Connect("Clicked()", "BesClient", this, "SetState()");
2106
2107
2108
2109
2110 tf = fTabs->AddTab("Others");
2111 tf->SetBackgroundPixmap(
GetPic(
"8.gif"));
2112
2113
2114 fFrameMdcMatch =new TGGroupFrame(tf, "Mdc Status");
2115 fLayout = new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 15);
2116 fWidgets->Add(fLayout);
2117 tf->AddFrame(fFrameMdcMatch, fLayout);
2118
2120 fChkBtnMdcTMatchGlobal->SetState(kButtonDown);
2121
2122 fFrameMdcMatch->AddFrame(fChkBtnMdcTMatchGlobal);
2123 fChkBtnMdcTMatchGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2124
2126 fChkBtnMdcQMatchGlobal->SetState(kButtonDown);
2127
2128 fFrameMdcMatch->AddFrame(fChkBtnMdcQMatchGlobal);
2129 fChkBtnMdcQMatchGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2130
2132 fChkBtnMdcQOverflowGlobal->SetState(kButtonUp);
2133
2134 fFrameMdcMatch->AddFrame(fChkBtnMdcQOverflowGlobal);
2135 fChkBtnMdcQOverflowGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2136
2137
2139 fChkBtnMdcColorfulWireGlobal->SetState(kButtonUp);
2140 fFrameMdcMatch->AddFrame(fChkBtnMdcColorfulWireGlobal);
2141 fChkBtnMdcColorfulWireGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2142
2143
2145 fChkBtnMdcTimeSubEvTimeGlobal->SetState(kButtonUp);
2146 fFrameMdcMatch->AddFrame(fChkBtnMdcTimeSubEvTimeGlobal);
2147 fChkBtnMdcTimeSubEvTimeGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2148
2149
2150 fFrameTofMatch =new TGGroupFrame(tf, "Tof TQ Match");
2151 fLayout = new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 15);
2152 fWidgets->Add(fLayout);
2153 tf->AddFrame(fFrameTofMatch, fLayout);
2154
2156 fChkBtnTofTMatchGlobal->SetState(kButtonDown);
2157
2158 fFrameTofMatch->AddFrame(fChkBtnTofTMatchGlobal);
2159 fChkBtnTofTMatchGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2160
2162 fChkBtnTofQMatchGlobal->SetState(kButtonDown);
2163
2164 fFrameTofMatch->AddFrame(fChkBtnTofQMatchGlobal);
2165 fChkBtnTofQMatchGlobal->Connect("Clicked()", "BesClient", this, "SetState()");
2166
2167
2168 fFrameMagnetic =new TGGroupFrame(tf, "Magnetic Field(Tesla)");
2169 fLayout = new TGLayoutHints(kLHintsExpandX, 15, 15, 15, 15);
2170 fWidgets->Add(fLayout);
2171 tf->AddFrame(fFrameMagnetic, fLayout);
2172
2173
2174 fNumEntryMagnetic = new TGNumberEntry(fFrameMagnetic,
2175 1.0, 4,
2177 TGNumberFormat::kNESRealTwo,
2178 TGNumberFormat::kNEAAnyNumber);
2179 fNumEntryMagnetic->SetHeight(20);
2180 fNumEntryMagnetic->SetNumber(1.0);
2181 fNumEntryMagnetic->GetNumberEntry()
2182 ->Connect("ReturnPressed()","BesClient",this,"ExecuteReturn()");
2183 fNumEntryMagnetic->GetNumberEntry()
2184 ->Connect("TabPressed()","BesClient",this,"ChangeFocus()");
2185 fLayout = new TGLayoutHints(kLHintsCenterY | kLHintsLeft, 4, 4, 4, 4);
2186 fWidgets->Add(fLayout);
2187 fFrameMagnetic->AddFrame(fNumEntryMagnetic, fLayout);
2188
2189
2190 for (Int_t iTab = 0; iTab < fTabs->GetNumberOfTabs(); iTab++) {
2191 fTabs->GetTabTab(iTab)->SetBackgroundPixmap(
GetPic(
"8.gif"));
2192 }
2193}
@ 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()