Version: 8.3.0
YACS::HMI::CtrlOutPortMenu Class Reference

#include <Menus.hxx>

Inheritance diagram for YACS::HMI::CtrlOutPortMenu:
Collaboration diagram for YACS::HMI::CtrlOutPortMenu:

Public Member Functions

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

Constructor & Destructor Documentation

CtrlOutPortMenu::CtrlOutPortMenu ( )

Definition at line 546 of file Menus.cxx.

546  : MenusBase()
547 {
548 }
CtrlOutPortMenu::~CtrlOutPortMenu ( )
virtual

Definition at line 550 of file Menus.cxx.

551 {
552 }

Member Function Documentation

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

Reimplemented from YACS::HMI::MenusBase.

Definition at line 554 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::SceneCtrlOutPortItem::popupMenu().

555 {
557  bool isEdition = QtGuiContext::getQtCurrent()->isEdition();
558  QMenu menu(m, caller);
559  addHeader(menu, m);
560  menu.addAction(gmain->_showOnlyCtrlLinksAct);
561  menu.addAction(gmain->_showCtrlLinksAct);
562  menu.addAction(gmain->_hideCtrlLinksAct);
563  menu.addAction(gmain->_emphasisCtrlLinksAct);
564  menu.addAction(gmain->_deEmphasizeAllAct);
565  if (isEdition)
566  {
567  //menu.addSeparator();
568  //menu.addAction(gmain->_deleteItemAct);
569  }
570  menu.exec(globalPos);
571 }

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