src/gldraw.h

changeset 285
836e77323ab0
parent 274
d232fe4d88a6
child 291
c8547f780861
equal deleted inserted replaced
284:8d6d9cf9e8b9 285:836e77323ab0
92 void zoomToFit (); 92 void zoomToFit ();
93 93
94 static void deleteLists (LDObject* obj); 94 static void deleteLists (LDObject* obj);
95 95
96 protected: 96 protected:
97 void contextMenuEvent (QContextMenuEvent* ev); 97 void contextMenuEvent (QContextMenuEvent* ev);
98 void initializeGL (); 98 void initializeGL ();
99 void keyPressEvent (QKeyEvent* ev); 99 void keyPressEvent (QKeyEvent* ev);
100 void keyReleaseEvent (QKeyEvent* ev); 100 void keyReleaseEvent (QKeyEvent* ev);
101 void leaveEvent (QEvent* ev); 101 void leaveEvent (QEvent* ev);
102 void mousePressEvent (QMouseEvent* ev); 102 void mouseDoubleClickEvent (QMouseEvent* ev);
103 void mouseMoveEvent (QMouseEvent* ev); 103 void mousePressEvent (QMouseEvent* ev);
104 void mouseReleaseEvent (QMouseEvent* ev); 104 void mouseMoveEvent (QMouseEvent* ev);
105 void paintEvent (QPaintEvent* ev); 105 void mouseReleaseEvent (QMouseEvent* ev);
106 void resizeGL (int w, int h); 106 void paintEvent (QPaintEvent* ev);
107 void wheelEvent (QWheelEvent* ev); 107 void resizeGL (int w, int h);
108 void wheelEvent (QWheelEvent* ev);
108 109
109 private: 110 private:
110 QTimer* m_toolTipTimer; 111 QTimer* m_toolTipTimer;
111 Qt::MouseButtons m_lastButtons; 112 Qt::MouseButtons m_lastButtons;
112 Qt::KeyboardModifiers m_keymods; 113 Qt::KeyboardModifiers m_keymods;
134 void compileList (LDObject* obj, const ListType list); // Compile one of the lists of an object 135 void compileList (LDObject* obj, const ListType list); // Compile one of the lists of an object
135 void compileSubObject (LDObject* obj, const GLenum gltype); // Sub-routine for object compiling 136 void compileSubObject (LDObject* obj, const GLenum gltype); // Sub-routine for object compiling
136 void compileVertex (const vertex& vrt); // Compile a single vertex to a list 137 void compileVertex (const vertex& vrt); // Compile a single vertex to a list
137 vertex coordconv2_3 (const QPoint& pos2d, bool snap) const; // Convert a 2D point to a 3D point 138 vertex coordconv2_3 (const QPoint& pos2d, bool snap) const; // Convert a 2D point to a 3D point
138 QPoint coordconv3_2 (const vertex& pos3d) const; // Convert a 3D point to a 2D point 139 QPoint coordconv3_2 (const vertex& pos3d) const; // Convert a 3D point to a 2D point
139 void buildKnownVertBlips (); 140 void buildKnownVertBlips ();
140 void updateRectVerts (); 141 void updateRectVerts ();
141 void pick (uint mouseX, uint mouseY); // Perform object selection 142 void pick (uint mouseX, uint mouseY); // Perform object selection
142 void setObjectColor (LDObject* obj, const ListType list); // Set the color to an object list 143 void setObjectColor (LDObject* obj, const ListType list); // Set the color to an object list
143 144
144 private slots: 145 private slots:
145 void slot_toolTipTimer (); 146 void slot_toolTipTimer ();
146 }; 147 };
147 148
148 // Alias for short namespaces 149 // Alias for short namespaces
149 typedef GLRenderer GL; 150 typedef GLRenderer GL;
150 151

mercurial