OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
LogVisualizationItemViewDialog.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
9#include "OTCore/Logger.h"
10#include "OTWidgets/Dialog.h"
11
12class QLabel;
13class QWidget;
14class QLineEdit;
15class QCheckBox;
16class QShortcut;
17class QVBoxLayout;
18class QHBoxLayout;
19class QGridLayout;
20class QPushButton;
21class QPlainTextEdit;
22
24 Q_OBJECT
27public:
28 LogVisualizationItemViewDialog(const ot::LogMessage& _msg, size_t _index, QWidget* _parent);
30
31protected:
32 virtual void closeEvent(QCloseEvent* _event) override;
33
34 virtual void mousePressEvent(QMouseEvent* _event) override;
35
36 virtual bool eventFilter(QObject* _obj, QEvent* _event) override;
37
38 virtual bool event(QEvent* _event) override;
39
40private Q_SLOTS:
41 void slotRecenter(void);
42 void slotDisplayMessageText(int _state);
43
44private:
45 QString findJsonSyntax(const QString& _inputString);
46
47 ot::LogMessage m_msg;
48
49 QShortcut* m_closeShortcut;
50 QShortcut* m_recenterShortcut;
51 QVBoxLayout* m_centralLayout;
52 QGridLayout* m_dataLayout;
53 QVBoxLayout* m_bigVLayout;
54 QHBoxLayout* m_messageTitleLayout;
55 QHBoxLayout* m_buttonLayout;
56
57 QLabel* m_timeL;
58 QLineEdit* m_time;
59 QLabel* m_timeLocalL;
60 QLineEdit* m_timeLocal;
61 QLabel* m_userNameL;
62 QLineEdit* m_userName;
63 QLabel* m_projectNameL;
64 QLineEdit* m_projectName;
65 QLabel* m_senderNameL;
66 QLineEdit* m_senderName;
67 QLabel* m_messageTypeL;
68 QLineEdit* m_messageType;
69 QCheckBox* m_findMessageSyntax;
70
71 QLabel* m_functionL;
72 QLineEdit* m_function;
73 QLabel* m_messageL;
74 QPlainTextEdit* m_message;
75
76 QPushButton* m_okButton;
77};
OpenTwin Logging system.
#define OT_DECL_NODEFAULT(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:22
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition LogVisualizationItemViewDialog.h:23
virtual void closeEvent(QCloseEvent *_event) override
Definition LogVisualizationItemViewDialog.cpp:150
virtual void mousePressEvent(QMouseEvent *_event) override
Definition LogVisualizationItemViewDialog.cpp:161
virtual bool eventFilter(QObject *_obj, QEvent *_event) override
Definition LogVisualizationItemViewDialog.cpp:170
virtual ~LogVisualizationItemViewDialog()
Definition LogVisualizationItemViewDialog.cpp:146
LogVisualizationItemViewDialog(const ot::LogMessage &_msg, size_t _index, QWidget *_parent)
Definition LogVisualizationItemViewDialog.cpp:26
virtual bool event(QEvent *_event) override
Definition LogVisualizationItemViewDialog.cpp:187
Definition Dialog.h:19
Contains information about the origin and the content of a log message.
Definition Logger.h:345