#ifndef __EDITWINDOW_H__
#define __EDITWINDOW_H__
-#include <QtGui>
+#include <QtWidgets>
#include "types.h"
#include "toolwindow.h" // For ToolType enum
#include "glyphpoints.h"
void mousePressEvent(QMouseEvent * event);
void mouseMoveEvent(QMouseEvent * event);
void mouseReleaseEvent(QMouseEvent * event);
+ void keyPressEvent(QKeyEvent *);
+ void keyReleaseEvent(QKeyEvent *);
private:
void CreateCursors(void);
QPoint GetAdjustedMousePosition(QMouseEvent * event);
QPoint GetAdjustedClientPosition(int x, int y);
void DrawGlyph(QPainter & p, GlyphPoints & glyph);
+ void DrawGlyphPoly(QPainter & p, GlyphPoints & glyph, uint16 poly);
public:
QImage image;
ToolType tool; // Current tool
GlyphPoints pts; // Glyph point structure
int32 ptHighlight, oldPtHighlight, ptNextHighlight, oldPtNextHighlight;
+ int16 polyHighlight, oldPolyHighlight;
bool polyFirstPoint;
bool showRotationCenter, haveZeroPoint;
QPoint rotationCenter, rotationZeroPoint, rotationCurrentPoint;
double rotationAngle;
ToolWindow * toolPalette;
- QCursor cur[10];
+ QCursor cur[11];
};
#endif // __EDITWINDOW_H__