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