Fabcoin Core  0.16.2
P2P Digital Currency
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
NavigationBar Class Reference

The NavigationBar class Custom control for navigation bar. More...

#include <navigationbar.h>

Inheritance diagram for NavigationBar:
[legend]
Collaboration diagram for NavigationBar:
[legend]

Public Slots

void onSubBarClick (bool)
 onSubBarClick Activate the sub-navigation bar More...
 
void setToolButtonStyle (Qt::ToolButtonStyle toolButtonStyle)
 setToolButtonStyle Set the style for the tool buttons More...
 

Signals

void resized (const QSize &)
 resized Signal that the size is changed More...
 

Public Member Functions

 NavigationBar (QWidget *parent=0)
 NavigationBar Constructor. More...
 
void addAction (QAction *action)
 addAction Add action to the navigation bar More...
 
QAction * addGroup (QList< QAction * > list, const QIcon &icon, const QString &text)
 addGroup Add group of actions More...
 
QAction * addGroup (QList< QAction * > list, const QString &text)
 addGroup Add group of actions More...
 
void mapGroup (QAction *action, QList< QAction * > list)
 mapGroup Map the action with group More...
 
void buildUi ()
 buildUi Construct the layout of the composite GUI control More...
 

Protected Member Functions

void resizeEvent (QResizeEvent *evt)
 

Private Member Functions

void setSubBar (bool subBar)
 setSubBar Set the component be sub-navigation bar More...
 

Private Attributes

QList< QAction * > m_actions
 
QMap< QAction *, QList< QAction * > > m_groups
 
Qt::ToolButtonStyle m_toolStyle
 
bool m_subBar
 
bool m_built
 

Detailed Description

The NavigationBar class Custom control for navigation bar.

Definition at line 13 of file navigationbar.h.

Constructor & Destructor Documentation

NavigationBar::NavigationBar ( QWidget *  parent = 0)
explicit

NavigationBar Constructor.

Parameters
parentParent widget

Definition at line 134 of file navigationbar.cpp.

Here is the caller graph for this function:

Member Function Documentation

void NavigationBar::addAction ( QAction *  action)

addAction Add action to the navigation bar

Parameters
actionAction to add

Definition at line 142 of file navigationbar.cpp.

Here is the caller graph for this function:

QAction * NavigationBar::addGroup ( QList< QAction * >  list,
const QIcon &  icon,
const QString &  text 
)

addGroup Add group of actions

Parameters
listList of actions
iconIcon for the group of actions
textText for the group of actions
Returns
New action associated with the group

Definition at line 148 of file navigationbar.cpp.

Here is the call graph for this function:

QAction * NavigationBar::addGroup ( QList< QAction * >  list,
const QString &  text 
)

addGroup Add group of actions

Parameters
listList of actions
textText for the group of actions
Returns
New action associated with the group

Definition at line 156 of file navigationbar.cpp.

Here is the call graph for this function:

void NavigationBar::buildUi ( )

buildUi Construct the layout of the composite GUI control

Definition at line 164 of file navigationbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void NavigationBar::mapGroup ( QAction *  action,
QList< QAction * >  list 
)

mapGroup Map the action with group

Parameters
actionAction result of group creation
listList of group actions

Definition at line 290 of file navigationbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void NavigationBar::onSubBarClick ( bool  clicked)
slot

onSubBarClick Activate the sub-navigation bar

Definition at line 251 of file navigationbar.cpp.

Here is the caller graph for this function:

void NavigationBar::resized ( const QSize &  _t1)
signal

resized Signal that the size is changed

Definition at line 136 of file moc_navigationbar.cpp.

Here is the caller graph for this function:

void NavigationBar::resizeEvent ( QResizeEvent *  evt)
protected

Definition at line 284 of file navigationbar.cpp.

void NavigationBar::setSubBar ( bool  subBar)
private

setSubBar Set the component be sub-navigation bar

Parameters
subBarIs the component sub-navigation bar

Definition at line 297 of file navigationbar.cpp.

Here is the caller graph for this function:

void NavigationBar::setToolButtonStyle ( Qt::ToolButtonStyle  toolButtonStyle)
slot

setToolButtonStyle Set the style for the tool buttons

Parameters
toolButtonStyleTool button style

Definition at line 278 of file navigationbar.cpp.

Member Data Documentation

QList<QAction*> NavigationBar::m_actions
private

Definition at line 87 of file navigationbar.h.

bool NavigationBar::m_built
private

Definition at line 91 of file navigationbar.h.

QMap<QAction*, QList<QAction*> > NavigationBar::m_groups
private

Definition at line 88 of file navigationbar.h.

bool NavigationBar::m_subBar
private

Definition at line 90 of file navigationbar.h.

Qt::ToolButtonStyle NavigationBar::m_toolStyle
private

Definition at line 89 of file navigationbar.h.


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