VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAttachWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCoreQt/vrvCoreQt.h>
12 #include <vrvCoreQt/DtPage.h>
14 
15 class QCheckBox;
16 class QComboBox;
17 class QFrame;
18 class QHBoxLayout;
19 class QLabel;
20 class QPushButton;
21 class QVBoxLayout;
22 
23 namespace makVrv
24 {
25  class DtVirtualBaseClass;
26 
31  {
32  Q_OBJECT
33 
34  public:
35 
37  virtual ~DtAttachWidget();
38 
40  virtual QIcon icon();
41 
43  virtual QString title();
44 
46  virtual const std::string& pageClassName() const;
47 
49  virtual void setHideAttachedModelEnabled( bool trueFalse );
50 
52  virtual void setAttachedObjects(const std::vector<DtUnicode>& attachedObject, bool visible);
53 
55  virtual void setAttachableParts( const std::vector<DtUnicode>& parts);
56 
58  virtual void setAttachedPart(const DtUnicode& partName);
59 
61  virtual void addAttachFilter( const DtUnicode& filterName,
62  int filterType );
63 
65  virtual void setCurrentAttachFilter( int filterType );
66 
68  virtual void setAttachNextEnabled( bool enabled );
69 
71  virtual void setAttachPreviousEnabled( bool enabled );
72 
74  virtual void addAttachModes( const std::list<DtUnicode>& modeNames,
75  const std::list<int>& modeTypes );
76 
78  virtual void setCurrentAttachMode( int modeType );
79 
81  virtual void setAttachModeEnabled( int modeType, bool enabled );
82 
84  virtual void setAttachSelectedEnabled( bool enabled );
85 
86  virtual QSize sizeHint() const;
87 
89  virtual void setAttached(bool b);
90 
92  virtual void setMoreInformationShown(bool);
93 
94  protected slots:
95 
97  virtual void attachToPrevious();
98 
100  virtual void attachToNext();
101 
103  virtual void attachToPart( int index );
104 
106  virtual void detach();
107 
109  virtual void changeHideAttachedModel( int state );
110 
112  virtual void changeAttachFilterType( int index );
113 
115  virtual void attachModeChanged( int index );
116 
118  virtual void attachSelected();
119 
121  virtual void updateShowMoreInformation();
122 
123  protected:
124 
126  friend class DtAttachWidgetCreator;
127 
129  DtAttachWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
130 
132  virtual void activate();
133 
135  virtual void deactivate();
136 
137  void setupUi();
138  void retranslateUi();
139 
140  protected:
141 
143  QSize mySaveSize;
144 
150 
154 
155  QHBoxLayout* myFirstRowLayout;
156  QHBoxLayout* mySecondRowLayout;
157  QHBoxLayout* myThirdRowLayout;
158  QHBoxLayout* myFourthRowLayout;
159 
168  QVBoxLayout* myMoreOptionsLayout;
169  QVBoxLayout* myMainLayout;
170 
171  std::string myClassName;
172  };
173 
177  {
178  public:
179 
182 
184  virtual ~DtAttachWidgetCreator();
185 
189  virtual std::string pageClassName() const;
190 
192  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
193  };
194 }
195 
QLabel * myAttachmentFilterLabel
Definition: DtAttachWidget.h:160
QHBoxLayout * mySecondRowLayout
Definition: DtAttachWidget.h:156
Virtual base class.
Definition: DtVirtualBaseClass.h:19
A unicode string.
Definition: DtUnicode.h:33
QComboBox * myAttachablePartsComboBox
Definition: DtAttachWidget.h:149
Contains makVrv::DtPage class.
QPushButton * myAttachNextButton
Definition: DtAttachWidget.h:163
The page creator.
Definition: DtPage.h:114
QCheckBox * myHideAttachedModelCheckBox
Definition: DtAttachWidget.h:145
Contains makVrv::DtAttachWidgetInterface class.
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Abstract interface for the attach widget.
Definition: DtAttachWidgetInterface.h:22
Contains DLL export macros.
The creator class needed to be used to create a DtOverlaysPage.
Definition: DtAttachWidget.h:176
QLabel * myAttachedObjectsLabel
Definition: DtAttachWidget.h:161
DtVirtualBaseClass * myLogic
Definition: DtAttachWidget.h:142
QPushButton * myShowMoreInformationButton
Definition: DtAttachWidget.h:167
QHBoxLayout * myThirdRowLayout
Definition: DtAttachWidget.h:157
QVBoxLayout * myMoreOptionsLayout
Definition: DtAttachWidget.h:168
QComboBox * myAttachedObjectsComboBox
Definition: DtAttachWidget.h:148
QHBoxLayout * myFourthRowLayout
Definition: DtAttachWidget.h:158
QComboBox * myAttachModeComboBox
Definition: DtAttachWidget.h:147
QSize mySaveSize
Definition: DtAttachWidget.h:143
QPushButton * myDetachButton
Definition: DtAttachWidget.h:166
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:27
QFrame * myHorizontalLine2
Definition: DtAttachWidget.h:152
A widget class for managing attachment.
Definition: DtAttachWidget.h:29
QFrame * myFirstRowLineSeperator
Definition: DtAttachWidget.h:151
QPushButton * myAttachPreviousButton
Definition: DtAttachWidget.h:164
QHBoxLayout * myFirstRowLayout
Definition: DtAttachWidget.h:155
QPushButton * myAttachSelectedButton
Definition: DtAttachWidget.h:165
QComboBox * myAttachFilterComboBox
Definition: DtAttachWidget.h:146
QLabel * myAttachablePartsLabel
Definition: DtAttachWidget.h:162
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
std::string myClassName
Definition: DtAttachWidget.h:171
QFrame * myMoreOptionsFrame
Definition: DtAttachWidget.h:153
QVBoxLayout * myMainLayout
Definition: DtAttachWidget.h:169

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)