INOS
|
#include <cinossiotftexp.h>
Public Types | |
typedef void(* | OnValueChanged) (CTFTIncoVariable *, void *, const double) |
Callback used to inform about a value change. | |
typedef double(* | OnValueConversion) (CTFTIncoVariable *, void *, const double, bool) |
Callback used to specify a conversion upon Get/PutVariables, e.g. to display values in inch while they are actually stored in mm. | |
Public Member Functions | |
CTFTIncoVariable (CINOSSioTftExpTab *apParent, XMLNode axVarNode) | |
Constructor. | |
virtual | ~CTFTIncoVariable () |
Destructor. | |
virtual void | GetValueLimited (char *apBuf, uint32 auSize) |
Get string form of current value but limits the text length for string types, if required. | |
virtual void | GetValue (char *apBuf, uint32 auSize) |
Get string form of current value. | |
virtual void | SetValue (char *apBuf) |
Set new value. | |
virtual void | GetUnit (char *apBuf, uint32 auSize) |
Get unit of member. | |
virtual uint32 | GetCharacteristics () |
Get characteristics of member. | |
virtual bool | IsWritable (uint32 auUserLevel) |
Check if member is writable for editing with given level. | |
virtual bool | UpdateInco () |
Update inco item pointer e.g. after new registrations. | |
virtual bool | RepaintNeeded () |
Update member and check if anything requires a repaint. | |
virtual const char * | FindName (const char *apLangName=NULL) |
Find member name according to given language. | |
virtual bool | CanToggle () |
Returns true if the member can be toggled. | |
virtual void | Toggle () |
Toggles the value of this member. | |
virtual CINCOItem * | GetItem () const |
Returns the pointer to the INCO-tree item. | |
virtual void | SetDigits (int8 aiDigits) |
To change or set the required number of digits for the value representation (see GetValue) | |
![]() | |
CTFTIncoMember (CINOSSioTftExpTab *apParent, XMLNode axVarNode) | |
Constructor. | |
virtual | ~CTFTIncoMember () |
Destructor. | |
bool | SetCharacteristics (uint32 auChar, ETFTCharCmd aeCmd) |
Change characteristics. | |
virtual void | SelLanguage (const char *apLangName, const char *apLangFile, const char *apLangFileEnd) |
Set name according to selected language (or default). | |
virtual const char * | GetName () |
Get current name of member (depends on selected language). | |
virtual void | GetDefaultName (char *apBuf, uint32 auSize) |
Get default name independent of language. | |
virtual uint16 | GetCoordX () |
virtual uint16 | GetCoordY () |
virtual void | SetCoordY (uint16 auCoordY) |
virtual uint16 | GetSizeX () |
virtual uint16 | GetSizeY () |
virtual bool | HitTest (uint16 auCoordX, uint16 auCoordY) |
virtual EBlockTextAlignment | GetAlignment () |
uint8 | GetForeColor () |
uint8 | GetBackColor () |
void | SetBackColor (uint8 auColor) |
uint8 | GetFrame () |
STFTFontInfo & | GetFont () |
void | SetReadOnly () |
void | SetWritable () |
uint8 | GetKeyBoard () const |
Static Public Member Functions | |
static void | setConversionFunc (OnValueConversion func, void *apContext) |
Setter for conversion function called upon Get/PutVariable to convert values between display and internal representation. | |
static void | setValueChangeFunc (OnValueChanged func, void *apContext) |
Setter for callback function called at value change. | |
Protected Member Functions | |
void | ValueChanged (const double value) |
Invokes the value change callback. | |
Protected Attributes | |
CINCOItem * | m_pItem |
Inco item of registered variable. | |
uint16 | m_uIndex |
Inco index if member is an array's element. | |
int8 | m_iDigits |
Stores the defined digits, negative values mean 'undefined'. | |
real64 | m_dMin |
Range restriction. | |
real64 | m_dMax |
![]() | |
CINOSSioTftExpTab * | m_pParent |
XMLNode | m_xVarNode |
Config node for this member. | |
const char * | m_pName |
Pointer to current name (depending on language). | |
uint32 | m_uType |
Type of member. | |
uint16 | m_uColumns |
Column setting (value, unit) for this member. | |
uint16 | m_uCoordX |
X coordinate of member (to check for touches). | |
uint16 | m_uCoordY |
Y coordinate of member (to check for touches). | |
uint8 | m_uHeight |
Height of this member. | |
uint16 | m_uSizeX |
X size of member. | |
uint16 | m_uSizeY |
Y size of member. | |
EBlockTextAlignment | m_eAlign |
uint8 | m_uColFore |
uint8 | m_uColBack |
uint8 | m_uFrame |
uint8 | m_uKeyboard |
required keyboard | |
bool | m_bReadOnly |
Flag indicating if the user is not allowed to change the member. | |
bool | m_bUserReadOnly |
Flag indicating if the user is not allowed to change the member in this state. | |
STFTFontInfo | m_Font |
Font for this member. | |
Static Protected Attributes | |
static OnValueConversion | s_pConversionFunc |
Conversion callback. | |
static OnValueChanged | s_pValueChangedFunc |
on value change callback | |
static void * | s_pContext |
Context for callback functions. | |
Friends | |
class | CINOSSioTftExpTab |
Registered variable.
Returns true if the member can be toggled.
Reimplemented from CTFTIncoMember.
Find member name according to given language.
apLangName | Name of language to look for, NULL for default name. |
Reimplemented from CTFTIncoMember.
|
virtual |
Get unit of member.
apBuf | Buffer to receive unit string. |
auSize | Size of string buffer. |
Reimplemented from CTFTIncoMember.
Get string form of current value.
apBuf | Buffer to receive value string. |
auSize | Size of string buffer. |
Reimplemented from CTFTIncoMember.
Get string form of current value but limits the text length for string types, if required.
apBuf | Buffer to receive value string. |
auSize | Size of string buffer. |
Reimplemented from CTFTIncoMember.
Check if member is writable for editing with given level.
auUserLevel | User level to check against for writing. |
Reimplemented from CTFTIncoMember.
Update member and check if anything requires a repaint.
Reimplemented from CTFTIncoMember.
Toggles the value of this member.
Reimplemented from CTFTIncoMember.
Update inco item pointer e.g. after new registrations.
Reimplemented from CTFTIncoMember.