TDME2 1.9.121
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
GUITabsHeaderController Class Referencefinal

GUI tabs header controller. More...

#include <tdme/gui/elements/GUITabsHeaderController.h>

Inheritance diagram for GUITabsHeaderController:
Inheritance graph
Collaboration diagram for GUITabsHeaderController:
Collaboration graph

Public Member Functions

void unselect ()
 Unselect selected tab. More...
 
void select ()
 Select selected tab. More...
 
void select (int idx)
 Select tab by index. More...
 
void select (GUIElementNode *tabElementNode)
 Select tab by index. More...
 
bool isDisabled () override
 
void setDisabled (bool disabled) override
 Set disabled. More...
 
void initialize () override
 Initialize controller after element has been created. More...
 
void dispose () override
 Dispose controller. More...
 
void postLayout () override
 Post layout event. More...
 
void handleMouseEvent (GUINode *node, GUIMouseEvent *event) override
 Handle mouse event. More...
 
void handleKeyboardEvent (GUIKeyboardEvent *event) override
 Handle keyboard event. More...
 
void tick () override
 Tick method will be executed once per frame. More...
 
void onFocusGained () override
 On focus gained. More...
 
void onFocusLost () override
 On focus lost. More...
 
bool hasValue () override
 
const MutableStringgetValue () override
 
void setValue (const MutableString &value) override
 Set value. More...
 
void onSubTreeChange () override
 On sub tree change. More...
 
- Public Member Functions inherited from GUIElementController
bool isDisabled () override
 
void setDisabled (bool disabled) override
 Set disabled. More...
 
void initialize () override
 Initialize controller after element has been created. More...
 
void dispose () override
 Dispose controller. More...
 
void postLayout () override
 Post layout event. More...
 
void handleMouseEvent (GUINode *node, GUIMouseEvent *event) override
 Handle mouse event. More...
 
void handleKeyboardEvent (GUIKeyboardEvent *event) override
 Handle keyboard event. More...
 
void tick () override
 Tick method will be executed once per frame. More...
 
void onFocusGained () override
 On focus gained. More...
 
void onFocusLost () override
 On focus lost. More...
 
bool hasValue () override
 
const MutableStringgetValue () override
 
void setValue (const MutableString &value) override
 Set value. More...
 
void onSubTreeChange () override
 On sub tree change. More...
 
- Public Member Functions inherited from GUINodeController
virtual ~GUINodeController ()
 Destructor. More...
 
virtual GUINodegetNode ()
 
virtual void initialize ()=0
 Initialize controller after element has been created. More...
 
virtual void dispose ()=0
 Dispose controller. More...
 
virtual void postLayout ()=0
 Post layout event. More...
 
virtual void handleMouseEvent (GUINode *node, GUIMouseEvent *event)=0
 Handle mouse event. More...
 
virtual void handleKeyboardEvent (GUIKeyboardEvent *event)=0
 Handle keyboard event. More...
 
virtual void tick ()=0
 Tick method will be executed once per frame. More...
 
virtual void onFocusGained ()=0
 On focus gained. More...
 
virtual void onFocusLost ()=0
 On focus lost. More...
 
virtual bool hasValue ()=0
 
virtual const MutableStringgetValue ()=0
 
virtual void setValue (const MutableString &value)=0
 Set value. More...
 
virtual bool isDisabled ()=0
 
virtual void setDisabled (bool disabled)=0
 Set disabled. More...
 
virtual void onSubTreeChange ()=0
 On sub tree change. More...
 

Private Member Functions

 GUITabsHeaderController (GUINode *node)
 Private constructor. More...
 
bool hasFocus ()
 
void determineTabControllers ()
 Determine select box option controllers. More...
 
void selectNext ()
 Select next node. More...
 
void selectPrevious ()
 Select previous. More...
 
void selectCurrent ()
 Select current. More...
 

Private Attributes

GUINodetabsNode { nullptr }
 
vector< GUITabController * > tabControllers
 
int tabControllerIdx { -1 }
 
bool focus
 
MutableString value
 

Friends

class GUITabsHeader
 
class GUITabController
 

Additional Inherited Members

- Protected Member Functions inherited from GUIElementController
 GUIElementController (GUINode *node)
 Constructor. More...
 
- Protected Member Functions inherited from GUINodeController
 GUINodeController (GUINode *node)
 Private constructor. More...
 
- Protected Attributes inherited from GUINodeController
GUINodenode { nullptr }
 
- Static Protected Attributes inherited from GUIElementController
static STATIC_DLL_IMPEXT string CONDITION_DISABLED = "disabled"
 
static STATIC_DLL_IMPEXT string CONDITION_ENABLED = "enabled"
 

Detailed Description

GUI tabs header controller.

Author
Andreas Drewke
Version
$Id$

Definition at line 26 of file GUITabsHeaderController.h.

Constructor & Destructor Documentation

◆ GUITabsHeaderController()

GUITabsHeaderController ( GUINode node)
private

Private constructor.

Parameters
nodenode

Definition at line 28 of file GUITabsHeaderController.cpp.

Member Function Documentation

◆ determineTabControllers()

void determineTabControllers ( )
private

Determine select box option controllers.

Definition at line 100 of file GUITabsHeaderController.cpp.

◆ dispose()

void dispose ( )
overridevirtual

Dispose controller.

Implements GUINodeController.

Definition at line 55 of file GUITabsHeaderController.cpp.

◆ getValue()

const MutableString & getValue ( )
overridevirtual
Returns
value

Implements GUINodeController.

Definition at line 212 of file GUITabsHeaderController.cpp.

◆ handleKeyboardEvent()

void handleKeyboardEvent ( GUIKeyboardEvent event)
overridevirtual

Handle keyboard event.

Parameters
eventevent

Implements GUINodeController.

Definition at line 169 of file GUITabsHeaderController.cpp.

◆ handleMouseEvent()

void handleMouseEvent ( GUINode node,
GUIMouseEvent event 
)
overridevirtual

Handle mouse event.

Parameters
nodenode
eventevent

Implements GUINodeController.

Definition at line 158 of file GUITabsHeaderController.cpp.

◆ hasFocus()

bool hasFocus ( )
private
Returns
has focus

Definition at line 64 of file GUITabsHeaderController.cpp.

◆ hasValue()

bool hasValue ( )
overridevirtual
Returns
has value

Implements GUINodeController.

Definition at line 207 of file GUITabsHeaderController.cpp.

◆ initialize()

void initialize ( )
overridevirtual

Initialize controller after element has been created.

Implements GUINodeController.

Definition at line 43 of file GUITabsHeaderController.cpp.

◆ isDisabled()

bool isDisabled ( )
overridevirtual
Returns
is disabled

Implements GUINodeController.

Definition at line 34 of file GUITabsHeaderController.cpp.

◆ onFocusGained()

void onFocusGained ( )
overridevirtual

On focus gained.

Implements GUINodeController.

Definition at line 195 of file GUITabsHeaderController.cpp.

◆ onFocusLost()

void onFocusLost ( )
overridevirtual

On focus lost.

Implements GUINodeController.

Definition at line 201 of file GUITabsHeaderController.cpp.

◆ onSubTreeChange()

void onSubTreeChange ( )
overridevirtual

On sub tree change.

Implements GUINodeController.

Definition at line 221 of file GUITabsHeaderController.cpp.

◆ postLayout()

void postLayout ( )
overridevirtual

Post layout event.

Implements GUINodeController.

Definition at line 60 of file GUITabsHeaderController.cpp.

◆ select() [1/3]

void select ( )

Select selected tab.

Definition at line 75 of file GUITabsHeaderController.cpp.

◆ select() [2/3]

void select ( GUIElementNode tabElementNode)

Select tab by index.

Parameters
tabElementNodetab element node

Definition at line 88 of file GUITabsHeaderController.cpp.

◆ select() [3/3]

void select ( int  idx)

Select tab by index.

Parameters
idxindex

Definition at line 81 of file GUITabsHeaderController.cpp.

◆ selectCurrent()

void selectCurrent ( )
private

Select current.

Definition at line 145 of file GUITabsHeaderController.cpp.

◆ selectNext()

void selectNext ( )
private

Select next node.

Definition at line 117 of file GUITabsHeaderController.cpp.

◆ selectPrevious()

void selectPrevious ( )
private

Select previous.

Definition at line 131 of file GUITabsHeaderController.cpp.

◆ setDisabled()

void setDisabled ( bool  disabled)
overridevirtual

Set disabled.

Parameters
disableddisabled

Implements GUINodeController.

Definition at line 39 of file GUITabsHeaderController.cpp.

◆ setValue()

void setValue ( const MutableString value)
overridevirtual

Set value.

Parameters
valuevalue

Implements GUINodeController.

Definition at line 217 of file GUITabsHeaderController.cpp.

◆ tick()

void tick ( )
overridevirtual

Tick method will be executed once per frame.

Implements GUINodeController.

Definition at line 190 of file GUITabsHeaderController.cpp.

◆ unselect()

void unselect ( )

Unselect selected tab.

Definition at line 69 of file GUITabsHeaderController.cpp.

Friends And Related Function Documentation

◆ GUITabController

friend class GUITabController
friend

Definition at line 30 of file GUITabsHeaderController.h.

◆ GUITabsHeader

friend class GUITabsHeader
friend

Definition at line 29 of file GUITabsHeaderController.h.

Member Data Documentation

◆ focus

bool focus
private

Definition at line 36 of file GUITabsHeaderController.h.

◆ tabControllerIdx

int tabControllerIdx { -1 }
private

Definition at line 35 of file GUITabsHeaderController.h.

◆ tabControllers

vector<GUITabController*> tabControllers
private

Definition at line 34 of file GUITabsHeaderController.h.

◆ tabsNode

GUINode* tabsNode { nullptr }
private

Definition at line 33 of file GUITabsHeaderController.h.

◆ value

MutableString value
private

Definition at line 37 of file GUITabsHeaderController.h.


The documentation for this class was generated from the following files: