43#if !defined(_CINOSSIOTFTEXP)
44#define _CINOSSIOTFTEXP
67 #define DF_SIOTFTEXP_MAX_PROCS 64
68 #define DF_SIOTFTEXP_MAX_VARS 96
70 #define DF_SIOTFTEXP_MAX_PROCS 16
71 #define DF_SIOTFTEXP_MAX_VARS 16
75#define DF_SIOTFTEXP_NUMBER_NAME 80
77#define DF_SIOTFTEXP_PROC_NAME 32
79#define DF_SIOTFTEXP_TAB_NAME 32
85#define DF_SIOTFTEXP_FLAG_REPAINT 0x00000001
87#define DF_SIOTFTEXP_FLAG_RESET 0x00000002
89#define DF_SIOTFTEXP_FLAG_UPD_ENABLED 0x00000004
91#define DF_SIOTFTEXP_FLAG_LINK_UP 0x00000008
93#define DF_SIOTFTEXP_FLAG_USER_LAYOUT 0x00000010
94#define DF_SIOTFTEXP_FLAG_REFRESH_BLOCKED 0x00000020
95#define DF_SIOTFTEXP_FLAG_DEBUG 0x00000040
96#define DF_SIOTFTEXP_FLAG_HARDCOPY 0x00000080
99#define DF_SIOTFTEXP_TYPE 0x000F0000
100#define DF_SIOTFTEXP_TYP_VAR 0x00010000
101#define DF_SIOTFTEXP_TYP_STATIC 0x00020000
102#define DF_SIOTFTEXP_TYP_NOP 0x00030000
103#define DF_SIOTFTEXP_TYP_MEMORY 0x00040000
104#define DF_SIOTFTEXP_TYP_TITLE 0x00050000
106#define DF_SIOTFTEXP_TYP_BMP 0x00070000
108#define DF_SIOTFTEXP_CHARACTERISTIC 0x00F00000
109#define DF_SIOTFTEXP_CHAR_BIG 0x00100000
110#define DF_SIOTFTEXP_CHAR_HEX 0x00200000
111#define DF_SIOTFTEXP_CHAR_INVISIBLE 0x00400000
112#define DF_SIOTFTEXP_CHAR_VALUE 0x00800000
113#define DF_SIOTFTEXP_CHAR_ACTIVE 0x01000000
115#define DF_SIOTFTEXP_USERLEVEL 0xF0000000
121#define ROUND_SIGNED(value) value<0 ? value-=0.5 : value+=0.5;
124#define FIX_SIGNED(type, value) (((type==defType_int64)||(type==defType_int32)||(type==defType_int16)||(type==defType_int8))&&(value < 0)) ? value-=1 : value;
127#define ADJUST_SIGNED(value) value = value - fixed64(0,1);
152#define DF_SIOTFTEXP_CMD_SPECIAL 0x10
153#define DF_SIOTFTEXP_CMD_LEVEL 0x20
154#ifdef SMOS_COMPATIBLE
172 #define DF_SIOTFTEXP_CMD_VARIABLE 0x50
173 #define DF_SIOTFTEXP_CMD_PROCEDURE 0xB0
186 #define DF_SIOTFTEXP_CMD_VARIABLE DF_SIOTFT_CMD_AREA
187 #define DF_SIOTFTEXP_CMD_PROCEDURE 0xE0
189#define DF_SIOTFTEXP_CMD_KEYMATRIX 0xF0
313 virtual uint16 GetCoordX() {
317 virtual uint16 GetCoordY() {
321 virtual void SetCoordY(uint16
auCoordY) {
325 virtual uint16 GetSizeX() {
329 virtual uint16 GetSizeY() {
334 if (
m_uType&DF_SIOTFTEXP_CHAR_INVISIBLE) {
345 uint8 GetForeColor();
347 uint8 GetBackColor();
361 void SetReadOnly () {
365 void SetWritable () {
369 uint8 GetKeyBoard ()
const {
564 m_uType|=DF_SIOTFTEXP_TYP_TITLE;
592 m_uType|=DF_SIOTFTEXP_TYP_STATIC;
628 m_uType|=DF_SIOTFTEXP_TYP_MEMORY;
760 inline uint32 GetCharacteristics() {
764 bool SetCharacteristics(uint32
auChar, ETFTCharCmd
aeCmd);
770 bool RepaintNeeded();
800 const char* GetBitmap() {
802 return m_pBitmapActive;
804 return m_pBitmapInactive;
826 const char* m_pBitmapActive;
827 const char* m_pBitmapInactive;
933 bool RepaintNeeded();
939 return m_uCharacteristics;
948 uint8 GetForeColor() {
949 if (m_uColFore!=255) {
952 return m_pParent->GetForeColor();
955 uint8 GetBackColor() {
956 if (m_uColBack!=255) {
959 return m_pParent->GetBackColor();
962 virtual uint16 GetCoordX() {
966 virtual uint16 GetCoordY() {
970 virtual void SetCoordX(uint16
auCoordX) {
974 virtual void SetCoordY(uint16
auCoordY) {
978 virtual uint16 GetSizeX() {
982 virtual uint16 GetSizeY() {
1009 uint32 m_uActualColumns;
1011 uint32 m_uCharacteristics;
1015 uint8 m_uFirstVisibleChild;
1027 const char* m_pBitmapActive;
1028 const char* m_pBitmapInactive;
1193 bool RepaintNeeded();
1230 m_uFlags&=~DF_SIOTFTEXP_FLAG_REFRESH_BLOCKED;
1232 m_uFlags|=DF_SIOTFTEXP_FLAG_REFRESH_BLOCKED;
1252 bool SetProcCharacteristics(
const char*
const acPath,
1271#ifndef DOXYGEN_USER_BUILD
1513inline void SkipText(
const char*&
apText)
1525inline void SkipNull(
const char*&
apText)
#define DECLARE_DYNAMIC(aClass)
Definition cinospartitionmemory.h:328
EA eDIPTFT43-A display declaration.
EBlockTextAlignment
Define text alignment in block text output.
Definition cinossiotft.h:134
Definition cinosmcmodule.h:1900
Definition cinosmutex.h:36
Definition inos_syn.h:456
Definition cinossiotftexp.h:731
uint32 m_uCharacteristics
Characteristics of the proc.
Definition cinossiotftexp.h:829
uint16 m_uSizeY
Y size of proc.
Definition cinossiotftexp.h:825
CINCOProcedure * GetProc()
Get inco item of registered procedure.
Definition cinossiotftexp.h:775
bool UpdateInco()
Update inco item pointer e.g. after new registrations.
uint16 m_uCoordY
Y coordinate of proc.
Definition cinossiotftexp.h:821
void SelLanguage(const char *apLangName, const char *apLangFile, const char *apLangFileEnd)
Set name according to selected language (or default).
CINOSSioTftExpProc(CINOSSioTftExpTab *apParent, XMLNode axConfigNode, CINCOProcedure *apProcItem)
Constructor.
const char * m_pName
Pointer to current name (depending on language).
Definition cinossiotftexp.h:815
uint16 m_uSizeX
X size of proc.
Definition cinossiotftexp.h:823
uint16 m_uCoordX
X coordinate of proc.
Definition cinossiotftexp.h:819
const char * GetName()
Get current name of member (depends on selected language).
Definition cinossiotftexp.h:743
CINCOProcedure * m_pProc
Inco item of registered procedure.
Definition cinossiotftexp.h:817
XMLNode m_xProcNode
Config node for procedure.
Definition cinossiotftexp.h:813
Tabulator, holds all necessary info in a explorer tabulator.
Definition cinossiotftexp.h:849
void AddVar(XMLNode axVarNode)
Add new variable to tab.
void SelLanguage(const char *apLangName, bool abRecursive, const char *apLangFile, const char *apLangFileEnd)
Set name according to selected language (or default).
virtual ~CINOSSioTftExpTab()
Destructor.
CINOSSioTftExpTab * GetTabAt(uint32 auIndex)
Get tab by index.
const char * GetDefaultName()
Get default name of tab.
Definition cinossiotftexp.h:887
void AddProc(XMLNode axProcNode)
Add new procedure to tab.
CINOSSioTftExpTab(XMLNode axTabNode, CINOSSioTftExpTab *apParent)
Constructor.
void InheritProcs(TINOSSioTftExpProc *apProcs)
Inherit procedures from parent tab to me.
CINOSSioTftExpTab * FindAndSelectTab(char *apTab)
Find tab by name and make it active.
void AddTab(CINOSSioTftExpTab *apSubTab)
Add new tab to list of children.
uint32 GetCharacteristics()
Get characteristics of tab.
Definition cinossiotftexp.h:938
bool SetCharacteristics(uint32 auChar, ETFTCharCmd aeCmd)
Change characteristics.
CINOSSioTftExpTab * FindTab(const char *const apTab, bool abSelect)
Find tab by name and make it active if desired.
void ReadTab(XMLNode axNode, uint32 auLevel=0)
Read in definition of a tab.
bool UpdateInco()
Update inco item pointers of items e.g. after new registrations.
Main inco explorer class for TFT display.
Definition cinossiotftexp.h:1118
CINOSSioTftExpTab * m_pVisibleTabs[256]
Mapping of all possible return values to the currently visible tabs.
Definition cinossiotftexp.h:1438
void GetActualVar(char *apVar, uint32 auLength)
Get default name of currently selected variable.
void * m_pInitDoneContext
Context for init done notification.
Definition cinossiotftexp.h:1493
void HandleHardcopy()
Handle hardcopy request.
uint16 m_uHeight
Height of display.
Definition cinossiotftexp.h:1455
const char * m_pConfig
Name of explorer config.
Definition cinossiotftexp.h:1425
STFTFontInfo m_VarFont
Font definition for members (variables).
Definition cinossiotftexp.h:1446
CINOSSioTftExpTab * m_pActiveTab
Pointer to active tab that is shown with variables.
Definition cinossiotftexp.h:1419
uint32 m_uFlags
General flags.
Definition cinossiotftexp.h:1481
void SetTabChangeCallback(OnTabChangeFunc callback, void *apContext)
Register callback for tab change notification.
STouchButton m_DefButton
Default button definition.
Definition cinossiotftexp.h:1436
uint8 m_uUnitColumn
Column where units start.
Definition cinossiotftexp.h:1469
CINOSSioTftExp * m_pNext
Next explorer in list.
Definition cinossiotftexp.h:1413
uint32 ShowTabFix(CINOSSioTftExpTab *apTab, uint32 auLevel)
Show tab with all elements.
const char * GetLangFileName(uint32 auLangIndex) const
Check if language file by index available.
uint32 m_uUserKeys
Pattern of pressed user (matrix) keys.
Definition cinossiotftexp.h:1483
STFTHardcopy m_HardCopyInstruction
Hardcopy command settings.
Definition cinossiotftexp.h:1479
const char * m_pMacroFile
The name of the macro file containing display bitmaps, fonts etc.
Definition cinossiotftexp.h:1489
STFTFontInfo m_VarFontBig
Font definition for big members (variables).
Definition cinossiotftexp.h:1448
void GetActualTab(char *apTab, uint32 auLength, bool abFullPath=false)
Get currently selected tab.
static void MakeFloatValue(char *apBuf, void *apValue, char acFormat, uint16 auDigits)
Format float value (for no-float targets).
uint8 m_uVarColumns
Columns of display.
Definition cinossiotftexp.h:1465
uint32 GetFlags()
Get internal flags (e.g. shift mode).
Definition cinossiotftexp.h:1217
static uint32 ReplaceNewLines(char *apText, uint32 auSize, bool abEscaping)
Replace ' ' in a string with '|' for display, give count of newlines.
InitDoneFunc m_pInitDoneCallback
Callback for init done notification.
Definition cinossiotftexp.h:1491
const char * m_pTFTProject
The name of the display project.
Definition cinossiotftexp.h:1487
uint8 m_uUserLevel
User level for editing variables.
Definition cinossiotftexp.h:1463
uint32 m_uTime
Metering time how much we needed to handle events.
Definition cinossiotftexp.h:1485
void ShowProcsFix(CINOSSioTftExpTab *apTab)
Show procedures of given tab.
uint32 GetLanguage()
Get selected language to display.
uint32 GetRows(STFTFontInfo &arInfo)
Get number of rows for this font.
Definition cinossiotftexp.h:1308
uint32 ShowTab(CINOSSioTftExpTab *apTab, uint32 auLevel)
Show tab with all elements.
CINOSSioTftExp(const char *acName, CINOSSioTft *apDisplay, const char *acConfig)
Constructor.
uint32 GetColumns(STFTFontInfo &arInfo)
Get number of columns for this font.
Definition cinossiotftexp.h:1318
void * m_pTabChangeContext
Context for init done notification.
Definition cinossiotftexp.h:1497
CINOSSioTftExpTab * GetTopTab() const
To get the top tab pointer.
Definition cinossiotftexp.h:1224
STFTFontInfo m_TabFont
Font definition for tab buttons.
Definition cinossiotftexp.h:1444
OnTabChangeFunc m_pTabChangeCallback
Callback for init done notification.
Definition cinossiotftexp.h:1495
STFTFontInfo m_ProcFont
Font definition for procedure buttons.
Definition cinossiotftexp.h:1450
CINOSTime m_ThrobberTime
Timer for selecting next throbber image.
Definition cinossiotftexp.h:1441
static CINOSMutex m_mMutex
Make CINOSSioTftExp thread safe.
Definition cinossiotftexp.h:1501
void SetActualTab(char *apTab)
Set current tab.
const char ** m_ppLangFileEnd
Pointers to end of language file texts.
Definition cinossiotftexp.h:1431
void ResetDisplay()
Reset display, necessary after link problems.
void ShowVarsFix(CINOSSioTftExpTab *apTab, bool abNames=false)
Show vars, values with/without names at fixed positions.
uint16 m_uWidth
Width of display.
Definition cinossiotftexp.h:1453
CINOSSioTftExpTab * m_pTopTab
Pointer to upmost tab that holds the rest (never displayed).
Definition cinossiotftexp.h:1417
virtual ~CINOSSioTftExp()
Destructor.
CINOSSioTft * m_pSioTft
Pointer to display that outputs all our stuff.
Definition cinossiotftexp.h:1415
void SetInitDoneCallback(InitDoneFunc callback, void *apContext)
Register callback for notification about when the explorer is completely initialized.
uint32 GetPressedKeys()
Get pattern of pressed user keys (matrix).
Definition cinossiotftexp.h:1210
CINOSSioTftExp * GetNext()
Get next explorer inlist.
Definition cinossiotftexp.h:1384
uint8 m_uTabBtnSize
General size for tab buttons.
Definition cinossiotftexp.h:1471
uint8 m_uThrobberSize
Minimal space required for throbber (excluded from procedures)
Definition cinossiotftexp.h:1477
void GetActualVarValue(char *apVal, uint32 auLength)
Get value of actual selected variable.
void ActivateFirstChild()
Recursively activate the first child of the active tab.
void ShowProcs(CINOSSioTftExpTab *apTab)
Show procedures of given tab.
void ShowVars(uint32 auCoordY, CINOSSioTftExpTab *apTab, bool abNames=false)
Show vars, values with/without names.
static void AppendSpaces(char *apText, uint32 auSize)
Appends spaces to a string to fill the remaining part of the buffer.
void Init()
Init explorer depending on display size.
void SetUserLevel(uint32 auLevel)
Set user level.
void TextOut(uint16 auCoordX, uint16 auCoordY, char *pText, STFTFontInfo &arFontInfo, int16 aiStrLength=-1, uint32 auFlags=0)
Print a text with given font at given coordinates.
void HandleCommands()
Handle user commands and display events (key presses).
CINOSSemaphore m_CKeySemaphore
Semaphore to handle key presses and other actions.
Definition cinossiotftexp.h:1423
void HardCopy(int16 aiXX1=-1, int16 aiYY1=-1, int16 aiXX2=-1, int16 aiYY2=-1, bool abUseRLE=true)
bool UpdateInco()
Update inco item pointers of items e.g. after new registrations.
virtual void Action()
Main task function.
uint16 m_uTopDivider
Line of top divider (may be different on every tab).
Definition cinossiotftexp.h:1457
void SetTabCharacteristics(const char *const acTabPath, uint32 auCharacteristics, ETFTCharCmd aeCmd)
Set (add/remove) characteristics of a tab.
uint16 m_uLangCount
Number of available language files.
Definition cinossiotftexp.h:1427
uint16 m_uBottomDivider
Line of bottom divider.
Definition cinossiotftexp.h:1459
uint8 m_uThrobber
Index of throbber picture.
Definition cinossiotftexp.h:1475
CTFTIncoMember * m_pActiveVar
Pointer to active var that is selected for editing.
Definition cinossiotftexp.h:1421
uint8 m_uActLanguage
Index of actual language.
Definition cinossiotftexp.h:1461
static CINOSSioTftExp * m_pFirst
Start of linked list of explorers.
Definition cinossiotftexp.h:1411
const char ** m_ppLangFile
Pointers to processed language file texts.
Definition cinossiotftexp.h:1429
uint8 m_uProcBtnSize
General size for procedure buttons.
Definition cinossiotftexp.h:1473
void GetActualVarLang(char *apVar, uint32 auLength)
Get actual selected variable in selected language.
uint8 m_uValueColumn
Column where values start.
Definition cinossiotftexp.h:1467
bool SetVarCharacteristics(const char *const acVarPath, uint32 auCharacteristics, ETFTCharCmd aeCmd)
Set (add/remove) characteristics of a variable.
void Reset()
Manually reset display.
void SelLanguage(uint32 auLangIndex)
Select language to display.
void ProcessLangFile(char *apFile)
Terminate all strings with 0 so they can be used directly.
const char ** m_ppLangFiles
Pointers to available language file names.
Definition cinossiotftexp.h:1433
Definition cinossiotft.h:355
uint16 GetWidth()
Get number of horizontal pixels.
Definition cinossiotft.h:420
uint16 GetHeight()
Get number of vertical pixels.
Definition cinossiotft.h:427
Definition cinostask.h:52
Class for setting new language in a CINOSSioTftExp.
Definition cinossiotftexp.h:1048
CTFTIELuint8(char *aName, void *aData, CINOSSioTftExp *apExplorer, CINCOintConfig *aConfig=0)
Constructor.
CINOSSioTftExp * m_pExplorer
Pointer to my explorer to update language (in case of several displays).
Definition cinossiotftexp.h:1101
virtual long Put(void *aSource, long aIndex=0, long aOffset=0)
Put new value to item.
CTFTIELuint8(char *aName, void *aData, CINOSSioTftExp *apExplorer, uint32 aLower, uint32 aUpper, char *aUnit=0, unsigned short aChar=defCharShowDec, uint16 aKeyLevel=cKeyLevelMin, unsigned short aArrayLength=1)
Constructor.
Definition cinossiotftexp.h:681
CTFTIncoBitmap(CINOSSioTftExpTab *apParent, XMLNode axVarNode, void *apData, uint16 auSize)
Constructor.
Definition cinossiotftexp.h:687
virtual const char * FindName(const char *apLangName=NULL)
Get string form of current value.
uint8 * m_pData
Pointer to bitmap data.
Definition cinossiotftexp.h:722
virtual ~CTFTIncoBitmap()
Destructor.
Definition cinossiotftexp.h:696
Definition cinossiotftexp.h:211
uint16 m_uCoordY
Y coordinate of member (to check for touches).
Definition cinossiotftexp.h:386
virtual bool RepaintNeeded()
Update member and check if anything requires a repaint.
virtual void GetUnit(char *apBuf, uint32 auSize)
Get unit of member.
bool SetCharacteristics(uint32 auChar, ETFTCharCmd aeCmd)
Change characteristics.
virtual const char * GetName()
Get current name of member (depends on selected language).
uint16 m_uCoordX
X coordinate of member (to check for touches).
Definition cinossiotftexp.h:384
virtual void GetDefaultName(char *apBuf, uint32 auSize)
Get default name independent of language.
Definition cinossiotftexp.h:299
uint8 m_uKeyboard
required keyboard
Definition cinossiotftexp.h:398
CTFTIncoMember(CINOSSioTftExpTab *apParent, XMLNode axVarNode)
Constructor.
virtual ~CTFTIncoMember()
Destructor.
STFTFontInfo m_Font
Font for this member.
Definition cinossiotftexp.h:404
virtual void SetValue(char *apBuf)
Set new value.
bool m_bUserReadOnly
Flag indicating if the user is not allowed to change the member in this state.
Definition cinossiotftexp.h:402
uint32 m_uType
Type of member.
Definition cinossiotftexp.h:380
uint16 m_uColumns
Column setting (value, unit) for this member.
Definition cinossiotftexp.h:382
uint16 m_uSizeX
X size of member.
Definition cinossiotftexp.h:390
const char * m_pName
Pointer to current name (depending on language).
Definition cinossiotftexp.h:378
uint16 m_uSizeY
Y size of member.
Definition cinossiotftexp.h:392
virtual void GetValueLimited(char *apBuf, uint32 auSize)
Get string form of current value.
XMLNode m_xVarNode
Config node for this member.
Definition cinossiotftexp.h:376
virtual const char * FindName(const char *apLangName=NULL)
Find member name according to given language.
Definition cinossiotftexp.h:293
void SetBackColor(uint8 auColor)
bool m_bReadOnly
Flag indicating if the user is not allowed to change the member.
Definition cinossiotftexp.h:400
virtual uint32 GetCharacteristics()
Get characteristics of member.
virtual bool CanToggle()
Returns true if the member can be toggled.
Definition cinossiotftexp.h:306
virtual bool UpdateInco()
Update inco item pointer if member has one.
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 void GetValue(char *apBuf, uint32 auSize)
Get string form of current value.
uint8 m_uHeight
Height of this member.
Definition cinossiotftexp.h:388
virtual void Toggle()
Toggles the value of this member.
Definition cinossiotftexp.h:310
Definition cinossiotftexp.h:621
virtual bool IsWritable(uint32 auUserLevel)
Check if member is writable for editing with given level.
virtual const char * FindName(const char *apLangName=NULL)
Find member name according to given language.
void SetAdr(uint32 auAdr)
Set memory address to show content of.
Definition cinossiotftexp.h:666
uintptr m_uAdr
Memory address to display content of.
Definition cinossiotftexp.h:672
virtual void GetValue(char *apBuf, uint32 auSize)
Get string form of current value.
virtual ~CTFTIncoMemory()
Destructor.
Definition cinossiotftexp.h:633
virtual uint32 GetCharacteristics()
Get characteristics of member.
virtual void SetValue(char *apBuf)
Set new value.
CTFTIncoMemory(CINOSSioTftExpTab *apParent, XMLNode axVarNode)
Constructor.
Definition cinossiotftexp.h:625
Definition cinossiotftexp.h:538
CTFTIncoNop(XMLNode axVarNode)
Constructor.
Definition cinossiotftexp.h:542
virtual ~CTFTIncoNop()
Destructor.
Definition cinossiotftexp.h:549
Definition cinossiotftexp.h:583
CTFTIncoStatic(CINOSSioTftExpTab *apParent, XMLNode axVarNode)
Constructor.
Definition cinossiotftexp.h:589
virtual void GetValue(char *apBuf, uint32 auSize)
Get string form of current value.
virtual const char * FindName(const char *apLangName=NULL)
Find member name according to given language.
virtual ~CTFTIncoStatic()
Destructor.
Definition cinossiotftexp.h:597
const char * m_pValue
Pointer to value string.
Definition cinossiotftexp.h:613
Definition cinossiotftexp.h:557
virtual ~CTFTIncoTitle()
Destructor.
Definition cinossiotftexp.h:569
virtual const char * FindName(const char *apLangName=NULL)
Find member name according to given language.
CTFTIncoTitle(CINOSSioTftExpTab *apParent, XMLNode axVarNode)
Constructor.
Definition cinossiotftexp.h:561
Definition cinossiotftexp.h:412
real64 m_dMin
Range restriction.
Definition cinossiotftexp.h:528
virtual bool IsWritable(uint32 auUserLevel)
Check if member is writable for editing with given level.
static OnValueChanged s_pValueChangedFunc
on value change callback
Definition cinossiotftexp.h:524
void ValueChanged(const double value)
Invokes the value change callback.
void(* OnValueChanged)(CTFTIncoVariable *, void *, const double)
Callback used to inform about a value change.
Definition cinossiotftexp.h:420
virtual void GetUnit(char *apBuf, uint32 auSize)
Get unit of member.
uint16 m_uIndex
Inco index if member is an array's element.
Definition cinossiotftexp.h:518
virtual uint32 GetCharacteristics()
Get characteristics of member.
CTFTIncoVariable(CINOSSioTftExpTab *apParent, XMLNode axVarNode)
Constructor.
virtual const char * FindName(const char *apLangName=NULL)
Find member name according to given language.
CINCOItem * m_pItem
Inco item of registered variable.
Definition cinossiotftexp.h:516
virtual bool RepaintNeeded()
Update member and check if anything requires a repaint.
double(* OnValueConversion)(CTFTIncoVariable *, void *, const double, bool)
Callback used to specify a conversion upon Get/PutVariables, e.g. to display values in inch while the...
Definition cinossiotftexp.h:425
static void * s_pContext
Context for callback functions.
Definition cinossiotftexp.h:526
virtual void GetValue(char *apBuf, uint32 auSize)
Get string form of current value.
static void setConversionFunc(OnValueConversion func, void *apContext)
Setter for conversion function called upon Get/PutVariable to convert values between display and inte...
static OnValueConversion s_pConversionFunc
Conversion callback.
Definition cinossiotftexp.h:522
int8 m_iDigits
Stores the defined digits, negative values mean 'undefined'.
Definition cinossiotftexp.h:520
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 Toggle()
Toggles the value of this member.
virtual ~CTFTIncoVariable()
Destructor.
Definition cinossiotftexp.h:434
virtual void SetValue(char *apBuf)
Set new value.
virtual CINCOItem * GetItem() const
Returns the pointer to the INCO-tree item.
static void setValueChangeFunc(OnValueChanged func, void *apContext)
Setter for callback function called at value change.
virtual bool UpdateInco()
Update inco item pointer e.g. after new registrations.
virtual void SetDigits(int8 aiDigits)
To change or set the required number of digits for the value representation (see GetValue)
virtual bool CanToggle()
Returns true if the member can be toggled.
const char XML_ATTR_NAME_NAME[]
String for xml attribute name Name.
#define ASSERT_ALWAYS(f)
Definition inosmacro.h:696
Information about a system font.
Definition cinossiotft.h:276
Definition cinossiotft.h:219