Gui::MenuItem Class Reference

#include <MenuManager.h>

List of all members.

Public Member Functions

void appendItem (MenuItem *)
void clear ()
std::string command () const
MenuItemcopy () const
uint count () const
MenuItemfindItem (const std::string &)
QList< MenuItem * > getItems () const
bool hasItems () const
bool insertItem (MenuItem *, MenuItem *)
 MenuItem (MenuItem *)
 MenuItem ()
MenuItemoperator<< (const std::string &command)
MenuItemoperator<< (MenuItem *item)
void removeItem (MenuItem *)
void setCommand (const std::string &)
 ~MenuItem ()

Detailed Description

Definition at line 37 of file MenuManager.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

void MenuItem::appendItem ( MenuItem item  ) 
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  ) 
QList< MenuItem * > MenuItem::getItems (  )  const
bool MenuItem::hasItems (  )  const

Definition at line 64 of file MenuManager.cpp.

Referenced by Gui::MainWindow::createPopupMenu().

bool MenuItem::insertItem ( MenuItem before,
MenuItem item 
)
MenuItem & MenuItem::operator<< ( const std::string &  command  ) 

Definition at line 137 of file MenuManager.cpp.

References MenuItem(), and setCommand().

MenuItem & MenuItem::operator<< ( MenuItem item  ) 

Definition at line 144 of file MenuManager.cpp.

References appendItem().

void MenuItem::removeItem ( MenuItem item  ) 
void MenuItem::setCommand ( const std::string &  name  ) 

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

Generated on Wed Nov 23 19:02:00 2011 for FreeCAD by  doxygen 1.6.1