VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
propCreatePalette.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #if !defined(Q_MOC_RUN)
14 
18 #include <vrvCoreQt/DtPage.h>
19 
21 #endif
22 
23 #include <QtWidgets/QWidget>
24 
25 class QVBoxLayout;
26 class QTreeWidget;
27 class QTreeWidgetItem;
28 
29 namespace makVrv
30 {
31  class DtDe;
32 }
33 
34 namespace makVrf
35 {
36  class DtPropCreatePaletteLogic;
37 
40  : public makVrv::DtPage
42  {
43  Q_OBJECT
44 
45  public:
47  DtPropCreatePalette( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
48 
50  virtual ~DtPropCreatePalette();
51 
53  void setupUi(QWidget* p);
54 
56  virtual inline void clear() {};
57 
59  virtual void clearProps();
60 
62  virtual inline void update() {};
63 
65  virtual void setEnabled(bool);
66 
68  virtual void addItem( const std::string& name, const std::string& type, const std::string& modelDef,
69  const std::string& group);
70 
72  virtual QIcon icon();
73 
76  virtual makVrv::DtQIconConfigurations qIconConfigurations() const;
77 
79  virtual QString title();
80 
82  virtual const std::string& pageClassName() const;
83 
85  static const std::string& thePageClassName();
86 
87  virtual bool initiallyVisible() const override
88  {
89  return false;
90  }
91 
92  virtual void activate() {};
93  virtual void deactivate() {};
94 
95  protected:
96  virtual void aboutToShow() override;
97 
98  protected slots:
99 
100  virtual void slot_onItemClicked(QTreeWidgetItem*, int);
101 
102  protected:
104 
105  protected:
106  QVBoxLayout* myMainLayout;
108  };
109 
112 }
Contains makVrv::DtUserInterfaceAssembler class.
Contains makVrv::DtPage class.
virtual void activate()
Called when the page is displayed.
Definition: propCreatePalette.h:92
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
virtual void deactivate()
Called when the page is hidden.
Definition: propCreatePalette.h:93
DtPropCreatePaletteLogic * myLogic
Definition: propCreatePalette.h:103
QVBoxLayout * myMainLayout
Definition: propCreatePalette.h:106
QTreeWidget * myPropTree
Definition: propCreatePalette.h:107
Definition: DtPage.h:150
Contains makVrv::DtVirtualBaseClass class.
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:30
virtual void update()
Tells widget to update (redraw) (from DtGenericPaletteInterface)
Definition: propCreatePalette.h:62
makVrv::DtPageCreatorTemplate< DtPropCreatePalette > DtPropsPalettePageCreator
Definition: propCreatePalette.h:111
virtual bool initiallyVisible() const override
Definition: propCreatePalette.h:87
Interface for prop creation palette.
Definition: propCreatePaletteInterface.h:23
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
virtual void clear()
Clears contents of widget (from DtGenericPaletteInterface)
Definition: propCreatePalette.h:56
A collection of icon configurations. The collection maintains flags indicating whether to generate ic...
Definition: DtQIconConfiguration.h:131
Logic associated with the DtPropCreatePalette class.
Definition: propCreatePaletteLogic.h:32
A widget class for managing different camera views the currently selected observer can be placed in...
Definition: propCreatePalette.h:39

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)