ddt  0.1
ddtViewer.hpp
Go to the documentation of this file.
1 // @copyright
2 // (c) Copyright ESO 2020
3 // All Rights Reserved
4 // ESO (eso.org) is an Intergovernmental Organization, and therefore special
5 // legal conditions apply.
6 //
7 // @file ddtViewer.hpp
8 // @brief Class for the DDT Standard Viewer
9 //
10 // This is the main class for the DDT Standard Viewer. The used widgets are all
11 // included into the viewer using Qt Designer.
12 //
13 // @author Carsten Mannel, CGI
14 // @since 2020/01/16
15 
16 #ifndef DDT_DATAVISUALISATION_DDTVIEWER_DDTVIEWER_H
17 #define DDT_DATAVISUALISATION_DDTVIEWER_DDTVIEWER_H
18 
19 #include <QMainWindow>
20 
22 #include "ddt/ddtLogger.hpp"
23 
24 namespace Ui {
25 
26 class DdtViewerForm;
27 }
28 
33 class DdtViewer : public QMainWindow {
34  Q_OBJECT
35 
36  public:
40  explicit DdtViewer(QWidget* parent = nullptr);
41 
47  virtual ~DdtViewer();
48 
57  bool Init(int argc, char* argv[]);
58 
64  void LastSegment(void);
65 
66  protected:
71 
72  private:
73  Ui::DdtViewerForm* ui;
74 
75  QString startup_filename;
76  QString startup_data_stream;
77 
78  bool debug_log_enabled;
79 
80  public slots:
85  void HandleArguments();
86 
87  private:
91  void ConnectWidgets();
92 
96  void ConnectDialogs();
97 
98  protected:
104  void closeEvent(QCloseEvent* event) override;
105 
112  bool ParseCommandline(int argc, char* argv[]);
113 
114  signals:
119  void AttachDataFile(QString filename);
120 
125  void AttachDataStream(QString data_stream);
126 
130  void DetachStream();
131 
136  void SetDataStream(QString startup_data_stream);
137 };
138 
139 #endif // DDT_DATAVISUALISATION_DDTVIEWER_DDTVIEWER_H
DdtViewer::LastSegment
void LastSegment(void)
Definition: ddtViewer.cpp:200
commandLineParserBuilder.hpp
DdtViewer::ParseCommandline
bool ParseCommandline(int argc, char *argv[])
Definition: ddtViewer.cpp:234
DdtViewer
The DdtViewer class Main class of the DDT Standard Viewer.
Definition: ddtViewer.hpp:33
ddt::DdtLogger
Definition: ddtLogger.hpp:71
DdtViewer::Init
bool Init(int argc, char *argv[])
Definition: ddtViewer.cpp:29
DdtViewer::AttachDataStream
void AttachDataStream(QString data_stream)
DdtViewer::~DdtViewer
virtual ~DdtViewer()
Definition: ddtViewer.cpp:206
DdtViewer::SetDataStream
void SetDataStream(QString startup_data_stream)
Ui
Definition: ddtViewer.hpp:24
DdtViewer::AttachDataFile
void AttachDataFile(QString filename)
DdtViewer::HandleArguments
void HandleArguments()
HandleArguments Slot to handle commandline arguments after initialisation of the GUI.
Definition: ddtViewer.cpp:223
ddtLogger.hpp
DdtViewer::closeEvent
void closeEvent(QCloseEvent *event) override
closeEvent Close event which is triggered when the main window shell be closed.
Definition: ddtViewer.cpp:214
DdtViewer::logger
ddt::DdtLogger * logger
Definition: ddtViewer.hpp:70
DdtViewer::DetachStream
void DetachStream()
DdtViewer::DdtViewer
DdtViewer(QWidget *parent=nullptr)
Definition: ddtViewer.cpp:26