![]() |
Computer Assited Medical Intervention Tool Kit
|
#include <ComponentPopupMenu.h>
Public Member Functions | |
ComponentPopupMenu (Component *, QWidget *) | |
default constructor More... | |
Protected Member Functions | |
QAction * | addAction (const QString name, const char *member, bool isCheckable=true) |
Add a new item to the popup menu) More... | |
QAction * | addSeparator () |
insert a menu separator and return the corresponding action More... | |
Protected Attributes | |
Component * | myComponent |
the Component concerned by this popup menu More... | |
Generic class for Component popup menu. To create your own Component popup, create a class that inherits from this one. Your class could have as many slot that you want. Create popup menu item and connect your slot using the addAction method. <b>Example:</b>
camitk::ComponentPopupMenu::ComponentPopupMenu | ( | Component * | comp, |
QWidget * | parent | ||
) |
default constructor
References myComponent.
|
protected |
Add a new item to the popup menu)
name | string that will appears as the name of the menu item |
member | is the slot to be connected to this action (slot that should be implemented in your subclass) |
isCheckable | if the item is checkable |
Referenced by AtomDCPopup::AtomDCPopup(), MMLComponentPopup::MMLComponentPopup(), MultiComponentDCPopup::MultiComponentDCPopup(), PMManagerDCPopup::PMManagerDCPopup(), StructuralComponentDCPopup::StructuralComponentDCPopup(), and VtkMeshComponentPopup::VtkMeshComponentPopup().
|
protected |
insert a menu separator and return the corresponding action
Referenced by PMManagerDCPopup::PMManagerDCPopup(), and VtkMeshComponentPopup::VtkMeshComponentPopup().
|
protected |
the Component concerned by this popup menu
Referenced by AtomDCPopup::addLoad(), MultiComponentDCPopup::addNewMultiComponent(), MultiComponentDCPopup::addNewStructuralComponent(), ComponentPopupMenu(), MMLComponentPopup::MMLComponentPopup(), MMLComponentPopup::monitoringTabs(), PMManagerDCPopup::openLoads(), PMManagerDCPopup::openReferencePML(), PMManagerDCPopup::PMManagerDCPopup(), PMManagerDCPopup::saveAsLoads(), and StructuralComponentDCPopup::saveToCsv().