Version: 8.3.0
YACS::HMI::HeaderNodeMenu Class Reference

#include <Menus.hxx>

Inheritance diagram for YACS::HMI::HeaderNodeMenu:
Collaboration diagram for YACS::HMI::HeaderNodeMenu:

Public Member Functions

 HeaderNodeMenu ()
 
virtual ~HeaderNodeMenu ()
 
virtual void popupMenu (QWidget *caller, const QPoint &globalPos, const QString &m="Header Node Menu")
 
- Public Member Functions inherited from YACS::HMI::MenusBase
 MenusBase ()
 
virtual ~MenusBase ()
 
virtual void addForEachMenu (QMenu *m, QActionGroup *actgroup)
 
virtual void addForEachMenuToPutGraph (QMenu *m, QActionGroup *actgroup)
 

Additional Inherited Members

- Protected Slots inherited from YACS::HMI::MenusBase
void dummyAction ()
 
void foreachAction (QAction *)
 
void putGraphInForeachAction (QAction *)
 
- Protected Member Functions inherited from YACS::HMI::MenusBase
virtual void buildForEachMenu (QMenu *m, QActionGroup *actgroup)
 
virtual void addHeader (QMenu &m, const QString &h)
 
- Protected Attributes inherited from YACS::HMI::MenusBase
QAction * _dummyAct
 

Detailed Description

Definition at line 86 of file Menus.hxx.

Constructor & Destructor Documentation

HeaderNodeMenu::HeaderNodeMenu ( )

Definition at line 332 of file Menus.cxx.

332  : MenusBase()
333 {
334 }
HeaderNodeMenu::~HeaderNodeMenu ( )
virtual

Definition at line 336 of file Menus.cxx.

337 {
338 }

Member Function Documentation

void HeaderNodeMenu::popupMenu ( QWidget caller,
const QPoint &  globalPos,
const QString &  m = "Header Node Menu" 
)
virtual

Reimplemented from YACS::HMI::MenusBase.

Definition at line 340 of file Menus.cxx.

References YACS::HMI::GenericGui::_deleteItemAct, YACS::HMI::MenusBase::addHeader(), YACS::HMI::QtGuiContext::getGMain(), YACS::HMI::QtGuiContext::getQtCurrent(), and YACS::HMI::QtGuiContext::isEdition().

341 {
343  bool isEdition = QtGuiContext::getQtCurrent()->isEdition();
344  QMenu menu(m, caller);
345  addHeader(menu, m);
346  if (isEdition)
347  {
348  menu.addAction(gmain->_deleteItemAct);
349  }
350  menu.exec(globalPos);
351 }

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