31 lines
653 B
C++
31 lines
653 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include "StdOutRedirector.h"
|
|
namespace Ui {
|
|
class MainWindow;
|
|
}
|
|
class GUIMessageDialog;
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget* parent = nullptr);
|
|
~MainWindow();
|
|
static void QMessageOutput(QtMsgType, const QMessageLogContext&, const QString& msg);
|
|
void centerWidgetHide();
|
|
void centerWidgetShow();
|
|
void requestLogin();
|
|
QTextEdit* getEdit();
|
|
void debugConsoleOn();
|
|
private:
|
|
Ui::MainWindow* ui;
|
|
GUIMessageDialog* msgDialog = nullptr;
|
|
StdOutRedirector* redir = nullptr;
|
|
QTextEdit* console = nullptr;
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|