Library: karma
Link With: -lkarma
panel_create | Create a control panel object. |
panel_create_group | Create a panel to contain a group. |
panel_add_item | Add an item to a panel. |
panel_push_onto_stack | Push a control panel object onto the control panel stack. |
panel_pop_from_stack | Pop last pushed control panel object from control panel stack. |
panel_process_command_with_stack | Process a command. |
panel_put_history_with_stack | Put history into Karma multi_array structure. |
panel_set_extra_comment_string | Set the extra comment string for a panel. |
panel_PROTO_decode_func | Command line decode callback. |
panel_ATTRIBUTES | List of attributes for panel item objects |
panel_ITEM_TYPES | List of Karma data types |
Create a control panel object.
Parameters:
This routine will create a control panel object which is a container for a group of items. Panel items may be added to this panel object, and the panel object itself may be later added as panel item to another panel object (of type PIT_GROUP).
Parameters:
This routine will add a panel item to a KControlPanel object. Each panel item has a number of "attributes". First come the "core" attributes, follwed by the optional attributes. Below are the core attributes:
Parameters:
Push a control panel object onto the control panel stack.
Parameters:
Pop last pushed control panel object from control panel stack.
Parameters:
This routine will process a command, using the top control panel on the stack to interpret it.
Parameters:
Put history into Karma multi_array structure.
Parameters:
Set the extra comment string for a panel.
Parameters:
This function is called whenever a command string is to be processed.
Parameters:
Name | Type | Meaning |
PIA_END | End of varargs list | |
PIA_NUM_CHOICE_STRINGS | unsigned int | Number of choice strings |
PIA_CHOICE_STRINGS | char ** | Choice strings |
PIA_ARRAY_LENGTH | unsigned int * | Current array length |
PIA_ARRAY_MIN_LENGTH | unsigned int | Minimum array length |
PIA_ARRAY_MAX_LENGTH | unsigned int | Maximum array length |
PIA_CHOICE_COMMENTS | char ** | Choice string comments |
PIA_MIN_VALUE | double | Minimum value |
PIA_MAX_VALUE | double | Maximum value |
PIA_TOP_OF_PANEL | flag | Place item at top of panel |
Name | value_ptr type | Meaning |
PIT_FUNCTION | void (*) (char *) | Execute function |
PIT_EXIT_FORM | Exit form | |
PIT_FLAG | flag * | Flag type |
PIT_CHOICE_INDEX | unsigned int * | Choice index (requires: PIA_NUM_CHOICE_STRINGS and PIA_CHOICE_STRINGS) |
PIT_GROUP | KControlPanel | Group item |