ATLAS Offline Software
VP1EventDisplayEditor.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class VP1EventDisplayEditor //
9 // //
10 // Description: Event display editor. //
11 // //
12 // Author: Riccardo-Maria BIANCHI (rbianchi@cern.ch) //
13 // Initial version: September 2013 //
14 // //
16 
17 #ifndef VP1CUSTOMTOUREDITOR_H
18 #define VP1CUSTOMTOUREDITOR_H
19 
21 
23 #include "VP1Base/VP1Msg.h"
24 
25 #include <QWidget>
26 #include <QGraphicsView>
27 #include <QGraphicsScene>
28 #include <QGraphicsPixmapItem>
29 #include <QSplitter>
30 
31 class VP1MainWindow;
32 
33 
34 class VP1EventDisplayEditor : public QWidget {
35 
36  Q_OBJECT
37 
38 public:
39 
40  VP1EventDisplayEditor(VP1MainWindow* mainWindow, QList<unsigned long long> listRunEventNumberTimestamp);
41  virtual ~VP1EventDisplayEditor();
42 
43 // QGraphicsView* getView();
44 
45  void addPixmapList(QList<QPixmap>& list, QStringList& listNames);
46  void setTabsList(QStringList listNames);
47 
48  // void setState(QByteArray);
49  // QByteArray state() const;
50 
51 
52 protected:
53  void closeEvent(QCloseEvent*);
54 
55 private Q_SLOTS:
56  // void buttonClicked();
57  void setTextLabel();
58  void removeObject();
59  void addLogo();
60  void setBackgroundColor();
61  void savePicture();
62  void printPicture();
63  void getTabSnapshot();
64  void enableCustomTextField(bool checked);
65 
66 private:
67 
68  QString getEventDetailsLabel();
69  void addTextLabel(QString text, QFont font);
70 
71  class Imp;
72  Imp * m_d;
73  QGraphicsScene* m_scene;
74 // QGraphicsScene* scene_preview;
75  QList< QGraphicsItem* > m_sceneItems;
76 // QGraphicsItem *itemPreview;
77 
79 
80  QStringList m_listTabNames;
81  QList<IVP1ChannelWidget*> m_allTabs;
82 
84 
86  unsigned long long m_eventNumber;
87  unsigned m_eventTimestamp;
88 
89 // QSplitter *h1Splitter;
90 // QSplitter *h2Splitter;
91 };
92 
93 #endif
VP1EventDisplayEditor::m_mainWindow
VP1MainWindow * m_mainWindow
Definition: VP1EventDisplayEditor.h:83
VP1EventDisplayEditor::VP1EventDisplayEditor
VP1EventDisplayEditor(VP1MainWindow *mainWindow, QList< unsigned long long > listRunEventNumberTimestamp)
Definition: VP1EventDisplayEditor.cxx:144
VP1EventDisplayEditor::closeEvent
void closeEvent(QCloseEvent *)
Definition: VP1EventDisplayEditor.cxx:706
VP1EventDisplayEditor::addLogo
void addLogo()
Definition: VP1EventDisplayEditor.cxx:624
VP1Msg.h
VP1EventDisplayEditor::printPicture
void printPicture()
Definition: VP1EventDisplayEditor.cxx:385
VP1EventDisplayEditor::setTabsList
void setTabsList(QStringList listNames)
Definition: VP1EventDisplayEditor.cxx:614
VP1EventDisplayEditor::m_eventTimestamp
unsigned m_eventTimestamp
Definition: VP1EventDisplayEditor.h:87
VP1EventDisplayEditor::m_d
Imp * m_d
Definition: VP1EventDisplayEditor.h:71
VP1EventDisplayEditor
Definition: VP1EventDisplayEditor.h:34
VP1EventDisplayEditor::~VP1EventDisplayEditor
virtual ~VP1EventDisplayEditor()
Definition: VP1EventDisplayEditor.cxx:348
VP1EventDisplayEditor::m_scene
QGraphicsScene * m_scene
Definition: VP1EventDisplayEditor.h:73
VP1EventDisplayEditor::addPixmapList
void addPixmapList(QList< QPixmap > &list, QStringList &listNames)
Definition: VP1EventDisplayEditor.cxx:424
VP1EventDisplayEditor::m_runNumber
int m_runNumber
Definition: VP1EventDisplayEditor.h:85
VP1EventDisplayEditor::addTextLabel
void addTextLabel(QString text, QFont font)
Definition: VP1EventDisplayEditor.cxx:559
VP1EventDisplayEditor::savePicture
void savePicture()
Definition: VP1EventDisplayEditor.cxx:392
VP1EventDisplayEditor::m_eventNumber
unsigned long long m_eventNumber
Definition: VP1EventDisplayEditor.h:86
VP1EventDisplayEditor::m_sceneItems
QList< QGraphicsItem * > m_sceneItems
Definition: VP1EventDisplayEditor.h:75
VP1EventDisplayEditor::setTextLabel
void setTextLabel()
Definition: VP1EventDisplayEditor.cxx:473
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
VP1EventDisplayEditor::enableCustomTextField
void enableCustomTextField(bool checked)
Definition: VP1EventDisplayEditor.cxx:360
VP1EventDisplayEditor::setBackgroundColor
void setBackgroundColor()
Definition: VP1EventDisplayEditor.cxx:684
VP1EventDisplayEditor::m_allTabs
QList< IVP1ChannelWidget * > m_allTabs
Definition: VP1EventDisplayEditor.h:81
VP1EventDisplayEditor::getTabSnapshot
void getTabSnapshot()
Definition: VP1EventDisplayEditor.cxx:589
VP1EventDisplayEditor::Imp
Definition: VP1EventDisplayEditor.cxx:39
VP1EventDisplaySceneView.h
VP1EventDisplayEditor::getEventDetailsLabel
QString getEventDetailsLabel()
Definition: VP1EventDisplayEditor.cxx:371
VP1EventDisplaySceneView
Definition: VP1EventDisplaySceneView.h:66
VP1EventDisplayEditor::m_listTabNames
QStringList m_listTabNames
Definition: VP1EventDisplayEditor.h:80
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
plotBeamSpotMon.font
font
Definition: plotBeamSpotMon.py:80
VP1MainWindow
Definition: VP1MainWindow.h:82
VP1EventDisplayEditor::m_preview
VP1EventDisplaySceneView * m_preview
Definition: VP1EventDisplayEditor.h:78
VP1EventDisplayEditor::removeObject
void removeObject()
Definition: VP1EventDisplayEditor.cxx:447
IVP1ChannelWidget.h