VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtRadioCommunicationsSettingsWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 
15 
16 #include <QtWidgets/QWidget>
17 #include <QtWidgets/QLabel>
18 
19 class QDoubleSpinBox;
20 class QRadioButton;
21 class QCheckBox;
22 class QComboBox;
23 class QGroupBox;
24 class QSlider;
25 class QLabel;
26 
27 namespace makVrv
28 {
29 
30  class DtRangeEditorWidget;
31 
35  : public QWidget, public DtRadioCommunicationsSettingsInterface
36  { Q_OBJECT;
37  public:
38 
40  DtRadioCommunicationsSettingsWidget( DtDe& de, QWidget* parent,
41  Qt::WindowFlags f = Qt::Widget );
42 
45 
50 
51  virtual void setRadioCommsVisibility( bool visible );
52  virtual void setCommLinesVisibility( bool visible );
53  virtual void setSquawkIndicatorsVisibility( bool visible );
54  virtual void setCommLineLifetime( double lifetime );
55  virtual void setSquawkIndicatorLifetime( double lifetime );
56  virtual void setCommLineDisplayMode(
58  virtual void setGreatCircleExaggerationAmount( double amount );
59  virtual void setDefaultColoringMode(
61  virtual void setDefaultFrequencyColor( float r, float g, float b );
62  virtual void setDefaultFrequencyColor( const QColor& color );
63  virtual void addFrequencyRange( float rangeStart, float rangeEnd,
64  float r, float g, float b );
65  virtual void clearFrequencyRanges();
66 
67  virtual void setCurrentGradient( const DtRangeEditorInterface::Gradient& grad );
68  virtual DtRangeEditorInterface::Gradient currentGradient() const;
69 
71 
72  protected:
73 
76  void setupGui();
77 
80  void connectToSignals();
81 
84  virtual void updateEnabledStates();
85 
86  protected slots:
87 
92 
93  void slot_onRadioCommsVisibilityChanged( bool visible );
94  void slot_onCommLinesVisiblityChanged( bool visible );
95  void slot_onSquawkIndicatorsVisibilityChanged( bool visible );
96  void slot_onCommLineLifetimeChanged( double lifetime );
97  void slot_onSquawkIndicatorLifetimeChanged( double lifetime );
98  void slot_onCommLineDisplayModeChanged( int index );
99  void slot_onGreatCircleExaggerationAmountChanged( int val );
100  void slot_onDefaultColorRadioButtonToggled( bool onOff );
101  void slot_onRequestChangeDefaultFrequencyColor();
102  void slot_gradientChanged( const DtRangeEditorInterface::Gradient& grad );
103 
105 
106  protected:
107 
111  QDoubleSpinBox* myCommLineLifetimeSpinner;
119  QRadioButton* myForceColorRadioButton;
124 
126 
128 
129  };
130 
131 
135  class DtClickableQLabel : public QLabel
136  { Q_OBJECT;
137  signals:
138 
140  void doubleClicked();
141 
143  void rightClicked();
144 
145  public:
146 
149  void mouseDoubleClickEvent( QMouseEvent* e );
150 
153  void mousePressEvent( QMouseEvent* e );
154 
155  };
156 
157 }

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)