author | treke <treke> | 2002-11-17 18:30:27 (UTC) |
---|---|---|
committer | treke <treke> | 2002-11-17 18:30:27 (UTC) |
commit | bdecd392488dee486d302f683b91acf89708d4a6 (patch) (unidiff) | |
tree | 987ed4ddd7c5d0df0ef03f7a949f74837edc9ec7 | |
parent | 44ffc30c0317e47f91ee20b3dc0b719a74d7991c (diff) | |
download | opie-bdecd392488dee486d302f683b91acf89708d4a6.zip opie-bdecd392488dee486d302f683b91acf89708d4a6.tar.gz opie-bdecd392488dee486d302f683b91acf89708d4a6.tar.bz2 |
Resized a couple dialogs to fit better. Now can synthesize right click
events from the corner menu. Still having problems with double click though
-rw-r--r-- | noncore/comm/keypebble/krfbcanvas.cpp | 40 | ||||
-rw-r--r-- | noncore/comm/keypebble/krfbcanvas.h | 4 | ||||
-rw-r--r-- | noncore/comm/keypebble/kvnc.cpp | 16 | ||||
-rw-r--r-- | noncore/comm/keypebble/kvnc.h | 2 | ||||
-rw-r--r-- | noncore/comm/keypebble/kvncbookmarkdlgbase.ui | 7 | ||||
-rw-r--r-- | noncore/comm/keypebble/kvncconndlgbase.ui | 314 |
6 files changed, 243 insertions, 140 deletions
diff --git a/noncore/comm/keypebble/krfbcanvas.cpp b/noncore/comm/keypebble/krfbcanvas.cpp index 918ce8b..049bbd4 100644 --- a/noncore/comm/keypebble/krfbcanvas.cpp +++ b/noncore/comm/keypebble/krfbcanvas.cpp | |||
@@ -1,53 +1,57 @@ | |||
1 | #include "krfbconnection.h" | 1 | #include "krfbconnection.h" |
2 | #include "krfbcanvas.h" | 2 | #include "krfbcanvas.h" |
3 | #include "krfbserver.h" | 3 | #include "krfbserver.h" |
4 | #include "krfbbuffer.h" | 4 | #include "krfbbuffer.h" |
5 | 5 | ||
6 | #include <qpe/config.h> | 6 | #include <qpe/config.h> |
7 | #include <qpe/qpeapplication.h> | 7 | #include <qpe/qpeapplication.h> |
8 | 8 | ||
9 | #include <qapplication.h> | 9 | #include <qapplication.h> |
10 | #include <qclipboard.h> | 10 | #include <qclipboard.h> |
11 | #include <qaction.h> | 11 | #include <qaction.h> |
12 | #include <qpixmap.h> | 12 | #include <qpixmap.h> |
13 | #include <qpoint.h> | ||
13 | #include <qapplication.h> | 14 | #include <qapplication.h> |
14 | #include <qmainwindow.h> | 15 | #include <qmainwindow.h> |
15 | #include <qiconset.h> | 16 | #include <qiconset.h> |
16 | 17 | ||
17 | KRFBCanvas::KRFBCanvas( QWidget *parent, const char *name ) | 18 | KRFBCanvas::KRFBCanvas( QWidget *parent, const char *name ) |
18 | : QScrollView( parent, name ) | 19 | : QScrollView( parent, name ) |
19 | { | 20 | { |
20 | connection_ = new KRFBConnection(); | 21 | connection_ = new KRFBConnection(); |
21 | connect( connection_, SIGNAL( loggedIn() ), | 22 | connect( connection_, SIGNAL( loggedIn() ), |
22 | this, SLOT( loggedIn() ) ); | 23 | this, SLOT( loggedIn() ) ); |
23 | 24 | ||
24 | loggedIn_ = false; | 25 | loggedIn_ = false; |
25 | 26 | ||
26 | //QPEApplication::setStylusOperation(viewport(), QPEApplication::RightOnHold); | 27 | //QPEApplication::setStylusOperation(viewport(), QPEApplication::RightOnHold); |
27 | 28 | ||
28 | viewport()->setFocusPolicy( QWidget::StrongFocus ); | 29 | viewport()->setFocusPolicy( QWidget::StrongFocus ); |
29 | viewport()->setFocus(); | 30 | viewport()->setFocus(); |
31 | |||
32 | nextRightClick=0; | ||
33 | nextDoubleClick=0; | ||
30 | } | 34 | } |
31 | 35 | ||
32 | KRFBCanvas::~KRFBCanvas() | 36 | KRFBCanvas::~KRFBCanvas() |
33 | { | 37 | { |
34 | } | 38 | } |
35 | 39 | ||
36 | 40 | ||
37 | void KRFBCanvas::openConnection(KRFBServer server) | 41 | void KRFBCanvas::openConnection(KRFBServer server) |
38 | { | 42 | { |
39 | 43 | ||
40 | 44 | ||
41 | QCString host = server.hostname.latin1(); | 45 | QCString host = server.hostname.latin1(); |
42 | password=server.password; | 46 | password=server.password; |
43 | connection_->connectTo( server); | 47 | connection_->connectTo( server); |
44 | } | 48 | } |
45 | 49 | ||
46 | 50 | ||
47 | void KRFBCanvas::openURL( const QUrl &url ) | 51 | void KRFBCanvas::openURL( const QUrl &url ) |
48 | { | 52 | { |
49 | if ( loggedIn_ ) { | 53 | if ( loggedIn_ ) { |
50 | qWarning( "openURL invoked when logged in\n" ); | 54 | qWarning( "openURL invoked when logged in\n" ); |
51 | return; | 55 | return; |
52 | } | 56 | } |
53 | 57 | ||
@@ -103,77 +107,107 @@ void KRFBCanvas::loggedIn() | |||
103 | void KRFBCanvas::viewportPaintEvent( QPaintEvent *e ) | 107 | void KRFBCanvas::viewportPaintEvent( QPaintEvent *e ) |
104 | { | 108 | { |
105 | QRect r = e->rect(); | 109 | QRect r = e->rect(); |
106 | 110 | ||
107 | if ( loggedIn_ ) { | 111 | if ( loggedIn_ ) { |
108 | QPixmap p; | 112 | QPixmap p; |
109 | 113 | ||
110 | bitBlt( viewport(), r.x(), r.y(), | 114 | bitBlt( viewport(), r.x(), r.y(), |
111 | connection_->buffer()->pixmap(), | 115 | connection_->buffer()->pixmap(), |
112 | r.x() + contentsX(), r.y() + contentsY(), | 116 | r.x() + contentsX(), r.y() + contentsY(), |
113 | r.width(), r.height() ); | 117 | r.width(), r.height() ); |
114 | } | 118 | } |
115 | else { | 119 | else { |
116 | QScrollView::viewportPaintEvent( e ); | 120 | QScrollView::viewportPaintEvent( e ); |
117 | } | 121 | } |
118 | } | 122 | } |
119 | 123 | ||
120 | void KRFBCanvas::viewportUpdate( int x, int y, int w, int h ) | 124 | void KRFBCanvas::viewportUpdate( int x, int y, int w, int h ) |
121 | { | 125 | { |
122 | updateContents( x, y, w, h ); | 126 | updateContents( x, y, w, h ); |
123 | } | 127 | } |
124 | 128 | ||
125 | void KRFBCanvas::contentsMousePressEvent( QMouseEvent *e ) | 129 | void KRFBCanvas::contentsMousePressEvent( QMouseEvent *e ) |
126 | { | 130 | { |
127 | if ( loggedIn_ ) | 131 | |
132 | if (nextDoubleClick) { | ||
133 | connection_->buffer()->mouseEvent( &QMouseEvent(QEvent::MouseButtonPress, e->pos(),LeftButton,LeftButton)); | ||
134 | connection_->buffer()->mouseEvent( &QMouseEvent(QEvent::MouseButtonRelease, e->pos(),LeftButton,0)); | ||
135 | connection_->buffer()->mouseEvent( &QMouseEvent(QEvent::MouseButtonRelease, e->pos(),LeftButton,0)); | ||
136 | connection_->buffer()->mouseEvent( &QMouseEvent(QEvent::MouseButtonPress, e->pos(),NoButton,NoButton)); | ||
137 | connection_->buffer()->mouseEvent( &QMouseEvent(QEvent::MouseButtonRelease, e->pos(),NoButton,0)); | ||
138 | } if (nextRightClick) { | ||
139 | connection_->buffer()->mouseEvent( &QMouseEvent(QEvent::MouseButtonPress, e->pos(),RightButton,RightButton)); | ||
140 | connection_->buffer()->mouseEvent( &QMouseEvent(QEvent::MouseButtonRelease, e->pos(),RightButton,0)); | ||
141 | connection_->buffer()->mouseEvent( &QMouseEvent(QEvent::MouseButtonPress, e->pos(),NoButton,NoButton)); | ||
142 | connection_->buffer()->mouseEvent( &QMouseEvent(QEvent::MouseButtonRelease, e->pos(),NoButton,0)); | ||
143 | } else if ( loggedIn_ ) | ||
128 | connection_->buffer()->mouseEvent( e ); | 144 | connection_->buffer()->mouseEvent( e ); |
145 | |||
146 | qDebug("Press"); | ||
147 | qDebug(QString::number(e->type()==QEvent::MouseButtonPress)); | ||
129 | } | 148 | } |
130 | 149 | ||
131 | void KRFBCanvas::contentsMouseReleaseEvent( QMouseEvent *e ) | 150 | void KRFBCanvas::contentsMouseReleaseEvent( QMouseEvent *e ) |
132 | { | 151 | { |
133 | if ( loggedIn_ ) | 152 | if ( loggedIn_ && !nextRightClick && !nextDoubleClick) { |
134 | connection_->buffer()->mouseEvent( e ); | 153 | connection_->buffer()->mouseEvent( e ); |
135 | } | 154 | } |
136 | 155 | ||
156 | nextRightClick=0; | ||
157 | nextDoubleClick=0; | ||
158 | qDebug("Release"); | ||
159 | qDebug(QString::number(e->button())); | ||
160 | } | ||
161 | |||
137 | void KRFBCanvas::contentsMouseMoveEvent( QMouseEvent *e ) | 162 | void KRFBCanvas::contentsMouseMoveEvent( QMouseEvent *e ) |
138 | { | 163 | { |
139 | if ( loggedIn_ ) | 164 | if ( loggedIn_ ) |
140 | connection_->buffer()->mouseEvent( e ); | 165 | connection_->buffer()->mouseEvent( e ); |
141 | } | 166 | } |
142 | 167 | ||
143 | void KRFBCanvas::keyPressEvent( QKeyEvent *e ) | 168 | void KRFBCanvas::keyPressEvent( QKeyEvent *e ) |
144 | { | 169 | { |
145 | if ( loggedIn_ ) | 170 | if ( loggedIn_ ) |
146 | connection_->buffer()->keyPressEvent( e ); | 171 | connection_->buffer()->keyPressEvent( e ); |
147 | } | 172 | } |
148 | 173 | ||
149 | void KRFBCanvas::keyReleaseEvent( QKeyEvent *e ) | 174 | void KRFBCanvas::keyReleaseEvent( QKeyEvent *e ) |
150 | { | 175 | { |
151 | if ( loggedIn_ ) | 176 | if ( loggedIn_ ) |
152 | connection_->buffer()->keyReleaseEvent( e ); | 177 | connection_->buffer()->keyReleaseEvent( e ); |
153 | } | 178 | } |
154 | 179 | ||
155 | void KRFBCanvas::refresh() | 180 | void KRFBCanvas::refresh() |
156 | { | 181 | { |
157 | if ( loggedIn_ ) | 182 | if ( loggedIn_ ) |
158 | connection_->refresh(); | 183 | connection_->refresh(); |
159 | } | 184 | } |
160 | 185 | ||
161 | void KRFBCanvas::clipboardChanged() | 186 | void KRFBCanvas::clipboardChanged() |
162 | { | 187 | { |
163 | if ( loggedIn_ ) { | 188 | if ( loggedIn_ ) { |
164 | connection_->sendCutText( qApp->clipboard()->text() ); | 189 | connection_->sendCutText( qApp->clipboard()->text() ); |
165 | } | 190 | } |
166 | } | 191 | } |
167 | void KRFBCanvas::sendCtlAltDel( void) | 192 | void KRFBCanvas::sendCtlAltDel( void) |
168 | { | 193 | { |
169 | 194 | ||
170 | qDebug("Here"); | ||
171 | if ( loggedIn_ ) { | 195 | if ( loggedIn_ ) { |
172 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyPress,Qt::Key_Control, 0,0)); | 196 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyPress,Qt::Key_Control, 0,0)); |
173 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyPress,Qt::Key_Alt, 0,0)); | 197 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyPress,Qt::Key_Alt, 0,0)); |
174 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyPress,Qt::Key_Delete, 0,0)); | 198 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyPress,Qt::Key_Delete, 0,0)); |
175 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyRelease,Qt::Key_Control, 0,0)); | 199 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyRelease,Qt::Key_Control, 0,0)); |
176 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyRelease,Qt::Key_Alt, 0,0)); | 200 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyRelease,Qt::Key_Alt, 0,0)); |
177 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyRelease,Qt::Key_Delete, 0,0)); | 201 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyRelease,Qt::Key_Delete, 0,0)); |
178 | } | 202 | } |
179 | } | 203 | } |
204 | |||
205 | void KRFBCanvas::markDoubleClick( void) | ||
206 | { | ||
207 | nextRightClick=1; | ||
208 | } | ||
209 | |||
210 | void KRFBCanvas::markRightClick( void) | ||
211 | { | ||
212 | nextRightClick=1; | ||
213 | } | ||
diff --git a/noncore/comm/keypebble/krfbcanvas.h b/noncore/comm/keypebble/krfbcanvas.h index cd3047c..5c7b949 100644 --- a/noncore/comm/keypebble/krfbcanvas.h +++ b/noncore/comm/keypebble/krfbcanvas.h | |||
@@ -11,46 +11,50 @@ class KRFBServer; | |||
11 | 11 | ||
12 | /** | 12 | /** |
13 | * Displays data from an KRFBDecoder, and sends events to the | 13 | * Displays data from an KRFBDecoder, and sends events to the |
14 | * KRFBConnection. | 14 | * KRFBConnection. |
15 | */ | 15 | */ |
16 | class KRFBCanvas : public QScrollView | 16 | class KRFBCanvas : public QScrollView |
17 | { | 17 | { |
18 | Q_OBJECT | 18 | Q_OBJECT |
19 | public: | 19 | public: |
20 | KRFBCanvas( QWidget *parent, const char *name=0 ); | 20 | KRFBCanvas( QWidget *parent, const char *name=0 ); |
21 | ~KRFBCanvas(); | 21 | ~KRFBCanvas(); |
22 | 22 | ||
23 | void setConnection( KRFBConnection * ); | 23 | void setConnection( KRFBConnection * ); |
24 | KRFBConnection *connection() { return connection_; }; | 24 | KRFBConnection *connection() { return connection_; }; |
25 | 25 | ||
26 | public slots: | 26 | public slots: |
27 | 27 | ||
28 | void openConnection (KRFBServer); | 28 | void openConnection (KRFBServer); |
29 | void openURL( const QUrl & ); | 29 | void openURL( const QUrl & ); |
30 | void closeConnection(); | 30 | void closeConnection(); |
31 | 31 | ||
32 | void refresh(); | 32 | void refresh(); |
33 | void bell(); | 33 | void bell(); |
34 | void sendCtlAltDel(void); | 34 | void sendCtlAltDel(void); |
35 | void markRightClick(void); | ||
36 | void markDoubleClick(void); | ||
35 | 37 | ||
36 | protected: | 38 | protected: |
37 | virtual void keyPressEvent( QKeyEvent * ); | 39 | virtual void keyPressEvent( QKeyEvent * ); |
38 | virtual void keyReleaseEvent( QKeyEvent * ); | 40 | virtual void keyReleaseEvent( QKeyEvent * ); |
39 | virtual void contentsMousePressEvent( QMouseEvent * ); | 41 | virtual void contentsMousePressEvent( QMouseEvent * ); |
40 | virtual void contentsMouseReleaseEvent( QMouseEvent * ); | 42 | virtual void contentsMouseReleaseEvent( QMouseEvent * ); |
41 | virtual void contentsMouseMoveEvent( QMouseEvent * ); | 43 | virtual void contentsMouseMoveEvent( QMouseEvent * ); |
42 | 44 | ||
43 | virtual void viewportPaintEvent( QPaintEvent *e ); | 45 | virtual void viewportPaintEvent( QPaintEvent *e ); |
44 | 46 | ||
45 | protected slots: | 47 | protected slots: |
46 | void loggedIn(); | 48 | void loggedIn(); |
47 | void viewportUpdate( int x, int y, int w, int h ); | 49 | void viewportUpdate( int x, int y, int w, int h ); |
48 | void clipboardChanged(); | 50 | void clipboardChanged(); |
49 | 51 | ||
50 | private: | 52 | private: |
53 | int nextRightClick; | ||
54 | int nextDoubleClick; | ||
51 | KRFBConnection *connection_; | 55 | KRFBConnection *connection_; |
52 | QString password; | 56 | QString password; |
53 | bool loggedIn_; | 57 | bool loggedIn_; |
54 | }; | 58 | }; |
55 | 59 | ||
56 | #endif // KRFBCANVAS_H | 60 | #endif // KRFBCANVAS_H |
diff --git a/noncore/comm/keypebble/kvnc.cpp b/noncore/comm/keypebble/kvnc.cpp index ef57366..abdb1e0 100644 --- a/noncore/comm/keypebble/kvnc.cpp +++ b/noncore/comm/keypebble/kvnc.cpp | |||
@@ -162,48 +162,60 @@ void KVNC::openConnection( QListBoxItem * item) | |||
162 | openConnection(item->text()); | 162 | openConnection(item->text()); |
163 | } | 163 | } |
164 | 164 | ||
165 | void KVNC::setupActions() | 165 | void KVNC::setupActions() |
166 | { | 166 | { |
167 | cornerMenu = new QPopupMenu( this ); | 167 | cornerMenu = new QPopupMenu( this ); |
168 | 168 | ||
169 | fullScreenAction = new QAction( tr("Full Screen"), QString::null, 0, 0 ); | 169 | fullScreenAction = new QAction( tr("Full Screen"), QString::null, 0, 0 ); |
170 | connect( fullScreenAction, SIGNAL(activated()), | 170 | connect( fullScreenAction, SIGNAL(activated()), |
171 | this, SLOT( toggleFullScreen() ) ); | 171 | this, SLOT( toggleFullScreen() ) ); |
172 | fullScreenAction->addTo( cornerMenu ); | 172 | fullScreenAction->addTo( cornerMenu ); |
173 | fullScreenAction->setEnabled( false ); | 173 | fullScreenAction->setEnabled( false ); |
174 | 174 | ||
175 | ctlAltDelAction = new QAction( tr("Send Contrl-Alt-Delete"), QString::null, 0, 0 ); | 175 | ctlAltDelAction = new QAction( tr("Send Contrl-Alt-Delete"), QString::null, 0, 0 ); |
176 | connect( ctlAltDelAction, SIGNAL(activated()), | 176 | connect( ctlAltDelAction, SIGNAL(activated()), |
177 | canvas, SLOT( sendCtlAltDel() ) ); | 177 | canvas, SLOT( sendCtlAltDel() ) ); |
178 | ctlAltDelAction->addTo( cornerMenu ); | 178 | ctlAltDelAction->addTo( cornerMenu ); |
179 | ctlAltDelAction->setEnabled( false ); | 179 | ctlAltDelAction->setEnabled( false ); |
180 | 180 | ||
181 | disconnectAction = new QAction( tr("Disconnect"), QString::null, 0, 0 ); | 181 | disconnectAction = new QAction( tr("Disconnect"), QString::null, 0, 0 ); |
182 | connect( disconnectAction, SIGNAL(activated()), | 182 | connect( disconnectAction, SIGNAL(activated()), |
183 | this, SLOT( closeConnection() ) ); | 183 | this, SLOT( closeConnection() ) ); |
184 | disconnectAction->addTo( cornerMenu ); | 184 | disconnectAction->addTo( cornerMenu ); |
185 | disconnectAction->setEnabled( false ); | 185 | disconnectAction->setEnabled( false ); |
186 | |||
187 | doubleClickAction = new QAction( tr("Next Click is Double Click"), QString::null, 0, 0 ); | ||
188 | connect( doubleClickAction, SIGNAL(activated()), | ||
189 | canvas, SLOT( markDoubleClick() ) ); | ||
190 | doubleClickAction->addTo( cornerMenu ); | ||
191 | doubleClickAction->setEnabled( false ); | ||
192 | |||
193 | rightClickAction = new QAction( tr("Next Click is Right Click"), QString::null, 0, 0 ); | ||
194 | connect( rightClickAction, SIGNAL(activated()), | ||
195 | canvas, SLOT( markRightClick() ) ); | ||
196 | rightClickAction->addTo( cornerMenu ); | ||
197 | rightClickAction->setEnabled( false ); | ||
186 | } | 198 | } |
187 | 199 | ||
188 | void KVNC::toggleFullScreen() | 200 | void KVNC::toggleFullScreen() |
189 | { | 201 | { |
190 | if ( fullscreen ) { | 202 | if ( fullscreen ) { |
191 | canvas->releaseKeyboard(); | 203 | canvas->releaseKeyboard(); |
192 | canvas->reparent( stack, 0, QPoint(0,0), false ); | 204 | canvas->reparent( stack, 0, QPoint(0,0), false ); |
193 | canvas->setFrameStyle( QFrame::Panel | QFrame::Sunken ); | 205 | canvas->setFrameStyle( QFrame::Panel | QFrame::Sunken ); |
194 | setCentralWidget( stack ); | 206 | setCentralWidget( stack ); |
195 | stack->addWidget(canvas,get_unique_id()); | 207 | stack->addWidget(canvas,get_unique_id()); |
196 | stack->raiseWidget(canvas); | 208 | stack->raiseWidget(canvas); |
197 | canvas->show(); | 209 | canvas->show(); |
198 | stack->show(); | 210 | stack->show(); |
199 | fullScreenAction->setText( tr("Full Screen") ); | 211 | fullScreenAction->setText( tr("Full Screen") ); |
200 | } else { | 212 | } else { |
201 | canvas->setFrameStyle( QFrame::NoFrame ); | 213 | canvas->setFrameStyle( QFrame::NoFrame ); |
202 | stack->removeWidget(canvas); | 214 | stack->removeWidget(canvas); |
203 | canvas->reparent( 0,WStyle_Tool | WStyle_Customize | WStyle_StaysOnTop, | 215 | canvas->reparent( 0,WStyle_Tool | WStyle_Customize | WStyle_StaysOnTop, |
204 | QPoint(0,0),false); | 216 | QPoint(0,0),false); |
205 | canvas->resize(qApp->desktop()->width(), qApp->desktop()->height()); | 217 | canvas->resize(qApp->desktop()->width(), qApp->desktop()->height()); |
206 | canvas->raise(); | 218 | canvas->raise(); |
207 | canvas->setFocus(); | 219 | canvas->setFocus(); |
208 | canvas->grabKeyboard(); | 220 | canvas->grabKeyboard(); |
209 | canvas->show(); | 221 | canvas->show(); |
@@ -217,62 +229,66 @@ void KVNC::toggleFullScreen() | |||
217 | 229 | ||
218 | void KVNC::closeConnection() | 230 | void KVNC::closeConnection() |
219 | { | 231 | { |
220 | if ( fullscreen ) | 232 | if ( fullscreen ) |
221 | toggleFullScreen(); | 233 | toggleFullScreen(); |
222 | canvas->closeConnection(); | 234 | canvas->closeConnection(); |
223 | } | 235 | } |
224 | 236 | ||
225 | void KVNC::showMenu() | 237 | void KVNC::showMenu() |
226 | { | 238 | { |
227 | QPoint pt = mapToGlobal(cornerButton->pos()); | 239 | QPoint pt = mapToGlobal(cornerButton->pos()); |
228 | QSize s = cornerMenu->sizeHint(); | 240 | QSize s = cornerMenu->sizeHint(); |
229 | pt.ry() -= s.height(); | 241 | pt.ry() -= s.height(); |
230 | pt.rx() -= s.width(); | 242 | pt.rx() -= s.width(); |
231 | cornerMenu->popup( pt ); | 243 | cornerMenu->popup( pt ); |
232 | } | 244 | } |
233 | 245 | ||
234 | void KVNC::connected() | 246 | void KVNC::connected() |
235 | { | 247 | { |
236 | static QString msg = tr( "Connected to remote host" ); | 248 | static QString msg = tr( "Connected to remote host" ); |
237 | statusMessage( msg ); | 249 | statusMessage( msg ); |
238 | ctlAltDelAction->setEnabled(true); | 250 | ctlAltDelAction->setEnabled(true); |
239 | disconnectAction->setEnabled( true ); | 251 | disconnectAction->setEnabled( true ); |
240 | fullScreenAction->setEnabled( true ); | 252 | fullScreenAction->setEnabled( true ); |
253 | doubleClickAction->setEnabled( false ); | ||
254 | rightClickAction->setEnabled( true ); | ||
241 | stack->raiseWidget(canvas); | 255 | stack->raiseWidget(canvas); |
242 | bar->hide(); | 256 | bar->hide(); |
243 | } | 257 | } |
244 | 258 | ||
245 | void KVNC::loggedIn() | 259 | void KVNC::loggedIn() |
246 | { | 260 | { |
247 | static QString msg = tr( "Logged in to remote host" ); | 261 | static QString msg = tr( "Logged in to remote host" ); |
248 | statusMessage( msg ); | 262 | statusMessage( msg ); |
249 | } | 263 | } |
250 | 264 | ||
251 | void KVNC::disconnected() | 265 | void KVNC::disconnected() |
252 | { | 266 | { |
253 | 267 | ||
254 | if ( fullscreen ) | 268 | if ( fullscreen ) |
255 | toggleFullScreen(); | 269 | toggleFullScreen(); |
256 | static QString msg = tr( "Connection closed" ); | 270 | static QString msg = tr( "Connection closed" ); |
257 | statusMessage( msg ); | 271 | statusMessage( msg ); |
258 | ctlAltDelAction->setEnabled(false); | 272 | ctlAltDelAction->setEnabled(false); |
259 | disconnectAction->setEnabled( false ); | 273 | disconnectAction->setEnabled( false ); |
260 | fullScreenAction->setEnabled( false ); | 274 | fullScreenAction->setEnabled( false ); |
275 | doubleClickAction->setEnabled( false ); | ||
276 | rightClickAction->setEnabled( false ); | ||
261 | stack->raiseWidget(bookmarkSelector); | 277 | stack->raiseWidget(bookmarkSelector); |
262 | bar->show(); | 278 | bar->show(); |
263 | } | 279 | } |
264 | 280 | ||
265 | void KVNC::statusMessage( const QString &m ) | 281 | void KVNC::statusMessage( const QString &m ) |
266 | { | 282 | { |
267 | Global::statusMessage( m ); | 283 | Global::statusMessage( m ); |
268 | } | 284 | } |
269 | 285 | ||
270 | void KVNC::error( const QString &msg ) | 286 | void KVNC::error( const QString &msg ) |
271 | { | 287 | { |
272 | statusMessage( msg ); | 288 | statusMessage( msg ); |
273 | QMessageBox::warning( this, tr("VNC Viewer"), msg ); | 289 | QMessageBox::warning( this, tr("VNC Viewer"), msg ); |
274 | } | 290 | } |
275 | void KVNC::deleteBookmark(void) | 291 | void KVNC::deleteBookmark(void) |
276 | { | 292 | { |
277 | bookmarkSelector->deleteBookmark(bookmarkSelector->selectedBookmark()); | 293 | bookmarkSelector->deleteBookmark(bookmarkSelector->selectedBookmark()); |
278 | } | 294 | } |
diff --git a/noncore/comm/keypebble/kvnc.h b/noncore/comm/keypebble/kvnc.h index 82a24fc..51c7151 100644 --- a/noncore/comm/keypebble/kvnc.h +++ b/noncore/comm/keypebble/kvnc.h | |||
@@ -36,32 +36,34 @@ public slots: | |||
36 | void closeConnection(); | 36 | void closeConnection(); |
37 | 37 | ||
38 | protected: | 38 | protected: |
39 | void setupActions(); | 39 | void setupActions(); |
40 | 40 | ||
41 | protected slots: | 41 | protected slots: |
42 | void showMenu(); | 42 | void showMenu(); |
43 | 43 | ||
44 | void connected(); | 44 | void connected(); |
45 | void loggedIn(); | 45 | void loggedIn(); |
46 | void disconnected(); | 46 | void disconnected(); |
47 | void statusMessage( const QString & ); | 47 | void statusMessage( const QString & ); |
48 | void error( const QString & ); | 48 | void error( const QString & ); |
49 | 49 | ||
50 | private: | 50 | private: |
51 | bool fullscreen; | 51 | bool fullscreen; |
52 | KRFBCanvas *canvas; | 52 | KRFBCanvas *canvas; |
53 | QPopupMenu *cornerMenu; | 53 | QPopupMenu *cornerMenu; |
54 | QPushButton *cornerButton; | 54 | QPushButton *cornerButton; |
55 | QAction *fullScreenAction; | 55 | QAction *fullScreenAction; |
56 | QAction *optionsAction; | 56 | QAction *optionsAction; |
57 | QAction *disconnectAction; | 57 | QAction *disconnectAction; |
58 | QAction *ctlAltDelAction;; | 58 | QAction *ctlAltDelAction;; |
59 | QAction *connectAction; | 59 | QAction *connectAction; |
60 | QAction *rightClickAction; | ||
61 | QAction *doubleClickAction; | ||
60 | QToolBar * bar; | 62 | QToolBar * bar; |
61 | 63 | ||
62 | KVNCBookmarkDlg * bookmarkSelector; | 64 | KVNCBookmarkDlg * bookmarkSelector; |
63 | QWidgetStack * stack; | 65 | QWidgetStack * stack; |
64 | KRFBServer * curServer; | 66 | KRFBServer * curServer; |
65 | }; | 67 | }; |
66 | 68 | ||
67 | #endif // KVNC_H | 69 | #endif // KVNC_H |
diff --git a/noncore/comm/keypebble/kvncbookmarkdlgbase.ui b/noncore/comm/keypebble/kvncbookmarkdlgbase.ui index 69d8a14..4ca4f26 100644 --- a/noncore/comm/keypebble/kvncbookmarkdlgbase.ui +++ b/noncore/comm/keypebble/kvncbookmarkdlgbase.ui | |||
@@ -1,49 +1,52 @@ | |||
1 | <!DOCTYPE UI><UI> | 1 | <!DOCTYPE UI><UI> |
2 | <class>KVNCBookmarkDlgBase</class> | 2 | <class>KVNCBookmarkDlgBase</class> |
3 | <widget> | 3 | <widget> |
4 | <class>QWidget</class> | 4 | <class>QWidget</class> |
5 | <property stdset="1"> | 5 | <property stdset="1"> |
6 | <name>name</name> | 6 | <name>name</name> |
7 | <cstring>KVNCBookmarkDlgBase</cstring> | 7 | <cstring>KVNCBookmarkDlgBase</cstring> |
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>580</width> | 14 | <width>576</width> |
15 | <height>480</height> | 15 | <height>480</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>caption</name> | 19 | <name>caption</name> |
20 | <string>Bookmarks</string> | 20 | <string>Bookmarks</string> |
21 | </property> | 21 | </property> |
22 | <property> | ||
23 | <name>layoutMargin</name> | ||
24 | </property> | ||
22 | <vbox> | 25 | <vbox> |
23 | <property stdset="1"> | 26 | <property stdset="1"> |
24 | <name>margin</name> | 27 | <name>margin</name> |
25 | <number>11</number> | 28 | <number>0</number> |
26 | </property> | 29 | </property> |
27 | <property stdset="1"> | 30 | <property stdset="1"> |
28 | <name>spacing</name> | 31 | <name>spacing</name> |
29 | <number>6</number> | 32 | <number>6</number> |
30 | </property> | 33 | </property> |
31 | <widget> | 34 | <widget> |
32 | <class>QListBox</class> | 35 | <class>QListBox</class> |
33 | <property stdset="1"> | 36 | <property stdset="1"> |
34 | <name>name</name> | 37 | <name>name</name> |
35 | <cstring>bookmarkList</cstring> | 38 | <cstring>bookmarkList</cstring> |
36 | </property> | 39 | </property> |
37 | <property> | 40 | <property> |
38 | <name>whatsThis</name> | 41 | <name>whatsThis</name> |
39 | <string>Choose a bookmark that you would like to open</string> | 42 | <string>Choose a bookmark that you would like to open</string> |
40 | </property> | 43 | </property> |
41 | </widget> | 44 | </widget> |
42 | <widget> | 45 | <widget> |
43 | <class>QLayoutWidget</class> | 46 | <class>QLayoutWidget</class> |
44 | <property stdset="1"> | 47 | <property stdset="1"> |
45 | <name>name</name> | 48 | <name>name</name> |
46 | <cstring>Layout1</cstring> | 49 | <cstring>Layout1</cstring> |
47 | </property> | 50 | </property> |
48 | <hbox> | 51 | <hbox> |
49 | <property stdset="1"> | 52 | <property stdset="1"> |
diff --git a/noncore/comm/keypebble/kvncconndlgbase.ui b/noncore/comm/keypebble/kvncconndlgbase.ui index de3f785..003aad2 100644 --- a/noncore/comm/keypebble/kvncconndlgbase.ui +++ b/noncore/comm/keypebble/kvncconndlgbase.ui | |||
@@ -1,522 +1,566 @@ | |||
1 | <!DOCTYPE UI><UI> | 1 | <!DOCTYPE UI><UI> |
2 | <class>KVNCConnDlgBase</class> | 2 | <class>KVNCConnDlgBase</class> |
3 | <widget> | 3 | <widget> |
4 | <class>QDialog</class> | 4 | <class>QDialog</class> |
5 | <property stdset="1"> | 5 | <property stdset="1"> |
6 | <name>name</name> | 6 | <name>name</name> |
7 | <cstring>KVNCConnDlgBase</cstring> | 7 | <cstring>KVNCConnDlgBase</cstring> |
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>256</width> | 14 | <width>253</width> |
15 | <height>242</height> | 15 | <height>408</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>caption</name> | 19 | <name>caption</name> |
20 | <string>VNC Viewer Connection</string> | 20 | <string>VNC Viewer Connection</string> |
21 | </property> | 21 | </property> |
22 | <property> | 22 | <property> |
23 | <name>layoutMargin</name> | 23 | <name>layoutMargin</name> |
24 | </property> | 24 | </property> |
25 | <widget> | 25 | <grid> |
26 | <property stdset="1"> | ||
27 | <name>margin</name> | ||
28 | <number>11</number> | ||
29 | </property> | ||
30 | <property stdset="1"> | ||
31 | <name>spacing</name> | ||
32 | <number>6</number> | ||
33 | </property> | ||
34 | <widget row="0" column="0" > | ||
26 | <class>QTabWidget</class> | 35 | <class>QTabWidget</class> |
27 | <property stdset="1"> | 36 | <property stdset="1"> |
28 | <name>name</name> | 37 | <name>name</name> |
29 | <cstring>TabWidget3</cstring> | 38 | <cstring>TabWidget3</cstring> |
30 | </property> | 39 | </property> |
31 | <property stdset="1"> | ||
32 | <name>geometry</name> | ||
33 | <rect> | ||
34 | <x>0</x> | ||
35 | <y>0</y> | ||
36 | <width>266</width> | ||
37 | <height>233</height> | ||
38 | </rect> | ||
39 | </property> | ||
40 | <widget> | 40 | <widget> |
41 | <class>QWidget</class> | 41 | <class>QWidget</class> |
42 | <property stdset="1"> | 42 | <property stdset="1"> |
43 | <name>name</name> | 43 | <name>name</name> |
44 | <cstring>tab</cstring> | 44 | <cstring>tab</cstring> |
45 | </property> | 45 | </property> |
46 | <attribute> | 46 | <attribute> |
47 | <name>title</name> | 47 | <name>title</name> |
48 | <string>Server</string> | 48 | <string>Server</string> |
49 | </attribute> | 49 | </attribute> |
50 | <grid> | 50 | <grid> |
51 | <property stdset="1"> | 51 | <property stdset="1"> |
52 | <name>margin</name> | 52 | <name>margin</name> |
53 | <number>11</number> | 53 | <number>11</number> |
54 | </property> | 54 | </property> |
55 | <property stdset="1"> | 55 | <property stdset="1"> |
56 | <name>spacing</name> | 56 | <name>spacing</name> |
57 | <number>6</number> | 57 | <number>6</number> |
58 | </property> | 58 | </property> |
59 | <widget row="2" column="1" rowspan="1" colspan="2" > | 59 | <widget row="2" column="1" > |
60 | <class>QLineEdit</class> | 60 | <class>QLineEdit</class> |
61 | <property stdset="1"> | 61 | <property stdset="1"> |
62 | <name>name</name> | 62 | <name>name</name> |
63 | <cstring>serverPassword</cstring> | 63 | <cstring>serverPassword</cstring> |
64 | </property> | 64 | </property> |
65 | <property stdset="1"> | 65 | <property stdset="1"> |
66 | <name>autoMask</name> | 66 | <name>autoMask</name> |
67 | <bool>true</bool> | 67 | <bool>true</bool> |
68 | </property> | 68 | </property> |
69 | <property stdset="1"> | 69 | <property stdset="1"> |
70 | <name>echoMode</name> | 70 | <name>echoMode</name> |
71 | <enum>Password</enum> | 71 | <enum>Password</enum> |
72 | </property> | 72 | </property> |
73 | <property> | 73 | <property> |
74 | <name>whatsThis</name> | 74 | <name>whatsThis</name> |
75 | <string>The password of the VNC server</string> | 75 | <string>The password of the VNC server</string> |
76 | </property> | 76 | </property> |
77 | </widget> | 77 | </widget> |
78 | <widget row="3" column="1" > | 78 | <widget row="3" column="1" > |
79 | <class>QCheckBox</class> | 79 | <class>QCheckBox</class> |
80 | <property stdset="1"> | 80 | <property stdset="1"> |
81 | <name>name</name> | 81 | <name>name</name> |
82 | <cstring>togglePassword</cstring> | 82 | <cstring>togglePassword</cstring> |
83 | </property> | 83 | </property> |
84 | <property stdset="1"> | 84 | <property stdset="1"> |
85 | <name>sizePolicy</name> | ||
86 | <sizepolicy> | ||
87 | <hsizetype>7</hsizetype> | ||
88 | <vsizetype>0</vsizetype> | ||
89 | </sizepolicy> | ||
90 | </property> | ||
91 | <property stdset="1"> | ||
85 | <name>text</name> | 92 | <name>text</name> |
86 | <string>Show Password</string> | 93 | <string>Show Password</string> |
87 | </property> | 94 | </property> |
88 | <property> | 95 | <property> |
89 | <name>whatsThis</name> | 96 | <name>whatsThis</name> |
90 | <string>Toggle obscuring the password</string> | 97 | <string>Toggle obscuring the password</string> |
91 | </property> | 98 | </property> |
92 | </widget> | 99 | </widget> |
93 | <widget row="2" column="0" > | 100 | <widget row="2" column="0" > |
94 | <class>QLabel</class> | 101 | <class>QLabel</class> |
95 | <property stdset="1"> | 102 | <property stdset="1"> |
96 | <name>name</name> | 103 | <name>name</name> |
97 | <cstring>TextLabel3</cstring> | 104 | <cstring>TextLabel3</cstring> |
98 | </property> | 105 | </property> |
99 | <property stdset="1"> | 106 | <property stdset="1"> |
100 | <name>text</name> | 107 | <name>text</name> |
101 | <string>Password:</string> | 108 | <string>Password:</string> |
102 | </property> | 109 | </property> |
103 | </widget> | 110 | </widget> |
104 | <widget row="4" column="1" rowspan="1" colspan="2" > | 111 | <widget row="4" column="1" > |
105 | <class>QLineEdit</class> | 112 | <class>QLineEdit</class> |
106 | <property stdset="1"> | 113 | <property stdset="1"> |
107 | <name>name</name> | 114 | <name>name</name> |
108 | <cstring>serverBookmark</cstring> | 115 | <cstring>serverBookmark</cstring> |
109 | </property> | 116 | </property> |
110 | <property> | 117 | <property> |
111 | <name>whatsThis</name> | 118 | <name>whatsThis</name> |
112 | <string>The name of the VNC server</string> | 119 | <string>The name of the VNC server</string> |
113 | </property> | 120 | </property> |
114 | </widget> | 121 | </widget> |
115 | <widget row="4" column="0" > | 122 | <widget row="4" column="0" > |
116 | <class>QLabel</class> | 123 | <class>QLabel</class> |
117 | <property stdset="1"> | 124 | <property stdset="1"> |
118 | <name>name</name> | 125 | <name>name</name> |
119 | <cstring>TextLabel1_2</cstring> | 126 | <cstring>TextLabel1_2</cstring> |
120 | </property> | 127 | </property> |
121 | <property stdset="1"> | 128 | <property stdset="1"> |
122 | <name>text</name> | 129 | <name>text</name> |
123 | <string>Bookmark Name:</string> | 130 | <string>Bookmark Name:</string> |
124 | </property> | 131 | </property> |
125 | </widget> | 132 | </widget> |
126 | <widget row="0" column="1" rowspan="1" colspan="2" > | 133 | <widget row="0" column="1" > |
127 | <class>QLineEdit</class> | 134 | <class>QLineEdit</class> |
128 | <property stdset="1"> | 135 | <property stdset="1"> |
129 | <name>name</name> | 136 | <name>name</name> |
130 | <cstring>serverHostname</cstring> | 137 | <cstring>serverHostname</cstring> |
131 | </property> | 138 | </property> |
132 | <property> | 139 | <property> |
133 | <name>whatsThis</name> | 140 | <name>whatsThis</name> |
134 | <string>The host name of the VNC server</string> | 141 | <string>The host name of the VNC server</string> |
135 | </property> | 142 | </property> |
136 | </widget> | 143 | </widget> |
137 | <widget row="0" column="0" > | 144 | <widget row="0" column="0" > |
138 | <class>QLabel</class> | 145 | <class>QLabel</class> |
139 | <property stdset="1"> | 146 | <property stdset="1"> |
140 | <name>name</name> | 147 | <name>name</name> |
141 | <cstring>hostname</cstring> | 148 | <cstring>hostname</cstring> |
142 | </property> | 149 | </property> |
143 | <property stdset="1"> | 150 | <property stdset="1"> |
144 | <name>text</name> | 151 | <name>text</name> |
145 | <string>Host Name:</string> | 152 | <string>Host Name:</string> |
146 | </property> | 153 | </property> |
147 | </widget> | 154 | </widget> |
148 | <widget row="1" column="0" > | 155 | <widget row="1" column="0" > |
149 | <class>QLabel</class> | 156 | <class>QLabel</class> |
150 | <property stdset="1"> | 157 | <property stdset="1"> |
151 | <name>name</name> | 158 | <name>name</name> |
152 | <cstring>TextLabel2_2</cstring> | 159 | <cstring>TextLabel2_2</cstring> |
153 | </property> | 160 | </property> |
154 | <property stdset="1"> | 161 | <property stdset="1"> |
155 | <name>text</name> | 162 | <name>text</name> |
156 | <string>Display Number:</string> | 163 | <string>Display Number:</string> |
157 | </property> | 164 | </property> |
158 | </widget> | 165 | </widget> |
159 | <widget row="1" column="1" rowspan="1" colspan="2" > | 166 | <widget row="1" column="1" > |
160 | <class>QSpinBox</class> | 167 | <class>QSpinBox</class> |
161 | <property stdset="1"> | 168 | <property stdset="1"> |
162 | <name>name</name> | 169 | <name>name</name> |
163 | <cstring>serverDisplay</cstring> | 170 | <cstring>serverDisplay</cstring> |
164 | </property> | 171 | </property> |
165 | <property stdset="1"> | 172 | <property stdset="1"> |
173 | <name>sizePolicy</name> | ||
174 | <sizepolicy> | ||
175 | <hsizetype>7</hsizetype> | ||
176 | <vsizetype>0</vsizetype> | ||
177 | </sizepolicy> | ||
178 | </property> | ||
179 | <property stdset="1"> | ||
166 | <name>maxValue</name> | 180 | <name>maxValue</name> |
167 | <number>500</number> | 181 | <number>500</number> |
168 | </property> | 182 | </property> |
169 | <property stdset="1"> | 183 | <property stdset="1"> |
170 | <name>minValue</name> | 184 | <name>minValue</name> |
171 | <number>0</number> | 185 | <number>0</number> |
172 | </property> | 186 | </property> |
173 | <property stdset="1"> | 187 | <property stdset="1"> |
174 | <name>value</name> | 188 | <name>value</name> |
175 | <number>0</number> | 189 | <number>0</number> |
176 | </property> | 190 | </property> |
177 | <property> | 191 | <property> |
178 | <name>whatsThis</name> | 192 | <name>whatsThis</name> |
179 | <string>The display number of the VNC server</string> | 193 | <string>The display number of the VNC server</string> |
180 | </property> | 194 | </property> |
181 | </widget> | 195 | </widget> |
182 | <spacer row="5" column="2" > | 196 | <spacer row="5" column="0" > |
183 | <property> | 197 | <property> |
184 | <name>name</name> | 198 | <name>name</name> |
185 | <cstring>Spacer2</cstring> | 199 | <cstring>Spacer4</cstring> |
186 | </property> | 200 | </property> |
187 | <property stdset="1"> | 201 | <property stdset="1"> |
188 | <name>orientation</name> | 202 | <name>orientation</name> |
189 | <enum>Vertical</enum> | 203 | <enum>Vertical</enum> |
190 | </property> | 204 | </property> |
191 | <property stdset="1"> | 205 | <property stdset="1"> |
192 | <name>sizeType</name> | 206 | <name>sizeType</name> |
193 | <enum>Expanding</enum> | 207 | <enum>Expanding</enum> |
194 | </property> | 208 | </property> |
195 | <property> | 209 | <property> |
196 | <name>sizeHint</name> | 210 | <name>sizeHint</name> |
197 | <size> | 211 | <size> |
198 | <width>20</width> | 212 | <width>20</width> |
199 | <height>20</height> | 213 | <height>20</height> |
200 | </size> | 214 | </size> |
201 | </property> | 215 | </property> |
202 | </spacer> | 216 | </spacer> |
203 | </grid> | 217 | </grid> |
204 | </widget> | 218 | </widget> |
205 | <widget> | 219 | <widget> |
206 | <class>QWidget</class> | 220 | <class>QWidget</class> |
207 | <property stdset="1"> | 221 | <property stdset="1"> |
208 | <name>name</name> | 222 | <name>name</name> |
209 | <cstring>tab</cstring> | 223 | <cstring>tab</cstring> |
210 | </property> | 224 | </property> |
211 | <attribute> | 225 | <attribute> |
212 | <name>title</name> | 226 | <name>title</name> |
213 | <string>Options</string> | 227 | <string>Options</string> |
214 | </attribute> | 228 | </attribute> |
215 | <vbox> | 229 | <grid> |
216 | <property stdset="1"> | 230 | <property stdset="1"> |
217 | <name>margin</name> | 231 | <name>margin</name> |
218 | <number>11</number> | 232 | <number>11</number> |
219 | </property> | 233 | </property> |
220 | <property stdset="1"> | 234 | <property stdset="1"> |
221 | <name>spacing</name> | 235 | <name>spacing</name> |
222 | <number>6</number> | 236 | <number>6</number> |
223 | </property> | 237 | </property> |
224 | <widget> | 238 | <widget row="4" column="0" rowspan="1" colspan="3" > |
225 | <class>QLabel</class> | 239 | <class>QCheckBox</class> |
226 | <property stdset="1"> | 240 | <property stdset="1"> |
227 | <name>name</name> | 241 | <name>name</name> |
228 | <cstring>TextLabel1</cstring> | 242 | <cstring>shared</cstring> |
229 | </property> | ||
230 | <property stdset="1"> | ||
231 | <name>text</name> | ||
232 | <string>Check for screen updates every:</string> | ||
233 | </property> | 243 | </property> |
234 | </widget> | ||
235 | <widget> | ||
236 | <class>QLayoutWidget</class> | ||
237 | <property stdset="1"> | 244 | <property stdset="1"> |
238 | <name>name</name> | 245 | <name>sizePolicy</name> |
239 | <cstring>Layout2</cstring> | 246 | <sizepolicy> |
247 | <hsizetype>7</hsizetype> | ||
248 | <vsizetype>0</vsizetype> | ||
249 | </sizepolicy> | ||
240 | </property> | 250 | </property> |
241 | <hbox> | ||
242 | <property stdset="1"> | 251 | <property stdset="1"> |
243 | <name>margin</name> | 252 | <name>text</name> |
244 | <number>0</number> | 253 | <string>Request shared session</string> |
245 | </property> | 254 | </property> |
246 | <property stdset="1"> | 255 | <property> |
247 | <name>spacing</name> | 256 | <name>whatsThis</name> |
248 | <number>6</number> | 257 | <string>Allow other users to connect to the VNC server</string> |
249 | </property> | 258 | </property> |
250 | <widget> | 259 | </widget> |
251 | <class>QSpinBox</class> | 260 | <spacer row="6" column="1" > |
252 | <property stdset="1"> | 261 | <property> |
253 | <name>name</name> | 262 | <name>name</name> |
254 | <cstring>timeBox</cstring> | 263 | <cstring>Spacer2</cstring> |
255 | </property> | 264 | </property> |
256 | <property stdset="1"> | 265 | <property stdset="1"> |
257 | <name>maxValue</name> | 266 | <name>orientation</name> |
258 | <number>500</number> | 267 | <enum>Vertical</enum> |
259 | </property> | 268 | </property> |
260 | <property stdset="1"> | 269 | <property stdset="1"> |
261 | <name>minValue</name> | 270 | <name>sizeType</name> |
262 | <number>1</number> | 271 | <enum>Expanding</enum> |
263 | </property> | 272 | </property> |
264 | <property> | 273 | <property> |
265 | <name>whatsThis</name> | 274 | <name>sizeHint</name> |
266 | <string>Delay between requesting updates from the server</string> | 275 | <size> |
267 | </property> | 276 | <width>20</width> |
268 | </widget> | 277 | <height>20</height> |
269 | <widget> | 278 | </size> |
270 | <class>QLabel</class> | ||
271 | <property stdset="1"> | ||
272 | <name>name</name> | ||
273 | <cstring>TextLabel2</cstring> | ||
274 | </property> | ||
275 | <property stdset="1"> | ||
276 | <name>text</name> | ||
277 | <string>Milliseconds</string> | ||
278 | </property> | 279 | </property> |
279 | </widget> | 280 | </spacer> |
280 | </hbox> | 281 | <widget row="2" column="0" rowspan="1" colspan="3" > |
281 | </widget> | ||
282 | <widget> | ||
283 | <class>QCheckBox</class> | 282 | <class>QCheckBox</class> |
284 | <property stdset="1"> | 283 | <property stdset="1"> |
285 | <name>name</name> | 284 | <name>name</name> |
286 | <cstring>bit</cstring> | 285 | <cstring>bit</cstring> |
287 | </property> | 286 | </property> |
288 | <property stdset="1"> | 287 | <property stdset="1"> |
288 | <name>sizePolicy</name> | ||
289 | <sizepolicy> | ||
290 | <hsizetype>7</hsizetype> | ||
291 | <vsizetype>0</vsizetype> | ||
292 | </sizepolicy> | ||
293 | </property> | ||
294 | <property stdset="1"> | ||
289 | <name>text</name> | 295 | <name>text</name> |
290 | <string>Request 8-bit session</string> | 296 | <string>Request 8-bit session</string> |
291 | </property> | 297 | </property> |
292 | <property> | 298 | <property> |
293 | <name>whatsThis</name> | 299 | <name>whatsThis</name> |
294 | <string>Request that the VNC server transfer 8 bit color</string> | 300 | <string>Request that the VNC server transfer 8 bit color</string> |
295 | </property> | 301 | </property> |
296 | </widget> | 302 | </widget> |
297 | <widget> | 303 | <widget row="1" column="0" rowspan="1" colspan="2" > |
298 | <class>QCheckBox</class> | 304 | <class>QSpinBox</class> |
299 | <property stdset="1"> | 305 | <property stdset="1"> |
300 | <name>name</name> | 306 | <name>name</name> |
301 | <cstring>deIconify</cstring> | 307 | <cstring>timeBox</cstring> |
302 | </property> | 308 | </property> |
303 | <property stdset="1"> | 309 | <property stdset="1"> |
304 | <name>text</name> | 310 | <name>sizePolicy</name> |
305 | <string>Raise on bell</string> | 311 | <sizepolicy> |
312 | <hsizetype>7</hsizetype> | ||
313 | <vsizetype>0</vsizetype> | ||
314 | </sizepolicy> | ||
306 | </property> | 315 | </property> |
307 | </widget> | ||
308 | <widget> | ||
309 | <class>QCheckBox</class> | ||
310 | <property stdset="1"> | 316 | <property stdset="1"> |
311 | <name>name</name> | 317 | <name>maxValue</name> |
312 | <cstring>shared</cstring> | 318 | <number>500</number> |
313 | </property> | 319 | </property> |
314 | <property stdset="1"> | 320 | <property stdset="1"> |
315 | <name>text</name> | 321 | <name>minValue</name> |
316 | <string>Request shared session</string> | 322 | <number>1</number> |
317 | </property> | 323 | </property> |
318 | <property> | 324 | <property> |
319 | <name>whatsThis</name> | 325 | <name>whatsThis</name> |
320 | <string>Allow other users to connect to the VNC server</string> | 326 | <string>Delay between requesting updates from the server</string> |
321 | </property> | 327 | </property> |
322 | </widget> | 328 | </widget> |
323 | <widget> | 329 | <widget row="5" column="0" > |
324 | <class>QLayoutWidget</class> | ||
325 | <property stdset="1"> | ||
326 | <name>name</name> | ||
327 | <cstring>Layout3</cstring> | ||
328 | </property> | ||
329 | <hbox> | ||
330 | <property stdset="1"> | ||
331 | <name>margin</name> | ||
332 | <number>0</number> | ||
333 | </property> | ||
334 | <property stdset="1"> | ||
335 | <name>spacing</name> | ||
336 | <number>6</number> | ||
337 | </property> | ||
338 | <widget> | ||
339 | <class>QComboBox</class> | 330 | <class>QComboBox</class> |
340 | <item> | 331 | <item> |
341 | <property> | 332 | <property> |
342 | <name>text</name> | 333 | <name>text</name> |
343 | <string>1</string> | 334 | <string>1</string> |
344 | </property> | 335 | </property> |
345 | </item> | 336 | </item> |
346 | <item> | 337 | <item> |
347 | <property> | 338 | <property> |
348 | <name>text</name> | 339 | <name>text</name> |
349 | <string>2</string> | 340 | <string>2</string> |
350 | </property> | 341 | </property> |
351 | </item> | 342 | </item> |
352 | <item> | 343 | <item> |
353 | <property> | 344 | <property> |
354 | <name>text</name> | 345 | <name>text</name> |
355 | <string>4</string> | 346 | <string>4</string> |
356 | </property> | 347 | </property> |
357 | </item> | 348 | </item> |
358 | <property stdset="1"> | 349 | <property stdset="1"> |
359 | <name>name</name> | 350 | <name>name</name> |
360 | <cstring>scaleFactor</cstring> | 351 | <cstring>scaleFactor</cstring> |
361 | </property> | 352 | </property> |
353 | <property stdset="1"> | ||
354 | <name>sizePolicy</name> | ||
355 | <sizepolicy> | ||
356 | <hsizetype>7</hsizetype> | ||
357 | <vsizetype>0</vsizetype> | ||
358 | </sizepolicy> | ||
359 | </property> | ||
362 | <property> | 360 | <property> |
363 | <name>whatsThis</name> | 361 | <name>whatsThis</name> |
364 | <string>Scale the remote display to fit on the PDA (Slow)</string> | 362 | <string>Scale the remote display to fit on the PDA (Slow)</string> |
365 | </property> | 363 | </property> |
366 | </widget> | 364 | </widget> |
367 | <widget> | 365 | <widget row="5" column="1" rowspan="1" colspan="2" > |
368 | <class>QLabel</class> | 366 | <class>QLabel</class> |
369 | <property stdset="1"> | 367 | <property stdset="1"> |
370 | <name>name</name> | 368 | <name>name</name> |
371 | <cstring>TextLabel2_3</cstring> | 369 | <cstring>TextLabel2_3</cstring> |
372 | </property> | 370 | </property> |
373 | <property stdset="1"> | 371 | <property stdset="1"> |
374 | <name>text</name> | 372 | <name>text</name> |
375 | <string>Scale Factor</string> | 373 | <string>Scale Factor</string> |
376 | </property> | 374 | </property> |
377 | </widget> | 375 | </widget> |
378 | </hbox> | 376 | <widget row="1" column="2" > |
377 | <class>QLabel</class> | ||
378 | <property stdset="1"> | ||
379 | <name>name</name> | ||
380 | <cstring>TextLabel2</cstring> | ||
381 | </property> | ||
382 | <property stdset="1"> | ||
383 | <name>text</name> | ||
384 | <string>Milliseconds</string> | ||
385 | </property> | ||
379 | </widget> | 386 | </widget> |
380 | <spacer> | 387 | <widget row="3" column="0" rowspan="1" colspan="3" > |
381 | <property> | 388 | <class>QCheckBox</class> |
389 | <property stdset="1"> | ||
382 | <name>name</name> | 390 | <name>name</name> |
383 | <cstring>Spacer2</cstring> | 391 | <cstring>deIconify</cstring> |
384 | </property> | 392 | </property> |
385 | <property stdset="1"> | 393 | <property stdset="1"> |
386 | <name>orientation</name> | 394 | <name>sizePolicy</name> |
387 | <enum>Vertical</enum> | 395 | <sizepolicy> |
396 | <hsizetype>7</hsizetype> | ||
397 | <vsizetype>0</vsizetype> | ||
398 | </sizepolicy> | ||
388 | </property> | 399 | </property> |
389 | <property stdset="1"> | 400 | <property stdset="1"> |
390 | <name>sizeType</name> | 401 | <name>text</name> |
391 | <enum>Expanding</enum> | 402 | <string>Raise on bell</string> |
392 | </property> | 403 | </property> |
393 | <property> | 404 | </widget> |
394 | <name>sizeHint</name> | 405 | <widget row="0" column="0" rowspan="1" colspan="3" > |
395 | <size> | 406 | <class>QLabel</class> |
396 | <width>20</width> | 407 | <property stdset="1"> |
397 | <height>20</height> | 408 | <name>name</name> |
398 | </size> | 409 | <cstring>TextLabel1</cstring> |
399 | </property> | 410 | </property> |
400 | </spacer> | 411 | <property stdset="1"> |
401 | </vbox> | 412 | <name>text</name> |
413 | <string>Check for screen updates every:</string> | ||
414 | </property> | ||
415 | </widget> | ||
416 | </grid> | ||
402 | </widget> | 417 | </widget> |
403 | <widget> | 418 | <widget> |
404 | <class>QWidget</class> | 419 | <class>QWidget</class> |
405 | <property stdset="1"> | 420 | <property stdset="1"> |
406 | <name>name</name> | 421 | <name>name</name> |
407 | <cstring>tab</cstring> | 422 | <cstring>tab</cstring> |
408 | </property> | 423 | </property> |
409 | <attribute> | 424 | <attribute> |
410 | <name>title</name> | 425 | <name>title</name> |
411 | <string>Encodings</string> | 426 | <string>Encodings</string> |
412 | </attribute> | 427 | </attribute> |
413 | <vbox> | 428 | <grid> |
414 | <property stdset="1"> | 429 | <property stdset="1"> |
415 | <name>margin</name> | 430 | <name>margin</name> |
416 | <number>11</number> | 431 | <number>11</number> |
417 | </property> | 432 | </property> |
418 | <property stdset="1"> | 433 | <property stdset="1"> |
419 | <name>spacing</name> | 434 | <name>spacing</name> |
420 | <number>6</number> | 435 | <number>6</number> |
421 | </property> | 436 | </property> |
422 | <widget> | 437 | <spacer row="4" column="1" > |
438 | <property> | ||
439 | <name>name</name> | ||
440 | <cstring>Spacer3</cstring> | ||
441 | </property> | ||
442 | <property stdset="1"> | ||
443 | <name>orientation</name> | ||
444 | <enum>Vertical</enum> | ||
445 | </property> | ||
446 | <property stdset="1"> | ||
447 | <name>sizeType</name> | ||
448 | <enum>Expanding</enum> | ||
449 | </property> | ||
450 | <property> | ||
451 | <name>sizeHint</name> | ||
452 | <size> | ||
453 | <width>20</width> | ||
454 | <height>20</height> | ||
455 | </size> | ||
456 | </property> | ||
457 | </spacer> | ||
458 | <widget row="0" column="0" rowspan="1" colspan="2" > | ||
423 | <class>QCheckBox</class> | 459 | <class>QCheckBox</class> |
424 | <property stdset="1"> | 460 | <property stdset="1"> |
425 | <name>name</name> | 461 | <name>name</name> |
426 | <cstring>hex</cstring> | 462 | <cstring>hex</cstring> |
427 | </property> | 463 | </property> |
428 | <property stdset="1"> | 464 | <property stdset="1"> |
429 | <name>enabled</name> | 465 | <name>enabled</name> |
430 | <bool>false</bool> | 466 | <bool>false</bool> |
431 | </property> | 467 | </property> |
432 | <property stdset="1"> | 468 | <property stdset="1"> |
469 | <name>sizePolicy</name> | ||
470 | <sizepolicy> | ||
471 | <hsizetype>7</hsizetype> | ||
472 | <vsizetype>0</vsizetype> | ||
473 | </sizepolicy> | ||
474 | </property> | ||
475 | <property stdset="1"> | ||
433 | <name>text</name> | 476 | <name>text</name> |
434 | <string>Hextile encoding</string> | 477 | <string>Hextile encoding</string> |
435 | </property> | 478 | </property> |
436 | </widget> | 479 | </widget> |
437 | <widget> | 480 | <widget row="1" column="0" rowspan="1" colspan="2" > |
438 | <class>QCheckBox</class> | 481 | <class>QCheckBox</class> |
439 | <property stdset="1"> | 482 | <property stdset="1"> |
440 | <name>name</name> | 483 | <name>name</name> |
441 | <cstring>corre</cstring> | 484 | <cstring>corre</cstring> |
442 | </property> | 485 | </property> |
443 | <property stdset="1"> | 486 | <property stdset="1"> |
444 | <name>enabled</name> | 487 | <name>enabled</name> |
445 | <bool>false</bool> | 488 | <bool>false</bool> |
446 | </property> | 489 | </property> |
447 | <property stdset="1"> | 490 | <property stdset="1"> |
491 | <name>sizePolicy</name> | ||
492 | <sizepolicy> | ||
493 | <hsizetype>7</hsizetype> | ||
494 | <vsizetype>0</vsizetype> | ||
495 | </sizepolicy> | ||
496 | </property> | ||
497 | <property stdset="1"> | ||
448 | <name>text</name> | 498 | <name>text</name> |
449 | <string>CoRRE encoding</string> | 499 | <string>CoRRE encoding</string> |
450 | </property> | 500 | </property> |
451 | </widget> | 501 | </widget> |
452 | <widget> | 502 | <widget row="2" column="0" > |
453 | <class>QCheckBox</class> | 503 | <class>QCheckBox</class> |
454 | <property stdset="1"> | 504 | <property stdset="1"> |
455 | <name>name</name> | 505 | <name>name</name> |
456 | <cstring>rre</cstring> | 506 | <cstring>rre</cstring> |
457 | </property> | 507 | </property> |
458 | <property stdset="1"> | 508 | <property stdset="1"> |
459 | <name>enabled</name> | 509 | <name>enabled</name> |
460 | <bool>false</bool> | 510 | <bool>false</bool> |
461 | </property> | 511 | </property> |
462 | <property stdset="1"> | 512 | <property stdset="1"> |
513 | <name>sizePolicy</name> | ||
514 | <sizepolicy> | ||
515 | <hsizetype>7</hsizetype> | ||
516 | <vsizetype>0</vsizetype> | ||
517 | </sizepolicy> | ||
518 | </property> | ||
519 | <property stdset="1"> | ||
463 | <name>text</name> | 520 | <name>text</name> |
464 | <string>RRE encoding</string> | 521 | <string>RRE encoding</string> |
465 | </property> | 522 | </property> |
466 | </widget> | 523 | </widget> |
467 | <widget> | 524 | <widget row="3" column="0" rowspan="1" colspan="2" > |
468 | <class>QCheckBox</class> | 525 | <class>QCheckBox</class> |
469 | <property stdset="1"> | 526 | <property stdset="1"> |
470 | <name>name</name> | 527 | <name>name</name> |
471 | <cstring>copyRect</cstring> | 528 | <cstring>copyRect</cstring> |
472 | </property> | 529 | </property> |
473 | <property stdset="1"> | 530 | <property stdset="1"> |
531 | <name>sizePolicy</name> | ||
532 | <sizepolicy> | ||
533 | <hsizetype>7</hsizetype> | ||
534 | <vsizetype>0</vsizetype> | ||
535 | </sizepolicy> | ||
536 | </property> | ||
537 | <property stdset="1"> | ||
474 | <name>text</name> | 538 | <name>text</name> |
475 | <string>Copy rectangle encoding</string> | 539 | <string>Copy rectangle encoding</string> |
476 | </property> | 540 | </property> |
477 | <property> | 541 | <property> |
478 | <name>whatsThis</name> | 542 | <name>whatsThis</name> |
479 | <string>Enable transmiting identical rectangles as references to existing data</string> | 543 | <string>Enable transmiting identical rectangles as references to existing data</string> |
480 | </property> | 544 | </property> |
481 | </widget> | 545 | </widget> |
482 | <spacer> | 546 | </grid> |
483 | <property> | ||
484 | <name>name</name> | ||
485 | <cstring>Spacer3</cstring> | ||
486 | </property> | ||
487 | <property stdset="1"> | ||
488 | <name>orientation</name> | ||
489 | <enum>Vertical</enum> | ||
490 | </property> | ||
491 | <property stdset="1"> | ||
492 | <name>sizeType</name> | ||
493 | <enum>Expanding</enum> | ||
494 | </property> | ||
495 | <property> | ||
496 | <name>sizeHint</name> | ||
497 | <size> | ||
498 | <width>20</width> | ||
499 | <height>20</height> | ||
500 | </size> | ||
501 | </property> | ||
502 | </spacer> | ||
503 | </vbox> | ||
504 | </widget> | 547 | </widget> |
505 | </widget> | 548 | </widget> |
549 | </grid> | ||
506 | </widget> | 550 | </widget> |
507 | <tabstops> | 551 | <tabstops> |
508 | <tabstop>TabWidget3</tabstop> | 552 | <tabstop>TabWidget3</tabstop> |
509 | <tabstop>serverHostname</tabstop> | 553 | <tabstop>serverHostname</tabstop> |
510 | <tabstop>serverDisplay</tabstop> | 554 | <tabstop>serverDisplay</tabstop> |
511 | <tabstop>serverPassword</tabstop> | 555 | <tabstop>serverPassword</tabstop> |
512 | <tabstop>serverBookmark</tabstop> | 556 | <tabstop>serverBookmark</tabstop> |
513 | <tabstop>timeBox</tabstop> | 557 | <tabstop>timeBox</tabstop> |
514 | <tabstop>bit</tabstop> | 558 | <tabstop>bit</tabstop> |
515 | <tabstop>deIconify</tabstop> | 559 | <tabstop>deIconify</tabstop> |
516 | <tabstop>shared</tabstop> | 560 | <tabstop>shared</tabstop> |
517 | <tabstop>hex</tabstop> | 561 | <tabstop>hex</tabstop> |
518 | <tabstop>corre</tabstop> | 562 | <tabstop>corre</tabstop> |
519 | <tabstop>rre</tabstop> | 563 | <tabstop>rre</tabstop> |
520 | <tabstop>copyRect</tabstop> | 564 | <tabstop>copyRect</tabstop> |
521 | </tabstops> | 565 | </tabstops> |
522 | </UI> | 566 | </UI> |