VR-Exchange 2.1 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
widgets
dynamicMenuItem.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
6
10
11
#ifndef dynamicMenuItem_H_
12
#define dynamicMenuItem_H_
13
14
#include <
namespace.h
>
15
#include <QtCore/QString>
16
17
class
QAction;
18
class
QMenu
;
19
class
QWidget
;
20
21
namespace
MAKVrExchange
22
{
23
25
class
DT_DLL_VRXWIDGETS
DtDynamicMenuItem
26
{
27
public
:
28
30
DtDynamicMenuItem
(QString menuName,
QWidget
* parent);
31
33
virtual
~
DtDynamicMenuItem
();
34
38
virtual
DtDynamicMenuItem
* clone(
bool
shareAction,
QWidget
* parent = 0)
const
;
39
41
const
QString& name()
const
;
42
44
QAction* action();
45
47
virtual
void
create(
QMenu
*);
48
49
protected
:
50
51
DtDynamicMenuItem
(
const
DtDynamicMenuItem
&,
bool
shareAction,
QWidget
* parent);
52
53
QAction*
myAction
;
54
mutable
int
*
myActionRefCount
;
55
QString
myName
;
56
bool
myCreatedFlag
;
57
};
58
59
}
60
61
#endif
Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (
www.mak.com
)