Ember
Loading...
Searching...
No Matches
ConnectionPanel.h
Go to the documentation of this file.
1#pragma once
2
3#include "Components/Panel.h"
4#include <wx/wx.h>
5
6namespace Ember {
7namespace Monitor {
8
9class TCPServer;
10
14 public:
15 ConnectionPanel(wxWindow *parent, TCPServer *server);
16 ~ConnectionPanel() override = default;
17
19 void UpdateStatus();
21 void SetTreeStatus(const wxString &status);
23 void SetTreeId(const wxString &treeId);
24
25 private:
26 void CreateUI();
27
28 void OnStartStop(wxCommandEvent &event);
29 void OnDisconnect(wxCommandEvent &event);
30
32
33 wxStaticText *m_serverStatusLabel;
34 wxTextCtrl *m_portInput;
36
37 wxStaticText *m_clientStatusLabel;
38 wxStaticText *m_clientAddressLabel;
39 wxStaticText *m_clientNameLabel;
40 wxStaticText *m_treeIdLabel;
42
44};
45
46} // namespace Monitor
47} // namespace Ember
Base class for all panels with layout, theme, and state management.
Definition Panel.h:11
void OnStartStop(wxCommandEvent &event)
void SetTreeStatus(const wxString &status)
Sets the tree status text shown in the panel.
void SetTreeId(const wxString &treeId)
Sets the tree ID text shown in the panel.
void OnDisconnect(wxCommandEvent &event)
void UpdateStatus()
Refreshes server and client status display.
~ConnectionPanel() override=default
ConnectionPanel(wxWindow *parent, TCPServer *server)
Single-client TCP server for receiving behavior tree data from monitored applications.
Definition TCPServer.h:14