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

The logic for the widget. This class does not have knowledge about how the widget was implemented, but communicates with the widget through an interface. The interface allows the widget or logic to be independently re-factored without affecting the other. This class extends the already existing logic class makVrv::DtLoaderSettingsWidget which manages user input for Flip DDS commands. This extended logic gives the user the ability to enable/disable the Flip DDS checkbox in the original dialog. More...

Inheritance diagram for DerivedDialogLogic:

Public Member Functions

 DerivedDialogLogic (makVrv::DtDe &de, makVrv::DtPersistenceControlsInterface &persistenceControls, makVrv::DtLoaderSettingsInterface &settingsIFace, ExtraDialogInterface &extraIFace)
 CTOR. At construction time, this logic is connected to the boost::signals of the widget-interface to receive updates when the widget changes. A reference to the widget-interface is saved to call back to the widget.
virtual ~DerivedDialogLogic ()
 CTOR. Disconnect from the boost::signals of the widget-interface.
void slot_enableFlagSet (bool value)
 Catches a signal from the widget-interface. When called this slot commands the widget, through the interface, to enable or disable the checkbox.
Public Member Functions inherited from makVrv::DtLoaderSettingsLogic
 DtLoaderSettingsLogic (DtDe &de, DtPersistenceControlsInterface &persistenceControls, DtLoaderSettingsInterface &widget)
 CTOR.
virtual ~DtLoaderSettingsLogic ()
 DTOR.

Protected Attributes

ExtraDialogInterface & myInterface
DtLoaderSettingsInterface & myWidget
 Called when the dds flip setting is changed by the gui.
DtPersistenceControlsInterface & myPersistenceControls
 Called when the dds flip setting is changed by the gui.
DtDe & myDe
 Called when the dds flip setting is changed by the gui.
Protected Attributes inherited from makVrv::DtSignalConnectionManager
Connections myConnections
 The connected signals.
bool myConnectionsBlocked
bool myIndiviualConnectionedBlocked
std::vector< boost::signalslib::shared_connection_block * > mySharedConnectionsBlockManager
 blocking Connections manager for signal2 connection

Additional Inherited Members

Protected Types inherited from makVrv::DtSignalConnectionManager
typedef std::vector< boost::signalslib::connection > Connections
 A collection of signals.
Protected Member Functions inherited from makVrv::DtLoaderSettingsLogic
void sendSettingsToGui ()
 Set up the gui with the current settings.
void slot_ddsFlipSet (bool flip)
 Called when the dds flip setting is changed by the gui.
void slot_gpuArenaUploadMemoryBudgetChanged (int megabytes)
 Called when the gpu arena upload memory budget is changed by the gui.
void slot_cdbParallelForThreadCountChanged (int threads)
 Called when the cdb parallel for thread count is changed by the gui.
void on_import ()
 Persistence slots:
void on_export ()
 Called when the dds flip setting is changed by the gui.
void on_importFilePathChosen (const std::string &filePath)
 Called when the dds flip setting is changed by the gui.
void on_exportFilePathChosen (const std::string &filePath)
 Called when the dds flip setting is changed by the gui.
virtual void settingsRestored (const DtSettingsBackup *)
 Called when settings are restored. Resets gui if the restored object type is of this class.
Protected Member Functions inherited from makVrv::DtSignalConnectionManager
 DtSignalConnectionManager ()
 CTOR.
virtual ~DtSignalConnectionManager ()
 DTOR.
void manageConnection (const boost::signalslib::connection &conn)
 Connect a signal.
DtSignalConnectionManager & operator+= (const boost::signalslib::connection &conn)
 Connect a signal.
bool blockConnections (bool blocked)
int numberOfConnections () const
 Get the number of connections.
void disconnectSignals ()
 Disconnect all signals.
bool connectionsBlocked () const
 check whether connections are blocked.

Detailed Description

The logic for the widget. This class does not have knowledge about how the widget was implemented, but communicates with the widget through an interface. The interface allows the widget or logic to be independently re-factored without affecting the other. This class extends the already existing logic class makVrv::DtLoaderSettingsWidget which manages user input for Flip DDS commands. This extended logic gives the user the ability to enable/disable the Flip DDS checkbox in the original dialog.

Examples

Constructor & Destructor Documentation

◆ DerivedDialogLogic()

DerivedDialogLogic::DerivedDialogLogic ( makVrv::DtDe & de,
makVrv::DtPersistenceControlsInterface & persistenceControls,
makVrv::DtLoaderSettingsInterface & settingsIFace,
ExtraDialogInterface & extraIFace )

CTOR. At construction time, this logic is connected to the boost::signals of the widget-interface to receive updates when the widget changes. A reference to the widget-interface is saved to call back to the widget.

◆ ~DerivedDialogLogic()

virtual DerivedDialogLogic::~DerivedDialogLogic ( )
virtual

CTOR. Disconnect from the boost::signals of the widget-interface.

Member Function Documentation

◆ slot_enableFlagSet()

void DerivedDialogLogic::slot_enableFlagSet ( bool value)

Catches a signal from the widget-interface. When called this slot commands the widget, through the interface, to enable or disable the checkbox.

Member Data Documentation

◆ myInterface

ExtraDialogInterface& DerivedDialogLogic::myInterface
protected

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