35 lines
742 B
C++
35 lines
742 B
C++
#ifndef SERIAL_SAMPLE_SERIALAPP_H
|
|
#define SERIAL_SAMPLE_SERIALAPP_H
|
|
|
|
#include "ConnectionWindow.h"
|
|
#include "PayloadWindow.h"
|
|
#include "LogWindow.h"
|
|
#include <string>
|
|
|
|
class SerialApp {
|
|
public:
|
|
SerialApp();
|
|
~SerialApp() = default;
|
|
|
|
void initialize();
|
|
void renderUI();
|
|
|
|
bool isClosing() const { return shouldClose; }
|
|
|
|
private:
|
|
void renderMainMenuBar();
|
|
bool loadTheme(const std::string& filepath); // Метод парсинга файла темы
|
|
|
|
bool showConnectionWindow = true;
|
|
bool showPayloadWindow = true;
|
|
bool showLogWindow = true;
|
|
|
|
bool shouldClose;
|
|
|
|
ConnectionWindow connectionWindow;
|
|
PayloadWindow payloadWindow;
|
|
LogWindow logWindow;
|
|
};
|
|
|
|
#endif // SERIAL_SAMPLE_SERIALAPP_H
|