ATLAS Offline Software
Loading...
Searching...
No Matches
VP12DExaminerViewer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6// //
7// Header file for class VP12DExaminerViewer //
8// //
9// Author: Thomas Kittelmann <Thomas.Kittelmann@cern.ch> //
10// //
11// Initial version: April 2007 //
12// Major update to support multiple views: July 2007 //
13// //
15
16#ifndef VP12DEXAMINERVIEWER_H
17#define VP12DEXAMINERVIEWER_H
18
19#include <QList>
20#include <QPair>
21#include <QStringList>
22#include <QWidget>
23
24class VP1GraphicsView;
25
26class VP12DExaminerViewer : public QWidget {
27
28 Q_OBJECT
29
30public:
31
32 //The choice of constructor will determine whether this view is in single or multi view mode:
33
34 //An examinerviewer with just one VP1GraphicsView:
35 VP12DExaminerViewer(QWidget * parent = 0, Qt::WindowFlags f = Qt::WindowFlags());
36 //An examinerviewer with several VP1GraphicsView's. First argument is a list of view_id's and icon urls for the views:
37 VP12DExaminerViewer(const QList<QPair<QString,QString> >& views, QWidget * parent = 0, Qt::WindowFlags f = Qt::WindowFlags());
38 virtual ~VP12DExaminerViewer();
39
40 bool isSingleViewMode() const;
41
42 VP1GraphicsView * view() const;//Returns the pointer to the view which is currently shown.
43 VP1GraphicsView * view(const QString& view_id) const;//Returns pointer to view with a given view_id (0 if view_id not found or single view mode).
44 QString currentView() const;//Only relevant in multiview mode (returns empty string otherwise)
45
46 //These two return empty stringlists if we are in the mode with just one VP1GraphicsView:
47 QStringList viewIDs() const;
48 QList<QPair<QString,QString> > viewIDsAndIconUrls() const;
49
50public Q_SLOTS:
51 void setPickMode();
52 void setChangeViewMode();
53 void setSeekMode();
54 void setShownView(const QString&);//Only relevant in multiview mode
55
56signals:
57 void currentViewAboutToChange(VP1GraphicsView*);//Emitted just before the view changes. Parameter is the view which will be shown.
58 void currentViewChanged();//Just after the view changed.
59
60private Q_SLOTS:
62private:
65 class Imp;
67
68};
69
70#endif
VP12DExaminerViewer(QWidget *parent=0, Qt::WindowFlags f=Qt::WindowFlags())
VP1GraphicsView * view() const
VP12DExaminerViewer(const VP12DExaminerViewer &)
QList< QPair< QString, QString > > viewIDsAndIconUrls() const
void setShownView(const QString &)
QStringList viewIDs() const
void currentViewAboutToChange(VP1GraphicsView *)
VP12DExaminerViewer & operator=(const VP12DExaminerViewer &)