VR-Forces 4.1.1 Class Documentation
DtExampleMenu.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtExampleMenu.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
16 #include <vrvCoreQt/DtMenu.h>
17 #include <vrvCoreQt/DtMenuItem.h>
18 #include <vrvUtil/DtUnicode.h>
19 
20 class QAction;
21 
22 namespace makVrv
23 {
24  class DtVisualizerDefinitionSet;
25 
29  {
30  public:
31 
33  DtExampleMenu(DtDe& de);
34 
36  virtual ~DtExampleMenu();
37 
39  virtual QMenu* createMenu(DtDe&, QWidget* parent);
40 
41  };
42 
46  public DtMenuItem
47  {
48  public:
50  virtual ~DtCreateObjectMenuItem();
51 
52  virtual QAction* createAction( DtDe&, QWidget* parent );
53 
58  virtual void on_triggered();
59 
60  virtual void on_aboutToShow();
61 
62  protected:
63 
64  DtUnicode modelDefFromVisualSet( const DtVisualizerDefinitionSet& set );
65  const DtUnicode* chooseRandomString(const std::vector<DtUnicode>& definitions);
66  protected:
69 
70  //The random number generator to pick model to display
72  };
73 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)