1175:7cf1dbf97d90 | 1176:07b574a4e31d |
---|---|
21 #include "main.h" | 21 #include "main.h" |
22 #include "model.h" | 22 #include "model.h" |
23 #include "glShared.h" | 23 #include "glShared.h" |
24 #include "glcamera.h" | 24 #include "glcamera.h" |
25 #include "hierarchyelement.h" | 25 #include "hierarchyelement.h" |
26 | |
27 class GLCompiler; | |
28 class MessageManager; | |
29 class QDialogButtonBox; | |
30 class QDoubleSpinBox; | |
31 class QSpinBox; | |
32 class QLineEdit; | |
33 class QTimer; | |
34 class MagicWandMode; | |
35 | |
36 struct CameraInfo | |
37 { | |
38 CameraInfo(const CameraInfo&) = delete; | |
39 | |
40 int glrotate[3]; | |
41 Axis localX; | |
42 Axis localY; | |
43 bool negatedX; | |
44 bool negatedY; | |
45 bool negatedDepth; // is greater depth value closer to camera? | |
46 }; | |
47 | 26 |
48 enum class Camera | 27 enum class Camera |
49 { | 28 { |
50 Top, | 29 Top, |
51 Front, | 30 Front, |
134 return ::format (fmtstr, args...); | 113 return ::format (fmtstr, args...); |
135 } | 114 } |
136 | 115 |
137 private: | 116 private: |
138 const Model* const m_model; | 117 const Model* const m_model; |
139 GLCompiler* m_compiler; | 118 class GLCompiler* m_compiler; |
140 LDObject* m_objectAtCursor = nullptr; | 119 LDObject* m_objectAtCursor = nullptr; |
141 CameraIcon m_cameraIcons[7]; | 120 CameraIcon m_cameraIcons[7]; |
142 QTimer* m_toolTipTimer; | 121 QTimer* m_toolTipTimer; |
143 Qt::MouseButtons m_lastButtons; | 122 Qt::MouseButtons m_lastButtons; |
144 Qt::KeyboardModifiers m_currentKeyboardModifiers; | 123 Qt::KeyboardModifiers m_currentKeyboardModifiers; |