![]() |
VR-Forces 4.7 Class Documentation
|
The base assembler is a singleton which assembles the pages defined in a Page Configuration. More...

Public Member Functions | |
| virtual | ~DtPageAssembler () |
| DTOR. | |
| virtual void | assemble (const DtPageConfiguration &configuration) |
| Assemble a entire configuration. | |
| virtual void | assemble (const DtPagePath &pagePath, const DtPageConfiguration &configuration) |
| Assemble a particular page path and all children located in a configuration. | |
| virtual void | assemblePagePaths (DtPageConfiguration::PagePathList &children, const DtPageConfiguration &configuration) |
| Assemble all listed page paths using the configuration. | |
| virtual void | placeCollectionPages (const DtPageConfiguration &configuration) |
| Update a pages with the information contained in the page configuration. | |
| virtual void | assembleCollection (const DtPagePath &pagePath, const DtUnicode &pageTitle, const DtPageConfiguration::PageCollectionState &pageState) |
| Assemble a page item from the path. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtPageAssembler & | instance (DtDe &) |
| Get an instance of the assembler. | |
Protected Types | |
| typedef std::vector< DtPagePath > | PagePathVector |
| Vector of page paths. | |
| typedef std::map < DtPageConfiguration::PageCollectionLocation, PagePathVector > | LocationToPathsMap |
| Map from page collection location to a vector of page paths at that location. | |
| typedef std::map< int, DtPagePath > | PagePathsMap |
| typedef std::map< int, std::map< int, DtPagePath > > | SortedTabbedPages |
Protected Member Functions | |
| DtPageAssembler (DtDe &de) | |
| virtual LocationToPathsMap | buildLocationToPathsMap (DtPageConfiguration::PagePathList &children, const DtPageConfiguration &configuration) |
| Build a map of page location to page paths at that location. | |
| virtual void | assemblePagePath (const DtPagePath &pagePath, const DtPageConfiguration &configuration) |
| Assemble a page path. | |
| virtual void | assemblePage (const DtPagePath &pagePath) |
| Assemble a page from the path. | |
| virtual void | updatePage (const DtPagePath &pagePath, const DtPageConfiguration &configuration) |
| Update the page with the state information contained inside the provided configuration. | |
| virtual void | updatePage (const DtPagePath &pagePath, const DtPageConfiguration::PageCollectionState &state) |
| Update the page with the state information provided by argument. | |
| virtual void | assembleAllPagesInLocation (const LocationToPathsMap &locMap, DtPageConfiguration::PageCollectionLocation loc, const DtPageConfiguration &configuration) |
| Assembles all the pages in the specified location. | |
| virtual void | tabifyPagesInLocation (const LocationToPathsMap &locMap, DtPageConfiguration::PageCollectionLocation loc, const DtPageConfiguration &configuration) |
| Tabifies all the pages whose configuration is set to be tabbed. | |
| virtual SortedTabbedPages | sortTabbedPagesByLocationAndTabIndex (const PagePathVector &paths, const DtPageConfiguration &configuration, DtPageConfiguration::PageCollectionLocation location) |
| Find tabbed pages in the paths list and sort them by location first and tab index second. | |
| virtual int | positionOfPage (DtPageConfiguration::PageCollectionLocation location, const DtPageConfiguration::PageCollectionGeometry &geometry) const |
| Get the left or topmost edge of a docked page, depending on whether it's docked horizontally or vertically. | |
| virtual void | populatePagePathsMap (const LocationToPathsMap &locMap, DtPageConfiguration::PageCollectionLocation loc, const DtPageConfiguration &configuration, PagePathsMap &ppMap) |
| Populates the ppMap map with the proper order in which pages need to be placed on the UI. | |
| virtual void | tabify (const DtPagePath &pagePath1, const DtPagePath &pagePath2) |
| Tabifies the pages represented by the page paths provided in the arguments. | |
| virtual void | setSelectedPage (const DtPagePath &pPath) |
| If the page is tabbed, sets it as the currently selected page. | |
Protected Attributes | |
| DtDe & | myDe |
Friends | |
| class | DtPageAssemblerCreator |
The base assembler is a singleton which assembles the pages defined in a Page Configuration.
A GUI specific subclass is written to actually create the pages in the GUI. Example: makVrv::DtQtPageAssembler.
|
protected |
Vector of page paths.
|
protected |
Map from page collection location to a vector of page paths at that location.
|
protected |
|
protected |
|
virtual |
DTOR.
|
protected |
|
static |
Get an instance of the assembler.
Reimplemented in makVrv::DtQtPageAssembler.
|
virtual |
Assemble a entire configuration.
|
virtual |
Assemble a particular page path and all children located in a configuration.
Reimplemented in makVrf::makVrfGuiObjectInformationQt::DtInformationPageAssembler.
|
virtual |
Assemble all listed page paths using the configuration.
|
virtual |
Update a pages with the information contained in the page configuration.
Reimplemented in makVrf::DtVrfPageAssembler.
|
virtual |
Assemble a page item from the path.
Reimplemented in makVrf::DtVrfPageAssembler, makVrf::makVrfGuiObjectInformationQt::DtInformationPageAssembler, and makVrv::DtQtPageAssembler.
|
protectedvirtual |
Build a map of page location to page paths at that location.
|
protectedvirtual |
Assemble a page path.
Reimplemented in makVrf::makVrfGuiObjectInformationQt::DtInformationPageAssembler.
|
protectedvirtual |
Assemble a page from the path.
Reimplemented in makVrf::makVrfGuiObjectInformationQt::DtInformationPageAssembler, and makVrv::DtQtPageAssembler.
|
protectedvirtual |
Update the page with the state information contained inside the provided configuration.
|
protectedvirtual |
Update the page with the state information provided by argument.
Reimplemented in makVrv::DtQtPageAssembler.
|
protectedvirtual |
Assembles all the pages in the specified location.
locMap contains a map with all the location/page information and the configuration contains all the state information needed to assemble the pages
|
protectedvirtual |
Tabifies all the pages whose configuration is set to be tabbed.
locMap contains a mal with all the location/page information and the configuration contains all the state information needed to tabify the page.
|
protectedvirtual |
Find tabbed pages in the paths list and sort them by location first and tab index second.
|
protectedvirtual |
Get the left or topmost edge of a docked page, depending on whether it's docked horizontally or vertically.
|
protectedvirtual |
Populates the ppMap map with the proper order in which pages need to be placed on the UI.
|
protectedvirtual |
Tabifies the pages represented by the page paths provided in the arguments.
Reimplemented in makVrv::DtQtPageAssembler.
|
protectedvirtual |
If the page is tabbed, sets it as the currently selected page.
Reimplemented in makVrv::DtQtPageAssembler.
|
friend |
|
protected |