![]() |
VR-Forces 4.0.4 Class Documentation
|
A widget class for managing different camera views the currently selected observer can be placed in. More...

Public Member Functions | |
| virtual | ~DtObserverViewsWidget () |
| DTOR. | |
| virtual QIcon | icon () |
| Get the icon of the page. | |
| virtual QString | title () |
| Get the title of the page. | |
| virtual const std::string & | pageClassName () const |
| Get the class name of the page. | |
| virtual std::string | currentObserverView () const |
| Returns the currently selected observer view. | |
Public Attributes | |
| QVBoxLayout * | myMainLayout |
| QHBoxLayout * | myButtonLayout |
| QTreeWidget * | myObserverViews |
| QPushButton * | myAddView |
| QPushButton * | myDeleteView |
| QPushButton * | mySaveViews |
| QPushButton * | mySaveSingle |
| QPushButton * | myLoadViews |
| QPushButton * | myLoadAndMakeViewsCurrent |
| QPushButton * | myClearViews |
Protected Slots | |
| virtual void | onAddObserverView () |
| Calls down to logic to capture view and add it back here. | |
| virtual void | onSetObserverView () |
| Calls down to logic to set a new observer view. | |
| virtual void | onClearObserverViews () |
| Calls down to logic to clear out observer views. | |
| virtual void | onSaveViews () |
| Puts up dialog to allow user to specify a file to save all current views in and calls down to logic to do the save. | |
| virtual void | onSaveSelectedView () |
| Puts up dialog to allow user to specify a file to save the currently selected view in and calls down to logic to do the save. | |
| virtual void | onDeleteSelectedView () |
| Calls down to logic to delete currently selected view. | |
| virtual void | onLoadViews () |
| Calls down to logic to load file and place view records found in there into the interface. | |
| virtual void | onLoadViewsAndMakeCurrent () |
| Calls down to logic to load file and place view records found in there into the interface. | |
| virtual void | observerViewNameChanged () |
| Called when any aspect of the item data has changed. | |
Protected Member Functions | |
| DtObserverViewsWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor of the page. | |
| virtual void | activate () |
| Called when the page is displayed. | |
| virtual void | deactivate () |
| Called when the page is hidden. | |
| void | setupUi (QWidget *p) |
| Sets up the contents of the widget onto the supplied parent. | |
| virtual void | setViewStatesEnabled (bool) |
| Tells the interface to enable/disable buttons that manipulate the observer view (add, load, observers view) | |
| virtual void | addObserverView (const std::string &) |
| Adds a new observer view to the list of current views. | |
| virtual void | clearObserverViews () |
| Clears out observer views list. | |
| virtual void | deleteView (const std::string &) |
| Removes the specified view from the observers view list. | |
| virtual void | renameObserverRecord (const std::string &newName, const std::string &oldName) |
| Renames the observer record from old name to new name. | |
Protected Attributes | |
| std::string | myClassName |
| DtObserverViewsWidgetLogic * | myLogic |
Friends | |
| class | DtObserverViewsWidgetCreator |
| Let the creator create the page. | |
A widget class for managing different camera views the currently selected observer can be placed in.
| virtual makVrv::DtObserverViewsWidget::~DtObserverViewsWidget | ( | ) | [virtual] |
DTOR.
| makVrv::DtObserverViewsWidget::DtObserverViewsWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) | [protected] |
Constructor of the page.
| virtual QIcon makVrv::DtObserverViewsWidget::icon | ( | ) | [virtual] |
Get the icon of the page.
Implements makVrv::DtPage.
| virtual QString makVrv::DtObserverViewsWidget::title | ( | ) | [virtual] |
Get the title of the page.
Implements makVrv::DtPage.
| virtual const std::string& makVrv::DtObserverViewsWidget::pageClassName | ( | ) | const [virtual] |
Get the class name of the page.
Implements makVrv::DtPage.
| virtual std::string makVrv::DtObserverViewsWidget::currentObserverView | ( | ) | const [virtual] |
Returns the currently selected observer view.
| virtual void makVrv::DtObserverViewsWidget::activate | ( | ) | [protected, virtual] |
Called when the page is displayed.
Implements makVrv::DtPage.
| virtual void makVrv::DtObserverViewsWidget::deactivate | ( | ) | [protected, virtual] |
Called when the page is hidden.
Implements makVrv::DtPage.
| void makVrv::DtObserverViewsWidget::setupUi | ( | QWidget * | p | ) | [protected] |
Sets up the contents of the widget onto the supplied parent.
| virtual void makVrv::DtObserverViewsWidget::setViewStatesEnabled | ( | bool | ) | [protected, virtual] |
Tells the interface to enable/disable buttons that manipulate the observer view (add, load, observers view)
Implements makVrv::DtObserverViewsWidgetInterface.
| virtual void makVrv::DtObserverViewsWidget::addObserverView | ( | const std::string & | ) | [protected, virtual] |
Adds a new observer view to the list of current views.
Implements makVrv::DtObserverViewsWidgetInterface.
| virtual void makVrv::DtObserverViewsWidget::clearObserverViews | ( | ) | [protected, virtual] |
Clears out observer views list.
Implements makVrv::DtObserverViewsWidgetInterface.
| virtual void makVrv::DtObserverViewsWidget::deleteView | ( | const std::string & | ) | [protected, virtual] |
Removes the specified view from the observers view list.
Implements makVrv::DtObserverViewsWidgetInterface.
| virtual void makVrv::DtObserverViewsWidget::renameObserverRecord | ( | const std::string & | newName, |
| const std::string & | oldName | ||
| ) | [protected, virtual] |
Renames the observer record from old name to new name.
Implements makVrv::DtObserverViewsWidgetInterface.
| virtual void makVrv::DtObserverViewsWidget::onAddObserverView | ( | ) | [protected, virtual, slot] |
Calls down to logic to capture view and add it back here.
| virtual void makVrv::DtObserverViewsWidget::onSetObserverView | ( | ) | [protected, virtual, slot] |
Calls down to logic to set a new observer view.
Also will enable/disable buttons on selection
| virtual void makVrv::DtObserverViewsWidget::onClearObserverViews | ( | ) | [protected, virtual, slot] |
Calls down to logic to clear out observer views.
| virtual void makVrv::DtObserverViewsWidget::onSaveViews | ( | ) | [protected, virtual, slot] |
Puts up dialog to allow user to specify a file to save all current views in and calls down to logic to do the save.
| virtual void makVrv::DtObserverViewsWidget::onSaveSelectedView | ( | ) | [protected, virtual, slot] |
Puts up dialog to allow user to specify a file to save the currently selected view in and calls down to logic to do the save.
| virtual void makVrv::DtObserverViewsWidget::onDeleteSelectedView | ( | ) | [protected, virtual, slot] |
Calls down to logic to delete currently selected view.
| virtual void makVrv::DtObserverViewsWidget::onLoadViews | ( | ) | [protected, virtual, slot] |
Calls down to logic to load file and place view records found in there into the interface.
| virtual void makVrv::DtObserverViewsWidget::onLoadViewsAndMakeCurrent | ( | ) | [protected, virtual, slot] |
Calls down to logic to load file and place view records found in there into the interface.
It will also set all observers to have their state be the records found in the file (in the order in which it is read)
| virtual void makVrv::DtObserverViewsWidget::observerViewNameChanged | ( | ) | [protected, virtual, slot] |
Called when any aspect of the item data has changed.
Will check to see if the name needs to be updated. If the name is the same as another name, will warn the user
friend class DtObserverViewsWidgetCreator [friend] |
Let the creator create the page.
std::string makVrv::DtObserverViewsWidget::myClassName [protected] |
| QVBoxLayout* makVrv::DtObserverViewsWidget::myMainLayout |
| QHBoxLayout* makVrv::DtObserverViewsWidget::myButtonLayout |