te::qt::widgets::HelpPushButton Class Reference

Push button that uses te::qt::widgets::HelpManager on its mouse pressed implementation. More...

#include <HelpPushButton.h>

Inheritance diagram for te::qt::widgets::HelpPushButton:
QPushButton

Public Member Functions

 HelpPushButton (QWidget *parent=0)
 Constructor. More...
 
void setNameSpace (const QString &ns)
 Sets the namespace to be used. More...
 
void setPageReference (const QString &ref)
 Sets the documentation page reference. More...
 

Protected Member Functions

void mousePressEvent (QMouseEvent *e)
 Overloaded function of QPushButton. Only LEFT button pressed will show the help. More...
 

Protected Attributes

QString m_ns
 Namespace being used. (Qt help usage) More...
 
QString m_pgRef
 Stores the reference for the help file to be presented. More...
 

Detailed Description

Push button that uses te::qt::widgets::HelpManager on its mouse pressed implementation.

The client must set the page reference, as described in te::qt::widgets::HelpManagerImpl API documentation, before using it or nothing will happen.

Definition at line 50 of file HelpPushButton.h.

Constructor & Destructor Documentation

te::qt::widgets::HelpPushButton::HelpPushButton ( QWidget parent = 0)

Constructor.

Parameters
parentParent widget, used by Qt.

Definition at line 33 of file HelpPushButton.cpp.

Member Function Documentation

void te::qt::widgets::HelpPushButton::mousePressEvent ( QMouseEvent *  e)
protected

Overloaded function of QPushButton. Only LEFT button pressed will show the help.

Parameters
eThe mouse press event.

Definition at line 48 of file HelpPushButton.cpp.

References te::common::Singleton< HelpManager >::getInstance(), m_ns, and m_pgRef.

void te::qt::widgets::HelpPushButton::setNameSpace ( const QString &  ns)

Sets the namespace to be used.

Parameters
nsNew namespace.

Definition at line 43 of file HelpPushButton.cpp.

References m_ns.

Member Data Documentation

QString te::qt::widgets::HelpPushButton::m_ns
protected

Namespace being used. (Qt help usage)

Definition at line 91 of file HelpPushButton.h.

Referenced by mousePressEvent(), and setNameSpace().

QString te::qt::widgets::HelpPushButton::m_pgRef
protected

Stores the reference for the help file to be presented.

Definition at line 90 of file HelpPushButton.h.

Referenced by mousePressEvent(), and setPageReference().


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