用于显示从 CConnectDesktop 输出的图像,和向 CConnectDesktop 发送键盘、鼠标事件。
更多...
#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 | sigInputMethodEvent (QInputMethodEvent *event) |
| |
|
void | sigServerName (const QString &szName) |
| |
|
void | sigViewerFocusIn (QWidget *pView) |
| | 视图获得焦点
|
| |
|
void | sigRecordVideo (const QImage &img) |
| |
用于显示从 CConnectDesktop 输出的图像,和向 CConnectDesktop 发送键盘、鼠标事件。
- 参见
- CConnecter CConnectDesktop
在文件 FrmViewer.h 第 47 行定义.
◆ ADAPT_WINDOWS
窗口适配枚举常量
| 枚举值 |
|---|
| Disable | 禁用适配窗口
|
| Original | 原始桌面大小,桌面的左上点与窗口的左上点对齐
|
| OriginalCenter | 原始桌面大小,桌面中心点与窗口中心点对齐
|
| Zoom | 缩放窗口大小等于桌面大小 * 系数
|
| ZoomToWindow | 桌面缩放到窗口大小,窗口是固定的
|
| KeepAspectRationToWindow | 保持长宽比缩放到窗口大小,窗口是固定的
|
在文件 FrmViewer.h 第 60 行定义.
◆ LED_STATE
| enum CFrmViewer::LED_STATE |
◆ CFrmViewer()
| static Client FrmViewer static Key Client FrmViewer InputMethod CFrmViewer::CFrmViewer |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~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 |
调整缩放系数。 调整完成后需要调用 SetAdaptWindows(FrmViewer::Zoom) 缩放窗口大小。
在文件 FrmViewer.cpp 第 301 行定义.
◆ GrabImage()
| QImage CFrmViewer::GrabImage |
( |
int |
x = 0, |
|
|
int |
y = 0, |
|
|
int |
w = -1, |
|
|
int |
h = -1 |
|
) |
| |
|
virtual |
◆ inputMethodEvent()
| void CFrmViewer::inputMethodEvent |
( |
QInputMethodEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ inputMethodQuery()
| QVariant CFrmViewer::inputMethodQuery |
( |
Qt::InputMethodQuery |
query | ) |
const |
|
overrideprotectedvirtual |
◆ 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 |
◆ slotEnableInputMethod
| void CFrmViewer::slotEnableInputMethod |
( |
bool |
bEnable | ) |
|
|
slot |
◆ slotRecordVideo [1/2]
| void CFrmViewer::slotRecordVideo |
( |
| ) |
|
|
slot |
◆ slotRecordVideo [2/2]
| void CFrmViewer::slotRecordVideo |
( |
bool |
bRecord, |
|
|
qreal |
nRate = 0 |
|
) |
| |
|
slot |
◆ slotRunning
| void CFrmViewer::slotRunning |
( |
| ) |
|
|
slot |
◆ slotSetAdaptWindows
◆ slotSetDesktopSize
| void CFrmViewer::slotSetDesktopSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
slot |
Update desktop size
- 参数
-
- 注解
- The plugin is use CConnectDesktop::sigSetDesktopSize
在文件 FrmViewer.cpp 第 348 行定义.
◆ 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 |
◆ 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 |
该类的文档由以下文件生成:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Src/FrmViewer.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Src/FrmViewer.cpp