#include <MenuManager.h>
Public Member Functions | |
MenuItem * | afterItem (MenuItem *) const |
void | appendItem (MenuItem *) |
void | clear () |
std::string | command () const |
MenuItem * | copy () const |
uint | count () const |
MenuItem * | findItem (const std::string &) |
QList< MenuItem * > | getItems () const |
bool | hasItems () const |
bool | insertItem (MenuItem *, MenuItem *) |
MenuItem () | |
MenuItem (MenuItem *) | |
MenuItem & | operator<< (const std::string &command) |
MenuItem & | operator<< (MenuItem *item) |
void | removeItem (MenuItem *) |
void | setCommand (const std::string &) |
~MenuItem () | |
Constructor & Destructor Documentation
◆ MenuItem() [1/2]
MenuItem::MenuItem | ( | ) |
Referenced by copy(), and operator<<().
◆ MenuItem() [2/2]
MenuItem::MenuItem | ( | MenuItem * | item | ) |
References appendItem().
◆ ~MenuItem()
MenuItem::~MenuItem | ( | ) |
References clear().
Member Function Documentation
◆ afterItem()
◆ appendItem()
void MenuItem::appendItem | ( | MenuItem * | item | ) |
Referenced by copy(), MenuItem(), operator<<(), and Gui::PythonBaseWorkbench::setupContextMenu().
◆ clear()
void MenuItem::clear | ( | ) |
Referenced by ~MenuItem().
◆ command()
std::string MenuItem::command | ( | ) | const |
Referenced by copy(), and operator<<().
◆ copy()
MenuItem * MenuItem::copy | ( | ) | const |
References appendItem(), command(), getItems(), MenuItem(), and setCommand().
Referenced by Gui::PythonBaseWorkbench::setupMenuBar(), and Gui::PythonWorkbench::setupMenuBar().
◆ count()
uint MenuItem::count | ( | ) | const |
◆ findItem()
MenuItem * MenuItem::findItem | ( | const std::string & | name | ) |
Referenced by Gui::PythonBaseWorkbench::appendContextMenu(), Gui::PythonBaseWorkbench::appendMenu(), Gui::PythonBaseWorkbench::removeContextMenu(), Gui::PythonBaseWorkbench::removeMenu(), SpreadsheetGui::Workbench::setupMenuBar(), PartDesignGui::Workbench::setupMenuBar(), SurfaceGui::Workbench::setupMenuBar(), InspectionGui::Workbench::setupMenuBar(), SandboxGui::Workbench::setupMenuBar(), PartGui::Workbench::setupMenuBar(), TechDrawGui::Workbench::setupMenuBar(), DrawingGui::Workbench::setupMenuBar(), RaytracingGui::Workbench::setupMenuBar(), ReverseEngineeringGui::Workbench::setupMenuBar(), FemGui::Workbench::setupMenuBar(), PointsGui::Workbench::setupMenuBar(), SketcherGui::Workbench::setupMenuBar(), MeshGui::Workbench::setupMenuBar(), RobotGui::Workbench::setupMenuBar(), and Gui::TestWorkbench::setupMenuBar().
◆ getItems()
QList< MenuItem * > MenuItem::getItems | ( | ) | const |
Referenced by copy(), Gui::MainWindow::createPopupMenu(), Gui::Workbench::listMenus(), and Gui::MenuManager::setup().
◆ hasItems()
bool MenuItem::hasItems | ( | ) | const |
Referenced by Gui::MainWindow::createPopupMenu(), and PartDesignGui::Workbench::setupContextMenu().
◆ insertItem()
Referenced by Gui::PythonBaseWorkbench::appendMenu(), SpreadsheetGui::Workbench::setupMenuBar(), PartDesignGui::Workbench::setupMenuBar(), InspectionGui::Workbench::setupMenuBar(), SurfaceGui::Workbench::setupMenuBar(), PartGui::Workbench::setupMenuBar(), RaytracingGui::Workbench::setupMenuBar(), ReverseEngineeringGui::Workbench::setupMenuBar(), TechDrawGui::Workbench::setupMenuBar(), SandboxGui::Workbench::setupMenuBar(), DrawingGui::Workbench::setupMenuBar(), SketcherGui::Workbench::setupMenuBar(), PointsGui::Workbench::setupMenuBar(), FemGui::Workbench::setupMenuBar(), MeshGui::Workbench::setupMenuBar(), RobotGui::Workbench::setupMenuBar(), and Gui::TestWorkbench::setupMenuBar().
◆ operator<<() [1/2]
MenuItem & MenuItem::operator<< | ( | const std::string & | command | ) |
References command(), MenuItem(), and setCommand().
◆ operator<<() [2/2]
References appendItem().
◆ removeItem()
void MenuItem::removeItem | ( | MenuItem * | item | ) |
◆ setCommand()
void MenuItem::setCommand | ( | const std::string & | name | ) |
Referenced by Gui::PythonBaseWorkbench::appendContextMenu(), Gui::PythonBaseWorkbench::appendMenu(), copy(), Gui::Workbench::createLinkMenu(), SketcherGui::ViewProviderSketch::mouseButtonPressed(), operator<<(), Gui::StdWorkbench::setupContextMenu(), SpreadsheetGui::Workbench::setupMenuBar(), PartDesignGui::Workbench::setupMenuBar(), SurfaceGui::Workbench::setupMenuBar(), InspectionGui::Workbench::setupMenuBar(), RaytracingGui::Workbench::setupMenuBar(), TechDrawGui::Workbench::setupMenuBar(), SandboxGui::Workbench::setupMenuBar(), ReverseEngineeringGui::Workbench::setupMenuBar(), DrawingGui::Workbench::setupMenuBar(), PartGui::Workbench::setupMenuBar(), FemGui::Workbench::setupMenuBar(), SketcherGui::Workbench::setupMenuBar(), PointsGui::Workbench::setupMenuBar(), MeshGui::Workbench::setupMenuBar(), RobotGui::Workbench::setupMenuBar(), Gui::StdWorkbench::setupMenuBar(), Gui::NoneWorkbench::setupMenuBar(), and Gui::TestWorkbench::setupMenuBar().
The documentation for this class was generated from the following files:
- src/Gui/MenuManager.h
- src/Gui/MenuManager.cpp