VR-Forces 4.6 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 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)