-rw-r--r-- | noncore/comm/keypebble/kvnc.cpp | 4 | ||||
-rw-r--r-- | noncore/comm/keypebble/kvncbookmarkdlgbase.ui | 6 | ||||
-rw-r--r-- | noncore/comm/keypebble/kvncconndlg.cpp | 2 | ||||
-rw-r--r-- | noncore/comm/keypebble/kvncconndlgbase.ui | 42 |
4 files changed, 49 insertions, 5 deletions
diff --git a/noncore/comm/keypebble/kvnc.cpp b/noncore/comm/keypebble/kvnc.cpp index b173004..ef57366 100644 --- a/noncore/comm/keypebble/kvnc.cpp +++ b/noncore/comm/keypebble/kvnc.cpp | |||
@@ -1,278 +1,278 @@ | |||
1 | #include <qiconset.h> | 1 | #include <qiconset.h> |
2 | #include <qdialog.h> | 2 | #include <qdialog.h> |
3 | #include <qpixmap.h> | 3 | #include <qpixmap.h> |
4 | #include <qdom.h> | 4 | #include <qdom.h> |
5 | #include <qaction.h> | 5 | #include <qaction.h> |
6 | #include <qpe/qpemenubar.h> | 6 | #include <qpe/qpemenubar.h> |
7 | #include <qstatusbar.h> | 7 | #include <qstatusbar.h> |
8 | #include <qpopupmenu.h> | 8 | #include <qpopupmenu.h> |
9 | #include <qpushbutton.h> | 9 | #include <qpushbutton.h> |
10 | #include <qpe/qpetoolbar.h> | 10 | #include <qpe/qpetoolbar.h> |
11 | #include <qtimer.h> | 11 | #include <qtimer.h> |
12 | #include <qmessagebox.h> | 12 | #include <qmessagebox.h> |
13 | #include <qspinbox.h> | 13 | #include <qspinbox.h> |
14 | #include <qlistbox.h> | 14 | #include <qlistbox.h> |
15 | #include <qlineedit.h> | 15 | #include <qlineedit.h> |
16 | #include <qpe/qpeapplication.h> | 16 | #include <qpe/qpeapplication.h> |
17 | #include <qpe/global.h> | 17 | #include <qpe/global.h> |
18 | #include <qpe/qpetoolbar.h> | 18 | #include <qpe/qpetoolbar.h> |
19 | #include <qpe/resource.h> | 19 | #include <qpe/resource.h> |
20 | 20 | ||
21 | #include <assert.h> | 21 | #include <assert.h> |
22 | 22 | ||
23 | #include "kvnc.h" | 23 | #include "kvnc.h" |
24 | #include "krfbcanvas.h" | 24 | #include "krfbcanvas.h" |
25 | #include "krfbconnection.h" | 25 | #include "krfbconnection.h" |
26 | #include "kvncconndlg.h" | 26 | #include "kvncconndlg.h" |
27 | #include "krfbserver.h" | 27 | #include "krfbserver.h" |
28 | 28 | ||
29 | static int u_id = 1; | 29 | static int u_id = 1; |
30 | static int get_unique_id() | 30 | static int get_unique_id() |
31 | { | 31 | { |
32 | return u_id++; | 32 | return u_id++; |
33 | } | 33 | } |
34 | 34 | ||
35 | 35 | ||
36 | /* XPM */ | 36 | /* XPM */ |
37 | static char * menu_xpm[] = { | 37 | static char * menu_xpm[] = { |
38 | "12 12 5 1", | 38 | "12 12 5 1", |
39 | " c None", | 39 | " c None", |
40 | ".c #000000", | 40 | ".c #000000", |
41 | "+c #FFFDAD", | 41 | "+c #FFFDAD", |
42 | "@c #FFFF00", | 42 | "@c #FFFF00", |
43 | "#c #E5E100", | 43 | "#c #E5E100", |
44 | " ", | 44 | " ", |
45 | " ", | 45 | " ", |
46 | " ......... ", | 46 | " ......... ", |
47 | " .+++++++. ", | 47 | " .+++++++. ", |
48 | " .+@@@@#. ", | 48 | " .+@@@@#. ", |
49 | " .+@@@#. ", | 49 | " .+@@@#. ", |
50 | " .+@@#. ", | 50 | " .+@@#. ", |
51 | " .+@#. ", | 51 | " .+@#. ", |
52 | " .+#. ", | 52 | " .+#. ", |
53 | " .+. ", | 53 | " .+. ", |
54 | " .. ", | 54 | " .. ", |
55 | " "}; | 55 | " "}; |
56 | 56 | ||
57 | const int StatusTextId = 0; | 57 | const int StatusTextId = 0; |
58 | 58 | ||
59 | KVNC::KVNC( const char *name ) : QMainWindow( 0, name ) | 59 | KVNC::KVNC( const char *name ) : QMainWindow( 0, name ,WStyle_ContextHelp) |
60 | { | 60 | { |
61 | setCaption( tr("VNC Viewer") ); | 61 | setCaption( tr("VNC Viewer") ); |
62 | fullscreen = false; | 62 | fullscreen = false; |
63 | 63 | ||
64 | stack = new QWidgetStack( this ); | 64 | stack = new QWidgetStack( this ); |
65 | setCentralWidget( stack ); | 65 | setCentralWidget( stack ); |
66 | 66 | ||
67 | bookmarkSelector=new KVNCBookmarkDlg(); | 67 | bookmarkSelector=new KVNCBookmarkDlg(); |
68 | stack->addWidget(bookmarkSelector,get_unique_id()); | 68 | stack->addWidget(bookmarkSelector,get_unique_id()); |
69 | stack->raiseWidget( bookmarkSelector ); | 69 | stack->raiseWidget( bookmarkSelector ); |
70 | 70 | ||
71 | canvas = new KRFBCanvas( stack, "canvas" ); | 71 | canvas = new KRFBCanvas( stack, "canvas" ); |
72 | stack->addWidget(canvas,get_unique_id()); | 72 | stack->addWidget(canvas,get_unique_id()); |
73 | setCentralWidget( stack ); | 73 | setCentralWidget( stack ); |
74 | 74 | ||
75 | 75 | ||
76 | connect( bookmarkSelector->bookmarkList, SIGNAL(doubleClicked(QListBoxItem *)), | 76 | connect( bookmarkSelector->bookmarkList, SIGNAL(doubleClicked(QListBoxItem *)), |
77 | this, SLOT(openConnection(QListBoxItem *)) ); | 77 | this, SLOT(openConnection(QListBoxItem *)) ); |
78 | connect( canvas->connection(), SIGNAL(statusChanged(const QString &)), | 78 | connect( canvas->connection(), SIGNAL(statusChanged(const QString &)), |
79 | this, SLOT(statusMessage(const QString &)) ); | 79 | this, SLOT(statusMessage(const QString &)) ); |
80 | connect( canvas->connection(), SIGNAL(error(const QString &)), | 80 | connect( canvas->connection(), SIGNAL(error(const QString &)), |
81 | this, SLOT(error(const QString &)) ); | 81 | this, SLOT(error(const QString &)) ); |
82 | connect( canvas->connection(), SIGNAL(connected()), this, SLOT(connected()) ); | 82 | connect( canvas->connection(), SIGNAL(connected()), this, SLOT(connected()) ); |
83 | connect( canvas->connection(), SIGNAL(loggedIn()), this, SLOT(loggedIn()) ); | 83 | connect( canvas->connection(), SIGNAL(loggedIn()), this, SLOT(loggedIn()) ); |
84 | connect( canvas->connection(), SIGNAL(disconnected()), this, SLOT(disconnected()) ); | 84 | connect( canvas->connection(), SIGNAL(disconnected()), this, SLOT(disconnected()) ); |
85 | 85 | ||
86 | setupActions(); | 86 | setupActions(); |
87 | 87 | ||
88 | cornerButton = new QPushButton( this ); | 88 | cornerButton = new QPushButton( this ); |
89 | cornerButton->setPixmap( QPixmap( (const char**)menu_xpm ) ); | 89 | cornerButton->setPixmap( QPixmap( (const char**)menu_xpm ) ); |
90 | connect( cornerButton, SIGNAL(pressed()), this, SLOT(showMenu()) ); | 90 | connect( cornerButton, SIGNAL(pressed()), this, SLOT(showMenu()) ); |
91 | canvas->setCornerWidget( cornerButton ); | 91 | canvas->setCornerWidget( cornerButton ); |
92 | 92 | ||
93 | stack->raiseWidget( bookmarkSelector ); | 93 | stack->raiseWidget( bookmarkSelector ); |
94 | 94 | ||
95 | 95 | ||
96 | bar= new QToolBar( this ); | 96 | bar= new QToolBar( this ); |
97 | setToolBarsMovable( false ); | 97 | setToolBarsMovable( false ); |
98 | setRightJustification(false); | 98 | setRightJustification(false); |
99 | 99 | ||
100 | 100 | ||
101 | QAction *n = new QAction( tr( "New Connection" ), Resource::loadPixmap( "new" ), | 101 | QAction *n = new QAction( tr( "New Connection" ), Resource::loadPixmap( "new" ), |
102 | QString::null, 0, this, 0 ); | 102 | QString::null, 0, this, 0 ); |
103 | connect( n, SIGNAL( activated() ), | 103 | connect( n, SIGNAL( activated() ), |
104 | this, SLOT( newConnection() ) ); | 104 | this, SLOT( newConnection() ) ); |
105 | n->addTo( bar ); | 105 | n->addTo( bar ); |
106 | 106 | ||
107 | QAction *o = new QAction( tr( "Open Bookmark" ), Resource::loadPixmap( "edit" ), | 107 | QAction *o = new QAction( tr( "Open Bookmark" ), Resource::loadPixmap( "fileopen" ), |
108 | QString::null, 0, this, 0 ); | 108 | QString::null, 0, this, 0 ); |
109 | connect( o, SIGNAL( activated() ), | 109 | connect( o, SIGNAL( activated() ), |
110 | this, SLOT( openConnection() ) ); | 110 | this, SLOT( openConnection() ) ); |
111 | o->addTo( bar ); | 111 | o->addTo( bar ); |
112 | 112 | ||
113 | QAction *d = new QAction( tr( "Delete Bookmark" ), Resource::loadPixmap( "trash" ), | 113 | QAction *d = new QAction( tr( "Delete Bookmark" ), Resource::loadPixmap( "trash" ), |
114 | QString::null, 0, this, 0 ); | 114 | QString::null, 0, this, 0 ); |
115 | connect( d, SIGNAL( activated() ), | 115 | connect( d, SIGNAL( activated() ), |
116 | this, SLOT( deleteBookmark() ) ); | 116 | this, SLOT( deleteBookmark() ) ); |
117 | d->addTo( bar ); | 117 | d->addTo( bar ); |
118 | } | 118 | } |
119 | 119 | ||
120 | KVNC::~KVNC() | 120 | KVNC::~KVNC() |
121 | { | 121 | { |
122 | 122 | ||
123 | } | 123 | } |
124 | 124 | ||
125 | void KVNC::newConnection() | 125 | void KVNC::newConnection() |
126 | { | 126 | { |
127 | curServer=new KRFBServer; | 127 | curServer=new KRFBServer; |
128 | 128 | ||
129 | KVNCConnDlg dlg( curServer,this); | 129 | KVNCConnDlg dlg( curServer,this); |
130 | dlg.showMaximized(); | 130 | dlg.showMaximized(); |
131 | if (dlg.exec()) { | 131 | if (dlg.exec()) { |
132 | if (!curServer->name.isEmpty()) | 132 | if (!curServer->name.isEmpty()) |
133 | bookmarkSelector->addBookmark(curServer); | 133 | bookmarkSelector->addBookmark(curServer); |
134 | canvas->openConnection(*curServer); | 134 | canvas->openConnection(*curServer); |
135 | } else | 135 | } else |
136 | curServer=0; | 136 | curServer=0; |
137 | } | 137 | } |
138 | 138 | ||
139 | void KVNC::openConnection( QString name) | 139 | void KVNC::openConnection( QString name) |
140 | { | 140 | { |
141 | curServer=bookmarkSelector->getServer(name); | 141 | curServer=bookmarkSelector->getServer(name); |
142 | 142 | ||
143 | if (curServer) { | 143 | if (curServer) { |
144 | KVNCConnDlg dlg( curServer,this); | 144 | KVNCConnDlg dlg( curServer,this); |
145 | dlg.showMaximized(); | 145 | dlg.showMaximized(); |
146 | 146 | ||
147 | if ( dlg.exec() ) { | 147 | if ( dlg.exec() ) { |
148 | canvas->openConnection(*curServer); | 148 | canvas->openConnection(*curServer); |
149 | bookmarkSelector->writeBookmarks(); | 149 | bookmarkSelector->writeBookmarks(); |
150 | } else | 150 | } else |
151 | curServer=0; | 151 | curServer=0; |
152 | } | 152 | } |
153 | } | 153 | } |
154 | 154 | ||
155 | void KVNC::openConnection( void ) | 155 | void KVNC::openConnection( void ) |
156 | { | 156 | { |
157 | openConnection( bookmarkSelector->selectedBookmark()); | 157 | openConnection( bookmarkSelector->selectedBookmark()); |
158 | } | 158 | } |
159 | 159 | ||
160 | void KVNC::openConnection( QListBoxItem * item) | 160 | void KVNC::openConnection( QListBoxItem * item) |
161 | { | 161 | { |
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 | } | 186 | } |
187 | 187 | ||
188 | void KVNC::toggleFullScreen() | 188 | void KVNC::toggleFullScreen() |
189 | { | 189 | { |
190 | if ( fullscreen ) { | 190 | if ( fullscreen ) { |
191 | canvas->releaseKeyboard(); | 191 | canvas->releaseKeyboard(); |
192 | canvas->reparent( stack, 0, QPoint(0,0), false ); | 192 | canvas->reparent( stack, 0, QPoint(0,0), false ); |
193 | canvas->setFrameStyle( QFrame::Panel | QFrame::Sunken ); | 193 | canvas->setFrameStyle( QFrame::Panel | QFrame::Sunken ); |
194 | setCentralWidget( stack ); | 194 | setCentralWidget( stack ); |
195 | stack->addWidget(canvas,get_unique_id()); | 195 | stack->addWidget(canvas,get_unique_id()); |
196 | stack->raiseWidget(canvas); | 196 | stack->raiseWidget(canvas); |
197 | canvas->show(); | 197 | canvas->show(); |
198 | stack->show(); | 198 | stack->show(); |
199 | fullScreenAction->setText( tr("Full Screen") ); | 199 | fullScreenAction->setText( tr("Full Screen") ); |
200 | } else { | 200 | } else { |
201 | canvas->setFrameStyle( QFrame::NoFrame ); | 201 | canvas->setFrameStyle( QFrame::NoFrame ); |
202 | stack->removeWidget(canvas); | 202 | stack->removeWidget(canvas); |
203 | canvas->reparent( 0,WStyle_Tool | WStyle_Customize | WStyle_StaysOnTop, | 203 | canvas->reparent( 0,WStyle_Tool | WStyle_Customize | WStyle_StaysOnTop, |
204 | QPoint(0,0),false); | 204 | QPoint(0,0),false); |
205 | canvas->resize(qApp->desktop()->width(), qApp->desktop()->height()); | 205 | canvas->resize(qApp->desktop()->width(), qApp->desktop()->height()); |
206 | canvas->raise(); | 206 | canvas->raise(); |
207 | canvas->setFocus(); | 207 | canvas->setFocus(); |
208 | canvas->grabKeyboard(); | 208 | canvas->grabKeyboard(); |
209 | canvas->show(); | 209 | canvas->show(); |
210 | 210 | ||
211 | fullScreenAction->setText( tr("Stop Full Screen") ); | 211 | fullScreenAction->setText( tr("Stop Full Screen") ); |
212 | } | 212 | } |
213 | 213 | ||
214 | 214 | ||
215 | fullscreen = !fullscreen; | 215 | fullscreen = !fullscreen; |
216 | } | 216 | } |
217 | 217 | ||
218 | void KVNC::closeConnection() | 218 | void KVNC::closeConnection() |
219 | { | 219 | { |
220 | if ( fullscreen ) | 220 | if ( fullscreen ) |
221 | toggleFullScreen(); | 221 | toggleFullScreen(); |
222 | canvas->closeConnection(); | 222 | canvas->closeConnection(); |
223 | } | 223 | } |
224 | 224 | ||
225 | void KVNC::showMenu() | 225 | void KVNC::showMenu() |
226 | { | 226 | { |
227 | QPoint pt = mapToGlobal(cornerButton->pos()); | 227 | QPoint pt = mapToGlobal(cornerButton->pos()); |
228 | QSize s = cornerMenu->sizeHint(); | 228 | QSize s = cornerMenu->sizeHint(); |
229 | pt.ry() -= s.height(); | 229 | pt.ry() -= s.height(); |
230 | pt.rx() -= s.width(); | 230 | pt.rx() -= s.width(); |
231 | cornerMenu->popup( pt ); | 231 | cornerMenu->popup( pt ); |
232 | } | 232 | } |
233 | 233 | ||
234 | void KVNC::connected() | 234 | void KVNC::connected() |
235 | { | 235 | { |
236 | static QString msg = tr( "Connected to remote host" ); | 236 | static QString msg = tr( "Connected to remote host" ); |
237 | statusMessage( msg ); | 237 | statusMessage( msg ); |
238 | ctlAltDelAction->setEnabled(true); | 238 | ctlAltDelAction->setEnabled(true); |
239 | disconnectAction->setEnabled( true ); | 239 | disconnectAction->setEnabled( true ); |
240 | fullScreenAction->setEnabled( true ); | 240 | fullScreenAction->setEnabled( true ); |
241 | stack->raiseWidget(canvas); | 241 | stack->raiseWidget(canvas); |
242 | bar->hide(); | 242 | bar->hide(); |
243 | } | 243 | } |
244 | 244 | ||
245 | void KVNC::loggedIn() | 245 | void KVNC::loggedIn() |
246 | { | 246 | { |
247 | static QString msg = tr( "Logged in to remote host" ); | 247 | static QString msg = tr( "Logged in to remote host" ); |
248 | statusMessage( msg ); | 248 | statusMessage( msg ); |
249 | } | 249 | } |
250 | 250 | ||
251 | void KVNC::disconnected() | 251 | void KVNC::disconnected() |
252 | { | 252 | { |
253 | 253 | ||
254 | if ( fullscreen ) | 254 | if ( fullscreen ) |
255 | toggleFullScreen(); | 255 | toggleFullScreen(); |
256 | static QString msg = tr( "Connection closed" ); | 256 | static QString msg = tr( "Connection closed" ); |
257 | statusMessage( msg ); | 257 | statusMessage( msg ); |
258 | ctlAltDelAction->setEnabled(false); | 258 | ctlAltDelAction->setEnabled(false); |
259 | disconnectAction->setEnabled( false ); | 259 | disconnectAction->setEnabled( false ); |
260 | fullScreenAction->setEnabled( false ); | 260 | fullScreenAction->setEnabled( false ); |
261 | stack->raiseWidget(bookmarkSelector); | 261 | stack->raiseWidget(bookmarkSelector); |
262 | bar->show(); | 262 | bar->show(); |
263 | } | 263 | } |
264 | 264 | ||
265 | void KVNC::statusMessage( const QString &m ) | 265 | void KVNC::statusMessage( const QString &m ) |
266 | { | 266 | { |
267 | Global::statusMessage( m ); | 267 | Global::statusMessage( m ); |
268 | } | 268 | } |
269 | 269 | ||
270 | void KVNC::error( const QString &msg ) | 270 | void KVNC::error( const QString &msg ) |
271 | { | 271 | { |
272 | statusMessage( msg ); | 272 | statusMessage( msg ); |
273 | QMessageBox::warning( this, tr("VNC Viewer"), msg ); | 273 | QMessageBox::warning( this, tr("VNC Viewer"), msg ); |
274 | } | 274 | } |
275 | void KVNC::deleteBookmark(void) | 275 | void KVNC::deleteBookmark(void) |
276 | { | 276 | { |
277 | bookmarkSelector->deleteBookmark(bookmarkSelector->selectedBookmark()); | 277 | bookmarkSelector->deleteBookmark(bookmarkSelector->selectedBookmark()); |
278 | } | 278 | } |
diff --git a/noncore/comm/keypebble/kvncbookmarkdlgbase.ui b/noncore/comm/keypebble/kvncbookmarkdlgbase.ui index 45114cb..69d8a14 100644 --- a/noncore/comm/keypebble/kvncbookmarkdlgbase.ui +++ b/noncore/comm/keypebble/kvncbookmarkdlgbase.ui | |||
@@ -1,57 +1,61 @@ | |||
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>584</width> | 14 | <width>580</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 | <vbox> | 22 | <vbox> |
23 | <property stdset="1"> | 23 | <property stdset="1"> |
24 | <name>margin</name> | 24 | <name>margin</name> |
25 | <number>11</number> | 25 | <number>11</number> |
26 | </property> | 26 | </property> |
27 | <property stdset="1"> | 27 | <property stdset="1"> |
28 | <name>spacing</name> | 28 | <name>spacing</name> |
29 | <number>6</number> | 29 | <number>6</number> |
30 | </property> | 30 | </property> |
31 | <widget> | 31 | <widget> |
32 | <class>QListBox</class> | 32 | <class>QListBox</class> |
33 | <property stdset="1"> | 33 | <property stdset="1"> |
34 | <name>name</name> | 34 | <name>name</name> |
35 | <cstring>bookmarkList</cstring> | 35 | <cstring>bookmarkList</cstring> |
36 | </property> | 36 | </property> |
37 | <property> | ||
38 | <name>whatsThis</name> | ||
39 | <string>Choose a bookmark that you would like to open</string> | ||
40 | </property> | ||
37 | </widget> | 41 | </widget> |
38 | <widget> | 42 | <widget> |
39 | <class>QLayoutWidget</class> | 43 | <class>QLayoutWidget</class> |
40 | <property stdset="1"> | 44 | <property stdset="1"> |
41 | <name>name</name> | 45 | <name>name</name> |
42 | <cstring>Layout1</cstring> | 46 | <cstring>Layout1</cstring> |
43 | </property> | 47 | </property> |
44 | <hbox> | 48 | <hbox> |
45 | <property stdset="1"> | 49 | <property stdset="1"> |
46 | <name>margin</name> | 50 | <name>margin</name> |
47 | <number>0</number> | 51 | <number>0</number> |
48 | </property> | 52 | </property> |
49 | <property stdset="1"> | 53 | <property stdset="1"> |
50 | <name>spacing</name> | 54 | <name>spacing</name> |
51 | <number>6</number> | 55 | <number>6</number> |
52 | </property> | 56 | </property> |
53 | </hbox> | 57 | </hbox> |
54 | </widget> | 58 | </widget> |
55 | </vbox> | 59 | </vbox> |
56 | </widget> | 60 | </widget> |
57 | </UI> | 61 | </UI> |
diff --git a/noncore/comm/keypebble/kvncconndlg.cpp b/noncore/comm/keypebble/kvncconndlg.cpp index 2f073f8..cd55bb0 100644 --- a/noncore/comm/keypebble/kvncconndlg.cpp +++ b/noncore/comm/keypebble/kvncconndlg.cpp | |||
@@ -1,94 +1,94 @@ | |||
1 | #include <qframe.h> | 1 | #include <qframe.h> |
2 | #include <qvbox.h> | 2 | #include <qvbox.h> |
3 | #include <qcheckbox.h> | 3 | #include <qcheckbox.h> |
4 | #include <qcombobox.h> | 4 | #include <qcombobox.h> |
5 | #include <qspinbox.h> | 5 | #include <qspinbox.h> |
6 | #include <qlabel.h> | 6 | #include <qlabel.h> |
7 | #include <qlayout.h> | 7 | #include <qlayout.h> |
8 | #include <qwhatsthis.h> | 8 | #include <qwhatsthis.h> |
9 | #include <qapplication.h> | 9 | #include <qapplication.h> |
10 | #include <qlineedit.h> | 10 | #include <qlineedit.h> |
11 | #include <qpushbutton.h> | 11 | #include <qpushbutton.h> |
12 | #include "krfbserver.h" | 12 | #include "krfbserver.h" |
13 | 13 | ||
14 | #include "kvncconndlg.h" | 14 | #include "kvncconndlg.h" |
15 | 15 | ||
16 | KVNCConnDlg::KVNCConnDlg( KRFBServer *options, | 16 | KVNCConnDlg::KVNCConnDlg( KRFBServer *options, |
17 | QWidget *parent, char *name, bool modal ) | 17 | QWidget *parent, char *name, bool modal ) |
18 | : KVNCConnDlgBase( parent, name, modal ) | 18 | : KVNCConnDlgBase( parent, name, modal, WStyle_ContextHelp ) |
19 | { | 19 | { |
20 | this->options=options; | 20 | this->options=options; |
21 | tmpOptions=*options; | 21 | tmpOptions=*options; |
22 | 22 | ||
23 | serverHostname->setText(options->hostname); | 23 | serverHostname->setText(options->hostname); |
24 | serverDisplay->setValue(options->display); | 24 | serverDisplay->setValue(options->display); |
25 | serverPassword->setText(options->password); | 25 | serverPassword->setText(options->password); |
26 | serverBookmark->setText(options->name); | 26 | serverBookmark->setText(options->name); |
27 | 27 | ||
28 | hex->setChecked( options->hexTile ); | 28 | hex->setChecked( options->hexTile ); |
29 | corre->setChecked( options->corre ); | 29 | corre->setChecked( options->corre ); |
30 | rre->setChecked( options->rre ); | 30 | rre->setChecked( options->rre ); |
31 | copyRect->setChecked( options->copyrect ); | 31 | copyRect->setChecked( options->copyrect ); |
32 | 32 | ||
33 | for (int i=0; i < scaleFactor->count(); ++i) { | 33 | for (int i=0; i < scaleFactor->count(); ++i) { |
34 | if (scaleFactor->text(i).toInt()==tmpOptions.scaleFactor) { | 34 | if (scaleFactor->text(i).toInt()==tmpOptions.scaleFactor) { |
35 | scaleFactor->setCurrentItem(i); | 35 | scaleFactor->setCurrentItem(i); |
36 | } | 36 | } |
37 | } | 37 | } |
38 | 38 | ||
39 | // TODO | 39 | // TODO |
40 | hex->setEnabled( false ); | 40 | hex->setEnabled( false ); |
41 | corre->setEnabled( false ); | 41 | corre->setEnabled( false ); |
42 | rre->setEnabled( false ); | 42 | rre->setEnabled( false ); |
43 | // /TODO | 43 | // /TODO |
44 | 44 | ||
45 | deIconify->setChecked( options->deIconify ); | 45 | deIconify->setChecked( options->deIconify ); |
46 | bit->setChecked( options->colors256 ); | 46 | bit->setChecked( options->colors256 ); |
47 | shared->setChecked( options->shared ); | 47 | shared->setChecked( options->shared ); |
48 | timeBox->setValue( options->updateRate ); | 48 | timeBox->setValue( options->updateRate ); |
49 | 49 | ||
50 | serverPassword->setEchoMode(QLineEdit::Password); | 50 | serverPassword->setEchoMode(QLineEdit::Password); |
51 | 51 | ||
52 | connect(togglePassword, SIGNAL( stateChanged(int) ), this, SLOT( showPassword(int) ) ); | 52 | connect(togglePassword, SIGNAL( stateChanged(int) ), this, SLOT( showPassword(int) ) ); |
53 | 53 | ||
54 | 54 | ||
55 | } | 55 | } |
56 | KVNCConnDlg::~KVNCConnDlg() | 56 | KVNCConnDlg::~KVNCConnDlg() |
57 | { | 57 | { |
58 | } | 58 | } |
59 | 59 | ||
60 | void KVNCConnDlg::accept() | 60 | void KVNCConnDlg::accept() |
61 | { | 61 | { |
62 | save(); | 62 | save(); |
63 | QDialog::accept(); | 63 | QDialog::accept(); |
64 | } | 64 | } |
65 | 65 | ||
66 | void KVNCConnDlg::save() | 66 | void KVNCConnDlg::save() |
67 | { | 67 | { |
68 | tmpOptions.hexTile = hex->isChecked(); | 68 | tmpOptions.hexTile = hex->isChecked(); |
69 | tmpOptions.corre = corre->isChecked(); | 69 | tmpOptions.corre = corre->isChecked(); |
70 | tmpOptions.rre = rre->isChecked(); | 70 | tmpOptions.rre = rre->isChecked(); |
71 | tmpOptions.copyrect = copyRect->isChecked(); | 71 | tmpOptions.copyrect = copyRect->isChecked(); |
72 | tmpOptions.deIconify = deIconify->isChecked(); | 72 | tmpOptions.deIconify = deIconify->isChecked(); |
73 | tmpOptions.colors256 = bit->isChecked(); | 73 | tmpOptions.colors256 = bit->isChecked(); |
74 | tmpOptions.shared = shared->isChecked(); | 74 | tmpOptions.shared = shared->isChecked(); |
75 | tmpOptions.hostname = serverHostname->text(); | 75 | tmpOptions.hostname = serverHostname->text(); |
76 | tmpOptions.password = serverPassword->text(); | 76 | tmpOptions.password = serverPassword->text(); |
77 | tmpOptions.display = serverDisplay->value(); | 77 | tmpOptions.display = serverDisplay->value(); |
78 | tmpOptions.name = serverBookmark->text(); | 78 | tmpOptions.name = serverBookmark->text(); |
79 | tmpOptions.scaleFactor = scaleFactor->currentText().toInt(); | 79 | tmpOptions.scaleFactor = scaleFactor->currentText().toInt(); |
80 | 80 | ||
81 | if (!serverBookmark->text().isEmpty()) { | 81 | if (!serverBookmark->text().isEmpty()) { |
82 | if ( options) { | 82 | if ( options) { |
83 | *options=tmpOptions; | 83 | *options=tmpOptions; |
84 | } | 84 | } |
85 | } | 85 | } |
86 | } | 86 | } |
87 | 87 | ||
88 | void KVNCConnDlg::showPassword(int show) | 88 | void KVNCConnDlg::showPassword(int show) |
89 | { | 89 | { |
90 | if (show) | 90 | if (show) |
91 | serverPassword->setEchoMode(QLineEdit::Normal); | 91 | serverPassword->setEchoMode(QLineEdit::Normal); |
92 | else | 92 | else |
93 | serverPassword->setEchoMode(QLineEdit::Password); | 93 | serverPassword->setEchoMode(QLineEdit::Password); |
94 | } | 94 | } |
diff --git a/noncore/comm/keypebble/kvncconndlgbase.ui b/noncore/comm/keypebble/kvncconndlgbase.ui index 42765c1..de3f785 100644 --- a/noncore/comm/keypebble/kvncconndlgbase.ui +++ b/noncore/comm/keypebble/kvncconndlgbase.ui | |||
@@ -1,482 +1,522 @@ | |||
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>260</width> | 14 | <width>256</width> |
15 | <height>242</height> | 15 | <height>242</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 | <widget> |
26 | <class>QTabWidget</class> | 26 | <class>QTabWidget</class> |
27 | <property stdset="1"> | 27 | <property stdset="1"> |
28 | <name>name</name> | 28 | <name>name</name> |
29 | <cstring>TabWidget3</cstring> | 29 | <cstring>TabWidget3</cstring> |
30 | </property> | 30 | </property> |
31 | <property stdset="1"> | 31 | <property stdset="1"> |
32 | <name>geometry</name> | 32 | <name>geometry</name> |
33 | <rect> | 33 | <rect> |
34 | <x>0</x> | 34 | <x>0</x> |
35 | <y>0</y> | 35 | <y>0</y> |
36 | <width>266</width> | 36 | <width>266</width> |
37 | <height>233</height> | 37 | <height>233</height> |
38 | </rect> | 38 | </rect> |
39 | </property> | 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" rowspan="1" colspan="2" > |
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> | ||
74 | <name>whatsThis</name> | ||
75 | <string>The password of the VNC server</string> | ||
76 | </property> | ||
73 | </widget> | 77 | </widget> |
74 | <widget row="3" column="1" > | 78 | <widget row="3" column="1" > |
75 | <class>QCheckBox</class> | 79 | <class>QCheckBox</class> |
76 | <property stdset="1"> | 80 | <property stdset="1"> |
77 | <name>name</name> | 81 | <name>name</name> |
78 | <cstring>togglePassword</cstring> | 82 | <cstring>togglePassword</cstring> |
79 | </property> | 83 | </property> |
80 | <property stdset="1"> | 84 | <property stdset="1"> |
81 | <name>text</name> | 85 | <name>text</name> |
82 | <string>Show Password</string> | 86 | <string>Show Password</string> |
83 | </property> | 87 | </property> |
88 | <property> | ||
89 | <name>whatsThis</name> | ||
90 | <string>Toggle obscuring the password</string> | ||
91 | </property> | ||
84 | </widget> | 92 | </widget> |
85 | <widget row="2" column="0" > | 93 | <widget row="2" column="0" > |
86 | <class>QLabel</class> | 94 | <class>QLabel</class> |
87 | <property stdset="1"> | 95 | <property stdset="1"> |
88 | <name>name</name> | 96 | <name>name</name> |
89 | <cstring>TextLabel3</cstring> | 97 | <cstring>TextLabel3</cstring> |
90 | </property> | 98 | </property> |
91 | <property stdset="1"> | 99 | <property stdset="1"> |
92 | <name>text</name> | 100 | <name>text</name> |
93 | <string>Password:</string> | 101 | <string>Password:</string> |
94 | </property> | 102 | </property> |
95 | </widget> | 103 | </widget> |
96 | <widget row="4" column="1" rowspan="1" colspan="2" > | 104 | <widget row="4" column="1" rowspan="1" colspan="2" > |
97 | <class>QLineEdit</class> | 105 | <class>QLineEdit</class> |
98 | <property stdset="1"> | 106 | <property stdset="1"> |
99 | <name>name</name> | 107 | <name>name</name> |
100 | <cstring>serverBookmark</cstring> | 108 | <cstring>serverBookmark</cstring> |
101 | </property> | 109 | </property> |
110 | <property> | ||
111 | <name>whatsThis</name> | ||
112 | <string>The name of the VNC server</string> | ||
113 | </property> | ||
102 | </widget> | 114 | </widget> |
103 | <widget row="4" column="0" > | 115 | <widget row="4" column="0" > |
104 | <class>QLabel</class> | 116 | <class>QLabel</class> |
105 | <property stdset="1"> | 117 | <property stdset="1"> |
106 | <name>name</name> | 118 | <name>name</name> |
107 | <cstring>TextLabel1_2</cstring> | 119 | <cstring>TextLabel1_2</cstring> |
108 | </property> | 120 | </property> |
109 | <property stdset="1"> | 121 | <property stdset="1"> |
110 | <name>text</name> | 122 | <name>text</name> |
111 | <string>Bookmark Name:</string> | 123 | <string>Bookmark Name:</string> |
112 | </property> | 124 | </property> |
113 | </widget> | 125 | </widget> |
114 | <widget row="0" column="1" rowspan="1" colspan="2" > | 126 | <widget row="0" column="1" rowspan="1" colspan="2" > |
115 | <class>QLineEdit</class> | 127 | <class>QLineEdit</class> |
116 | <property stdset="1"> | 128 | <property stdset="1"> |
117 | <name>name</name> | 129 | <name>name</name> |
118 | <cstring>serverHostname</cstring> | 130 | <cstring>serverHostname</cstring> |
119 | </property> | 131 | </property> |
132 | <property> | ||
133 | <name>whatsThis</name> | ||
134 | <string>The host name of the VNC server</string> | ||
135 | </property> | ||
120 | </widget> | 136 | </widget> |
121 | <widget row="0" column="0" > | 137 | <widget row="0" column="0" > |
122 | <class>QLabel</class> | 138 | <class>QLabel</class> |
123 | <property stdset="1"> | 139 | <property stdset="1"> |
124 | <name>name</name> | 140 | <name>name</name> |
125 | <cstring>hostname</cstring> | 141 | <cstring>hostname</cstring> |
126 | </property> | 142 | </property> |
127 | <property stdset="1"> | 143 | <property stdset="1"> |
128 | <name>text</name> | 144 | <name>text</name> |
129 | <string>Host Name:</string> | 145 | <string>Host Name:</string> |
130 | </property> | 146 | </property> |
131 | </widget> | 147 | </widget> |
132 | <widget row="1" column="0" > | 148 | <widget row="1" column="0" > |
133 | <class>QLabel</class> | 149 | <class>QLabel</class> |
134 | <property stdset="1"> | 150 | <property stdset="1"> |
135 | <name>name</name> | 151 | <name>name</name> |
136 | <cstring>TextLabel2_2</cstring> | 152 | <cstring>TextLabel2_2</cstring> |
137 | </property> | 153 | </property> |
138 | <property stdset="1"> | 154 | <property stdset="1"> |
139 | <name>text</name> | 155 | <name>text</name> |
140 | <string>Display Number:</string> | 156 | <string>Display Number:</string> |
141 | </property> | 157 | </property> |
142 | </widget> | 158 | </widget> |
143 | <widget row="1" column="1" rowspan="1" colspan="2" > | 159 | <widget row="1" column="1" rowspan="1" colspan="2" > |
144 | <class>QSpinBox</class> | 160 | <class>QSpinBox</class> |
145 | <property stdset="1"> | 161 | <property stdset="1"> |
146 | <name>name</name> | 162 | <name>name</name> |
147 | <cstring>serverDisplay</cstring> | 163 | <cstring>serverDisplay</cstring> |
148 | </property> | 164 | </property> |
149 | <property stdset="1"> | 165 | <property stdset="1"> |
150 | <name>maxValue</name> | 166 | <name>maxValue</name> |
151 | <number>500</number> | 167 | <number>500</number> |
152 | </property> | 168 | </property> |
153 | <property stdset="1"> | 169 | <property stdset="1"> |
154 | <name>minValue</name> | 170 | <name>minValue</name> |
155 | <number>0</number> | 171 | <number>0</number> |
156 | </property> | 172 | </property> |
157 | <property stdset="1"> | 173 | <property stdset="1"> |
158 | <name>value</name> | 174 | <name>value</name> |
159 | <number>0</number> | 175 | <number>0</number> |
160 | </property> | 176 | </property> |
177 | <property> | ||
178 | <name>whatsThis</name> | ||
179 | <string>The display number of the VNC server</string> | ||
180 | </property> | ||
161 | </widget> | 181 | </widget> |
162 | <spacer row="5" column="2" > | 182 | <spacer row="5" column="2" > |
163 | <property> | 183 | <property> |
164 | <name>name</name> | 184 | <name>name</name> |
165 | <cstring>Spacer2</cstring> | 185 | <cstring>Spacer2</cstring> |
166 | </property> | 186 | </property> |
167 | <property stdset="1"> | 187 | <property stdset="1"> |
168 | <name>orientation</name> | 188 | <name>orientation</name> |
169 | <enum>Vertical</enum> | 189 | <enum>Vertical</enum> |
170 | </property> | 190 | </property> |
171 | <property stdset="1"> | 191 | <property stdset="1"> |
172 | <name>sizeType</name> | 192 | <name>sizeType</name> |
173 | <enum>Expanding</enum> | 193 | <enum>Expanding</enum> |
174 | </property> | 194 | </property> |
175 | <property> | 195 | <property> |
176 | <name>sizeHint</name> | 196 | <name>sizeHint</name> |
177 | <size> | 197 | <size> |
178 | <width>20</width> | 198 | <width>20</width> |
179 | <height>20</height> | 199 | <height>20</height> |
180 | </size> | 200 | </size> |
181 | </property> | 201 | </property> |
182 | </spacer> | 202 | </spacer> |
183 | </grid> | 203 | </grid> |
184 | </widget> | 204 | </widget> |
185 | <widget> | 205 | <widget> |
186 | <class>QWidget</class> | 206 | <class>QWidget</class> |
187 | <property stdset="1"> | 207 | <property stdset="1"> |
188 | <name>name</name> | 208 | <name>name</name> |
189 | <cstring>tab</cstring> | 209 | <cstring>tab</cstring> |
190 | </property> | 210 | </property> |
191 | <attribute> | 211 | <attribute> |
192 | <name>title</name> | 212 | <name>title</name> |
193 | <string>Options</string> | 213 | <string>Options</string> |
194 | </attribute> | 214 | </attribute> |
195 | <vbox> | 215 | <vbox> |
196 | <property stdset="1"> | 216 | <property stdset="1"> |
197 | <name>margin</name> | 217 | <name>margin</name> |
198 | <number>11</number> | 218 | <number>11</number> |
199 | </property> | 219 | </property> |
200 | <property stdset="1"> | 220 | <property stdset="1"> |
201 | <name>spacing</name> | 221 | <name>spacing</name> |
202 | <number>6</number> | 222 | <number>6</number> |
203 | </property> | 223 | </property> |
204 | <widget> | 224 | <widget> |
205 | <class>QLabel</class> | 225 | <class>QLabel</class> |
206 | <property stdset="1"> | 226 | <property stdset="1"> |
207 | <name>name</name> | 227 | <name>name</name> |
208 | <cstring>TextLabel1</cstring> | 228 | <cstring>TextLabel1</cstring> |
209 | </property> | 229 | </property> |
210 | <property stdset="1"> | 230 | <property stdset="1"> |
211 | <name>text</name> | 231 | <name>text</name> |
212 | <string>Check for screen updates every:</string> | 232 | <string>Check for screen updates every:</string> |
213 | </property> | 233 | </property> |
214 | </widget> | 234 | </widget> |
215 | <widget> | 235 | <widget> |
216 | <class>QLayoutWidget</class> | 236 | <class>QLayoutWidget</class> |
217 | <property stdset="1"> | 237 | <property stdset="1"> |
218 | <name>name</name> | 238 | <name>name</name> |
219 | <cstring>Layout2</cstring> | 239 | <cstring>Layout2</cstring> |
220 | </property> | 240 | </property> |
221 | <hbox> | 241 | <hbox> |
222 | <property stdset="1"> | 242 | <property stdset="1"> |
223 | <name>margin</name> | 243 | <name>margin</name> |
224 | <number>0</number> | 244 | <number>0</number> |
225 | </property> | 245 | </property> |
226 | <property stdset="1"> | 246 | <property stdset="1"> |
227 | <name>spacing</name> | 247 | <name>spacing</name> |
228 | <number>6</number> | 248 | <number>6</number> |
229 | </property> | 249 | </property> |
230 | <widget> | 250 | <widget> |
231 | <class>QSpinBox</class> | 251 | <class>QSpinBox</class> |
232 | <property stdset="1"> | 252 | <property stdset="1"> |
233 | <name>name</name> | 253 | <name>name</name> |
234 | <cstring>timeBox</cstring> | 254 | <cstring>timeBox</cstring> |
235 | </property> | 255 | </property> |
236 | <property stdset="1"> | 256 | <property stdset="1"> |
237 | <name>maxValue</name> | 257 | <name>maxValue</name> |
238 | <number>500</number> | 258 | <number>500</number> |
239 | </property> | 259 | </property> |
240 | <property stdset="1"> | 260 | <property stdset="1"> |
241 | <name>minValue</name> | 261 | <name>minValue</name> |
242 | <number>1</number> | 262 | <number>1</number> |
243 | </property> | 263 | </property> |
264 | <property> | ||
265 | <name>whatsThis</name> | ||
266 | <string>Delay between requesting updates from the server</string> | ||
267 | </property> | ||
244 | </widget> | 268 | </widget> |
245 | <widget> | 269 | <widget> |
246 | <class>QLabel</class> | 270 | <class>QLabel</class> |
247 | <property stdset="1"> | 271 | <property stdset="1"> |
248 | <name>name</name> | 272 | <name>name</name> |
249 | <cstring>TextLabel2</cstring> | 273 | <cstring>TextLabel2</cstring> |
250 | </property> | 274 | </property> |
251 | <property stdset="1"> | 275 | <property stdset="1"> |
252 | <name>text</name> | 276 | <name>text</name> |
253 | <string>Milliseconds</string> | 277 | <string>Milliseconds</string> |
254 | </property> | 278 | </property> |
255 | </widget> | 279 | </widget> |
256 | </hbox> | 280 | </hbox> |
257 | </widget> | 281 | </widget> |
258 | <widget> | 282 | <widget> |
259 | <class>QCheckBox</class> | 283 | <class>QCheckBox</class> |
260 | <property stdset="1"> | 284 | <property stdset="1"> |
261 | <name>name</name> | 285 | <name>name</name> |
262 | <cstring>bit</cstring> | 286 | <cstring>bit</cstring> |
263 | </property> | 287 | </property> |
264 | <property stdset="1"> | 288 | <property stdset="1"> |
265 | <name>text</name> | 289 | <name>text</name> |
266 | <string>Request 8-bit session</string> | 290 | <string>Request 8-bit session</string> |
267 | </property> | 291 | </property> |
292 | <property> | ||
293 | <name>whatsThis</name> | ||
294 | <string>Request that the VNC server transfer 8 bit color</string> | ||
295 | </property> | ||
268 | </widget> | 296 | </widget> |
269 | <widget> | 297 | <widget> |
270 | <class>QCheckBox</class> | 298 | <class>QCheckBox</class> |
271 | <property stdset="1"> | 299 | <property stdset="1"> |
272 | <name>name</name> | 300 | <name>name</name> |
273 | <cstring>deIconify</cstring> | 301 | <cstring>deIconify</cstring> |
274 | </property> | 302 | </property> |
275 | <property stdset="1"> | 303 | <property stdset="1"> |
276 | <name>text</name> | 304 | <name>text</name> |
277 | <string>Raise on bell</string> | 305 | <string>Raise on bell</string> |
278 | </property> | 306 | </property> |
279 | </widget> | 307 | </widget> |
280 | <widget> | 308 | <widget> |
281 | <class>QCheckBox</class> | 309 | <class>QCheckBox</class> |
282 | <property stdset="1"> | 310 | <property stdset="1"> |
283 | <name>name</name> | 311 | <name>name</name> |
284 | <cstring>shared</cstring> | 312 | <cstring>shared</cstring> |
285 | </property> | 313 | </property> |
286 | <property stdset="1"> | 314 | <property stdset="1"> |
287 | <name>text</name> | 315 | <name>text</name> |
288 | <string>Request shared session</string> | 316 | <string>Request shared session</string> |
289 | </property> | 317 | </property> |
318 | <property> | ||
319 | <name>whatsThis</name> | ||
320 | <string>Allow other users to connect to the VNC server</string> | ||
321 | </property> | ||
290 | </widget> | 322 | </widget> |
291 | <widget> | 323 | <widget> |
292 | <class>QLayoutWidget</class> | 324 | <class>QLayoutWidget</class> |
293 | <property stdset="1"> | 325 | <property stdset="1"> |
294 | <name>name</name> | 326 | <name>name</name> |
295 | <cstring>Layout3</cstring> | 327 | <cstring>Layout3</cstring> |
296 | </property> | 328 | </property> |
297 | <hbox> | 329 | <hbox> |
298 | <property stdset="1"> | 330 | <property stdset="1"> |
299 | <name>margin</name> | 331 | <name>margin</name> |
300 | <number>0</number> | 332 | <number>0</number> |
301 | </property> | 333 | </property> |
302 | <property stdset="1"> | 334 | <property stdset="1"> |
303 | <name>spacing</name> | 335 | <name>spacing</name> |
304 | <number>6</number> | 336 | <number>6</number> |
305 | </property> | 337 | </property> |
306 | <widget> | 338 | <widget> |
307 | <class>QComboBox</class> | 339 | <class>QComboBox</class> |
308 | <item> | 340 | <item> |
309 | <property> | 341 | <property> |
310 | <name>text</name> | 342 | <name>text</name> |
311 | <string>1</string> | 343 | <string>1</string> |
312 | </property> | 344 | </property> |
313 | </item> | 345 | </item> |
314 | <item> | 346 | <item> |
315 | <property> | 347 | <property> |
316 | <name>text</name> | 348 | <name>text</name> |
317 | <string>2</string> | 349 | <string>2</string> |
318 | </property> | 350 | </property> |
319 | </item> | 351 | </item> |
320 | <item> | 352 | <item> |
321 | <property> | 353 | <property> |
322 | <name>text</name> | 354 | <name>text</name> |
323 | <string>4</string> | 355 | <string>4</string> |
324 | </property> | 356 | </property> |
325 | </item> | 357 | </item> |
326 | <property stdset="1"> | 358 | <property stdset="1"> |
327 | <name>name</name> | 359 | <name>name</name> |
328 | <cstring>scaleFactor</cstring> | 360 | <cstring>scaleFactor</cstring> |
329 | </property> | 361 | </property> |
362 | <property> | ||
363 | <name>whatsThis</name> | ||
364 | <string>Scale the remote display to fit on the PDA (Slow)</string> | ||
365 | </property> | ||
330 | </widget> | 366 | </widget> |
331 | <widget> | 367 | <widget> |
332 | <class>QLabel</class> | 368 | <class>QLabel</class> |
333 | <property stdset="1"> | 369 | <property stdset="1"> |
334 | <name>name</name> | 370 | <name>name</name> |
335 | <cstring>TextLabel2_3</cstring> | 371 | <cstring>TextLabel2_3</cstring> |
336 | </property> | 372 | </property> |
337 | <property stdset="1"> | 373 | <property stdset="1"> |
338 | <name>text</name> | 374 | <name>text</name> |
339 | <string>Scale Factor</string> | 375 | <string>Scale Factor</string> |
340 | </property> | 376 | </property> |
341 | </widget> | 377 | </widget> |
342 | </hbox> | 378 | </hbox> |
343 | </widget> | 379 | </widget> |
344 | <spacer> | 380 | <spacer> |
345 | <property> | 381 | <property> |
346 | <name>name</name> | 382 | <name>name</name> |
347 | <cstring>Spacer2</cstring> | 383 | <cstring>Spacer2</cstring> |
348 | </property> | 384 | </property> |
349 | <property stdset="1"> | 385 | <property stdset="1"> |
350 | <name>orientation</name> | 386 | <name>orientation</name> |
351 | <enum>Vertical</enum> | 387 | <enum>Vertical</enum> |
352 | </property> | 388 | </property> |
353 | <property stdset="1"> | 389 | <property stdset="1"> |
354 | <name>sizeType</name> | 390 | <name>sizeType</name> |
355 | <enum>Expanding</enum> | 391 | <enum>Expanding</enum> |
356 | </property> | 392 | </property> |
357 | <property> | 393 | <property> |
358 | <name>sizeHint</name> | 394 | <name>sizeHint</name> |
359 | <size> | 395 | <size> |
360 | <width>20</width> | 396 | <width>20</width> |
361 | <height>20</height> | 397 | <height>20</height> |
362 | </size> | 398 | </size> |
363 | </property> | 399 | </property> |
364 | </spacer> | 400 | </spacer> |
365 | </vbox> | 401 | </vbox> |
366 | </widget> | 402 | </widget> |
367 | <widget> | 403 | <widget> |
368 | <class>QWidget</class> | 404 | <class>QWidget</class> |
369 | <property stdset="1"> | 405 | <property stdset="1"> |
370 | <name>name</name> | 406 | <name>name</name> |
371 | <cstring>tab</cstring> | 407 | <cstring>tab</cstring> |
372 | </property> | 408 | </property> |
373 | <attribute> | 409 | <attribute> |
374 | <name>title</name> | 410 | <name>title</name> |
375 | <string>Encodings</string> | 411 | <string>Encodings</string> |
376 | </attribute> | 412 | </attribute> |
377 | <vbox> | 413 | <vbox> |
378 | <property stdset="1"> | 414 | <property stdset="1"> |
379 | <name>margin</name> | 415 | <name>margin</name> |
380 | <number>11</number> | 416 | <number>11</number> |
381 | </property> | 417 | </property> |
382 | <property stdset="1"> | 418 | <property stdset="1"> |
383 | <name>spacing</name> | 419 | <name>spacing</name> |
384 | <number>6</number> | 420 | <number>6</number> |
385 | </property> | 421 | </property> |
386 | <widget> | 422 | <widget> |
387 | <class>QCheckBox</class> | 423 | <class>QCheckBox</class> |
388 | <property stdset="1"> | 424 | <property stdset="1"> |
389 | <name>name</name> | 425 | <name>name</name> |
390 | <cstring>hex</cstring> | 426 | <cstring>hex</cstring> |
391 | </property> | 427 | </property> |
392 | <property stdset="1"> | 428 | <property stdset="1"> |
393 | <name>enabled</name> | 429 | <name>enabled</name> |
394 | <bool>false</bool> | 430 | <bool>false</bool> |
395 | </property> | 431 | </property> |
396 | <property stdset="1"> | 432 | <property stdset="1"> |
397 | <name>text</name> | 433 | <name>text</name> |
398 | <string>Hextile encoding</string> | 434 | <string>Hextile encoding</string> |
399 | </property> | 435 | </property> |
400 | </widget> | 436 | </widget> |
401 | <widget> | 437 | <widget> |
402 | <class>QCheckBox</class> | 438 | <class>QCheckBox</class> |
403 | <property stdset="1"> | 439 | <property stdset="1"> |
404 | <name>name</name> | 440 | <name>name</name> |
405 | <cstring>corre</cstring> | 441 | <cstring>corre</cstring> |
406 | </property> | 442 | </property> |
407 | <property stdset="1"> | 443 | <property stdset="1"> |
408 | <name>enabled</name> | 444 | <name>enabled</name> |
409 | <bool>false</bool> | 445 | <bool>false</bool> |
410 | </property> | 446 | </property> |
411 | <property stdset="1"> | 447 | <property stdset="1"> |
412 | <name>text</name> | 448 | <name>text</name> |
413 | <string>CoRRE encoding</string> | 449 | <string>CoRRE encoding</string> |
414 | </property> | 450 | </property> |
415 | </widget> | 451 | </widget> |
416 | <widget> | 452 | <widget> |
417 | <class>QCheckBox</class> | 453 | <class>QCheckBox</class> |
418 | <property stdset="1"> | 454 | <property stdset="1"> |
419 | <name>name</name> | 455 | <name>name</name> |
420 | <cstring>rre</cstring> | 456 | <cstring>rre</cstring> |
421 | </property> | 457 | </property> |
422 | <property stdset="1"> | 458 | <property stdset="1"> |
423 | <name>enabled</name> | 459 | <name>enabled</name> |
424 | <bool>false</bool> | 460 | <bool>false</bool> |
425 | </property> | 461 | </property> |
426 | <property stdset="1"> | 462 | <property stdset="1"> |
427 | <name>text</name> | 463 | <name>text</name> |
428 | <string>RRE encoding</string> | 464 | <string>RRE encoding</string> |
429 | </property> | 465 | </property> |
430 | </widget> | 466 | </widget> |
431 | <widget> | 467 | <widget> |
432 | <class>QCheckBox</class> | 468 | <class>QCheckBox</class> |
433 | <property stdset="1"> | 469 | <property stdset="1"> |
434 | <name>name</name> | 470 | <name>name</name> |
435 | <cstring>copyRect</cstring> | 471 | <cstring>copyRect</cstring> |
436 | </property> | 472 | </property> |
437 | <property stdset="1"> | 473 | <property stdset="1"> |
438 | <name>text</name> | 474 | <name>text</name> |
439 | <string>Copy rectangle encoding</string> | 475 | <string>Copy rectangle encoding</string> |
440 | </property> | 476 | </property> |
477 | <property> | ||
478 | <name>whatsThis</name> | ||
479 | <string>Enable transmiting identical rectangles as references to existing data</string> | ||
480 | </property> | ||
441 | </widget> | 481 | </widget> |
442 | <spacer> | 482 | <spacer> |
443 | <property> | 483 | <property> |
444 | <name>name</name> | 484 | <name>name</name> |
445 | <cstring>Spacer3</cstring> | 485 | <cstring>Spacer3</cstring> |
446 | </property> | 486 | </property> |
447 | <property stdset="1"> | 487 | <property stdset="1"> |
448 | <name>orientation</name> | 488 | <name>orientation</name> |
449 | <enum>Vertical</enum> | 489 | <enum>Vertical</enum> |
450 | </property> | 490 | </property> |
451 | <property stdset="1"> | 491 | <property stdset="1"> |
452 | <name>sizeType</name> | 492 | <name>sizeType</name> |
453 | <enum>Expanding</enum> | 493 | <enum>Expanding</enum> |
454 | </property> | 494 | </property> |
455 | <property> | 495 | <property> |
456 | <name>sizeHint</name> | 496 | <name>sizeHint</name> |
457 | <size> | 497 | <size> |
458 | <width>20</width> | 498 | <width>20</width> |
459 | <height>20</height> | 499 | <height>20</height> |
460 | </size> | 500 | </size> |
461 | </property> | 501 | </property> |
462 | </spacer> | 502 | </spacer> |
463 | </vbox> | 503 | </vbox> |
464 | </widget> | 504 | </widget> |
465 | </widget> | 505 | </widget> |
466 | </widget> | 506 | </widget> |
467 | <tabstops> | 507 | <tabstops> |
468 | <tabstop>TabWidget3</tabstop> | 508 | <tabstop>TabWidget3</tabstop> |
469 | <tabstop>serverHostname</tabstop> | 509 | <tabstop>serverHostname</tabstop> |
470 | <tabstop>serverDisplay</tabstop> | 510 | <tabstop>serverDisplay</tabstop> |
471 | <tabstop>serverPassword</tabstop> | 511 | <tabstop>serverPassword</tabstop> |
472 | <tabstop>serverBookmark</tabstop> | 512 | <tabstop>serverBookmark</tabstop> |
473 | <tabstop>timeBox</tabstop> | 513 | <tabstop>timeBox</tabstop> |
474 | <tabstop>bit</tabstop> | 514 | <tabstop>bit</tabstop> |
475 | <tabstop>deIconify</tabstop> | 515 | <tabstop>deIconify</tabstop> |
476 | <tabstop>shared</tabstop> | 516 | <tabstop>shared</tabstop> |
477 | <tabstop>hex</tabstop> | 517 | <tabstop>hex</tabstop> |
478 | <tabstop>corre</tabstop> | 518 | <tabstop>corre</tabstop> |
479 | <tabstop>rre</tabstop> | 519 | <tabstop>rre</tabstop> |
480 | <tabstop>copyRect</tabstop> | 520 | <tabstop>copyRect</tabstop> |
481 | </tabstops> | 521 | </tabstops> |
482 | </UI> | 522 | </UI> |