Version: 8.3.0
YACS::HMI::CtrlInPortMenu Class Reference

#include <Menus.hxx>

Inheritance diagram for YACS::HMI::CtrlInPortMenu:
Collaboration diagram for YACS::HMI::CtrlInPortMenu:

Public Member Functions

 CtrlInPortMenu ()
 
virtual ~CtrlInPortMenu ()
 
virtual void popupMenu (QWidget *caller, const QPoint &globalPos, const QString &m="Control In Port 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 141 of file Menus.hxx.

Constructor & Destructor Documentation

CtrlInPortMenu::CtrlInPortMenu ( )

Definition at line 517 of file Menus.cxx.

517  : MenusBase()
518 {
519 }
CtrlInPortMenu::~CtrlInPortMenu ( )
virtual

Definition at line 521 of file Menus.cxx.

522 {
523 }

Member Function Documentation

void CtrlInPortMenu::popupMenu ( QWidget caller,
const QPoint &  globalPos,
const QString &  m = "Control In Port Menu" 
)
virtual

Reimplemented from YACS::HMI::MenusBase.

Definition at line 525 of file Menus.cxx.

References YACS::HMI::GenericGui::_deEmphasizeAllAct, YACS::HMI::GenericGui::_emphasisCtrlLinksAct, YACS::HMI::GenericGui::_hideCtrlLinksAct, YACS::HMI::GenericGui::_showCtrlLinksAct, YACS::HMI::GenericGui::_showOnlyCtrlLinksAct, YACS::HMI::MenusBase::addHeader(), YACS::HMI::QtGuiContext::getGMain(), YACS::HMI::QtGuiContext::getQtCurrent(), and YACS::HMI::QtGuiContext::isEdition().

Referenced by YACS::HMI::SceneCtrlInPortItem::popupMenu().

526 {
528  bool isEdition = QtGuiContext::getQtCurrent()->isEdition();
529  QMenu menu(m, caller);
530  addHeader(menu, m);
531  menu.addAction(gmain->_showOnlyCtrlLinksAct);
532  menu.addAction(gmain->_showCtrlLinksAct);
533  menu.addAction(gmain->_hideCtrlLinksAct);
534  menu.addAction(gmain->_emphasisCtrlLinksAct);
535  menu.addAction(gmain->_deEmphasizeAllAct);
536  if (isEdition)
537  {
538  //menu.addSeparator();
539  //menu.addAction(gmain->_deleteItemAct);
540  }
541  menu.exec(globalPos);
542 }

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