VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sensorContactLinesOptionsWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrvUtil/signalslib.h>
14 
15 #include <QtGui/QWidget>
16 
17 class QVBoxLayout;
18 class QCheckBox;
19 class QGroupBox;
20 class QHBoxLayout;
21 class QPushButton;
22 class QGridLayout;
23 class QLabel;
24 class QSpinBox;
25 
29 
30 namespace makVrv
31 {
32  class DtDe;
33  class DtPersistenceControlsInterface;
34 }
35 
36 namespace makVrf
37 {
38  class DtSensorContactLinesOptionsWidget;
39  class DtSensorContactLinesSettingsRecord;
40 
42  {
43  public:
47 
50 
51  protected: //Receive boost signals from interface class
52  virtual void on_colorChanged(QColor color);
53 
54  virtual void on_showForSelectedChanged(bool);
55  virtual void on_lineWidthChanged(double);
56  virtual void on_arrowSizeChanged(double);
57 
58  protected:
59  virtual void setupFromOptions(const DtSensorContactLinesSettingsRecord&);
60 
62  virtual void on_import();
63  virtual void on_export();
64  virtual void on_defaultsRestored();
65  virtual void on_importFilePathChosen(const std::string& filePath);
66  virtual void on_exportFilePathChosen(const std::string& filePath);
67 
68  protected:
73  };
74 
76  {
77  Q_OBJECT
78 
79  public:
80 
82  DtSensorContactLinesOptionsWidget(makVrv::DtDe& de, QWidget* parent = NULL, const Qt::WindowFlags& flags = 0 );
83 
86 
87  //Accessors & mutators for dialog elements
88  virtual void setShowForSelected(bool);
89  virtual bool showForSelected() const;
90 
91  virtual void setColor(const QColor&);
92  virtual const QColor& color() const;
93 
94  virtual void setLineWidth(double);
95  virtual double lineWidth() const;
96 
97  virtual void setArrowSize(double);
98  virtual double arrowSize() const;
99 
100  protected:
101 
102  void setupGui();
103 
104  protected slots: //Qt slots used as intermediaries between Qt signals and Boost signal classes
105 
106  virtual void on_colorChanged();
107  virtual void on_showForSelectedChanged();
108  virtual void on_lineWidthChanged();
109  virtual void on_arrowSizeChanged();
110 
111  //Used to re-emit QT signals up to logic class
112  public:
113  boost::signal<void ( QColor)> signal_colorChanged;
114  boost::signal<void (bool)> signal_showForSelectedChanged;
115  boost::signal<void (double)> signal_lineWidthChanged;
116  boost::signal<void (double)> signal_arrowSizeChanged;
117 
118  private:
121 
124 
125  public:
131 
134  QGridLayout* myMainLayout;
135 
136  protected:
139  };
140 };

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)