Changeset 274 for Evidence/Edd


Ignore:
Timestamp:
07/30/10 12:35:09 (14 years ago)
Author:
ogrimm
Message:
drsdaq publishes some more run-related services
Location:
Evidence/Edd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Evidence/Edd/Edd.cc

    r232 r274  
    13021302TP_DAQ::TP_DAQ() {
    13031303
     1304  EddLineDisplay *Line;
     1305
    13041306  setAttribute(Qt::WA_DeleteOnClose);
    13051307  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);     
    13061325
    13071326  // Event scope
     
    13201339  TabWidget->addTab(RunHeaderDisplay, "&Run Header");
    13211340  TabWidget->addTab(EventHeaderDisplay, "&Event Header");
    1322   Layout->addWidget(TabWidget, 0, 1, 5, 3);
     1341  Layout->addWidget(TabWidget, 1, 1, 5, 5);
    13231342
    13241343  connect(Scope, SIGNAL(RunHeaderChanged(QString)), RunHeaderDisplay, SLOT(setPlainText(QString)));
     
    13661385  PixDisplay->setFont(QFont("Times", 10, QFont::Bold));
    13671386  PixDisplay->setToolTip("Show event display window");
     1387  PixDisplay->setMaximumWidth(80);
    13681388  Layout->addWidget(PixDisplay, 4, 0);
    13691389  connect(PixDisplay, SIGNAL(clicked()), SLOT(ShowPixelDisplay()));
     
    13861406    Pixel[Count] = new QPushButton(Display);
    13871407        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);
    13891409        Pixel[Count]->show();
    13901410        Count++;
     
    14911511
    14921512  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();
    14931518  Button->setText("Start DIM browser");
    14941519  connect(Button, SIGNAL(released()), SLOT(StartDIMBrowser()));
     
    15031528
    15041529  QProcess::startDetached("did", QStringList(), QString(getenv("DIMDIR"))+"/linux/");
     1530}
     1531
     1532// Start eLogBook
     1533void TP_Evidence::StartELog() {
     1534
     1535  QProcess::startDetached("firefox http://fact.ethz.ch/FACTelog/index.jsp");
    15051536}
    15061537
  • Evidence/Edd/Edd.h

    r232 r274  
    352352  private slots:
    353353        void StartDIMBrowser();
     354        void StartELog();
    354355
    355356  public:
Note: See TracChangeset for help on using the changeset viewer.