krdc
vncview.cpp
Go to the documentation of this file.
70 connect(&vncThread, SIGNAL(imageUpdated(int,int,int,int)), this, SLOT(updateImage(int,int,int,int)), Qt::BlockingQueuedConnection);
71 connect(&vncThread, SIGNAL(gotCut(QString)), this, SLOT(setCut(QString)), Qt::BlockingQueuedConnection);
72 connect(&vncThread, SIGNAL(passwordRequest(bool)), this, SLOT(requestPassword(bool)), Qt::BlockingQueuedConnection);
73 connect(&vncThread, SIGNAL(outputErrorMessage(QString)), this, SLOT(outputErrorMessage(QString)));
243 // just try to get the passwort from the wallet the first time, otherwise it will loop (see issue #226283)
264 QString username = QInputDialog::getText(this, //krazy:exclude=qclasses (code not used in kde build)
284 KPasswordDialog dialog(this, includingUsername ? KPasswordDialog::ShowUsernameLine : KPasswordDialog::NoFlags);
350 setCursor(((m_dotCursorState == CursorOn) || m_forceLocalCursor) ? localDotCursor() : Qt::BlankCursor);
359 kDebug(5011) << "Setting initial size w:" <<m_hostPreferences->width() << " h:" << m_hostPreferences->height();
386 setMaximumSize(m_frame.width(), m_frame.height()); //This is a hack to force Qt to center the view in the scroll area
393 repaint(qRound(m_x * m_horizontalFactor), qRound(m_y * m_verticalFactor), qRound(m_w * m_horizontalFactor), qRound(m_h * m_verticalFactor));
429 setMaximumSize(m_frame.width(), m_frame.height()); //This is a hack to force Qt to center the view in the scroll area
444 // kDebug(5011) << "paint event: x: " << m_x << ", y: " << m_y << ", w: " << m_w << ", h: " << m_h;
475 // kDebug(5011) << "Full repaint" << width() << height() << m_frame.width() << m_frame.height();
539 vncThread.mouseEvent(qRound(e->x() / m_horizontalFactor), qRound(e->y() / m_verticalFactor), m_buttonMask);
563 // parts of this code are based on http://italc.sourcearchive.com/documentation/1.0.9.1/vncview_8cpp-source.html
Definition: remoteview.h:71
void mouseEvent(int x, int y, int buttonMask)
Definition: vncclientthread.cpp:658
Type type() const
virtual void showDotCursor(DotCursorState state)
Sets the state of the dot cursor, if supported by the backend.
Definition: remoteview.cpp:165
int x() const
int y() const
bool contains(const Key &key) const
void setCursor(const QCursor &)
void setQuality(RemoteView::Quality quality)
Definition: vncclientthread.cpp:387
void setFocusPolicy(Qt::FocusPolicy policy)
void setUsername(const QString &username)
Definition: vncclientthread.h:125
int x() const
int y() const
const T & at(int i) const
int y() const
void setAttribute(Qt::WidgetAttribute attribute, bool on)
bool ownsClipboard() const
int height() const
int x() const
int y() const
QString readWalletPassword(bool fromUserNameOnly=false)
Definition: remoteview.cpp:199
bool isNull() const
bool isAutoRepeat() const
QImage copy(const QRect &rectangle) const
HostPreferences * hostPreferences()
Returns the current host preferences of this view.
Definition: vncview.cpp:317
void clear()
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QString tr(const char *sourceText, const char *disambiguation, int n)
void update()
Definition: vnchostpreferences.h:30
bool isNull() const
int width() const
void start(Priority priority)
QList< Key > keys() const
QSize size() const
void setMinimumSize(const QSize &)
VncView(QWidget *parent=0, const KUrl &url=KUrl(), KConfigGroup configGroup=KConfigGroup())
Definition: vncview.cpp:53
virtual void paintEvent(QPaintEvent *event)
Definition: remoteview.h:113
void installEventFilter(QObject *filterObj)
int x() const
QClipboard * clipboard()
void framebufferSizeChanged(int w, int h)
Emitted when the size of the remote screen changes.
int width() const
Qt::MouseButton button() const
bool isEmpty() const
QSize framebufferSize()
Returns the resolution of the remote framebuffer.
Definition: vncview.cpp:106
virtual bool eventFilter(QObject *watched, QEvent *event)
bool supportsLocalCursor() const
Checks whether the backend supports the concept of local cursors.
Definition: vncview.cpp:227
Definition: remoteview.h:109
void errorMessage(const QString &title, const QString &message)
Emitted when the view has a specific error.
virtual void setViewOnly(bool viewOnly)
Enables/disables the view-only mode.
Definition: remoteview.cpp:138
QRect rect() const
QString getText(QWidget *parent, const QString &title, const QString &label, QLineEdit::EchoMode mode, const QString &text, bool *ok, QFlags< Qt::WindowType > flags, QFlags< Qt::InputMethodHint > inputMethodHints)
iterator end()
int key() const
const QImage image(int x=0, int y=0, int w=0, int h=0)
Definition: vncclientthread.cpp:425
void saveWalletPassword(const QString &password, bool fromUserNameOnly=false)
Definition: remoteview.cpp:235
void setMaximumSize(const QSize &)
int delta() const
void repaint()
void setPassword(const QString &password)
Definition: vncclientthread.h:119
void showDotCursor(DotCursorState state)
Sets the state of the dot cursor, if supported by the backend.
Definition: vncview.cpp:409
QString text(Mode mode) const
Definition: hostpreferences.h:42
int width() const
void drawImage(const QRectF &target, const QImage &image, const QRectF &source, QFlags< Qt::ImageConversionFlag > flags)
Definition: remoteview.h:110
virtual void scaleResize(int w, int h)
Called when the visible place changed so remote view can resize itself.
Definition: remoteview.cpp:189
bool supportsScaling() const
Checks whether the backend supports scaling.
Definition: vncview.cpp:222
virtual void enableScaling(bool scale)
Called to enable or disable scaling.
Definition: remoteview.cpp:180
virtual void updateConfiguration()
Called when the configuration is changed.
Definition: vncview.cpp:145
bool wait(unsigned long time)
virtual void updateConfiguration()
Called when the configuration is changed.
Definition: remoteview.cpp:125
bool processEvents(QFlags< QEventLoop::ProcessEventsFlag > flags)
QWidget * parentWidget() const
virtual void setStatus(RemoteStatus s)
Set the status of the connection.
Definition: remoteview.cpp:62
QSize size() const
void setMouseTracking(bool enable)
quint32 nativeVirtualKey() const
int height() const
void setText(const QString &text, Mode mode)
DotCursorState
Describes the state of a local cursor, if there is such a concept in the backend. ...
Definition: remoteview.h:84
bool start()
Initialize the view (for example by showing configuration dialogs to the user) and start connecting...
Definition: vncview.cpp:191
virtual void resizeEvent(QResizeEvent *event)
void quit()
QStringList arguments()
const_iterator constBegin() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: remoteview.h:114
virtual bool event(QEvent *event)
Format format() const
Definition: remoteview.h:112
int height() const
QImage scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
int remove(const Key &key)
void rect(int *x, int *y, int *width, int *height) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.