43 #if !defined(_CINOSSIOTFTEXP)
44 #define _CINOSSIOTFTEXP
60 #ifdef SMOS_COMPATIBLE
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
76 #define DF_SIOTFTEXP_PROC_NAME 32
78 #define DF_SIOTFTEXP_TAB_NAME 32
85 #define DF_SIOTFTEXP_FLAG_REPAINT 0x00000001
86 #define DF_SIOTFTEXP_FLAG_RESET 0x00000002
88 #define DF_SIOTFTEXP_FLAG_UPD_ENABLED 0x00000004
90 #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
236 virtual void GetValue(
char* apBuf, uint32 auSize);
247 virtual void GetUnit(
char* apBuf, uint32 auSize);
271 virtual void SelLanguage(
const char* apLangName,
const char* apLangFile,
272 const char* apLangFileEnd);
293 virtual const char*
FindName(
const char* apLangName=NULL) {
return NULL; }
301 if (name) inos_strncpy(apBuf, name, auSize);
313 virtual uint16 GetCoordX() {
317 virtual uint16 GetCoordY() {
321 virtual void SetCoordY(uint16 auCoordY) {
325 virtual uint16 GetSizeX() {
329 virtual uint16 GetSizeY() {
333 virtual bool HitTest(uint16 auCoordX, uint16 auCoordY) {
334 if (
m_uType&DF_SIOTFTEXP_CHAR_INVISIBLE) {
345 uint8 GetForeColor();
347 uint8 GetBackColor();
361 void SetReadOnly () {
365 void SetWritable () {
369 uint8 GetKeyBoard ()
const {
447 virtual void GetValue(
char* apBuf, uint32 auSize)
override;
452 virtual void SetValue(
char* apBuf)
override;
458 virtual void GetUnit(
char* apBuf, uint32 auSize)
override;
469 virtual bool IsWritable(uint32 auUserLevel)
override;
481 virtual const char*
FindName(
const char* apLangName=NULL)
override;
498 virtual void Toggle()
override;
502 virtual CINCOItem*
GetItem ()
const;
564 m_uType|=DF_SIOTFTEXP_TYP_TITLE;
575 virtual const char*
FindName(
const char* apLangName=NULL)
override;
592 m_uType|=DF_SIOTFTEXP_TYP_STATIC;
603 virtual void GetValue(
char* apBuf, uint32 auSize)
override;
609 virtual const char*
FindName(
const char* apLangName=NULL)
override;
628 m_uType|=DF_SIOTFTEXP_TYP_MEMORY;
639 virtual void GetValue(
char* apBuf, uint32 auSize)
override;
644 virtual void SetValue(
char* apBuf)
override;
655 virtual bool IsWritable(uint32 auUserLevel)
override;
661 virtual const char*
FindName(
const char* apLangName=NULL)
override;
689 ,
m_pData((uint8*)apData), m_uSize(auSize)
708 virtual const char*
FindName(
const char* apLangName=NULL)
override;
710 void SetCoordY(uint16 auCoordY)
override {
738 CINCOProcedure* apProcItem);
745 void GetDefaultName(
char* apBuf, uint32 auSize) {
746 const char* name=FindName(NULL);
747 if (name) inos_strncpy(apBuf, name, auSize);
750 const char* FindName(
const char* apLangName=NULL);
757 void SelLanguage(
const char* apLangName,
const char* apLangFile,
758 const char* apLangFileEnd);
760 inline uint32 GetCharacteristics() {
764 bool SetCharacteristics(uint32 auChar, ETFTCharCmd aeCmd);
770 bool RepaintNeeded();
795 bool HitTest(uint16 auCoordX, uint16 auCoordY) {
800 const char* GetBitmap() {
802 return m_pBitmapActive;
804 return m_pBitmapInactive;
826 const char* m_pBitmapActive;
827 const char* m_pBitmapInactive;
872 void AddProc(XMLNode axProcNode);
877 void AddVar(XMLNode axVarNode);
926 void SelLanguage(
const char* apLangName,
bool abRecursive,
927 const char* apLangFile,
const char* apLangFileEnd);
933 bool RepaintNeeded();
939 return m_uCharacteristics;
946 void ReadTab(XMLNode axNode, uint32 auLevel=0);
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() {
986 bool HitTest(uint16 auCoordX, uint16 auCoordY) {
987 return ((m_uCoordX<=auCoordX)&&(auCoordX<(m_uCoordX+m_uSizeX))&&
988 (m_uCoordY<=auCoordY)&&(auCoordY<(m_uCoordY+m_uSizeY)));
1009 uint32 m_uActualColumns;
1011 uint32 m_uCharacteristics;
1015 uint8 m_uFirstVisibleChild;
1027 const char* m_pBitmapActive;
1028 const char* m_pBitmapInactive;
1033 TINOSDoubleLinkedList<CTFTIncoMember>* m_pVariables;
1069 unsigned short aChar=defCharShowDec,
1070 uint16 aKeyLevel=cKeyLevelMin,
1071 unsigned short aArrayLength=1
1084 CINCOintConfig* aConfig=0
1097 virtual long Put(
void* aSource,
long aIndex=0,
long aOffset=0)
override;
1119 typedef void (*InitDoneFunc)(
CINOSSioTftExp* apExp,
void* apContext);
1120 typedef void (*OnTabChangeFunc)(
void* apContext);
1164 void GetActualTab(
char* apTab, uint32 auLength,
bool abFullPath=
false);
1193 bool RepaintNeeded();
1203 void HardCopy (int16 aiXX1 = -1, int16 aiYY1 = -1,
1204 int16 aiXX2 = -1, int16 aiYY2 = -1,
1205 bool abUseRLE =
true);
1228 void EnableRefresh(
bool abRefresh) {
1230 m_uFlags&=~DF_SIOTFTEXP_FLAG_REFRESH_BLOCKED;
1232 m_uFlags|=DF_SIOTFTEXP_FLAG_REFRESH_BLOCKED;
1242 uint32 auCharacteristics, ETFTCharCmd aeCmd);
1250 uint32 auCharacteristics, ETFTCharCmd aeCmd);
1252 bool SetProcCharacteristics(
const char*
const acPath,
1253 uint32 auCharacteristics, ETFTCharCmd aeCmd);
1271 #ifndef DOXYGEN_USER_BUILD
1283 static void MakeFloatValue(
char* apBuf,
void* apValue,
char acFormat, uint16 auDigits);
1291 static uint32
ReplaceNewLines(
char* apText, uint32 auSize,
bool abEscaping);
1369 void TextOut(uint16 auCoordX, uint16 auCoordY,
char* pText,
1370 STFTFontInfo& arFontInfo, int16 aiStrLength=-1, uint32 auFlags=0);
1372 void TextOutFix(uint16 auStartCoordX, uint16 auStartCoordY,
1374 char* apText,
STFTFontInfo& arFontInfo, int16 aiStrLength=-1,
1394 virtual void Action()
override;
1503 #endif // DOXYGEN_USER_BUILD
1513 inline void SkipText(
const char*& apText)
1525 inline void SkipNull(
const char*& apText)
1541 #endif // _CINOSSIOTFTEXP
virtual void GetValue(char *apBuf, uint32 auSize)
Get string form of current value.
Definition: cinosmutex.h:35
uint32 GetPressedKeys()
Get pattern of pressed user keys (matrix).
Definition: cinossiotftexp.h:1210
virtual void GetDefaultName(char *apBuf, uint32 auSize)
Get default name independent of language.
Definition: cinossiotftexp.h:299
virtual bool CanToggle() override
Returns true if the member can be toggled.
bool m_bUserReadOnly
Flag indicating if the user is not allowed to change the member in this state.
Definition: cinossiotftexp.h:402
uint16 m_uCoordX
X coordinate of member (to check for touches).
Definition: cinossiotftexp.h:384
CINCOProcedure * GetProc()
Get inco item of registered procedure.
Definition: cinossiotftexp.h:775
virtual const char * FindName(const char *apLangName=NULL) override
Find member name according to given language.
bool UpdateInco()
Update inco item pointers of items e.g. after new registrations.
void ReadTab(XMLNode axNode, uint32 auLevel=0)
Read in definition of a tab.
virtual void SelLanguage(const char *apLangName, const char *apLangFile, const char *apLangFileEnd)
Set name according to selected language (or default).
void SelLanguage(const char *apLangName, const char *apLangFile, const char *apLangFileEnd)
Set name according to selected language (or default).
const char ** m_ppLangFiles
Pointers to available language file names.
Definition: cinossiotftexp.h:1433
void GetActualVarValue(char *apVal, uint32 auLength)
Get value of actual selected variable.
void GetActualTab(char *apTab, uint32 auLength, bool abFullPath=false)
Get currently selected tab.
uint16 m_uTopDivider
Line of top divider (may be different on every tab).
Definition: cinossiotftexp.h:1457
uint16 m_uCoordY
Y coordinate of member (to check for touches).
Definition: cinossiotftexp.h:386
uint8 m_uActLanguage
Index of actual language.
Definition: cinossiotftexp.h:1461
uint8 m_uKeyboard
required keyboard
Definition: cinossiotftexp.h:398
uint16 m_uSizeY
Y size of proc.
Definition: cinossiotftexp.h:825
CTFTIncoVariable(CINOSSioTftExpTab *apParent, XMLNode axVarNode)
Constructor.
void SetUserLevel(uint32 auLevel)
Set user level.
STouchButton m_DefButton
Default button definition.
Definition: cinossiotftexp.h:1436
uint32 m_uCharacteristics
Characteristics of the proc.
Definition: cinossiotftexp.h:829
void ShowProcs(CINOSSioTftExpTab *apTab)
Show procedures of given tab.
uint16 m_uIndex
Inco index if member is an array's element.
Definition: cinossiotftexp.h:518
Information about a system font.
Definition: cinossiotft.h:275
void SetTabCharacteristics(const char *const acTabPath, uint32 auCharacteristics, ETFTCharCmd aeCmd)
Set (add/remove) characteristics of a tab.
virtual void GetValueLimited(char *apBuf, uint32 auSize) override
Get string form of current value but limits the text length for string types, if required.
const char * GetLangFileName(uint32 auLangIndex) const
Check if language file by index available.
uint32 ShowTab(CINOSSioTftExpTab *apTab, uint32 auLevel)
Show tab with all elements.
EBlockTextAlignment
Define text alignment in block text output.
Definition: cinossiotft.h:133
uint8 m_uUnitColumn
Column where units start.
Definition: cinossiotftexp.h:1469
virtual void GetValueLimited(char *apBuf, uint32 auSize)
Get string form of current value.
uint16 m_uSizeX
X size of member.
Definition: cinossiotftexp.h:390
uint16 m_uWidth
Width of display.
Definition: cinossiotftexp.h:1453
virtual void GetValue(char *apBuf, uint32 auSize) override
Get string form of current value.
STFTFontInfo m_ProcFont
Font definition for procedure buttons.
Definition: cinossiotftexp.h:1450
OnTabChangeFunc m_pTabChangeCallback
Callback for init done notification.
Definition: cinossiotftexp.h:1495
virtual void GetValue(char *apBuf, uint32 auSize) override
Get string form of current value.
CINOSSioTftExp * m_pExplorer
Pointer to my explorer to update language (in case of several displays).
Definition: cinossiotftexp.h:1101
void ValueChanged(const double value)
Invokes the value change callback.
virtual bool IsWritable(uint32 auUserLevel) override
Check if member is writable for editing with given level.
void GetActualVar(char *apVar, uint32 auLength)
Get default name of currently selected variable.
uint16 m_uBottomDivider
Line of bottom divider.
Definition: cinossiotftexp.h:1459
bool SetVarCharacteristics(const char *const acVarPath, uint32 auCharacteristics, ETFTCharCmd aeCmd)
Set (add/remove) characteristics of a variable.
virtual bool RepaintNeeded()
Update member and check if anything requires a repaint.
uint32 GetColumns(STFTFontInfo &arInfo)
Get number of columns for this font.
Definition: cinossiotftexp.h:1318
void ShowVarsFix(CINOSSioTftExpTab *apTab, bool abNames=false)
Show vars, values with/without names at fixed positions.
virtual ~CTFTIncoTitle()
Destructor.
Definition: cinossiotftexp.h:569
CINOSSioTftExpTab * m_pVisibleTabs[256]
Mapping of all possible return values to the currently visible tabs.
Definition: cinossiotftexp.h:1438
const char * m_pMacroFile
The name of the macro file containing display bitmaps, fonts etc.
Definition: cinossiotftexp.h:1489
STFTFontInfo m_TabFont
Font definition for tab buttons.
Definition: cinossiotftexp.h:1444
const char * m_pName
Pointer to current name (depending on language).
Definition: cinossiotftexp.h:378
uintptr m_uAdr
Memory address to display content of.
Definition: cinossiotftexp.h:672
void AddProc(XMLNode axProcNode)
Add new procedure to tab.
void AddVar(XMLNode axVarNode)
Add new variable to tab.
STFTFontInfo m_Font
Font for this member.
Definition: cinossiotftexp.h:404
uint32 GetRows(STFTFontInfo &arInfo)
Get number of rows for this font.
Definition: cinossiotftexp.h:1308
virtual const char * FindName(const char *apLangName=NULL) override
Find member name according to given language.
virtual const char * FindName(const char *apLangName=NULL) override
Get string form of current value.
uint16 m_uSizeY
Y size of member.
Definition: cinossiotftexp.h:392
CINCOProcedure * m_pProc
Inco item of registered procedure.
Definition: cinossiotftexp.h:817
virtual void Toggle()
Toggles the value of this member.
Definition: cinossiotftexp.h:310
Definition: cinossiotftexp.h:556
void(* OnValueChanged)(CTFTIncoVariable *, void *, const double)
Callback used to inform about a value change.
Definition: cinossiotftexp.h:420
void SetInitDoneCallback(InitDoneFunc callback, void *apContext)
Register callback for notification about when the explorer is completely initialized.
void ResetDisplay()
Reset display, necessary after link problems.
EA eDIPTFT43-A display declaration.
virtual uint32 GetCharacteristics() override
Get characteristics of member.
virtual bool UpdateInco() override
Update inco item pointer e.g. after new registrations.
CINOSSioTftExpTab * m_pActiveTab
Pointer to active tab that is shown with variables.
Definition: cinossiotftexp.h:1419
virtual bool UpdateInco()
Update inco item pointer if member has one.
void HandleCommands()
Handle user commands and display events (key presses).
static void setConversionFunc(OnValueConversion func, void *apContext)
Setter for conversion function called upon Get/PutVariable to convert values between display and inte...
void Init()
Init explorer depending on display size.
Definition: cinossiotftexp.h:680
Definition: cinossiotftexp.h:730
CINOSSemaphore m_CKeySemaphore
Semaphore to handle key presses and other actions.
Definition: cinossiotftexp.h:1423
void ProcessLangFile(char *apFile)
Terminate all strings with 0 so they can be used directly.
virtual void GetValue(char *apBuf, uint32 auSize) override
Get string form of current value.
STFTFontInfo m_VarFont
Font definition for members (variables).
Definition: cinossiotftexp.h:1446
virtual const char * FindName(const char *apLangName=NULL)
Find member name according to given language.
Definition: cinossiotftexp.h:293
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.
bool SetCharacteristics(uint32 auChar, ETFTCharCmd aeCmd)
Change characteristics.
Tabulator, holds all necessary info in a explorer tabulator.
Definition: cinossiotftexp.h:848
uint16 m_uCoordX
X coordinate of proc.
Definition: cinossiotftexp.h:819
const char ** m_ppLangFile
Pointers to processed language file texts.
Definition: cinossiotftexp.h:1429
uint32 m_uTime
Metering time how much we needed to handle events.
Definition: cinossiotftexp.h:1485
virtual bool IsWritable(uint32 auUserLevel) override
Check if member is writable for editing with given level.
CINOSSioTftExpProc(CINOSSioTftExpTab *apParent, XMLNode axConfigNode, CINCOProcedure *apProcItem)
Constructor.
virtual ~CINOSSioTftExp()
Destructor.
CINOSSioTftExpTab * GetTopTab() const
To get the top tab pointer.
Definition: cinossiotftexp.h:1224
CINOSSioTftExpTab(XMLNode axTabNode, CINOSSioTftExpTab *apParent)
Constructor.
void ShowVars(uint32 auCoordY, CINOSSioTftExpTab *apTab, bool abNames=false)
Show vars, values with/without names.
CINOSSioTftExp(const char *acName, CINOSSioTft *apDisplay, const char *acConfig)
Constructor.
virtual long Put(void *aSource, long aIndex=0, long aOffset=0) override
Put new value to item.
virtual void Action() override
Main task function.
uint32 GetCharacteristics()
Get characteristics of tab.
Definition: cinossiotftexp.h:938
CTFTIncoTitle(CINOSSioTftExpTab *apParent, XMLNode axVarNode)
Constructor.
Definition: cinossiotftexp.h:561
CINOSSioTftExpTab * FindAndSelectTab(char *apTab)
Find tab by name and make it active.
virtual const char * GetName()
Get current name of member (depends on selected language).
virtual ~CTFTIncoNop()
Destructor.
Definition: cinossiotftexp.h:549
uint16 m_uHeight
Height of display.
Definition: cinossiotftexp.h:1455
XMLNode m_xProcNode
Config node for procedure.
Definition: cinossiotftexp.h:813
bool m_bReadOnly
Flag indicating if the user is not allowed to change the member.
Definition: cinossiotftexp.h:400
uint8 m_uHeight
Height of this member.
Definition: cinossiotftexp.h:388
static void MakeFloatValue(char *apBuf, void *apValue, char acFormat, uint16 auDigits)
Format float value (for no-float targets).
static uint32 ReplaceNewLines(char *apText, uint32 auSize, bool abEscaping)
Replace ' ' in a string with '|' for display, give count of newlines.
CTFTIncoBitmap(CINOSSioTftExpTab *apParent, XMLNode axVarNode, void *apData, uint16 auSize)
Constructor.
Definition: cinossiotftexp.h:687
const char * GetDefaultName()
Get default name of tab.
Definition: cinossiotftexp.h:887
virtual void GetUnit(char *apBuf, uint32 auSize)
Get unit of member.
const char * m_pValue
Pointer to value string.
Definition: cinossiotftexp.h:613
bool UpdateInco()
Update inco item pointers of items e.g. after new registrations.
Main inco explorer class for TFT display.
Definition: cinossiotftexp.h:1117
virtual bool CanToggle()
Returns true if the member can be toggled.
Definition: cinossiotftexp.h:306
virtual uint32 GetCharacteristics() override
Get characteristics of member.
CINOSSioTftExpTab * m_pTopTab
Pointer to upmost tab that holds the rest (never displayed).
Definition: cinossiotftexp.h:1417
const char XML_ATTR_NAME_NAME[]
String for xml attribute name Name.
CTFTIncoMember * m_pActiveVar
Pointer to active var that is selected for editing.
Definition: cinossiotftexp.h:1421
static void setValueChangeFunc(OnValueChanged func, void *apContext)
Setter for callback function called at value change.
const char ** m_ppLangFileEnd
Pointers to end of language file texts.
Definition: cinossiotftexp.h:1431
Definition: cinossiotftexp.h:411
uint32 m_uUserKeys
Pattern of pressed user (matrix) keys.
Definition: cinossiotftexp.h:1483
virtual ~CINOSSioTftExpTab()
Destructor.
static OnValueConversion s_pConversionFunc
Conversion callback.
Definition: cinossiotftexp.h:522
CTFTIncoMemory(CINOSSioTftExpTab *apParent, XMLNode axVarNode)
Constructor.
Definition: cinossiotftexp.h:625
const char * m_pName
Pointer to current name (depending on language).
Definition: cinossiotftexp.h:815
Definition: inos_syn.h:455
real64 m_dMin
Range restriction.
Definition: cinossiotftexp.h:528
Definition: cinossiotftexp.h:210
CINCOItem * m_pItem
Inco item of registered variable.
Definition: cinossiotftexp.h:516
Definition: cinossiotftexp.h:582
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
CTFTIncoStatic(CINOSSioTftExpTab *apParent, XMLNode axVarNode)
Constructor.
Definition: cinossiotftexp.h:589
uint8 m_uThrobberSize
Minimal space required for throbber (excluded from procedures)
Definition: cinossiotftexp.h:1477
void SetTabChangeCallback(OnTabChangeFunc callback, void *apContext)
Register callback for tab change notification.
static CINOSMutex m_mMutex
Make CINOSSioTftExp thread safe.
Definition: cinossiotftexp.h:1501
Definition: cinossiotftexp.h:620
virtual ~CTFTIncoVariable()
Destructor.
Definition: cinossiotftexp.h:434
void AddTab(CINOSSioTftExpTab *apSubTab)
Add new tab to list of children.
const char * GetName()
Get current name of member (depends on selected language).
Definition: cinossiotftexp.h:743
void SelLanguage(const char *apLangName, bool abRecursive, const char *apLangFile, const char *apLangFileEnd)
Set name according to selected language (or default).
Class for setting new language in a CINOSSioTftExp.
Definition: cinossiotftexp.h:1047
void ActivateFirstChild()
Recursively activate the first child of the active tab.
virtual void GetUnit(char *apBuf, uint32 auSize) override
Get unit of member.
XMLNode m_xVarNode
Config node for this member.
Definition: cinossiotftexp.h:376
uint32 GetLanguage()
Get selected language to display.
uint32 ShowTabFix(CINOSSioTftExpTab *apTab, uint32 auLevel)
Show tab with all elements.
void HandleHardcopy()
Handle hardcopy request.
virtual ~CTFTIncoBitmap()
Destructor.
Definition: cinossiotftexp.h:696
const char * m_pConfig
Name of explorer config.
Definition: cinossiotftexp.h:1425
void SelLanguage(uint32 auLangIndex)
Select language to display.
virtual void SetValue(char *apBuf)
Set new value.
InitDoneFunc m_pInitDoneCallback
Callback for init done notification.
Definition: cinossiotftexp.h:1491
uint8 m_uVarColumns
Columns of display.
Definition: cinossiotftexp.h:1465
virtual ~CTFTIncoMember()
Destructor.
bool UpdateInco()
Update inco item pointer e.g. after new registrations.
CINOSTime m_ThrobberTime
Timer for selecting next throbber image.
Definition: cinossiotftexp.h:1441
CINOSSioTftExpTab * FindTab(const char *const apTab, bool abSelect)
Find tab by name and make it active if desired.
uint8 m_uUserLevel
User level for editing variables.
Definition: cinossiotftexp.h:1463
static OnValueChanged s_pValueChangedFunc
on value change callback
Definition: cinossiotftexp.h:524
void * m_pTabChangeContext
Context for init done notification.
Definition: cinossiotftexp.h:1497
static CINOSSioTftExp * m_pFirst
Start of linked list of explorers.
Definition: cinossiotftexp.h:1411
void * m_pInitDoneContext
Context for init done notification.
Definition: cinossiotftexp.h:1493
int8 m_iDigits
Stores the defined digits, negative values mean 'undefined'.
Definition: cinossiotftexp.h:520
void ShowProcsFix(CINOSSioTftExpTab *apTab)
Show procedures of given tab.
virtual ~CTFTIncoMemory()
Destructor.
Definition: cinossiotftexp.h:633
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.
virtual void Toggle() override
Toggles the value of this member.
uint16 GetHeight()
Get number of vertical pixels.
Definition: cinossiotft.h:427
virtual void SetDigits(int8 aiDigits)
To change or set the required number of digits for the value representation (see GetValue)
STFTHardcopy m_HardCopyInstruction
Hardcopy command settings.
Definition: cinossiotftexp.h:1479
CTFTIncoNop(XMLNode axVarNode)
Constructor.
Definition: cinossiotftexp.h:542
virtual void SetValue(char *apBuf) override
Set new value.
uint16 GetWidth()
Get number of horizontal pixels.
Definition: cinossiotft.h:420
void SetBackColor(uint8 auColor)
static void * s_pContext
Context for callback functions.
Definition: cinossiotftexp.h:526
CINOSSioTftExp * GetNext()
Get next explorer inlist.
Definition: cinossiotftexp.h:1384
virtual bool RepaintNeeded() override
Update member and check if anything requires a repaint.
void SetActualTab(char *apTab)
Set current tab.
uint32 m_uType
Type of member.
Definition: cinossiotftexp.h:380
uint8 m_uProcBtnSize
General size for procedure buttons.
Definition: cinossiotftexp.h:1473
virtual bool IsWritable(uint32 auUserLevel)
Check if member is writable for editing with given level.
Definition: cinossiotft.h:354
uint8 * m_pData
Pointer to bitmap data.
Definition: cinossiotftexp.h:722
uint8 m_uTabBtnSize
General size for tab buttons.
Definition: cinossiotftexp.h:1471
Definition: cinossiotft.h:218
virtual CINCOItem * GetItem() const
Returns the pointer to the INCO-tree item.
bool SetCharacteristics(uint32 auChar, ETFTCharCmd aeCmd)
Change characteristics.
static void AppendSpaces(char *apText, uint32 auSize)
Appends spaces to a string to fill the remaining part of the buffer.
uint16 m_uCoordY
Y coordinate of proc.
Definition: cinossiotftexp.h:821
uint32 GetFlags()
Get internal flags (e.g. shift mode).
Definition: cinossiotftexp.h:1217
void Reset()
Manually reset display.
virtual void SetValue(char *apBuf) override
Set new value.
uint16 m_uLangCount
Number of available language files.
Definition: cinossiotftexp.h:1427
void SetAdr(uint32 auAdr)
Set memory address to show content of.
Definition: cinossiotftexp.h:666
virtual const char * FindName(const char *apLangName=NULL) override
Find member name according to given language.
virtual const char * FindName(const char *apLangName=NULL) override
Find member name according to given language.
void HardCopy(int16 aiXX1=-1, int16 aiYY1=-1, int16 aiXX2=-1, int16 aiYY2=-1, bool abUseRLE=true)
const char * m_pTFTProject
The name of the display project.
Definition: cinossiotftexp.h:1487
CINOSSioTftExp * m_pNext
Next explorer in list.
Definition: cinossiotftexp.h:1413
CTFTIncoMember(CINOSSioTftExpTab *apParent, XMLNode axVarNode)
Constructor.
uint32 m_uFlags
General flags.
Definition: cinossiotftexp.h:1481
STFTFontInfo m_VarFontBig
Font definition for big members (variables).
Definition: cinossiotftexp.h:1448
CINOSSioTft * m_pSioTft
Pointer to display that outputs all our stuff.
Definition: cinossiotftexp.h:1415
virtual uint32 GetCharacteristics()
Get characteristics of member.
Definition: cinossiotftexp.h:537
void InheritProcs(TINOSSioTftExpProc *apProcs)
Inherit procedures from parent tab to me.
#define ASSERT_ALWAYS(f)
Definition: inosmacro.h:696
uint16 m_uColumns
Column setting (value, unit) for this member.
Definition: cinossiotftexp.h:382
uint8 m_uValueColumn
Column where values start.
Definition: cinossiotftexp.h:1467
uint8 m_uThrobber
Index of throbber picture.
Definition: cinossiotftexp.h:1475
virtual ~CTFTIncoStatic()
Destructor.
Definition: cinossiotftexp.h:597
Definition: cinostask.h:51
uint16 m_uSizeX
X size of proc.
Definition: cinossiotftexp.h:823
void GetActualVarLang(char *apVar, uint32 auLength)
Get actual selected variable in selected language.
CINOSSioTftExpTab * GetTabAt(uint32 auIndex)
Get tab by index.