Elaztek Developer Hub
Blamite Game Engine - Keystone  00314.05.25.21.0023.blamite
A library that enables the use of Qt in Blamite's editing tools.
console_output.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QDockWidget>
4 #include <Strings/components/interface/logger/logger.h>
5 
6 #include "ui_console_output.h"
7 
13 class console_output : public QDockWidget, public BlamLogReceiver
14 {
15  Q_OBJECT
16 
17 private slots:
21  void btn_clear_Click();
22 
28  void btn_copy_Click();
29 
30  void btn_show_errors_Click();
31  void btn_show_warnings_Click();
32  void btn_show_info_Click();
33  void cbox_show_output_from_indexChanged(int index);
34 
35 private:
36  Ui::guerilla_console_output ui;
37 
38  int displayed_error_count = 0;
39  int displayed_warning_count = 0;
40  int displayed_info_count = 0;
41 
42  int total_error_count = 0;
43  int total_warning_count = 0;
44  int total_info_count = 0;
45 
46  void AppendLogMessage(BlamBasicLogMessage message);
47  void RebuildLogOutput();
48 
49 public:
50  console_output(QWidget *parent = Q_NULLPTR);
52 
58  void LogMessageReceived(BlamBasicLogMessage message);
59 };
console_output
The console output window.
Definition: console_output.h:13
console_output::LogMessageReceived
void LogMessageReceived(BlamBasicLogMessage message)
Adds a new log message to the output text field.
Definition: console_output.cpp:61
console_output::console_output
console_output(QWidget *parent=Q_NULLPTR)
Definition: console_output.cpp:11
console_output::~console_output
~console_output()
Definition: console_output.cpp:35