TaskController 2.2.23
A light-weight UI that serves as the task/parameter front-end.
|
Defines major components in the controller and its sub-applications. This group encompasses functions and structures related to creating and managing the layout of user interfaces within the controller application. More...
Functions | |
HWND | createCustomButton (int x, int y, HWND hwndParent, HMENU controlID, HINSTANCE hInstance) |
Creates a custom button control with specified parameters. | |
HWND | createNumericEdit (int x, int y, HWND hwndParent, HMENU controlID, HINSTANCE hInstance) |
Creates a numeric edit control with a specified default value. | |
void | initUILayout (HWND hwnd, HINSTANCE hInstance) |
Initializes the user interface layout and controls. | |
void | createTargetChildWindow (HINSTANCE hInstance) |
Creates and initializes the child window for the target interface. | |
void | createCalibrationChildWindow (HINSTANCE hInstance) |
Creates and initializes the child window for the calibration interface. | |
void | updateNumericEditUI (HWND hParent) |
Updates the contents of numeric edit controls in the UI with values from TaskParameters. | |
void | updateStringUI (HWND hParent) |
Updates the contents of string controls in the UI with values from TaskParameters. | |
void | updateToggleUI () |
Updates the LOGGING and PAUSED toggle button based on current values of logging and paused global variables. | |
void | updateCalibrationUI (HWND hParent, CalibrationData *calData, TaskParameters *parameters) |
Updates the CALIBRATION window UI elements when a message is received. | |
Defines major components in the controller and its sub-applications. This group encompasses functions and structures related to creating and managing the layout of user interfaces within the controller application.
void createCalibrationChildWindow | ( | HINSTANCE | hInstance | ) |
Creates and initializes the child window for the calibration interface.
This function creates a child window for the calibration interface within the main application window.
hInstance | The instance handle of the module that contains the resource. |
HWND createCustomButton | ( | int | x, |
int | y, | ||
HWND | hwndParent, | ||
HMENU | controlID, | ||
HINSTANCE | hInstance ) |
Creates a custom button control with specified parameters.
This function creates a custom button control with the given position, parent window, control ID, and instance handle. It also sets up the window procedure for the button to handle identified button messages.
x | The x-coordinate of the button. |
y | The y-coordinate of the button. |
hwndParent | The handle to the parent window of the button. |
controlID | The menu item identifier of the button. |
hInstance | The instance handle of the module that contains the resource. |
HWND createNumericEdit | ( | int | x, |
int | y, | ||
HWND | hwndParent, | ||
HMENU | controlID, | ||
HINSTANCE | hInstance ) |
Creates a numeric edit control with a specified default value.
This function creates a numeric edit control with the specified parameters: position (y - vertical), parent window handle (hwndParent), control ID (controlID), and instance handle (hInstance) of the module. It sets an empty initial text value for the edit control and subclasses it to handle character input for numeric validation.
x | The x-coordinate of the static-label to the left of the control. |
y | The y-coordinate of the upper-left corner of the control. |
hwndParent | The handle to the parent window. |
controlID | The identifier of the control, cast as HMENU type. |
hInstance | The handle to the instance of the module that created the control. |
void createTargetChildWindow | ( | HINSTANCE | hInstance | ) |
Creates and initializes the child window for the target interface.
This function creates a child window for the target interface within the main application window. The child window contains left and right panels with buttons and an edit control for displaying target information.
hInstance | The instance handle of the module that contains the resource. |
void initUILayout | ( | HWND | hwnd, |
HINSTANCE | hInstance ) |
Initializes the user interface layout and controls.
This function creates various UI elements such as buttons, text fields, and combo boxes, and arranges them within the main window to define the layout. It also sets up event handlers and default values for the UI controls.
hwnd | The handle for the window with layout to be created. |
hInstance | The instance handle of the module that contains the resource. |
void updateCalibrationUI | ( | HWND | hParent, |
CalibrationData * | calData, | ||
TaskParameters * | parameters ) |
Updates the CALIBRATION window UI elements when a message is received.
hParent | The handle to the parent window containing the string edit or combobox controls. |
calData | Pointer to the calibration structure containing updated calibration data. |
parameters | Pointer to the task parameters tructure. |
void updateNumericEditUI | ( | HWND | hParent | ) |
Updates the contents of numeric edit controls in the UI with values from TaskParameters.
This function updates the text displayed in numeric edit controls in the UI with the corresponding values stored in the TaskParameters structure.
hParent | The handle to the parent window containing the numeric edit controls. |
void updateStringUI | ( | HWND | hParent | ) |
Updates the contents of string controls in the UI with values from TaskParameters.
This function updates the text displayed in numeric edit controls in the UI with the corresponding values stored in the TaskParameters structure.
hParent | The handle to the parent window containing the string edit or combobox controls. |
void updateToggleUI | ( | ) |
Updates the LOGGING and PAUSED toggle button based on current values of logging
and paused
global variables.