VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtObserverViewsWidgetLogic Class Reference

The logic for controlling and updating the makVrv::DtObserverViewsWidget. More...

Inheritance diagram for makVrv::DtObserverViewsWidgetLogic:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtObserverViewsWidgetLogic ()
 virtual DTOR
virtual void setCurrentObserver (const std::string &observerName)
 Set the observer to use in all other operations.
virtual void setCurrentObserver (DtObserver *)
virtual void captureAndAddObserverView ()
 Captures the current observer view and adds a new record to the interface.
virtual void setObserverView (const std::string &, bool animate=false)
 Sets the currently selected observer to the new view.
virtual void clearObserverViews ()
 Clears out internal observer views and tells interface to do the same.
virtual void saveObserverStateRecords (const std::string &filename)
 Saves out all records to the specified filename.
virtual void saveObserverStateRecord (const std::string &filename, const std::string &record)
 Saves out the specified record to the specified filename.
virtual void deleteView (const std::string &)
 Deletes the specified observer view from interface and observer record list.
virtual void loadObserverStateRecords (const std::string &)
 Loads in the specified file and merges in records found into the internal records list and into the user interface.
virtual void loadAndSetObserverState (const std::string &)
 Loads the specified file into internal records and interface as loadObserverStateRecords, but also sets up all observers (in order they are specified) with records found in the file.
virtual bool renameObserverRecord (const std::string &newName, const std::string &oldName)
 Renames the observer view record internally and in the interface if the name does not already exist.

Static Public Member Functions

static DtObserverViewsWidgetLogiccreate (DtDe &de, DtObserverViewsWidgetInterface *iFace)
 Create and initialize the logic.

Protected Member Functions

virtual void slot_activate (DtDe *subject)
virtual void slot_deactivate (DtDe *subject)
virtual void onObserverAboutToBeDestroyed (DtInputDriver *inputDriver, DtObserver *observer)
virtual void onCurrentObserverChanged (DtInputDriver *inputDriver, DtObserver *observer)
virtual void onInputDriverCreated (DtInputDriver *inputDriver)
virtual void onInputDriverAboutToBeDestroyed (DtInputDriver *inputDriver)
virtual void processEnableState ()
 /brief Enables/Disables buttons in interface based on whether or not there is an observer
virtual std::string generateName (const makArchives::DtObserverStateRecord &) const
 /brief Generates a unique name based on the supplied observer record and what is already in the list
virtual void loadObserverStateRecords (const std::string &, makArchives::DtObserverStateRecordsList &) const
 /brief Returns a list of all records found in the specified file
virtual void loadObserverStateRecords (const std::string &, bool setObservers)
 /brief Loads observer state records, setting them into the interface, and optionally setting the observers as well
 DtObserverViewsWidgetLogic (DtDe &de, DtObserverViewsWidgetInterface *iFace)
 Constructor (protected - use ::create() )

Protected Attributes

DtDemyDe
DtObserverViewsWidgetInterfacemyInterface
DtObservermyCurrentObserver
DtInputDrivermyInputDriver
bool myHasSetupObserverRecords
makArchives::DtObserverStateRecordsList myObserverRecords

Detailed Description

The logic for controlling and updating the makVrv::DtObserverViewsWidget.

Constructor & Destructor Documentation

virtual makVrv::DtObserverViewsWidgetLogic::~DtObserverViewsWidgetLogic ( )
virtual

virtual DTOR

makVrv::DtObserverViewsWidgetLogic::DtObserverViewsWidgetLogic ( DtDe de,
DtObserverViewsWidgetInterface iFace 
)
protected

Constructor (protected - use ::create() )

Member Function Documentation

static DtObserverViewsWidgetLogic* makVrv::DtObserverViewsWidgetLogic::create ( DtDe de,
DtObserverViewsWidgetInterface iFace 
)
static

Create and initialize the logic.

virtual void makVrv::DtObserverViewsWidgetLogic::setCurrentObserver ( const std::string &  observerName)
virtual

Set the observer to use in all other operations.

virtual void makVrv::DtObserverViewsWidgetLogic::setCurrentObserver ( DtObserver )
virtual
virtual void makVrv::DtObserverViewsWidgetLogic::captureAndAddObserverView ( )
virtual

Captures the current observer view and adds a new record to the interface.

Reimplemented in makVrf::DtVrfObserverViewsWidgetLogic.

virtual void makVrv::DtObserverViewsWidgetLogic::setObserverView ( const std::string &  ,
bool  animate = false 
)
virtual

Sets the currently selected observer to the new view.

If the animate flag is true, the observer will move smoothly to the new view instead of a discrete jump

virtual void makVrv::DtObserverViewsWidgetLogic::clearObserverViews ( )
virtual

Clears out internal observer views and tells interface to do the same.

Reimplemented in makVrf::DtVrfObserverViewsWidgetLogic.

virtual void makVrv::DtObserverViewsWidgetLogic::saveObserverStateRecords ( const std::string &  filename)
virtual

Saves out all records to the specified filename.

virtual void makVrv::DtObserverViewsWidgetLogic::saveObserverStateRecord ( const std::string &  filename,
const std::string &  record 
)
virtual

Saves out the specified record to the specified filename.

virtual void makVrv::DtObserverViewsWidgetLogic::deleteView ( const std::string &  )
virtual

Deletes the specified observer view from interface and observer record list.

Reimplemented in makVrf::DtVrfObserverViewsWidgetLogic.

virtual void makVrv::DtObserverViewsWidgetLogic::loadObserverStateRecords ( const std::string &  )
virtual

Loads in the specified file and merges in records found into the internal records list and into the user interface.

If there are duplicate names, will make them unique by adding an index to them

virtual void makVrv::DtObserverViewsWidgetLogic::loadAndSetObserverState ( const std::string &  )
virtual

Loads the specified file into internal records and interface as loadObserverStateRecords, but also sets up all observers (in order they are specified) with records found in the file.

virtual bool makVrv::DtObserverViewsWidgetLogic::renameObserverRecord ( const std::string &  newName,
const std::string &  oldName 
)
virtual

Renames the observer view record internally and in the interface if the name does not already exist.

If it does, method returns false

Reimplemented in makVrf::DtVrfObserverViewsWidgetLogic.

virtual void makVrv::DtObserverViewsWidgetLogic::slot_activate ( DtDe subject)
protectedvirtual
virtual void makVrv::DtObserverViewsWidgetLogic::slot_deactivate ( DtDe subject)
protectedvirtual
virtual void makVrv::DtObserverViewsWidgetLogic::onObserverAboutToBeDestroyed ( DtInputDriver inputDriver,
DtObserver observer 
)
protectedvirtual
virtual void makVrv::DtObserverViewsWidgetLogic::onCurrentObserverChanged ( DtInputDriver inputDriver,
DtObserver observer 
)
protectedvirtual
virtual void makVrv::DtObserverViewsWidgetLogic::onInputDriverCreated ( DtInputDriver inputDriver)
protectedvirtual
virtual void makVrv::DtObserverViewsWidgetLogic::onInputDriverAboutToBeDestroyed ( DtInputDriver inputDriver)
protectedvirtual
virtual void makVrv::DtObserverViewsWidgetLogic::processEnableState ( )
protectedvirtual

/brief Enables/Disables buttons in interface based on whether or not there is an observer

virtual std::string makVrv::DtObserverViewsWidgetLogic::generateName ( const makArchives::DtObserverStateRecord ) const
protectedvirtual

/brief Generates a unique name based on the supplied observer record and what is already in the list

virtual void makVrv::DtObserverViewsWidgetLogic::loadObserverStateRecords ( const std::string &  ,
makArchives::DtObserverStateRecordsList  
) const
protectedvirtual

/brief Returns a list of all records found in the specified file

virtual void makVrv::DtObserverViewsWidgetLogic::loadObserverStateRecords ( const std::string &  ,
bool  setObservers 
)
protectedvirtual

/brief Loads observer state records, setting them into the interface, and optionally setting the observers as well

Reimplemented in makVrf::DtVrfObserverViewsWidgetLogic.

Member Data Documentation

DtDe& makVrv::DtObserverViewsWidgetLogic::myDe
protected
DtObserverViewsWidgetInterface* makVrv::DtObserverViewsWidgetLogic::myInterface
protected
DtObserver* makVrv::DtObserverViewsWidgetLogic::myCurrentObserver
protected
DtInputDriver* makVrv::DtObserverViewsWidgetLogic::myInputDriver
protected
bool makVrv::DtObserverViewsWidgetLogic::myHasSetupObserverRecords
protected
makArchives::DtObserverStateRecordsList makVrv::DtObserverViewsWidgetLogic::myObserverRecords
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)