VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCoreQt
DtQtPageAssembler.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: $ $Revision: $ $State: $
7
******************************************************************************/
8
12
13
#pragma once
14
#include <
vrvCoreQt/vrvCoreQt.h
>
15
#include <
vrvCore/DtPageAssembler.h
>
16
#include <boost/unordered_map.hpp>
17
18
class
QWidget
;
19
20
namespace
makVrv
21
{
22
class
DtPageCreator;
23
29
class
DT_DLL_VRVCOREQT
DtQtPageAssembler
:
public
DtPageAssembler
30
{
31
public
:
32
friend
class
DtQtPageAssemblerCreator
;
33
35
static
DtQtPageAssembler
& instance(
DtDe
& de);
36
38
virtual
~
DtQtPageAssembler
();
39
42
void
registerPageCreator(
DtPageCreator
* creator);
43
45
void
unregisterPageCreator(
DtPageCreator
* creator,
bool
deleteCreator =
true
);
46
48
DtPageCreator
* findPageCreator(
const
std::string& pageClassName)
const
;
49
50
protected
:
51
53
DtQtPageAssembler
(
DtDe
& de);
54
56
virtual
void
assembleCollection(
const
DtPagePath
& pagePath,
const
DtUnicode
& pageTitle,
57
const
DtPageConfiguration::PageCollectionState
& pageState);
58
60
virtual
void
assemblePage(
const
DtPagePath
& pagePath);
61
63
virtual
void
updatePage(
const
DtPagePath
& pagePath,
const
DtPageConfiguration::PageCollectionState
& state);
64
66
virtual
void
tabify(
const
DtPagePath
& pagePath1,
const
DtPagePath
& pagePath2 );
67
69
virtual
void
setSelectedPage(
const
DtPagePath
& pPath);
70
71
QWidget
* mainWindow();
72
73
protected
:
74
75
typedef
boost::unordered_map<std::string,DtPageCreator*>
PageCreatorMap
;
76
PageCreatorMap
myPageCreatorMap
;
77
QWidget
*
myMainWindowCache
;
78
};
79
83
class
DT_DLL_VRVCOREQT
DtQtPageAssemblerCreator
:
public
DtPageAssemblerCreator
84
{
85
public
:
86
89
DtQtPageAssemblerCreator
();
90
92
virtual
~
DtQtPageAssemblerCreator
();
93
95
virtual
DtPageAssembler
* create(
DtDe
& de);
96
97
};
98
}
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
)