The logic for controlling and updating the makVrv::DtObserverViewsWidget.
More...
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.
|
Detailed Description
The logic for controlling and updating the makVrv::DtObserverViewsWidget.
Constructor & Destructor Documentation
| virtual makVrv::DtObserverViewsWidgetLogic::~DtObserverViewsWidgetLogic |
( |
| ) |
|
|
virtual |
Constructor (protected - use ::create() )
Member Function Documentation
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 |
| 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 |
| 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 |
| 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
/brief Generates a unique name based on the supplied observer record and what is already in the list
/brief Returns a list of all records found in the specified file
| virtual void makVrv::DtObserverViewsWidgetLogic::loadObserverStateRecords |
( |
const std::string & |
, |
|
|
bool |
setObservers |
|
) |
| |
|
protectedvirtual |
Member Data Documentation
| DtDe& makVrv::DtObserverViewsWidgetLogic::myDe |
|
protected |
| DtObserver* makVrv::DtObserverViewsWidgetLogic::myCurrentObserver |
|
protected |
| bool makVrv::DtObserverViewsWidgetLogic::myHasSetupObserverRecords |
|
protected |
The documentation for this class was generated from the following file: