VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dynamicMenuItem.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2015 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <widgets/dllExport.h>
13 #include <QtCore/QString>
14 
15 class QMenu;
16 class QAction;
17 class QWidget;
18 
19 namespace MAKVrExchange
20 {
21 
24  {
25  public:
26 
28  DtDynamicMenuItem( QString menuName, QWidget* parent );
29 
31  virtual ~DtDynamicMenuItem();
32 
36  virtual DtDynamicMenuItem* clone( bool shareAction, QWidget* parent = 0 ) const;
37 
39  const QString& name() const;
40 
42  QAction* action();
43 
45  virtual void create( QMenu* );
46 
47  protected:
48 
49  DtDynamicMenuItem( const DtDynamicMenuItem&, bool shareAction, QWidget* parent );
50 
51  protected:
52 
53  QAction* myAction;
54  mutable int* myActionRefCount;
55  QString myName;
57 
58  };
59 
60 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)