INOS
|
Tabulator, holds all necessary info in a explorer tabulator. More...
#include <cinossiotftexp.h>
Public Member Functions | |
CINOSSioTftExpTab (XMLNode axTabNode, CINOSSioTftExpTab *apParent) | |
Constructor. | |
virtual | ~CINOSSioTftExpTab () |
Destructor. | |
void | AddTab (CINOSSioTftExpTab *apSubTab) |
Add new tab to list of children. | |
void | AddProc (XMLNode axProcNode) |
Add new procedure to tab. | |
void | AddVar (XMLNode axVarNode) |
Add new variable to tab. | |
void | InheritProcs (TINOSSioTftExpProc *apProcs) |
Inherit procedures from parent tab to me. | |
const char * | GetDefaultName () |
Get default name of tab. | |
CINOSSioTftExpTab * | GetTabAt (uint32 auIndex) |
Get tab by index. | |
CINOSSioTftExpTab * | FindAndSelectTab (char *apTab) |
Find tab by name and make it active. | |
CINOSSioTftExpTab * | FindTab (const char *const apTab, bool abSelect) |
Find tab by name and make it active if desired. | |
CTFTIncoMember * | FindMember (const char *const apPath) |
TINOSSioTftExpProc | FindProc (const char *const apPath) |
bool | SetCharacteristics (uint32 auChar, ETFTCharCmd aeCmd) |
Change characteristics. | |
void | SelLanguage (const char *apLangName, bool abRecursive, const char *apLangFile, const char *apLangFileEnd) |
Set name according to selected language (or default). | |
bool | UpdateInco () |
Update inco item pointers of items e.g. after new registrations. | |
bool | RepaintNeeded () |
uint32 | GetCharacteristics () |
Get characteristics of tab. | |
void | ReadTab (XMLNode axNode, uint32 auLevel=0) |
Read in definition of a tab. | |
uint8 | GetForeColor () |
uint8 | GetBackColor () |
virtual uint16 | GetCoordX () |
virtual uint16 | GetCoordY () |
virtual void | SetCoordX (uint16 auCoordX) |
virtual void | SetCoordY (uint16 auCoordY) |
virtual uint16 | GetSizeX () |
virtual uint16 | GetSizeY () |
bool | HitTest (uint16 auCoordX, uint16 auCoordY) |
Friends | |
class | CINOSSioTftExp |
Allow explorer to access my members. | |
Tabulator, holds all necessary info in a explorer tabulator.
A Tabulator has pointers to other tabulators on the same level, to the parent tabulator and the first child tabulator for navigation. Which one of the child tabs is active is also saved so it is selected if the user navigates through this tab again. There is also a list of all numbers belonging to this tab.
CINOSSioTftExpTab::CINOSSioTftExpTab | ( | XMLNode | axTabNode, |
CINOSSioTftExpTab * | apParent | ||
) |
Constructor.
axTabNode | Xml config node for tab. |
apParent | Parent tab. |
Add new procedure to tab.
axProcNode | Xml config of procedure to add. |
void CINOSSioTftExpTab::AddTab | ( | CINOSSioTftExpTab * | apSubTab | ) |
Add new tab to list of children.
apSubTab | Tab to add. |
Add new variable to tab.
axVarNode | Xml config of variable to add. |
CINOSSioTftExpTab * CINOSSioTftExpTab::FindAndSelectTab | ( | char * | apTab | ) |
Find tab by name and make it active.
apTab | Tab path in the form 'PTab1.Ptab2.MyTab'. |
CINOSSioTftExpTab * CINOSSioTftExpTab::FindTab | ( | const char *const | apTab, |
bool | abSelect | ||
) |
Find tab by name and make it active if desired.
apTab | Tab path in the form 'PTab1.Ptab2.MyTab'. |
abSelect | Flag if tabs should be selected. |
|
inline |
Get characteristics of tab.
Get default name of tab.
CINOSSioTftExpTab * CINOSSioTftExpTab::GetTabAt | ( | uint32 | auIndex | ) |
Get tab by index.
auIndex | Index of tab to get. |
void CINOSSioTftExpTab::InheritProcs | ( | TINOSSioTftExpProc * | apProcs | ) |
Inherit procedures from parent tab to me.
apProcs | Procedures to take over. |
Read in definition of a tab.
axNode | Xml config node of tab. |
auLevel | Current nesting level to prevent too deep levels. |
void CINOSSioTftExpTab::SelLanguage | ( | const char * | apLangName, |
bool | abRecursive, | ||
const char * | apLangFile, | ||
const char * | apLangFileEnd | ||
) |
Set name according to selected language (or default).
apLangName | Name of language to look for in xml config. |
abRecursive | Flag if children and members shoulb be set too. |
apLangFile | Text of language file or NULL. |
apLangFileEnd | Pointer to end of language file. |
Change characteristics.
auChar | Characteristics to apply. |
aeCmd | Command to execute (set/add/clear). |
bool CINOSSioTftExpTab::UpdateInco | ( | ) |
Update inco item pointers of items e.g. after new registrations.