VR-Forces 4.2 Class Documentation
exampleEmbeddedSlaveMainWindow.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: exampleEmbeddedSlaveMainWindow.h,v $ $Revision: 1.4 $ $State: Exp $
7 ******************************************************************************/
8 
9 #ifndef exampleEmbeddedSlaveMainWindow_H
10 #define exampleEmbeddedSlaveMainWindow_H
11 
12 // Include this header before any Qt header.
13 #include <vrvUtil/signalslib.h>
14 
15 #include <vrvCore/DtDe.h>
16 #include <vrvCore/DtVrvApplication.h>
17 #include <vrvCore/DtPluginManager.h>
18 #include <vrvOsgQt/DtOsgAdapterQtWidget.h>
19 #include <vrvOsgQt/DtSceneGraphTreeWidget.h>
20 #include <vrvCore/DtWindow.h>
21 #include <vrvUtil/DtWindowConfiguration.h>
22 
23 #include <QtGui/QMainWindow>
24 #include <osg/Group>
25 #include <osg/Node>
26 
27 class QAction;
28 class QMenu;
29 class QTreeWidget;
30 class QTreeWidgetItem;
31 
32 
35 {
36 
37  Q_OBJECT
38 
39 public:
40 
43 
46 
47 
48  // The adapter widgets. These will become owned and
49  // deleted by MainWindow.
50  makVrv::DtOsgAdapterQtWidget* myMainOSGWidget;
51 
52 public slots:
53 
54 protected:
55 
57  void createDisplayEngine();
58  void buildGui();
62 
63  virtual void closeEvent(QCloseEvent *event);
64 
65  void createActions();
66  void createMenus();
67  void createToolBars();
68  void createStatusBar();
69 
70 protected:
71 
72  makVrv::DtDe* myDe;
73  makVrv::DtPluginManager* myPluginManager;
74 
76  QToolBar* myFileToolBar;
78 };
79 
80 class ExampleEmbeddedSlaveMainWindowCreator : public makVrv::DtWindowCreator
81 {
82 public:
84  {
85  myWindow = window;
86  }
87 
89  virtual makVrv::DtWindow* create(makVrv::DtDe&, makVrv::DtWindowConfiguration&);
90 
91 protected:
93 };
94 
95 #endif

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)