VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
HumbleDialogPage Class Reference

The example page that will be inserted into the example dialog. This page contains a widget and logic for the widget. The widget is created at construction of this page and destroyed with the page. The logic is created when this page is activated (shown) and destroyed when this page is deactivated (hidden). For this example, the widget has a single editable text box and the logic just prints any text entered in the widget to the console.

Examples
Inheritance diagram for HumbleDialogPage:
Inheritance graph
[legend]

Public Member Functions

 HumbleDialogPage (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 
virtual ~HumbleDialogPage ()
 
virtual QIcon icon ()
 
virtual
makVrv::DtQIconConfigurations 
qIconConfigurations () const
 
virtual QString title ()
 
virtual const std::string & pageClassName () const
 
- Public Member Functions inherited from makVrv::DtPage
 DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~DtPage ()
 
virtual PageAction pageAction ()
 
virtual void setPageAction (PageAction action)
 
virtual void setActionFlag (int flag)
 
virtual int actionFlag ()
 
virtual void setParentDialog (QWidget *paraentDialog)
 
virtual QWidget * parentDialog ()
 
virtual bool shouldAskBeforeAction (PageAction action)
 
virtual void askBeforeAction ()
 
virtual void executeAfterAsk (bool revert)
 
virtual void resumeLastAction ()
 
virtual void onCloseEvent ()
 
virtual void onSwitchEvent ()
 

Static Public Member Functions

static const std::string & thePageClassName ()
 

Protected Member Functions

virtual void activate ()
 
virtual void deactivate ()
 

Private Attributes

HumbleDialogWidgetmyWidget
 
HumbleDialogLogicmyLogic
 

Additional Inherited Members

- Public Types inherited from makVrv::DtPage
enum  PageAction { None = 0x0000, Switching = 0x0001, Closing = 0x0010 }
 
- Protected Attributes inherited from makVrv::DtPage
DtDemyDe
 
QWidget * myParentDialog
 
PageAction myCurrentPageAction
 
int myActionFlag
 

Constructor & Destructor Documentation

HumbleDialogPage::HumbleDialogPage ( makVrv::DtDe de,
QWidget *  parent = 0,
Qt::WindowFlags  f = Qt::Widget 
)

CTOR. This constructor creates the main widget of the HumbleDialogPage. The logic is created at a later time.

virtual HumbleDialogPage::~HumbleDialogPage ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual QIcon HumbleDialogPage::icon ( )
virtual

Get the icon of the page. DtPage requires this function to be implemented.

Implements makVrv::DtPage.

virtual makVrv::DtQIconConfigurations HumbleDialogPage::qIconConfigurations ( ) const
virtual

Get the icon configurations for the page. This is used to style the page's icon based on application settings.

Implements makVrv::DtPage.

virtual QString HumbleDialogPage::title ( )
virtual

Get the title of the page. DtPage requires this function to be implemented.

Implements makVrv::DtPage.

virtual const std::string& HumbleDialogPage::pageClassName ( ) const
virtual

Get the class name of the page. DtPage requires this function to be implemented.

Implements makVrv::DtPage.

static const std::string& HumbleDialogPage::thePageClassName ( )
static

Get the class name of the page. DtPageCreatorTemplate requires this function to be implemented.

virtual void HumbleDialogPage::activate ( )
protectedvirtual

Called by the Pager when this page becomes active. Called when the HumbleDialogPage is shown, this function creates and connects the logic to the main widget. DtPage requires this function to be implemented.

Implements makVrv::DtPage.

virtual void HumbleDialogPage::deactivate ( )
protectedvirtual

Called by the Pager when this page becomes active. Called when the HumbleDialogPage is hidden, this function disconnects and destroys the logic from the main widget. DtPage requires this function to be implemented.

Implements makVrv::DtPage.

Member Data Documentation

HumbleDialogWidget* HumbleDialogPage::myWidget
private
HumbleDialogLogic* HumbleDialogPage::myLogic
private

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)