Changeset 274 for Evidence/Edd
- Timestamp:
- 07/30/10 12:35:09 (14 years ago)
- Location:
- Evidence/Edd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Evidence/Edd/Edd.cc
r232 r274 1302 1302 TP_DAQ::TP_DAQ() { 1303 1303 1304 EddLineDisplay *Line; 1305 1304 1306 setAttribute(Qt::WA_DeleteOnClose); 1305 1307 QGridLayout *Layout = new QGridLayout(this); 1308 1309 // Run-related information 1310 Line = new EddLineDisplay("drsdaq/RunNumber"); 1311 Line->setMaximumWidth(100); 1312 Layout->addWidget(Line, 0, 1, 1, 1); 1313 Line = new EddLineDisplay("drsdaq/EventNumber"); 1314 Line->setMaximumWidth(100); 1315 Layout->addWidget(Line, 0, 2, 1, 1); 1316 Line = new EddLineDisplay("drsdaq/RunSizeMB"); 1317 Line->setMaximumWidth(100); 1318 Layout->addWidget(Line, 0, 3, 1, 1); 1319 Line = new EddLineDisplay("drsdaq/FileSizeMB"); 1320 Line->setMaximumWidth(100); 1321 Layout->addWidget(Line, 0, 4, 1, 1); 1322 Line = new EddLineDisplay("drsdaq/FileName"); 1323 Line->setMaximumWidth(200); 1324 Layout->addWidget(Line, 0, 5, 1, 1); 1306 1325 1307 1326 // Event scope … … 1320 1339 TabWidget->addTab(RunHeaderDisplay, "&Run Header"); 1321 1340 TabWidget->addTab(EventHeaderDisplay, "&Event Header"); 1322 Layout->addWidget(TabWidget, 0, 1, 5, 3);1341 Layout->addWidget(TabWidget, 1, 1, 5, 5); 1323 1342 1324 1343 connect(Scope, SIGNAL(RunHeaderChanged(QString)), RunHeaderDisplay, SLOT(setPlainText(QString))); … … 1366 1385 PixDisplay->setFont(QFont("Times", 10, QFont::Bold)); 1367 1386 PixDisplay->setToolTip("Show event display window"); 1387 PixDisplay->setMaximumWidth(80); 1368 1388 Layout->addWidget(PixDisplay, 4, 0); 1369 1389 connect(PixDisplay, SIGNAL(clicked()), SLOT(ShowPixelDisplay())); … … 1386 1406 Pixel[Count] = new QPushButton(Display); 1387 1407 Pixel[Count]->setAutoFillBackground(true); 1388 Pixel[Count]->setGeometry( x*12.5 + 250, y*12.5 + 250, 10, 10);1408 Pixel[Count]->setGeometry((int) (x*12.5 + 250), (int) (y*12.5 + 250), 10, 10); 1389 1409 Pixel[Count]->show(); 1390 1410 Count++; … … 1491 1511 1492 1512 QPushButton *Button = new QPushButton(); 1513 Button->setText("eLogBook"); 1514 connect(Button, SIGNAL(released()), SLOT(StartELog())); 1515 Layout->addWidget(Button, 6, 1, 1, 1); 1516 1517 Button = new QPushButton(); 1493 1518 Button->setText("Start DIM browser"); 1494 1519 connect(Button, SIGNAL(released()), SLOT(StartDIMBrowser())); … … 1503 1528 1504 1529 QProcess::startDetached("did", QStringList(), QString(getenv("DIMDIR"))+"/linux/"); 1530 } 1531 1532 // Start eLogBook 1533 void TP_Evidence::StartELog() { 1534 1535 QProcess::startDetached("firefox http://fact.ethz.ch/FACTelog/index.jsp"); 1505 1536 } 1506 1537 -
Evidence/Edd/Edd.h
r232 r274 352 352 private slots: 353 353 void StartDIMBrowser(); 354 void StartELog(); 354 355 355 356 public:
Note:
See TracChangeset
for help on using the changeset viewer.