![]() |
Computer Assited Medical Intervention Tool Kit
version 4.0
|
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. More...
#include <ComponentPopupMenu.h>
Inherits QMenu.
Inherited by AtomDCPopup, MultiComponentDCPopup, PMManagerDCPopup, and StructuralComponentDCPopup.
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.
Example:
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(), MultiComponentDCPopup::MultiComponentDCPopup(), PMManagerDCPopup::PMManagerDCPopup(), and StructuralComponentDCPopup::StructuralComponentDCPopup().
|
protected |
insert a menu separator and return the corresponding action
Referenced by PMManagerDCPopup::PMManagerDCPopup().
|
protected |
the Component concerned by this popup menu
Referenced by AtomDCPopup::addLoad(), MultiComponentDCPopup::addNewMultiComponent(), MultiComponentDCPopup::addNewStructuralComponent(), ComponentPopupMenu(), PMManagerDCPopup::openLoads(), PMManagerDCPopup::openReferencePML(), PMManagerDCPopup::PMManagerDCPopup(), PMManagerDCPopup::saveAsLoads(), and StructuralComponentDCPopup::saveToCsv().