mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
35 lines
853 B
C++
35 lines
853 B
C++
#ifndef _LC_QGLWIDGET_H_
|
|
#define _LC_QGLWIDGET_H_
|
|
|
|
#include <QGLWidget>
|
|
class lcGLWidget;
|
|
|
|
class lcQGLWidget : public QGLWidget
|
|
{
|
|
public:
|
|
lcQGLWidget(QWidget *parent, lcQGLWidget *share, lcGLWidget *owner, bool view);
|
|
~lcQGLWidget();
|
|
|
|
QSize sizeHint() const;
|
|
|
|
lcGLWidget *widget;
|
|
QSize preferredSize;
|
|
bool isView;
|
|
|
|
protected:
|
|
void initializeGL();
|
|
void resizeGL(int x, int h);
|
|
void paintGL();
|
|
void keyPressEvent(QKeyEvent *event);
|
|
void keyReleaseEvent(QKeyEvent *event);
|
|
void mousePressEvent(QMouseEvent *event);
|
|
void mouseReleaseEvent(QMouseEvent *event);
|
|
void mouseMoveEvent(QMouseEvent *event);
|
|
void wheelEvent(QWheelEvent *event);
|
|
void dragEnterEvent(QDragEnterEvent *event);
|
|
void dragLeaveEvent(QDragLeaveEvent *event);
|
|
void dragMoveEvent(QDragMoveEvent *event);
|
|
void dropEvent(QDropEvent *event);
|
|
};
|
|
|
|
#endif // _LC_VIEWWIDGET_H_
|