Choreonoid  1.8
Public Member Functions | List of all members
cnoid::MenuManager Class Reference

#include <MenuManager.h>

Public Member Functions

 MenuManager ()
 
 MenuManager (QWidget *topMenu)
 
virtual ~MenuManager ()
 
void bindTextDomain (const std::string &domain)
 
void setTopMenu (QWidget *topMenu)
 
QWidget * topMenu ()
 
void setNewPopupMenu (QWidget *parent=0)
 
MenupopupMenu ()
 
QWidget * current () const
 
MenuManagersetCurrent (QWidget *menu)
 
int numItems () const
 
QAction * findItem (const QString &path)
 
MenuManagersetPath (const QString &path)
 
MenuManagersetBackwardMode ()
 
void addAction (QAction *action)
 
ActionaddItem (const QString &text)
 
ActionaddItem (const std::string &text)
 
ActionaddItem (const char *text)
 
ActionaddCheckItem (const QString &text)
 
ActionaddRadioItem (QActionGroup *group, const QString &text)
 
MenuManageraddSeparator ()
 

Constructor & Destructor Documentation

◆ MenuManager() [1/2]

MenuManager::MenuManager ( )

◆ MenuManager() [2/2]

MenuManager::MenuManager ( QWidget *  topMenu)

◆ ~MenuManager()

MenuManager::~MenuManager ( )
virtual

Member Function Documentation

◆ addAction()

void MenuManager::addAction ( QAction *  action)

◆ addCheckItem()

Action * MenuManager::addCheckItem ( const QString &  text)

◆ addItem() [1/3]

Action * MenuManager::addItem ( const char *  text)

◆ addItem() [2/3]

Action * MenuManager::addItem ( const QString &  text)

◆ addItem() [3/3]

Action * MenuManager::addItem ( const std::string &  text)

◆ addRadioItem()

Action * MenuManager::addRadioItem ( QActionGroup *  group,
const QString &  text 
)

◆ addSeparator()

MenuManager & MenuManager::addSeparator ( )

◆ bindTextDomain()

void MenuManager::bindTextDomain ( const std::string &  domain)

◆ current()

QWidget * MenuManager::current ( ) const

◆ findItem()

QAction * MenuManager::findItem ( const QString &  path)

◆ numItems()

int MenuManager::numItems ( ) const

◆ popupMenu()

Menu * MenuManager::popupMenu ( )

◆ setBackwardMode()

MenuManager & MenuManager::setBackwardMode ( )

◆ setCurrent()

MenuManager & MenuManager::setCurrent ( QWidget *  menu)

◆ setNewPopupMenu()

void MenuManager::setNewPopupMenu ( QWidget *  parent = 0)

◆ setPath()

MenuManager & MenuManager::setPath ( const QString &  path)

This function specifies a menu to be subjected to item operation. The function must be called before adding a menu item.

Parameters
pathThe path to the target menu If the path begins with '/', it will be the path from the root. Otherwise, it will be a relative path from the currently specifed menu. A menu is newly created if the menu specified in the path does not exist.

◆ setTopMenu()

void MenuManager::setTopMenu ( QWidget *  topMenu)

◆ topMenu()

QWidget * MenuManager::topMenu ( )

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