VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfGuiCoreQt
vrfMainMenu.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
7
8
#pragma once
9
10
#include <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
11
#include <
vrfGuiCoreQt/DtConfigurableMenu.h
>
12
#include <
vrvCore/DtVrvApplication.h
>
13
#include <
vrvCore/DtMenuConfiguration.h
>
14
#include <
vrvCoreQt/DtQtMenuAssembler.h
>
15
16
namespace
makVrf
17
{
25
class
DT_DLL_VRFGUICOREQT
DtVrfMainMenuConfiguration
:
public
DtSubMenuConfiguration
26
{
27
public
:
30
DtVrfMainMenuConfiguration
(
makVrv::DtDe
& de);
31
34
virtual
~
DtVrfMainMenuConfiguration
();
35
40
virtual
void
addMenuPath(
const
makVrv::DtMenuPath
& path,
int
weight = -1);
41
45
virtual
void
removeMenuPath(
const
makVrv::DtMenuPath
& path);
46
50
virtual
void
addMenuPathAfter(
const
makVrv::DtMenuPath
& newPath,
const
makVrv::DtMenuPath
& relativeTo);
51
55
virtual
void
addMenuPathBefore(
const
makVrv::DtMenuPath
& newPath,
const
makVrv::DtMenuPath
& relativeTo);
56
57
protected
:
58
makVrv::DtDe
&
myDe
;
59
makVrv::DtVrvApplication
*
myApp
;
60
};
61
68
class
DT_DLL_VRFGUICOREQT
DtVrfMainMenuAssembler
:
public
DtConfigurableMenuAssembler
69
{
70
public
:
73
DtVrfMainMenuAssembler
(
makVrv::DtDe
& de);
74
77
virtual
~
DtVrfMainMenuAssembler
();
78
81
virtual
void
registerMenu(
makVrv::DtMenu
* menu);
82
85
virtual
void
unregisterMenu(
makVrv::DtMenu
* menu,
bool
deleteBuilder =
true
);
86
89
virtual
void
registerItem(
makVrv::DtMenuItem
* item);
90
93
virtual
void
unregisterItem(
makVrv::DtMenuItem
* item,
bool
deleteBuilder =
true
);
94
95
protected
:
97
virtual
void
registerMenu(
makVrv::DtMenuItem
*);
98
100
virtual
void
unregisterMenu(
makVrv::DtMenuItem
*,
bool
);
101
102
makVrv::DtDe
&
myDe
;
103
};
104
110
class
DT_DLL_VRFGUICOREQT
DtVrfMainMenu
:
public
DtConfigurableMenu
111
{
112
public
:
115
virtual
~
DtVrfMainMenu
();
116
119
static
DtVrfMainMenu
& instance(
makVrv::DtDe
& de);
120
123
virtual
DtSubMenuConfiguration
& menuConfiguration();
124
129
virtual
DtConfigurableMenuAssembler
& menuAssembler();
130
131
protected
:
134
DtVrfMainMenu
(
makVrv::DtDe
&);
135
138
virtual
void
createMenuConfiguration(
makVrv::DtDe
&);
139
142
virtual
QMenu
* createMenu(
makVrv::DtDe
&,
QWidget
*);
143
144
makVrv::DtDe
&
myDe
;
145
static
DtVrfMainMenu
*
theInstance
;
146
DtVrfMainMenuConfiguration
myConfig
;
147
DtVrfMainMenuAssembler
myAssembler
;
148
};
149
}
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)