VR-Forces 4.8 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 /******************************************************************************
6 ** $RCSfile: DtAttachWidget.h,v $ $Revision: 1.30 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCoreQt/vrvCoreQt.h>
15 #include <vrvCoreQt/DtPage.h>
17 
18 class QCheckBox;
19 class QComboBox;
20 class QFrame;
21 class QHBoxLayout;
22 class QLabel;
23 class QPushButton;
24 class QVBoxLayout;
25 
26 namespace makVrv
27 {
28  class DtVirtualBaseClass;
29 
34  {
35  Q_OBJECT
36 
37  public:
38 
40  virtual ~DtAttachWidget();
41 
43  virtual QIcon icon();
44 
46  virtual QString title();
47 
49  virtual const std::string& pageClassName() const;
50 
52  virtual void setHideAttachedModelEnabled( bool trueFalse );
53 
55  virtual void setAttachedObjects(const std::vector<DtUnicode>& attachedObject, bool visible);
56 
58  virtual void setAttachableParts( const std::vector<DtUnicode>& parts);
59 
61  virtual void setAttachedPart(const DtUnicode& partName);
62 
64  virtual void addAttachFilter( const DtUnicode& filterName,
65  int filterType );
66 
68  virtual void setCurrentAttachFilter( int filterType );
69 
71  virtual void setAttachNextEnabled( bool enabled );
72 
74  virtual void setAttachPreviousEnabled( bool enabled );
75 
77  virtual void addAttachModes( const std::list<DtUnicode>& modeNames,
78  const std::list<int>& modeTypes );
79 
81  virtual void setCurrentAttachMode( int modeType );
82 
84  virtual void setAttachModeEnabled( int modeType, bool enabled );
85 
87  virtual void setAttachSelectedEnabled( bool enabled );
88 
89  virtual QSize sizeHint() const;
90 
92  virtual void setAttached(bool b);
93 
95  virtual void setMoreInformationShown(bool);
96 
97  protected slots:
98 
100  virtual void attachToPrevious();
101 
103  virtual void attachToNext();
104 
106  virtual void attachToPart( int index );
107 
109  virtual void detach();
110 
112  virtual void changeHideAttachedModel( int state );
113 
115  virtual void changeAttachFilterType( int index );
116 
118  virtual void attachModeChanged( int index );
119 
121  virtual void attachSelected();
122 
124  virtual void updateShowMoreInformation();
125 
126  protected:
127 
129  friend class DtAttachWidgetCreator;
130 
132  DtAttachWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
133 
135  virtual void activate();
136 
138  virtual void deactivate();
139 
140  void setupUi();
141  void retranslateUi();
142 
143  protected:
144 
146  QSize mySaveSize;
147 
153 
157 
158  QHBoxLayout* myFirstRowLayout;
159  QHBoxLayout* mySecondRowLayout;
160  QHBoxLayout* myThirdRowLayout;
161  QHBoxLayout* myFourthRowLayout;
162 
171  QVBoxLayout* myMoreOptionsLayout;
172  QVBoxLayout* myMainLayout;
173 
174  std::string myClassName;
175  };
176 
180  {
181  public:
182 
185 
187  virtual ~DtAttachWidgetCreator();
188 
192  virtual std::string pageClassName() const;
193 
195  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
196  };
197 }
198 
QLabel * myAttachmentFilterLabel
Definition: DtAttachWidget.h:163
QHBoxLayout * mySecondRowLayout
Definition: DtAttachWidget.h:159
Virtual base class.
Definition: DtVirtualBaseClass.h:22
A unicode string.
Definition: DtUnicode.h:33
QComboBox * myAttachablePartsComboBox
Definition: DtAttachWidget.h:152
Contains makVrv::DtPage class.
QPushButton * myAttachNextButton
Definition: DtAttachWidget.h:166
The page creator.
Definition: DtPage.h:117
QCheckBox * myHideAttachedModelCheckBox
Definition: DtAttachWidget.h:148
Contains makVrv::DtAttachWidgetInterface class.
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Abstract interface for the attach widget.
Definition: DtAttachWidgetInterface.h:25
Contains DLL export macros.
The creator class needed to be used to create a DtOverlaysPage.
Definition: DtAttachWidget.h:179
QLabel * myAttachedObjectsLabel
Definition: DtAttachWidget.h:164
DtVirtualBaseClass * myLogic
Definition: DtAttachWidget.h:145
QPushButton * myShowMoreInformationButton
Definition: DtAttachWidget.h:170
QHBoxLayout * myThirdRowLayout
Definition: DtAttachWidget.h:160
QVBoxLayout * myMoreOptionsLayout
Definition: DtAttachWidget.h:171
QComboBox * myAttachedObjectsComboBox
Definition: DtAttachWidget.h:151
QHBoxLayout * myFourthRowLayout
Definition: DtAttachWidget.h:161
QComboBox * myAttachModeComboBox
Definition: DtAttachWidget.h:150
QSize mySaveSize
Definition: DtAttachWidget.h:146
QPushButton * myDetachButton
Definition: DtAttachWidget.h:169
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:30
QFrame * myHorizontalLine2
Definition: DtAttachWidget.h:155
A widget class for managing attachment.
Definition: DtAttachWidget.h:32
QFrame * myFirstRowLineSeperator
Definition: DtAttachWidget.h:154
QPushButton * myAttachPreviousButton
Definition: DtAttachWidget.h:167
QHBoxLayout * myFirstRowLayout
Definition: DtAttachWidget.h:158
QPushButton * myAttachSelectedButton
Definition: DtAttachWidget.h:168
QComboBox * myAttachFilterComboBox
Definition: DtAttachWidget.h:149
QLabel * myAttachablePartsLabel
Definition: DtAttachWidget.h:165
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
std::string myClassName
Definition: DtAttachWidget.h:174
QFrame * myMoreOptionsFrame
Definition: DtAttachWidget.h:156
QVBoxLayout * myMainLayout
Definition: DtAttachWidget.h:172

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)