51 Q_PROPERTY(
double ZoomFactor READ GetZoomFactor WRITE slotSetZoomFactor)
54 explicit CFrmViewer(QWidget *parent =
nullptr);
73 KeepAspectRationToWindow = 6,
77 ADAPT_WINDOWS GetAdaptWindows();
86 double GetZoomFactor()
const;
88 QSize GetDesktopSize();
100 int slotSetZoomFactor(
double newZoomFactor);
109 void slotSetDesktopSize(
int width,
int height);
114 void slotSetName(
const QString& szName);
120 void slotUpdateRect(
const QRect& r,
const QImage& image);
121 void slotUpdateRect(
const QImage& image);
126 void slotUpdateCursor(
const QCursor& cursor);
131 void slotUpdateCursorPosition(
const QPoint& pos);
132 void slotUpdateLedState(
unsigned int state);
133 void slotSystemCombination();
134 void slotConnected();
137 void sigMousePressEvent(QMouseEvent* event, QPoint pos);
138 void sigMouseReleaseEvent(QMouseEvent* event, QPoint pos);
139 void sigMouseMoveEvent(QMouseEvent* event, QPoint pos);
140 void sigMouseMoveEvent(QMouseEvent* event);
141 void sigWheelEvent(QWheelEvent *event, QPoint pos);
142 void sigKeyPressEvent(QKeyEvent *event);
143 void sigKeyReleaseEvent(QKeyEvent *event);
146 void sigServerName(
const QString &szName);
150 virtual void paintEvent(QPaintEvent *event)
override;
152 virtual void mousePressEvent(QMouseEvent *event)
override;
153 virtual void mouseReleaseEvent(QMouseEvent *event)
override;
154 virtual void mouseMoveEvent(QMouseEvent *event)
override;
155 virtual void wheelEvent(QWheelEvent *event)
override;
156 virtual void keyPressEvent(QKeyEvent *event)
override;
157 virtual void keyReleaseEvent(QKeyEvent *event)
override;
163 ADAPT_WINDOWS m_AdaptWindows;
164 double m_dbZoomFactor;
166 int ReSize(
int width,
int height);
168 int TranslationMousePoint(QPointF inPos, QPointF &outPos);
169 QRectF GetAspectRationRect();
172 virtual QImage GrabImage(
int x = 0,
int y = 0,
int w = -1,
int h = -1);
175 void slotRecordVideo(
bool bRecord);
177 void sigRecordVideo(
const QImage& img);