protobuf server

This commit is contained in:
Ivan I. Ovchinnikov
2026-07-28 20:46:41 +03:00
parent 5a702fe0f8
commit 8c4d40b66a
11 changed files with 150 additions and 56 deletions
+3 -3
View File
@@ -11,10 +11,10 @@ public:
~ConnectionWindow();
void initialize();
void render(bool* p_open);
void render(bool* paramOpen);
bool isConnected() const { return connected; }
struct sp_port* getActivePort() const { return activePort; }
[[nodiscard]] bool isConnected() const { return connected; }
[[nodiscard]] sp_port* getActivePort() const { return activePort; }
void forceLogMessage(const std::string& msg);
std::string& getSharedLog() { return txLog; }
+1 -1
View File
@@ -8,7 +8,7 @@ public:
LogWindow() = default;
~LogWindow() = default;
void render(bool* paramOpen, ConnectionWindow& connectionWindow);
static void render(bool* paramOpen, ConnectionWindow& connectionWindow);
};
#endif // SERIAL_SAMPLE_LOGWINDOW_H
+2 -2
View File
@@ -15,8 +15,8 @@ public:
void render(bool* p_open, ConnectionWindow& connectionWindow);
private:
void sendHexPayload(const std::string& hexString, ConnectionWindow& connectionWindow);
char hexInputBuffer[256];
static void sendHexPayload(const std::string& hexString, ConnectionWindow& connectionWindow);
char hexInputBuffer[256]{};
};
#endif // SERIAL_SAMPLE_PAYLOADWINDOW_H
+3 -2
View File
@@ -14,11 +14,12 @@ public:
void initialize();
void renderUI();
bool isClosing() const { return shouldClose; }
[[nodiscard]] bool isClosing() const { return shouldClose; }
private:
void renderMainMenuBar();
bool loadTheme(const std::string& filepath); // Метод парсинга файла темы
static bool loadTheme(const std::string& filepath); // Метод парсинга файла темы
bool showConnectionWindow = true;
bool showPayloadWindow = true;