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

GUI tabs controller. More...

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

Inheritance diagram for GUITabsController:
Inheritance graph
Collaboration diagram for GUITabsController:
Collaboration graph

Public Member Functions

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

 GUITabsController (GUINode *node)
 Private constructor. More...
 
void determineTabContentControllers ()
 Determine tab controllers. More...
 
void unselect ()
 Unselect. More...
 
void select (GUIElementNode *tabElementNode)
 Select. More...
 
void setTabContentSelected (const string &id)
 Set tab content selected. More...
 
void setTabContentSelectedInternal (const string &id)
 Set tab content selected internal. More...
 

Private Attributes

vector< GUITabController * > tabControllers
 
vector< GUITabContentController * > tabContentControllers
 
GUITabsHeaderControllertabsHeaderController { nullptr }
 
MutableString value
 
bool tabSelected { false }
 

Friends

class GUITabs
 
class GUITabController
 
class GUITabsHeaderController
 

Additional Inherited Members

- Protected Member Functions inherited from GUINodeController
 GUINodeController (GUINode *node)
 Private constructor. More...
 
- Protected Attributes inherited from GUINodeController
GUINodenode { nullptr }
 

Detailed Description

GUI tabs controller.

Author
Andreas Drewke
Version
$Id$

Definition at line 29 of file GUITabsController.h.

Constructor & Destructor Documentation

◆ GUITabsController()

GUITabsController ( GUINode node)
private

Private constructor.

Parameters
nodenode

Definition at line 30 of file GUITabsController.cpp.

Member Function Documentation

◆ determineTabContentControllers()

void determineTabContentControllers ( )
private

Determine tab controllers.

Definition at line 35 of file GUITabsController.cpp.

◆ dispose()

void dispose ( )
overridevirtual

Dispose controller.

Implements GUINodeController.

Definition at line 84 of file GUITabsController.cpp.

◆ getValue()

const MutableString & getValue ( )
overridevirtual
Returns
value

Implements GUINodeController.

Definition at line 146 of file GUITabsController.cpp.

◆ handleKeyboardEvent()

void handleKeyboardEvent ( GUIKeyboardEvent event)
overridevirtual

Handle keyboard event.

Parameters
eventevent

Implements GUINodeController.

Definition at line 125 of file GUITabsController.cpp.

◆ handleMouseEvent()

void handleMouseEvent ( GUINode node,
GUIMouseEvent event 
)
overridevirtual

Handle mouse event.

Parameters
nodenode
eventevent

Implements GUINodeController.

Definition at line 121 of file GUITabsController.cpp.

◆ hasValue()

bool hasValue ( )
overridevirtual
Returns
has value

Implements GUINodeController.

Definition at line 141 of file GUITabsController.cpp.

◆ initialize()

void initialize ( )
overridevirtual

Initialize controller after element has been created.

Implements GUINodeController.

Definition at line 60 of file GUITabsController.cpp.

◆ isDisabled()

bool isDisabled ( )
overridevirtual
Returns
is disabled

Implements GUINodeController.

Definition at line 51 of file GUITabsController.cpp.

◆ onFocusGained()

void onFocusGained ( )
overridevirtual

On focus gained.

Implements GUINodeController.

Definition at line 133 of file GUITabsController.cpp.

◆ onFocusLost()

void onFocusLost ( )
overridevirtual

On focus lost.

Implements GUINodeController.

Definition at line 137 of file GUITabsController.cpp.

◆ onSubTreeChange()

void onSubTreeChange ( )
overridevirtual

On sub tree change.

Implements GUINodeController.

Definition at line 162 of file GUITabsController.cpp.

◆ postLayout()

void postLayout ( )
overridevirtual

Post layout event.

Implements GUINodeController.

Definition at line 88 of file GUITabsController.cpp.

◆ select()

void select ( GUIElementNode tabElementNode)
private

Select.

Parameters
tabElementNodetab element node

Definition at line 97 of file GUITabsController.cpp.

◆ setDisabled()

void setDisabled ( bool  disabled)
overridevirtual

Set disabled.

Parameters
disableddisabled

Implements GUINodeController.

Definition at line 56 of file GUITabsController.cpp.

◆ setTabContentSelected()

void setTabContentSelected ( const string &  id)
private

Set tab content selected.

Parameters
idid

Definition at line 114 of file GUITabsController.cpp.

◆ setTabContentSelectedInternal()

void setTabContentSelectedInternal ( const string &  id)
private

Set tab content selected internal.

Parameters
idid

Definition at line 101 of file GUITabsController.cpp.

◆ setValue()

void setValue ( const MutableString value)
overridevirtual

Set value.

Parameters
valuevalue

Implements GUINodeController.

Definition at line 151 of file GUITabsController.cpp.

◆ tick()

void tick ( )
overridevirtual

Tick method will be executed once per frame.

Implements GUINodeController.

Definition at line 129 of file GUITabsController.cpp.

◆ unselect()

void unselect ( )
private

Unselect.

Definition at line 92 of file GUITabsController.cpp.

Friends And Related Function Documentation

◆ GUITabController

friend class GUITabController
friend

Definition at line 33 of file GUITabsController.h.

◆ GUITabs

friend class GUITabs
friend

Definition at line 32 of file GUITabsController.h.

◆ GUITabsHeaderController

friend class GUITabsHeaderController
friend

Definition at line 34 of file GUITabsController.h.

Member Data Documentation

◆ tabContentControllers

vector<GUITabContentController*> tabContentControllers
private

Definition at line 38 of file GUITabsController.h.

◆ tabControllers

vector<GUITabController*> tabControllers
private

Definition at line 37 of file GUITabsController.h.

◆ tabSelected

bool tabSelected { false }
private

Definition at line 41 of file GUITabsController.h.

◆ tabsHeaderController

GUITabsHeaderController* tabsHeaderController { nullptr }
private

Definition at line 39 of file GUITabsController.h.

◆ value

MutableString value
private

Definition at line 40 of file GUITabsController.h.


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