VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
17 #include <vrvVrlQt/vrvVrlQt.h>
18 
21 
22 #include <QtGui/QWidget>
23 
24 class QToolButton;
25 class QSlider;
26 
27 namespace makVrv
28 {
29  class DtGroundClampingSliderWidget;
30  class DtPopupToolbarButton;
31  class DtPopupToolbar;
32  class DtGroundClampingLogic;
33 
39  : public QWidget
41  {
42  Q_OBJECT;
43 
44  public:
45 
47  DtGroundClampingWidget( DtDe& de, QWidget * parent = 0, Qt::WindowFlags f = 0 );
48 
50  virtual ~DtGroundClampingWidget();
51 
54  virtual void setEnabled( bool b );
55 
57  virtual void setValue( bool b );
58 
61  virtual void setGroundClampingFactor( int factor );
62 
63  protected:
65  void setupGui();
66 
67  // For Display Engine subject observer
68  virtual void slot_activate( DtDe* subject );
69  virtual void slot_deactivate( DtDe* ) {}
70 
71  protected slots:
72 
74  virtual void on_groundClampingToggleClicked();
75  virtual void on_groundClampingScaleSliderChanged( int );
76 
77  protected:
80 
86  };
87 
92  {
93  Q_OBJECT
94 
95  public:
96 
97  // constructor
98  DtGroundClampingSliderWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 );
99 
100  virtual ~DtGroundClampingSliderWidget();
101 
102  virtual int maxValue();
103 
104  virtual int minValue();
105 
106  public slots:
107 
108  void setValue( int value );
109 
110  signals:
111  void valueChanged( int );
112 
113  protected:
114  void setupGui();
115 
116  protected:
118  };
119 
123  {
124  public:
125 
128  virtual QWidget* create( DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
129  };
130 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)