PeriDyno 1.2.1
Loading...
Searching...
No Matches
WLogWidget.h
Go to the documentation of this file.
1#pragma once
2#include <Wt/WContainerWidget.h>
3
4#include <Wt/WSignal.h>
5#include <Wt/WText.h>
6#include <Wt/WTextArea.h>
7
8#include "Log.h"
9#include "WMainWindow.h"
10
11
13{
14public:
17
18 static void RecieveLogMessage(const dyno::Log::Message& m);
19
20 void updateLog(const char* text);
21
22 Wt::Signal<std::string>& updateText();
23
24public:
26
27 Wt::WTextArea* edit;
28
29 std::string message;
30
31private:
32 Wt::WText* mLog = nullptr;
33
34 Wt::Signal<std::string> m_signal;
35
36};
37
38
39class WLogWidget : public Wt::WContainerWidget
40{
41public:
42 WLogWidget(WMainWindow* parent);
44
45 void showMessage(std::string s);
46
47private:
48 Wt::WTextArea* text;
50};
static WLogMessage * instance
Definition WLogWidget.h:25
Wt::Signal< std::string > m_signal
Definition WLogWidget.h:34
Wt::WText * mLog
Definition WLogWidget.h:32
void updateLog(const char *text)
static void RecieveLogMessage(const dyno::Log::Message &m)
Wt::Signal< std::string > & updateText()
Wt::WTextArea * edit
Definition WLogWidget.h:27
std::string message
Definition WLogWidget.h:29
void showMessage(std::string s)
WMainWindow * mParent
Definition WLogWidget.h:49
Wt::WTextArea * text
Definition WLogWidget.h:48
WLogWidget(WMainWindow *parent)