VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGroundClampingWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtGroundClampingWidget.h,v $ $Revision: 1.22 $ $State: Exp $
7 ******************************************************************************/
8 
14 
15 #pragma once
16 
19 
20 #include <QtWidgets/QWidget>
21 
22 class QToolButton;
23 class QSlider;
24 
25 namespace makVrv
26 {
27  class DtGroundClampingSliderWidget;
28  class DtPopupToolbarButton;
29  class DtPopupToolbar;
30  class DtGroundClampingLogic;
31 
37  : public QWidget
39  {
40  Q_OBJECT;
41 
42  public:
43 
45  DtGroundClampingWidget( DtDe& de, QWidget * parent = 0, Qt::WindowFlags f = 0 );
46 
48  virtual ~DtGroundClampingWidget();
49 
52  virtual void setEnabled( bool b );
53 
55  virtual void setValue( bool b );
56 
59  virtual void setGroundClampingFactor( int factor );
60 
61  protected:
63  void setupGui();
64 
65  // For Display Engine subject observer
66  virtual void slot_activate( DtDe* subject );
67  virtual void slot_deactivate( DtDe* ) {}
68 
69  protected slots:
70 
72  virtual void on_groundClampingToggleClicked();
73  virtual void on_groundClampingScaleSliderChanged( int );
74 
75  protected:
78 
84  };
85 
90  {
91  Q_OBJECT
92 
93  public:
94 
95  // constructor
96  DtGroundClampingSliderWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 );
97 
99 
100  virtual int maxValue();
101 
102  virtual int minValue();
103 
104  public slots:
105 
106  void setValue( int value );
107 
108  signals:
109  void valueChanged( int );
110 
111  protected:
112  void setupGui();
113 
114  protected:
116  };
117 
121  {
122  public:
123 
126  virtual QWidget* create( DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
127  };
128 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)