5#include <wx/textctrl.h>
6#include "../../Headers/GUI/ComponentData.h"
View-model for a single component tile on the dashboard: its icon, type, name, current data string,...
Definition: ComponentData.h:14
A dashboard tile for a single component: shows its icon, name, enabled status, and current data,...
Definition: ComponentPanel.h:16
wxTextCtrl * myDeviceNameField
The device-name control.
Definition: ComponentPanel.h:21
ComponentData myComponentData
The component this panel displays.
Definition: ComponentPanel.h:18
ComponentPanel(wxWindow *theParentWindow, const ComponentData &theComponentData)
Builds the component tile: stores the component data and lays out the icon and the name/status/data t...
Definition: ComponentPanel.cpp:20
wxTextCtrl * myDataField
The data-display control.
Definition: ComponentPanel.h:23
void UpdateUI()
Refreshes the tile's controls from the current component data (icon, name, enabled/disabled status,...
Definition: ComponentPanel.cpp:56
void AdjustDataFieldHeight()
Adjusts the height of the data field so all the text can be shown, then re-lays out this panel and it...
Definition: ComponentPanel.cpp:86
ComponentData & GetComponentData()
Gets the component data this panel displays.
Definition: ComponentPanel.cpp:125
wxStaticBitmap * myComponentIconField
The icon control.
Definition: ComponentPanel.h:20
wxTextCtrl * myStatusField
The enabled/disabled status control.
Definition: ComponentPanel.h:22