ScrPopupMenu Class Reference
#include <scmenu.h>
Public Member Functions | |
| ScrPopupMenu (QWidget *parent=0, const QString pMenuName=QString::null, const QString pMenuText=QString::null, const QString parentName=QString::null, bool checkable=false) | |
| ~ScrPopupMenu () | |
| const QString | getMenuName () |
| const QString | getParentMenuName () |
| const QString | getMenuText () |
| void | setText (const QString pMenuText) |
| const QIcon | getMenuIcon () |
| void | setMenuIcon (const QIcon pMenuIcon) |
| void | setEnabled (bool menuEnabled) |
| QMenu * | getLocalPopupMenu () |
| bool | repopulateLocalMenu () |
| bool | clear () |
| bool | insertSubMenu (ScrPopupMenu *newSubMenu) |
| bool | insertMenuItem (ScrAction *newMenuAction) |
| bool | insertMenuItemAfter (ScrAction *newMenuAction, ScrAction *afterMenuAction) |
| bool | insertMenuSeparator () |
| bool | hasSubMenu (ScrPopupMenu *subMenu) |
| bool | removeSubMenu (ScrPopupMenu *subMenu) |
| bool | removeMenuItem (ScrAction *menuAction) |
| bool | setSubMenuText (ScrAction *menuAction) |
| bool | generateEntryList (QStringList *actNames) |
| void | setParentMenuName (const QString &newParentMenuName) |
Protected Attributes | |
| QMenu * | localPopupMenu |
| QList< QPointer< QObject > > | menuItemList |
| QString | menuName |
| QString | parentMenuName |
| int | parentMenuID |
| QString | menuText |
| QIcon | menuIcon |
| int | menuBarID |
| bool | enabled |
| bool | checkable |
Detailed Description
Definition at line 35 of file scmenu.h.
Constructor & Destructor Documentation
| ScrPopupMenu::ScrPopupMenu | ( | QWidget * | parent = 0, |
|
| const QString | pMenuName = QString::null, |
|||
| const QString | pMenuText = QString::null, |
|||
| const QString | parentName = QString::null, |
|||
| bool | checkable = false | |||
| ) |
Definition at line 31 of file scmenu.cpp.
References checkable, enabled, localPopupMenu, menuBarID, menuItemList, menuName, menuText, parentMenuID, and parentMenuName.
| ScrPopupMenu::~ScrPopupMenu | ( | ) |
Member Function Documentation
| const QString ScrPopupMenu::getMenuName | ( | ) |
| const QString ScrPopupMenu::getParentMenuName | ( | ) |
| const QString ScrPopupMenu::getMenuText | ( | ) |
Definition at line 50 of file scmenu.cpp.
References menuText.
Referenced by insertSubMenu(), and repopulateLocalMenu().
| void ScrPopupMenu::setText | ( | const QString | pMenuText | ) |
| const QIcon ScrPopupMenu::getMenuIcon | ( | ) |
| void ScrPopupMenu::setMenuIcon | ( | const QIcon | pMenuIcon | ) |
| void ScrPopupMenu::setEnabled | ( | bool | menuEnabled | ) |
| QMenu * ScrPopupMenu::getLocalPopupMenu | ( | ) |
Definition at line 91 of file scmenu.cpp.
References localPopupMenu.
Referenced by insertSubMenu(), and repopulateLocalMenu().
| bool ScrPopupMenu::repopulateLocalMenu | ( | ) |
Definition at line 271 of file scmenu.cpp.
References getLocalPopupMenu(), getMenuText(), localPopupMenu, menuItemList, and sDebug().
Referenced by insertMenuItemAfter(), removeMenuItem(), and removeSubMenu().
| bool ScrPopupMenu::clear | ( | ) |
| bool ScrPopupMenu::insertSubMenu | ( | ScrPopupMenu * | newSubMenu | ) |
Definition at line 112 of file scmenu.cpp.
References getLocalPopupMenu(), getMenuText(), localPopupMenu, and menuItemList.
| bool ScrPopupMenu::insertMenuItem | ( | ScrAction * | newMenuAction | ) |
Definition at line 137 of file scmenu.cpp.
References getMenuIcon(), loadIcon(), localPopupMenu, and menuItemList.
Definition at line 193 of file scmenu.cpp.
References loadIcon(), menuItemList, and repopulateLocalMenu().
| bool ScrPopupMenu::insertMenuSeparator | ( | ) |
| bool ScrPopupMenu::hasSubMenu | ( | ScrPopupMenu * | subMenu | ) |
| bool ScrPopupMenu::removeSubMenu | ( | ScrPopupMenu * | subMenu | ) |
| bool ScrPopupMenu::removeMenuItem | ( | ScrAction * | menuAction | ) |
| bool ScrPopupMenu::setSubMenuText | ( | ScrAction * | menuAction | ) |
| bool ScrPopupMenu::generateEntryList | ( | QStringList * | actNames | ) |
Definition at line 314 of file scmenu.cpp.
References generateEntryList(), and menuItemList.
Referenced by generateEntryList().
| void ScrPopupMenu::setParentMenuName | ( | const QString & | newParentMenuName | ) |
Member Data Documentation
QMenu* ScrPopupMenu::localPopupMenu [protected] |
Definition at line 67 of file scmenu.h.
Referenced by clear(), getLocalPopupMenu(), insertMenuItem(), insertMenuSeparator(), insertSubMenu(), repopulateLocalMenu(), ScrPopupMenu(), setEnabled(), setText(), and ~ScrPopupMenu().
QList< QPointer<QObject> > ScrPopupMenu::menuItemList [protected] |
Definition at line 68 of file scmenu.h.
Referenced by clear(), generateEntryList(), hasSubMenu(), insertMenuItem(), insertMenuItemAfter(), insertMenuSeparator(), insertSubMenu(), removeMenuItem(), removeSubMenu(), repopulateLocalMenu(), and ScrPopupMenu().
QString ScrPopupMenu::menuName [protected] |
QString ScrPopupMenu::parentMenuName [protected] |
Definition at line 70 of file scmenu.h.
Referenced by getParentMenuName(), ScrPopupMenu(), and setParentMenuName().
int ScrPopupMenu::parentMenuID [protected] |
QString ScrPopupMenu::menuText [protected] |
QIcon ScrPopupMenu::menuIcon [protected] |
int ScrPopupMenu::menuBarID [protected] |
bool ScrPopupMenu::enabled [protected] |
bool ScrPopupMenu::checkable [protected] |
The documentation for this class was generated from the following files:
