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 #include <QtWidgets/QTreeWidget>
25 
26 class QVBoxLayout;
27 class QTreeWidgetItem;
28 class QLabel;
29 
30 namespace makVrv
31 {
32  class DtDe;
33 }
34 
35 namespace makVrf
36 {
37  class DtPropCreatePaletteLogic;
38 
41  : public makVrv::DtPage
43  {
44  Q_OBJECT
45 
46  public:
48  DtPropCreatePalette( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
49 
51  virtual ~DtPropCreatePalette() override;
52 
54  void setupUi(QWidget* p);
55 
57  virtual inline void clear() override {};
58 
60  virtual void clearProps() override;
61 
63  virtual inline void update() override {};
64 
66  virtual void setEnabled(bool) override;
67 
69  virtual void addItem(const std::string& name, const std::string& type, const std::string& modelDef,
70  const std::string& group, const std::string& imageName) override;
71 
73  virtual QIcon icon() override;
74 
77  virtual makVrv::DtQIconConfigurations qIconConfigurations() const override;
78 
80  virtual QString title() override;
81 
83  virtual const std::string& pageClassName() const override;
84 
86  static const std::string& thePageClassName();
87 
88  virtual bool initiallyVisible() const override
89  {
90  return false;
91  }
92 
93  virtual void activate() override {};
94  virtual void deactivate() override {};
95 
96  protected:
97  virtual void aboutToShow() override;
98 
99  protected slots:
100  virtual void slot_onItemClicked(QTreeWidgetItem*, int);
101  virtual void showInformationForItem(const QModelIndex&);
102 
103  protected:
105 
106  protected:
107  QVBoxLayout* myMainLayout;
111  };
112 
115 
117  {
118  Q_OBJECT
119 
120  public:
121  DtPropTreeWidget(makVrv::DtDe& de, QWidget*);
122  virtual ~DtPropTreeWidget() override;
123 
124  virtual bool viewportEvent(QEvent *event) override;
125 
126  signals:
127  void showInformationForItem(const QModelIndex&);
128 
129  protected:
130  QModelIndex myLastHoverIndex;
132  };
133 }
Definition: propCreatePalette.h:116
Contains makVrv::DtUserInterfaceAssembler class.
Contains makVrv::DtPage class declaration.
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
virtual void deactivate() override
Called when the page is hidden.
Definition: propCreatePalette.h:94
DtPropCreatePaletteLogic * myLogic
Definition: propCreatePalette.h:104
QVBoxLayout * myMainLayout
Definition: propCreatePalette.h:107
QTreeWidget * myPropTree
Definition: propCreatePalette.h:108
virtual void update() override
Tells widget to update (redraw) (from DtGenericPaletteInterface)
Definition: propCreatePalette.h:63
Definition: DtPage.h:181
QLabel * myGuiLabel
Definition: propCreatePalette.h:110
Contains makVrv::DtVirtualBaseClass class.
QLabel * myPropCreationPicture
Definition: propCreatePalette.h:109
makVrv::DtDe & myDe
Definition: propCreatePalette.h:131
virtual void clear() override
Clears contents of widget (from DtGenericPaletteInterface)
Definition: propCreatePalette.h:57
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:51
makVrv::DtPageCreatorTemplate< DtPropCreatePalette > DtPropsPalettePageCreator
Definition: propCreatePalette.h:114
virtual bool initiallyVisible() const override
Definition: propCreatePalette.h:88
Interface for prop creation palette.
Definition: propCreatePaletteInterface.h:23
QModelIndex myLastHoverIndex
Definition: propCreatePalette.h:130
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:76
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
virtual void activate() override
Called when the page is displayed.
Definition: propCreatePalette.h:93
A widget class for managing different camera views the currently selected observer can be placed in...
Definition: propCreatePalette.h:40

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)