Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Signals | Public Member Functions | Protected Member Functions | List of all members
MultiListMenuCategoryBusinessLogic Class Referenceabstract

#include <MultiListMenuCategoryBusinessLogic.h>

Inheritance diagram for MultiListMenuCategoryBusinessLogic:
Inheritance graph
[legend]
Collaboration diagram for MultiListMenuCategoryBusinessLogic:
Collaboration graph
[legend]

Classes

class  DataClass
 

Signals

void CurrentTabChanged (int currentTab)
 

Public Member Functions

 MultiListMenuCategoryBusinessLogic (const QString &menuCategoryName, MenuManager *menuManager, BusinessLogicManager *persistentBusinessLogicManager, MenuCategoryMultiListWidget *widget)
 
virtual ~MultiListMenuCategoryBusinessLogic ()
 
void SetSubCategories (const QStringList &subCategoriesCaptions)
 SetSubCategories This function must be called before SetVisibleCommands. It creates buttons and tabs for all subcategories specified in the string list. More...
 
void AddCustomWidget (const int tabIndex, QWidget *widget)
 AddCustomWidget - method enables possibility to add non standard widget to menu. More...
 
virtual void SetVisibleCommands (QList< MenuCommand * > visibleCommands, const MenuCommand::OperatorType currentOperator)
 SetVisibleCommands Sets visible menu commands for all subcategories. Each menu command contains the information about which subcategory it belongs to, so the commands are divided by this information. More...
 
virtual QWidget * GetMenuWidget () const
 
virtual void UpdateWidgetData ()
 
virtual void DeselectAllCommands ()
 
- Public Member Functions inherited from MenuCategoryBusinessLogic
 MenuCategoryBusinessLogic (const QString &menuCategoryCaption, MenuManager *menuManager, BusinessLogicManager *persistentBusinessLogicManager)
 
virtual ~MenuCategoryBusinessLogic ()
 
virtual void UpdateMenuCategoryTranslatedCaption ()
 
QString GetCaption () const
 
void SetFixed (bool fixed)
 
bool IsFixed () const
 
virtual void OnQadraRealtimeDataReceived (const QStringList &realtimeData)
 

Protected Member Functions

void UpdateMenuCategoryTabsTranslatedCaption ()
 
virtual QStringList GetMenuSubcategoryCaptions ()=0
 
- Protected Member Functions inherited from MenuCategoryBusinessLogic
virtual QString GetMenuCategoryCaption ()=0
 
void UpdateMenuCategoryTranslatedCaption (const QString &menuCategoryCaption)
 
MenuManagerGetMenuManager ()
 
BusinessLogicManagerGetPersistentBusinessLogicManager ()
 

Constructor & Destructor Documentation

MultiListMenuCategoryBusinessLogic::MultiListMenuCategoryBusinessLogic ( const QString &  menuCategoryName,
MenuManager menuManager,
BusinessLogicManager persistentBusinessLogicManager,
MenuCategoryMultiListWidget widget 
)
MultiListMenuCategoryBusinessLogic::~MultiListMenuCategoryBusinessLogic ( )
virtual

Member Function Documentation

void MultiListMenuCategoryBusinessLogic::AddCustomWidget ( const int  tabIndex,
QWidget *  widget 
)

AddCustomWidget - method enables possibility to add non standard widget to menu.

Parameters
tabIndex- tab index, where custom widget will be added
widget- widget to be added

Here is the caller graph for this function:

void MultiListMenuCategoryBusinessLogic::CurrentTabChanged ( int  currentTab)
signal

Here is the caller graph for this function:

void MultiListMenuCategoryBusinessLogic::DeselectAllCommands ( )
virtual
virtual QStringList MultiListMenuCategoryBusinessLogic::GetMenuSubcategoryCaptions ( )
protectedpure virtual

Here is the caller graph for this function:

QWidget * MultiListMenuCategoryBusinessLogic::GetMenuWidget ( ) const
virtual
void MultiListMenuCategoryBusinessLogic::SetSubCategories ( const QStringList &  subCategoriesCaptions)

SetSubCategories This function must be called before SetVisibleCommands. It creates buttons and tabs for all subcategories specified in the string list.

Parameters
subCategoriesCaptionsList of captions of the subcategories.

Here is the caller graph for this function:

void MultiListMenuCategoryBusinessLogic::SetVisibleCommands ( QList< MenuCommand * >  visibleCommands,
const MenuCommand::OperatorType  currentOperator 
)
virtual

SetVisibleCommands Sets visible menu commands for all subcategories. Each menu command contains the information about which subcategory it belongs to, so the commands are divided by this information.

Parameters
visibleCommandsList of all visible commands.

Implements MenuCategoryBusinessLogic.

Reimplemented in MenuCategoryDevicesBusinessLogic.

Here is the call graph for this function:

Here is the caller graph for this function:

void MultiListMenuCategoryBusinessLogic::UpdateMenuCategoryTabsTranslatedCaption ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MultiListMenuCategoryBusinessLogic::UpdateWidgetData ( )
virtual

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