Skip to content
Snippets Groups Projects
Commit 60676987 authored by Graeme Stewart's avatar Graeme Stewart
Browse files

graphics/VP1/VP1Plugins/VP1TriggerPlugin deleted from 21.0

Former-commit-id: d278ed40ac248eebce8f36c59151df05065c7ff9
parent 489953cf
No related merge requests found
################################################################################
# Package: VP1TriggerPlugin
################################################################################
# Declare the package name:
atlas_subdir( VP1TriggerPlugin )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
graphics/VP1/VP1Systems/VP1TriggerSystems )
# Install files from the package:
atlas_install_headers( VP1TriggerPlugin )
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef VP1TRIGGERUICHANNEL_H
#define VP1TRIGGERUICHANNEL_H
/***********************************************************************************
* @Package : VP1TriggerPlugins
* @Class : VP1TriggerUIChannel
*
* @brief : Trigger UI to query trigger data utilizing the VP1TriggerTool (Header)
*
* @author : Manuel Proissl <mproissl@cern.ch> - University of Edinburgh
***********************************************************************************/
//Local includes
#include "VP1TriggerSystems/Logger.h"
//Base include
#include "VP1Base/IVP1ChannelWidget.h"
//GUI includes
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <QTextBrowser>
#include <QTextDocument>
#include <QTreeWidgetItemIterator>
#include <QLineEdit>
#include <QComboBox>
#include <QPushButton>
#include <QLabel>
//Other includes
#include <QList>
//Classes
class VP1TriggerUISystem;
namespace VP1Trig {
class VP1TriggerTool;
}
class VP1TriggerUIChannel : public IVP1ChannelWidget, public virtual VP1Trig::Logger
{
Q_OBJECT
public:
VP1TriggerUIChannel();
virtual ~VP1TriggerUIChannel();
void init();
Type type() const { return NUMBERS; };
//System calls:
void create();
void systemRefreshed(IVP1System*);
void systemErased(IVP1System*);
protected slots:
void filterDisplayUpdate(QString);
void setTrigLvl(QString);
void toggleDisplay();
private:
//VP1Trig::VP1TriggerTool * m_triggertool;
VP1TriggerUISystem * sys;
//GUI components
QTreeWidget * m_treeWidget;
QTextBrowser * m_filterDisplay;
QLineEdit * m_searchBar;
QComboBox * m_comboBox;
QPushButton * m_switchButton;
QLabel * m_browserLabel;
//Processing methods
void loadTrigData(QString);
bool loadDataPattern();
void searchData(QString);
void printToScreen(QString);
//Formated trigger data for search purposes
QList<QString> trigNode;
std::vector<std::vector<QString> > trigData;
};
#endif
package VP1TriggerPlugin
author Manuel Proissl <mproissl@cern.ch>
manager Manuel Proissl <mproissl@cern.ch>
use AtlasPolicy AtlasPolicy-*
use VP1TriggerSystems VP1TriggerSystems-* graphics/VP1/VP1Systems
apply_pattern vp1plugin
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>TriggerUIWidgetForm</class>
<widget class="QWidget" name="TriggerUIWidgetForm">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="browserLabel">
<property name="font">
<font>
<family>Arial</family>
</font>
</property>
<property name="text">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:7pt; font-weight:600;&quot;&gt;BROWSER&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="scaledContents">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QTreeWidget" name="treeWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<attribute name="headerVisible">
<bool>false</bool>
</attribute>
<attribute name="headerVisible">
<bool>false</bool>
</attribute>
<column>
<property name="text">
<string notr="true">TriggerData</string>
</property>
</column>
</widget>
</item>
<item>
<widget class="QLabel" name="filterLabel">
<property name="text">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:7pt; font-weight:600;&quot;&gt;FILTER&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QTextBrowser" name="filterDisplay">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<family>Monospace</family>
<pointsize>9</pointsize>
</font>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QComboBox" name="comboBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<item>
<property name="text">
<string>All</string>
</property>
</item>
<item>
<property name="text">
<string>L1 Data</string>
</property>
</item>
<item>
<property name="text">
<string>L2 Data</string>
</property>
</item>
<item>
<property name="text">
<string>EF Data</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QLineEdit" name="searchBar"/>
</item>
<item>
<widget class="QPushButton" name="switchButton">
<property name="text">
<string>Browser</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment