This repository has been archived on 2020-09-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
libs/qad_graphic/uglwidget.h
Бычков Андрей ba8bc27298 1
git-svn-id: svn://db.shs.com.ru/libs@1 a8b55f48-bf90-11e4-a774-851b48703e85
2015-02-28 21:28:53 +00:00

49 lines
1.3 KiB
C++

#ifndef UGLWIDGET_H
#define UGLWIDGET_H
#include <QtOpenGL/QGLWidget>
#ifndef GL_MULTISAMPLE
#define GL_MULTISAMPLE 0x809D
#endif
class UGLWidget: public QGLWidget
{
Q_OBJECT
public:
UGLWidget(QWidget * parent = 0): QGLWidget(QGLFormat(QGL::DoubleBuffer | QGL::AlphaChannel | QGL::DirectRendering | QGL::SampleBuffers), parent) {};
UGLWidget(QGLContext * context, QWidget * parent = 0): QGLWidget(context, parent) {};
signals:
void closeEvent(QCloseEvent * e);
void dragEnterEvent(QDragEnterEvent * e);
void dragLeaveEvent(QDragLeaveEvent * e);
void dragMoveEvent(QDragMoveEvent * e);
void dropEvent(QDropEvent * e);
void enterEvent(QEvent * e);
void hideEvent(QHideEvent * e);
void keyPressEvent(QKeyEvent * e);
void keyReleaseEvent(QKeyEvent * e);
void leaveEvent(QEvent * e);
void mouseDoubleClickEvent(QMouseEvent * e);
void mouseMoveEvent(QMouseEvent * e);
void mousePressEvent(QMouseEvent * e);
void mouseReleaseEvent(QMouseEvent * e);
void moveEvent(QMoveEvent * e);
void resizeEvent(QResizeEvent * e);
void showEvent(QShowEvent * e);
void wheelEvent(QWheelEvent * e);
void paintEvent(QPaintEvent * e);
void glDraw();
void glInit();
void initializeGL();
void initializeOverlayGL();
void paintGL();
void paintOverlayGL();
void resizeGL(int width, int height);
void resizeOverlayGL(int width, int height);
};
#endif