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.
More...
|
| | 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 () |
| | Virtual DTOR.
|
| virtual QIcon | icon () |
| | Get the icon of the page. DtPage requires this function to be implemented.
|
| virtual makVrv::DtQIconConfigurations | qIconConfigurations () const |
| | Get the icon configurations for the page. This is used to style the page's icon based on application settings.
|
| virtual QString | title () |
| | Get the title of the page. DtPage requires this function to be implemented.
|
| virtual const std::string & | pageClassName () const |
| | Get the class name of the page. DtPage requires this function to be implemented.
|
| | DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) |
| | CTOR for page. The DtPage should not populate itself automatically. It should only do this when activate is called.
|
| virtual | ~DtPage () |
| | DTOR for page.
|
| virtual PageAction | pageAction () |
| | return the current action on the page
|
| virtual void | setPageAction (PageAction action) |
| | set the curret action on the page
|
| virtual void | setActionFlag (int flag) |
| | set the action flag of the page
|
| virtual int | actionFlag () |
| | return the action flag of the page
|
| virtual void | setParentDialog (QWidget *paraentDialog) |
| | set the parent dialog that owns this page
|
| virtual QWidget * | parentDialog () |
| | return the parent dialog that own this page
|
| virtual bool | shouldAskBeforeAction (PageAction action) |
| | test the action flag with the action, return true if we should ask before executing the action /param action the current page action
|
| virtual void | askBeforeAction () |
| | Called when the action flag is set and before the action is beind executed, default do nothing. subclass must implement this if they want ask user before they swith or close the page. /param action the current page action.
|
| virtual void | executeAfterAsk (bool revert) |
| | Called after askBeforeAction(), whether user wants to revert the action or resume the action /param revert if true, the user wants to revert the action, otherwise resume it.
|
| virtual void | resumeLastAction () |
| | resume the last action of the page
|
| virtual void | onCloseEvent () |
| | will be called when user hit the close button of this page, default do nothing.
|
| virtual void | onSwitchEvent () |
| | will be called when user try switch to another page, default do nothing.
|
|
| static const std::string & | thePageClassName () |
| | Get the class name of the page. DtPageCreatorTemplate requires this function to be implemented.
|
|
| virtual void | activate () |
| | 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.
|
| virtual void | deactivate () |
| | 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.
|
| virtual QWidget * | wrapPageWithScrollArea (QWidget *scrollableWidget, bool isHorizontalScrollingEnabled=false, bool isVerticalScrollingEnabled=true) |
| virtual DtPageScrollArea * | createScrollArea (QWidget *scrollableWidget, QWidget *parent, bool isHorizontalScrollingEnabled=false, bool isVerticalScrollingEnabled=true) |
| | Creates a DtPageScrollArea for the given widget and parent.
|
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
-
◆ HumbleDialogPage()
| 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.
◆ ~HumbleDialogPage()
| virtual HumbleDialogPage::~HumbleDialogPage |
( |
| ) |
|
|
virtual |
◆ icon()
| virtual QIcon HumbleDialogPage::icon |
( |
| ) |
|
|
virtual |
Get the icon of the page. DtPage requires this function to be implemented.
Implements makVrv::DtPage.
◆ qIconConfigurations()
Get the icon configurations for the page. This is used to style the page's icon based on application settings.
Implements makVrv::DtPage.
◆ title()
| virtual QString HumbleDialogPage::title |
( |
| ) |
|
|
virtual |
Get the title of the page. DtPage requires this function to be implemented.
Implements makVrv::DtPage.
◆ pageClassName()
| 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.
◆ thePageClassName()
| const std::string & HumbleDialogPage::thePageClassName |
( |
| ) |
|
|
static |
Get the class name of the page. DtPageCreatorTemplate requires this function to be implemented.
◆ activate()
| 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.
◆ deactivate()
| 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.
◆ myWidget
◆ myLogic
The documentation for this class was generated from the following file: