#include <MenuManager.h>
Public Member Functions | |
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 () |
Definition at line 37 of file MenuManager.h.
MenuItem::MenuItem | ( | ) |
Definition at line 39 of file MenuManager.cpp.
Referenced by operator<<().
MenuItem::MenuItem | ( | MenuItem * | item | ) |
Definition at line 43 of file MenuManager.cpp.
References appendItem().
MenuItem::~MenuItem | ( | ) |
Definition at line 49 of file MenuManager.cpp.
References clear().
void MenuItem::appendItem | ( | MenuItem * | item | ) |
Definition at line 106 of file MenuManager.cpp.
Referenced by copy(), MenuItem(), operator<<(), and Gui::PythonWorkbench::setupContextMenu().
void MenuItem::clear | ( | void | ) |
Definition at line 130 of file MenuManager.cpp.
Referenced by Gui::PythonWorkbench::clearContextMenu(), and ~MenuItem().
std::string MenuItem::command | ( | ) | const |
Definition at line 59 of file MenuManager.cpp.
Referenced by copy().
MenuItem * MenuItem::copy | ( | void | ) | const |
Definition at line 87 of file MenuManager.cpp.
References appendItem(), command(), getItems(), and setCommand().
Referenced by Gui::PythonWorkbench::setupMenuBar().
uint MenuItem::count | ( | ) | const |
Definition at line 101 of file MenuManager.cpp.
MenuItem * MenuItem::findItem | ( | const std::string & | name | ) |
Definition at line 69 of file MenuManager.cpp.
Referenced by Gui::PythonWorkbench::appendContextMenu(), Gui::PythonWorkbench::appendMenu(), Gui::PythonWorkbench::removeContextMenu(), Gui::PythonWorkbench::removeMenu(), SketcherGui::Workbench::setupMenuBar(), SandboxGui::Workbench::setupMenuBar(), RobotGui::Workbench::setupMenuBar(), ReverseEngineeringGui::Workbench::setupMenuBar(), RaytracingGui::Workbench::setupMenuBar(), PointsGui::Workbench::setupMenuBar(), PartDesignGui::Workbench::setupMenuBar(), PartGui::Workbench::setupMenuBar(), MeshGui::Workbench::setupMenuBar(), InspectionGui::Workbench::setupMenuBar(), FemGui::Workbench::setupMenuBar(), DrawingGui::Workbench::setupMenuBar(), CamGui::Workbench::setupMenuBar(), and Gui::TestWorkbench::setupMenuBar().
QList< MenuItem * > MenuItem::getItems | ( | ) | const |
Definition at line 150 of file MenuManager.cpp.
Referenced by copy(), Gui::MainWindow::createPopupMenu(), Gui::PythonWorkbench::listMenus(), Gui::MenuManager::setup(), and Gui::PythonWorkbench::setupContextMenu().
bool MenuItem::hasItems | ( | ) | const |
Definition at line 64 of file MenuManager.cpp.
Referenced by Gui::MainWindow::createPopupMenu().
Definition at line 111 of file MenuManager.cpp.
References RobotExample::pos.
Referenced by Gui::PythonWorkbench::appendMenu(), SketcherGui::Workbench::setupMenuBar(), SandboxGui::Workbench::setupMenuBar(), RobotGui::Workbench::setupMenuBar(), ReverseEngineeringGui::Workbench::setupMenuBar(), RaytracingGui::Workbench::setupMenuBar(), PointsGui::Workbench::setupMenuBar(), PartDesignGui::Workbench::setupMenuBar(), PartGui::Workbench::setupMenuBar(), MeshGui::Workbench::setupMenuBar(), InspectionGui::Workbench::setupMenuBar(), FemGui::Workbench::setupMenuBar(), DrawingGui::Workbench::setupMenuBar(), CamGui::Workbench::setupMenuBar(), and Gui::TestWorkbench::setupMenuBar().
MenuItem & MenuItem::operator<< | ( | const std::string & | command | ) |
Definition at line 137 of file MenuManager.cpp.
References MenuItem(), and setCommand().
Definition at line 144 of file MenuManager.cpp.
References appendItem().
void MenuItem::removeItem | ( | MenuItem * | item | ) |
Definition at line 123 of file MenuManager.cpp.
References RobotExample::pos.
Referenced by Gui::PythonWorkbench::removeContextMenu(), Gui::PythonWorkbench::removeMenu(), and Gui::TestWorkbench::setupMenuBar().
void MenuItem::setCommand | ( | const std::string & | name | ) |
Definition at line 54 of file MenuManager.cpp.
Referenced by Gui::PythonWorkbench::appendContextMenu(), Gui::PythonWorkbench::appendMenu(), copy(), SketcherGui::ViewProviderSketch::mouseButtonPressed(), operator<<(), CompleteGui::Workbench::setupContextMenu(), Gui::StdWorkbench::setupContextMenu(), SketcherGui::Workbench::setupMenuBar(), SandboxGui::Workbench::setupMenuBar(), RobotGui::Workbench::setupMenuBar(), ReverseEngineeringGui::Workbench::setupMenuBar(), RaytracingGui::Workbench::setupMenuBar(), PointsGui::Workbench::setupMenuBar(), PartDesignGui::Workbench::setupMenuBar(), PartGui::Workbench::setupMenuBar(), MeshGui::Workbench::setupMenuBar(), InspectionGui::Workbench::setupMenuBar(), FemGui::Workbench::setupMenuBar(), DrawingGui::Workbench::setupMenuBar(), CompleteGui::Workbench::setupMenuBar(), CamGui::Workbench::setupMenuBar(), Gui::TestWorkbench::setupMenuBar(), Gui::NoneWorkbench::setupMenuBar(), and Gui::StdWorkbench::setupMenuBar().