Plasma Engine  2.0
Loading...
Searching...
No Matches
LogWidget.moc.h
1#pragma once
2
3#include <Foundation/Basics.h>
4#include <Foundation/Logging/Log.h>
5#include <GuiFoundation/GuiFoundationDLL.h>
6#include <GuiFoundation/ui_LogWidget.h>
7#include <QWidget>
8
9class plQtLogModel;
11
13class PL_GUIFOUNDATION_DLL plQtLogWidget : public QWidget, public Ui_LogWidget
14{
15 Q_OBJECT
16
17public:
18 plQtLogWidget(QWidget* pParent);
20
21 void ShowControls(bool bShow);
22
23 plQtLogModel* GetLog();
24 plQtSearchWidget* GetSearchWidget();
25 void SetLogLevel(plLogMsgType::Enum logLevel);
26 plLogMsgType::Enum GetLogLevel() const;
27
28 virtual bool eventFilter(QObject* pObject, QEvent* pEvent) override;
29
30private Q_SLOTS:
31 void on_ButtonClearLog_clicked();
32 void on_Search_textChanged(const QString& text);
33 void on_ComboFilter_currentIndexChanged(int index);
34
35private:
36 plQtLogModel* m_pLog;
37 void ScrollToBottomIfAtEnd(int iNumElements);
38};
39
The Qt model that represents log output for a view.
Definition LogModel.moc.h:11
The application wide panel that shows the engine log output and the editor log output.
Definition LogWidget.moc.h:14
A widget that contains a line edit for a search text and a button to clear the search text.
Definition SearchWidget.moc.h:14
Enum
Definition Log.h:29