Version: 8.3.0
YACS::HMI::ReferenceMenu Class Reference

#include <Menus.hxx>

Inheritance diagram for YACS::HMI::ReferenceMenu:
Collaboration diagram for YACS::HMI::ReferenceMenu:

Public Member Functions

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

Constructor & Destructor Documentation

ReferenceMenu::ReferenceMenu ( )

Definition at line 575 of file Menus.cxx.

575  : MenusBase()
576 {
577 }
ReferenceMenu::~ReferenceMenu ( )
virtual

Definition at line 579 of file Menus.cxx.

580 {
581 }

Member Function Documentation

void ReferenceMenu::popupMenu ( QWidget caller,
const QPoint &  globalPos,
const QString &  m = "Reference Menu" 
)
virtual

Reimplemented from YACS::HMI::MenusBase.

Definition at line 583 of file Menus.cxx.

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

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

584 {
586  bool isEdition = QtGuiContext::getQtCurrent()->isEdition();
587  QMenu menu(m, caller);
588  addHeader(menu, m);
589  menu.addAction(gmain->_selectReferenceAct);
590  menu.exec(globalPos);
591 }

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