![]() |
VR-Forces Developer's Guide
|
The DtQtPageCollection is an abstract class which implements the page collection interface, and can be used extended by specific Qt implementations such as a tabbed panel or dialog.

Public Types | |
| typedef boost::unordered_map < std::string, DtPage * > | PageMap |
Public Types inherited from makVrv::DtPageCollection | |
| typedef std::vector< std::string > | PageClassList |
Protected Member Functions | |
| virtual void | activatePage (DtPage *) |
| virtual void | deactivatePage (DtPage *) |
| virtual void | selectPage (const std::string &pageClassName) |
| virtual void | addPageToGui (DtPage *)=0 |
| virtual void | removePageFromGui (DtPage *)=0 |
| virtual void | selectPageInGui (DtPage *page)=0 |
Protected Member Functions inherited from makVrv::DtPageCollection | |
| virtual void | changeVisibility (bool newVisibility)=0 |
| virtual void | changeLocation (DtPageConfiguration::PageCollectionLocation)=0 |
| virtual void | changeFloatingGeometry (int px, int py, int width, int height)=0 |
| virtual void | changeFloatingGeometry (const DtPageConfiguration::PageCollectionGeometry &geometry)=0 |
| virtual void | changeDockedGeometry (int px, int py, int width, int height)=0 |
| virtual void | changeDockedGeometry (const DtPageConfiguration::PageCollectionGeometry &geometry)=0 |
| void | addPageClass (const std::string &pageClassName) |
| void | removePageClass (const std::string &pageClassName) |
Protected Attributes | |
| PageMap | myPages |
Protected Attributes inherited from makVrv::DtPageCollection | |
| DtDe & | myDe |
| std::string | myClassName |
| bool | myVisibility |
| PageClassList | myPageClasses |
| DtPageConfiguration::PageCollectionLocation | myLocation |
| DtPageConfiguration::PageCollectionGeometry | myFloatingGeometry |
| DtPageConfiguration::PageCollectionGeometry | myDockedGeometry |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtPageCollection | |
| boost::signalslib::signal< void()> | signal_shown |
| boost::signalslib::signal< void()> | signal_hidden |
| boost::signalslib::signal < void(const std::string &)> | signal_pageSelected |
| typedef boost::unordered_map<std::string,DtPage*> makVrv::DtQtPageCollection::PageMap |
| makVrv::DtQtPageCollection::DtQtPageCollection | ( | DtDe & | de, |
| const std::string & | collectionClassName | ||
| ) |
CTOR.
|
virtual |
DTOR, this will delete all currently added pages. This will not call removePageFromGUI for each page.
| void makVrv::DtQtPageCollection::addPage | ( | DtPage * | page | ) |
Add a page to the collection, the collection will assume ownership of the pointer.
Remove a page that was previously added. By default the page will be deleted.
|
virtual |
Find a page. Returns 0 if the page wasn't added.
Implements makVrv::DtPageCollection.
|
virtual |
Find a page. Returns 0 if the page wasn't added.
Implements makVrv::DtPageCollection.
| const PageMap& makVrv::DtQtPageCollection::pages | ( | ) | const |
Get the currently available pages.
|
virtual |
Removes the collection from the GUI (does not delete it)
Reimplemented in makVrv::DtQtPagePanel.
|
virtual |
Brings the panel to the front (when it is tabbed)
Reimplemented in makVrv::DtQtPagePanel.
|
protectedvirtual |
Reimplemented in makVrf::makVrfGuiObjectInformationQt::DtInformationDialog.
|
protectedvirtual |
|
protectedvirtual |
Implements selecting a page by name.
Implements makVrv::DtPageCollection.
Reimplemented in makVrf::DtAutoHidePanel, and makVrf::DtQtPageWidget.
|
protectedpure virtual |
Implement adding the page to the GUI.
Implemented in makVrf::DtAutoHidePanel, makVrf::makVrfGuiObjectInformationQt::DtInformationDialog, makVrv::DtQtPageDialog, makVrv::DtQtPagePanel, and makVrf::DtQtPageWidget.
|
protectedpure virtual |
Implement removing a page from the GUI.
Implemented in makVrf::DtAutoHidePanel, makVrv::DtQtPageDialog, makVrv::DtQtPagePanel, and makVrf::DtQtPageWidget.
|
protectedpure virtual |
Implement selecting a page in the GUI.
Implemented in makVrf::DtAutoHidePanel, makVrv::DtQtPageDialog, makVrv::DtQtPagePanel, and makVrf::DtQtPageWidget.
|
protected |