A widget which displays output image from a CConnectDesktop and sends input keypresses and mouse activity to the CConnectDesktop.
More...
#include <FrmViewer.h>
|
|
void | sigMousePressEvent (QMouseEvent *event, QPoint pos) |
| |
|
void | sigMouseReleaseEvent (QMouseEvent *event, QPoint pos) |
| |
|
void | sigMouseMoveEvent (QMouseEvent *event, QPoint pos) |
| |
|
void | sigMouseMoveEvent (QMouseEvent *event) |
| |
|
void | sigWheelEvent (QWheelEvent *event, QPoint pos) |
| |
|
void | sigKeyPressEvent (QKeyEvent *event) |
| |
|
void | sigKeyReleaseEvent (QKeyEvent *event) |
| |
|
void | sigServerName (const QString &szName) |
| |
| void | sigViewerFocusIn (QWidget *pView) |
| | The view is focus.
|
| |
|
void | sigRecordVideo (const QImage &img) |
| |
A widget which displays output image from a CConnectDesktop and sends input keypresses and mouse activity to the CConnectDesktop.
- See also
- CConnecter CConnectDesktop
Definition at line 47 of file FrmViewer.h.
◆ ADAPT_WINDOWS
The ADAPT_WINDOWS enum.
| Enumerator |
|---|
| Disable | Disable adapt windows.
|
| Original | Original desktop size, the left-top of the desktop is aligned with the left-top of the window.
|
| OriginalCenter | Original desktop size, the center of the desktop is aligned with the center of the window.
|
| Zoom | zoom windows = desktop size * factor
|
| ZoomToWindow | Desktop adapt to windows.
|
| KeepAspectRationToWindow | Keep desktop aspectration adapt to windows.
|
Definition at line 60 of file FrmViewer.h.
◆ LED_STATE
| enum CFrmViewer::LED_STATE |
◆ ~CFrmViewer()
| CFrmViewer::~CFrmViewer |
( |
| ) |
|
|
overridevirtual |
◆ focusInEvent()
| void CFrmViewer::focusInEvent |
( |
QFocusEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ focusOutEvent()
| void CFrmViewer::focusOutEvent |
( |
QFocusEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ GetAdaptWindows()
◆ GetAspectRationRect()
| QRectF CFrmViewer::GetAspectRationRect |
( |
| ) |
|
|
private |
◆ GetDesktopSize()
| QSize CFrmViewer::GetDesktopSize |
( |
| ) |
|
◆ GetZoomFactor()
| double CFrmViewer::GetZoomFactor |
( |
| ) |
const |
Adjust the zoom factor.
After the adjustment is completed, you need to call SetAdaptWindows(FrmViewer::Zoom) to zoom the window size.
- Returns
Definition at line 263 of file FrmViewer.cpp.
◆ GrabImage()
| QImage CFrmViewer::GrabImage |
( |
int |
x = 0, |
|
|
int |
y = 0, |
|
|
int |
w = -1, |
|
|
int |
h = -1 |
|
) |
| |
|
virtual |
◆ keyPressEvent()
| void CFrmViewer::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ keyReleaseEvent()
| void CFrmViewer::keyReleaseEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ mouseMoveEvent()
| void CFrmViewer::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ mousePressEvent()
| void CFrmViewer::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ mouseReleaseEvent()
| void CFrmViewer::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ paintDesktop()
| void CFrmViewer::paintDesktop |
( |
| ) |
|
|
private |
◆ paintEvent()
| void CFrmViewer::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ ReSize()
| int CFrmViewer::ReSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
private |
◆ sigViewerFocusIn
| void CFrmViewer::sigViewerFocusIn |
( |
QWidget * |
pView | ) |
|
|
signal |
The view is focus.
- Parameters
-
◆ slotConnected
| void CFrmViewer::slotConnected |
( |
| ) |
|
|
slot |
◆ slotRecordVideo [1/2]
| void CFrmViewer::slotRecordVideo |
( |
| ) |
|
|
slot |
◆ slotRecordVideo [2/2]
| void CFrmViewer::slotRecordVideo |
( |
bool |
bRecord, |
|
|
qreal |
nRate = 0 |
|
) |
| |
|
slot |
◆ slotSetAdaptWindows
◆ slotSetDesktopSize
| void CFrmViewer::slotSetDesktopSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
slot |
Update desktop size.
- Parameters
-
- Note
- The plugin is use CConnectDesktop::sigSetDesktopSize
Definition at line 310 of file FrmViewer.cpp.
◆ slotSetName
| void CFrmViewer::slotSetName |
( |
const QString & |
szName | ) |
|
|
slot |
◆ slotSetZoomFactor
| int CFrmViewer::slotSetZoomFactor |
( |
double |
newZoomFactor | ) |
|
|
slot |
◆ slotUpdateCursor
| void CFrmViewer::slotUpdateCursor |
( |
const QCursor & |
cursor | ) |
|
|
slot |
◆ slotUpdateCursorPosition
| void CFrmViewer::slotUpdateCursorPosition |
( |
const QPoint & |
pos | ) |
|
|
slot |
Update cursor position.
- Parameters
-
Definition at line 376 of file FrmViewer.cpp.
◆ slotUpdateLedState
| void CFrmViewer::slotUpdateLedState |
( |
unsigned int |
state | ) |
|
|
slot |
◆ slotUpdateRect [1/2]
| void CFrmViewer::slotUpdateRect |
( |
const QImage & |
image | ) |
|
|
slot |
◆ slotUpdateRect [2/2]
| void CFrmViewer::slotUpdateRect |
( |
const QRect & |
r, |
|
|
const QImage & |
image |
|
) |
| |
|
slot |
◆ TranslationMousePoint()
| int CFrmViewer::TranslationMousePoint |
( |
QPointF |
inPos, |
|
|
QPointF & |
outPos |
|
) |
| |
|
private |
◆ wheelEvent()
| void CFrmViewer::wheelEvent |
( |
QWheelEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ m_AdaptWindows
◆ m_bRecordVideo
| bool CFrmViewer::m_bRecordVideo |
|
private |
◆ m_dbZoomFactor
| double CFrmViewer::m_dbZoomFactor |
|
private |
◆ m_Desktop
| QImage CFrmViewer::m_Desktop |
|
private |
◆ m_DesktopSize
| QSize CFrmViewer::m_DesktopSize |
|
private |
◆ m_TimerRecordVideo
| QTimer CFrmViewer::m_TimerRecordVideo |
|
private |
◆ ZoomFactor
| double CFrmViewer::ZoomFactor |
|
readwrite |
The documentation for this class was generated from the following files:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Client/FrmViewer.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Client/FrmViewer.cpp