refactor: Scan process.
This commit is contained in:
37
src/components/CoordinateXYWidget.h
Normal file
37
src/components/CoordinateXYWidget.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef COORDINATEXYWIDGET_H
|
||||
#define COORDINATEXYWIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class QTimer;
|
||||
|
||||
class CoordinateXYWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CoordinateXYWidget(QWidget* aParent);
|
||||
~CoordinateXYWidget();
|
||||
void setBlinkPoint(int aX, int aY);
|
||||
void stopFlash();
|
||||
void startFlash();
|
||||
void quit();
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent* aEvent);
|
||||
|
||||
private:
|
||||
void updateFlash();
|
||||
void updateStopFlash();
|
||||
|
||||
private:
|
||||
int mAngle;
|
||||
QTimer* mTimer;
|
||||
bool mBlinking;
|
||||
int mBlinkFrequency;
|
||||
int mBlinkPointX;
|
||||
QPointF mBlinkPoint;
|
||||
|
||||
double mStopGradientEnd;
|
||||
};
|
||||
|
||||
#endif // COORDINATEXYWIDGET_H
|
||||
Reference in New Issue
Block a user