15#include <QtWidgets/QWidget>
16#include <QtWidgets/QScrollArea>
132 bool isHorizontalScrollingEnabled =
false,
bool isVerticalScrollingEnabled =
true);
136 bool isHorizontalScrollingEnabled =
false,
bool isVerticalScrollingEnabled =
true);
180 template <
typename PageClass>
200 return PageClass::thePageClassName();
206 return new PageClass(
myDe, parent, f);
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer,...
Definition DtDe.h:77
DtDe & myDe
Definition DtPage.h:170
DtPageCreator(DtDe &de)
CTOR takes a reference to the DtDe object.
virtual ~DtPageCreator()
Virtual DTOR allows subclasses to clean up resources.
virtual DtPage * create(QWidget *parent=0, Qt::WindowFlags f=0)=0
Abstract create call which makes a page.
virtual std::string pageClassName() const =0
Get the name of the page class this creator is creating. This page name should be unique....
virtual std::string pageClassName() const
get the name of the PageClass. PageClass must implement thePageClassName static function.
Definition DtPage.h:198
virtual DtPage * create(QWidget *parent=0, Qt::WindowFlags f=0)
Simple implementation of the create call to make a PageClass.
Definition DtPage.h:204
DtPageCreatorTemplate(DtDe &de)
CTOR takes a reference to the DtDe object.
Definition DtPage.h:186
virtual ~DtPageCreatorTemplate()
Virtual DTOR allows subclasses to clean up resources.
Definition DtPage.h:192
The page is a single widget component which is viewed in a page collection.
Definition DtPage.h:52
virtual void setParentDialog(QWidget *paraentDialog)
set the parent dialog that owns this page
virtual const std::string & pageClassName() const =0
Get the class name of the page.
virtual void setActionFlag(int flag)
set the action flag of the page
QWidget * myParentDialog
Definition DtPage.h:140
virtual ~DtPage()
DTOR for page.
virtual void askBeforeAction()
Called when the action flag is set and before the action is beind executed, default do nothing....
virtual void executeAfterAsk(bool revert)
Called after askBeforeAction(), whether user wants to revert the action or resume the action /param r...
virtual void deactivate()=0
Called when the page is hidden.
virtual QWidget * wrapPageWithScrollArea(QWidget *scrollableWidget, bool isHorizontalScrollingEnabled=false, bool isVerticalScrollingEnabled=true)
virtual QWidget * parentDialog()
return the parent dialog that own this page
virtual void setPageAction(PageAction action)
set the curret action on the page
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 activ...
virtual bool shouldAskBeforeAction(PageAction action)
test the action flag with the action, return true if we should ask before executing the action /param...
DtDe & myDe
Definition DtPage.h:139
virtual QString title()=0
Get the title of the page.
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.
virtual int actionFlag()
return the action flag of the page
virtual void activate()=0
Called when the page is displayed.
virtual PageAction pageAction()
return the current action on the page
virtual QIcon icon()=0
Get the icon of the page.
virtual DtQIconConfigurations qIconConfigurations() const =0
Get the icon configurations for the page. This is used to style the page's icon based on application ...
int myActionFlag
Definition DtPage.h:144
PageAction myCurrentPageAction
Definition DtPage.h:141
virtual DtPageScrollArea * createScrollArea(QWidget *scrollableWidget, QWidget *parent, bool isHorizontalScrollingEnabled=false, bool isVerticalScrollingEnabled=true)
Creates a DtPageScrollArea for the given widget and parent.
PageAction
Definition DtPage.h:56
@ Closing
Definition DtPage.h:59
@ None
Definition DtPage.h:57
@ Switching
Definition DtPage.h:58
Helper class which implements a scroll area for pages. To override this class, override the DtPage::c...
Definition DtPage.h:27
DtPageScrollArea(QWidget *content, QWidget *parent, bool isHorizontalScrollingEnabled, bool isVerticalScrollingEnabled)
CTOR.
bool myIsVerticalScrollingEnabled
Definition DtPage.h:40
virtual bool eventFilter(QObject *o, QEvent *e)
virtual ~DtPageScrollArea()
Virtual DTOR.
bool myIsHorizontalScrollingEnabled
Definition DtPage.h:39
QWidget * myScrollAreaWidgetContents
Definition DtPage.h:38
A collection of icon configurations. The collection maintains flags indicating whether to generate ic...
Definition DtQIconConfiguration.h:132
Contains DtCreateSensorFieldOfViewCommand and DtCreateSensorFieldOfViewCommandCreator class declarati...
Definition DtGridLinesSettingsRecord.h:16
Contains DLL export macros.
#define DT_DLL_VRVCOREQT
Definition vrvCoreQt.h:20