INOS
|
#include <cinossiotftexp.h>
Public Member Functions | |
CTFTIncoMember (CINOSSioTftExpTab *apParent, XMLNode axVarNode) | |
Constructor. | |
virtual | ~CTFTIncoMember () |
Destructor. | |
virtual void | GetValueLimited (char *apBuf, uint32 auSize) |
Get string form of current value. | |
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. | |
bool | SetCharacteristics (uint32 auChar, ETFTCharCmd aeCmd) |
Change characteristics. | |
virtual bool | IsWritable (uint32 auUserLevel) |
Check if member is writable for editing with given level. | |
virtual void | SelLanguage (const char *apLangName, const char *apLangFile, const char *apLangFileEnd) |
Set name according to selected language (or default). | |
virtual bool | UpdateInco () |
Update inco item pointer if member has one. | |
virtual bool | RepaintNeeded () |
Update member and check if anything requires a repaint. | |
virtual const char * | GetName () |
Get current name of member (depends on selected language). | |
virtual const char * | FindName (const char *apLangName=NULL) |
Find member name according to given language. | |
virtual void | GetDefaultName (char *apBuf, uint32 auSize) |
Get default name independent of language. | |
virtual bool | CanToggle () |
Returns true if the member can be toggled. | |
virtual void | Toggle () |
Toggles the value of this member. | |
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 |
Protected Attributes | |
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. | |
Friends | |
class | CINOSSioTftExp |
class | CINOSSioTftExpTab |
Base class for all tab 'members' like variables, titles, memory etc
CTFTIncoMember::CTFTIncoMember | ( | CINOSSioTftExpTab * | apParent, |
XMLNode | axVarNode | ||
) |
Constructor.
apParent | Tab that contains this member. |
axVarNode | XML config node for this member. |
Returns true if the member can be toggled.
Reimplemented in CTFTIncoVariable.
Find member name according to given language.
apLangName | Name of language to look for, NULL for default name. |
Reimplemented in CTFTIncoVariable, CTFTIncoTitle, CTFTIncoStatic, CTFTIncoMemory, and CTFTIncoBitmap.
|
virtual |
Get characteristics of member.
Reimplemented in CTFTIncoVariable, and CTFTIncoMemory.
Get default name independent of language.
apBuf | Buffer to receive name string. |
auSize | Size of string buffer. |
Get current name of member (depends on selected language).
Get unit of member.
apBuf | Buffer to receive unit string. |
auSize | Size of string buffer. |
Reimplemented in CTFTIncoVariable.
Get string form of current value.
apBuf | Buffer to receive value string. |
auSize | Size of string buffer. |
Reimplemented in CTFTIncoVariable, CTFTIncoStatic, and CTFTIncoMemory.
Get string form of current value.
apBuf | Buffer to receive value string. |
auSize | Size of string buffer. |
Reimplemented in CTFTIncoVariable.
Check if member is writable for editing with given level.
auUserLevel | User level to check against for writing. |
Reimplemented in CTFTIncoVariable, and CTFTIncoMemory.
Update member and check if anything requires a repaint.
Reimplemented in CTFTIncoVariable.
|
virtual |
Set name according to selected language (or default).
apLangName | Name of language to look for in xml config. |
apLangFile | Text of language file or NULL. |
apLangFileEnd | Pointer to end of language file. |
changes the background color of an item.
bool CTFTIncoMember::SetCharacteristics | ( | uint32 | auChar, |
ETFTCharCmd | aeCmd | ||
) |
Change characteristics.
auChar | Characteristics to apply. |
aeCmd | Command to execute (set/add/clear). |
Set new value.
String | form of new value to set. |
Reimplemented in CTFTIncoVariable, and CTFTIncoMemory.
Toggles the value of this member.
Reimplemented in CTFTIncoVariable.
Update inco item pointer if member has one.
Reimplemented in CTFTIncoVariable.