Overte C++ Documentation
LodToolsDialog.h
1 //
2 // LodToolsDialog.h
3 // interface/src/ui
4 //
5 // Created by Brad Hefta-Gaub on 7/19/13.
6 // Copyright 2013 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #ifndef hifi_LodToolsDialog_h
13 #define hifi_LodToolsDialog_h
14 
15 #include <QDialog>
16 
17 class QCheckBox;
18 class QDoubleSpinBox;
19 class QLabel;
20 class QSlider;
21 
22 class LodToolsDialog : public QDialog {
23  Q_OBJECT
24 public:
25  // Sets up the UI
26  LodToolsDialog(QWidget* parent);
27 
28 signals:
29  void closed();
30 
31 public slots:
32  void reject() override;
33  void sizeScaleValueChanged(int value);
34  void resetClicked(bool checked);
35  void reloadSliders();
36  void updateAutomaticLODAdjust();
37 
38 protected:
39 
40  // Emits a 'closed' signal when this dialog is closed.
41  void closeEvent(QCloseEvent* event) override;
42 
43 private:
44  QSlider* _lodSize;
45 
46  QCheckBox* _manualLODAdjust;
47 
48  QDoubleSpinBox* _desktopLODDecreaseFPS;
49 
50  QDoubleSpinBox* _hmdLODDecreaseFPS;
51 
52  QLabel* _feedback;
53 };
54 
55 #endif // hifi_LodToolsDialog_h