VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
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 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)