A dashboard tile for a single component: shows its icon, name, enabled status, and current data, auto-sizing the data field to fit its text.
More...
#include <ComponentPanel.h>
|
| | ComponentPanel (wxWindow *theParentWindow, const ComponentData &theComponentData) |
| | Builds the component tile: stores the component data and lays out the icon and the name/status/data text fields in a vertical sizer. More...
|
| |
| void | UpdateUI () |
| | Refreshes the tile's controls from the current component data (icon, name, enabled/disabled status, data) and re-sizes the data field to fit. More...
|
| |
| ComponentData & | GetComponentData () |
| | Gets the component data this panel displays. More...
|
| |
|
| void | AdjustDataFieldHeight () |
| | Adjusts the height of the data field so all the text can be shown, then re-lays out this panel and its parent. More...
|
| |
A dashboard tile for a single component: shows its icon, name, enabled status, and current data, auto-sizing the data field to fit its text.
- Author
- Eddie O'Hagan
- Date
- 8/13/2026
◆ ComponentPanel()
| ComponentPanel::ComponentPanel |
( |
wxWindow * |
theParentWindow, |
|
|
const ComponentData & |
theComponentData |
|
) |
| |
Builds the component tile: stores the component data and lays out the icon and the name/status/data text fields in a vertical sizer.
- Author
- Eddie O'Hagan
- Date
- 8/13/2026
A dashboard tile for a single component: shows its icon, name, enabled status, and current data,...
Definition: ComponentPanel.h:16
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
- Parameters
-
| [in] | theParentWindow | The parent window. |
| [in] | theComponentData | The component this panel displays. |
◆ AdjustDataFieldHeight()
| void ComponentPanel::AdjustDataFieldHeight |
( |
| ) |
|
|
protected |
Adjusts the height of the data field so all the text can be shown, then re-lays out this panel and its parent.
- Author
- Eddie O'Hagan
- Date
- 8/13/2026
◆ GetComponentData()
Gets the component data this panel displays.
- Author
- Eddie O'Hagan
- Date
- 8/13/2026
View-model for a single component tile on the dashboard: its icon, type, name, current data string,...
Definition: ComponentData.h:14
- Returns
- A reference to the panel's component data.
◆ UpdateUI()
| void ComponentPanel::UpdateUI |
( |
| ) |
|
Refreshes the tile's controls from the current component data (icon, name, enabled/disabled status, data) and re-sizes the data field to fit.
- Author
- Eddie O'Hagan
- Date
- 8/13/2026
◆ myComponentData
The component this panel displays.
◆ myComponentIconField
| wxStaticBitmap* ComponentPanel::myComponentIconField |
|
protected |
◆ myDataField
| wxTextCtrl* ComponentPanel::myDataField |
|
protected |
The data-display control.
◆ myDeviceNameField
| wxTextCtrl* ComponentPanel::myDeviceNameField |
|
protected |
◆ myStatusField
| wxTextCtrl* ComponentPanel::myStatusField |
|
protected |
The enabled/disabled status control.
The documentation for this class was generated from the following files: