VR-Vantage
Loading...
Searching...
No Matches
DerivedDialogWidget Class Reference

The main widget for the dialog-page. This class does not contain any application logic, but instead delegates the logic to another object (a logic-object) through signals emitted via the interface of this class. The interface allows the widget or logic to be independently re-factored without affecting the other. This widget extends the existing makVrv::DtLoaderSettingsWidget by adding a new checkbox which (when checked/unchecked) enables/disables the Flip DDS checkbox already existing in the base class. More...

Inheritance diagram for DerivedDialogWidget:

Public Member Functions

 DerivedDialogWidget (QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 CTOR.
virtual ~DerivedDialogWidget ()
 DTOR.
virtual void setFlipDdsEnabled (bool enabled)
 Enables/disables the Flip DDS checkbox in the base class.
Public Member Functions inherited from makVrv::DtLoaderSettingsWidget
 DtLoaderSettingsWidget (QWidget *parent, Qt::WindowFlags f=Qt::Widget)
 CTOR.
virtual ~DtLoaderSettingsWidget ()
 DTOR.
virtual void setDdsFlip (bool state) override
 Set the DDS flip enabled state.
virtual void setGpuArenaUploadMemoryBudget (int megabytes) override
 Upload memory budget for the GPU arena regarding indirect geometry, limits how many model buffers the indirect geomtry can be update in a frame.
virtual void setCdbParallelForThreadCount (int threadCount) override
 Set number of threads that CDB model loaders can use in parallel for loops.
Public Member Functions inherited from makVrv::DtLoaderSettingsInterface
virtual ~DtLoaderSettingsInterface ()
 DTOR.

Protected Slots

virtual void on_enableFlagChanged (int state)
 Converts a Qt signal into a boost-signal. This slot is connected to the Qt signal of the new QCheckBox. When called, this slot emits a boost signal_enableFlagSet signal, passing along the current checkbox state.
Protected Slots inherited from makVrv::DtLoaderSettingsWidget
void on_ddsFlipCheckChanged (int state)
 This slot receives notification that the user changed the DDS flip widget.
void on_gpuArenaUploadMemoryBudgetChanged (int megabytes)
void on_cdbParallelForThreadCountChanged (int threads)

Protected Attributes

QCheckBox * myEnableFlagCheckbox
 The new checkbox that extends the base class widget.
Protected Attributes inherited from makVrv::DtLoaderSettingsWidget
QCheckBox * myDdsFlipCheckbox
QVBoxLayout * myMainLayout
DtSliderSpinboxWidget * myGpuArenaSlider
DtSliderSpinboxWidget * myCdbThreadSlider

Additional Inherited Members

Public Attributes inherited from makVrv::DtLoaderSettingsInterface
boost::signalslib::signal< void(bool)> signal_ddsFlipSet
 Emitted by the widget when the user changes a setting.
boost::signalslib::signal< void(int)> signal_gpuArenaUploadMemoryBudget
boost::signalslib::signal< void(int)> signal_cdbParallelForThreadCount
Public Attributes inherited from ExtraDialogInterface
makVrv::vrvSignalsLib::signal< void(bool)> signal_enableFlagSet
 Signal state changes for the checkbox. This signal is emitted by the widget when the new checkbox value has been changed by the user.
Protected Member Functions inherited from makVrv::DtLoaderSettingsWidget
void setupGui ()

Detailed Description

The main widget for the dialog-page. This class does not contain any application logic, but instead delegates the logic to another object (a logic-object) through signals emitted via the interface of this class. The interface allows the widget or logic to be independently re-factored without affecting the other. This widget extends the existing makVrv::DtLoaderSettingsWidget by adding a new checkbox which (when checked/unchecked) enables/disables the Flip DDS checkbox already existing in the base class.

Examples

Constructor & Destructor Documentation

◆ DerivedDialogWidget()

DerivedDialogWidget::DerivedDialogWidget ( QWidget * parent = 0,
Qt::WindowFlags f = Qt::Widget )

CTOR.

◆ ~DerivedDialogWidget()

virtual DerivedDialogWidget::~DerivedDialogWidget ( )
virtual

DTOR.

Member Function Documentation

◆ setFlipDdsEnabled()

virtual void DerivedDialogWidget::setFlipDdsEnabled ( bool enabled)
virtual

Enables/disables the Flip DDS checkbox in the base class.

Implements ExtraDialogInterface.

◆ on_enableFlagChanged

virtual void DerivedDialogWidget::on_enableFlagChanged ( int state)
protectedvirtualslot

Converts a Qt signal into a boost-signal. This slot is connected to the Qt signal of the new QCheckBox. When called, this slot emits a boost signal_enableFlagSet signal, passing along the current checkbox state.

Member Data Documentation

◆ myEnableFlagCheckbox

QCheckBox* DerivedDialogWidget::myEnableFlagCheckbox
protected

The new checkbox that extends the base class widget.


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