2022-06-21 21:07:06 +02:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
2022-06-20 21:44:58 +02:00
|
|
|
|
2022-06-23 04:00:37 +02:00
|
|
|
#include "qmainwindow.h"
|
|
|
|
#include "qfontdatabase.h"
|
|
|
|
#include "qmessagebox.h"
|
2022-06-20 21:44:58 +02:00
|
|
|
|
2022-06-21 21:07:06 +02:00
|
|
|
#include "qtreewidget.h"
|
|
|
|
|
2022-06-23 04:00:37 +02:00
|
|
|
#include "utilities/io.h"
|
|
|
|
#include "utilities/rtf.h"
|
2022-06-23 20:07:59 +02:00
|
|
|
#include "tools/craplog.h"
|
2022-06-23 04:00:37 +02:00
|
|
|
|
2022-06-20 21:44:58 +02:00
|
|
|
QT_BEGIN_NAMESPACE
|
2022-06-21 21:07:06 +02:00
|
|
|
namespace Ui { class MainWindow; }
|
2022-06-20 21:44:58 +02:00
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
2022-06-21 21:07:06 +02:00
|
|
|
class MainWindow : public QMainWindow
|
2022-06-20 21:44:58 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-06-21 21:07:06 +02:00
|
|
|
MainWindow(QWidget *parent = nullptr);
|
|
|
|
~MainWindow();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_buttonViewFile_clicked();
|
|
|
|
|
|
|
|
void on_checkAllLogFiles_stateChanged(int arg1);
|
|
|
|
|
|
|
|
void on_buttonRefreshList_clicked();
|
|
|
|
|
|
|
|
void on_listLogFiles_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
2022-06-20 21:44:58 +02:00
|
|
|
|
2022-06-22 21:37:35 +02:00
|
|
|
void on_listLogFiles_itemChanged(QTreeWidgetItem *item, int column);
|
|
|
|
|
2022-06-20 21:44:58 +02:00
|
|
|
private:
|
2022-06-21 21:07:06 +02:00
|
|
|
Ui::MainWindow *ui;
|
|
|
|
Craplog craplog;
|
2022-06-22 21:37:35 +02:00
|
|
|
|
|
|
|
bool runCraplog();
|
|
|
|
|
|
|
|
std::unordered_map<std::string, QColor> COLORS;
|
|
|
|
std::unordered_map<std::string, QFont> FONTS;
|
|
|
|
int font_size, font_size_big, font_size_small;
|
2022-06-23 20:07:59 +02:00
|
|
|
|
|
|
|
int TB_color_scheme;
|
2022-06-20 21:44:58 +02:00
|
|
|
};
|
2022-06-21 21:07:06 +02:00
|
|
|
#endif // MAINWINDOW_H
|