summaryrefslogtreecommitdiff
path: root/noncore/comm
authortreke <treke>2002-09-05 04:42:25 (UTC)
committer treke <treke>2002-09-05 04:42:25 (UTC)
commite2186a49cb5cbdf01b56f57818a15a760ff25b2e (patch) (unidiff)
treef22e7342c7a3adcccb6eed52a314fe8e301cc624 /noncore/comm
parentfd3239820e471044bf279a2964702573572859d6 (diff)
downloadopie-e2186a49cb5cbdf01b56f57818a15a760ff25b2e.zip
opie-e2186a49cb5cbdf01b56f57818a15a760ff25b2e.tar.gz
opie-e2186a49cb5cbdf01b56f57818a15a760ff25b2e.tar.bz2
Added support for client side scaling of the screen. Slow, but sometimes usable.
Diffstat (limited to 'noncore/comm') (more/less context) (show whitespace changes)
-rw-r--r--noncore/comm/keypebble/krfbbuffer.cpp11
-rw-r--r--noncore/comm/keypebble/krfbcanvas.cpp5
-rw-r--r--noncore/comm/keypebble/krfbdecoder.cpp7
-rw-r--r--noncore/comm/keypebble/krfbdecoder.h5
-rw-r--r--noncore/comm/keypebble/krfbserver.cpp2
-rw-r--r--noncore/comm/keypebble/krfbserver.h1
-rw-r--r--noncore/comm/keypebble/kvnc.cpp8
-rw-r--r--noncore/comm/keypebble/kvnc.h3
-rw-r--r--noncore/comm/keypebble/kvncbookmarkdlg.cpp3
-rw-r--r--noncore/comm/keypebble/kvncconndlg.cpp21
-rw-r--r--noncore/comm/keypebble/kvncconndlg.h1
-rw-r--r--noncore/comm/keypebble/kvncconndlgbase.ui180
12 files changed, 172 insertions, 75 deletions
diff --git a/noncore/comm/keypebble/krfbbuffer.cpp b/noncore/comm/keypebble/krfbbuffer.cpp
index 5a52f31..f1cb929 100644
--- a/noncore/comm/keypebble/krfbbuffer.cpp
+++ b/noncore/comm/keypebble/krfbbuffer.cpp
@@ -6,6 +6,8 @@
6#include <qapplication.h> 6#include <qapplication.h>
7#include "krfbdecoder.h" 7#include "krfbdecoder.h"
8#include "krfbbuffer.h" 8#include "krfbbuffer.h"
9#include "krfbconnection.h"
10#include "krfbserver.h"
9#include "krfbserverinfo.h" 11#include "krfbserverinfo.h"
10 12
11// 13//
@@ -86,6 +88,7 @@ void KRFBBuffer::drawRawRectChunk( void *data,
86{ 88{
87 QImage img( w, h, 32 ); 89 QImage img( w, h, 32 );
88 90
91 int scaleFactor=decoder->con->options()->scaleFactor;
89 int redMax = Swap16IfLE( decoder->format->redMax ); 92 int redMax = Swap16IfLE( decoder->format->redMax );
90 int greenMax = Swap16IfLE( decoder->format->greenMax ); 93 int greenMax = Swap16IfLE( decoder->format->greenMax );
91 int blueMax = Swap16IfLE( decoder->format->blueMax ); 94 int blueMax = Swap16IfLE( decoder->format->blueMax );
@@ -97,6 +100,7 @@ void KRFBBuffer::drawRawRectChunk( void *data,
97 100
98 uint r,g,b; 101 uint r,g,b;
99 102
103
100 for ( int j = 0; j < h; j++ ) { 104 for ( int j = 0; j < h; j++ ) {
101 for ( int i = 0; i < w ; i++ ) { 105 for ( int i = 0; i < w ; i++ ) {
102 r = d[ j * w + i ]; 106 r = d[ j * w + i ];
@@ -187,8 +191,13 @@ void KRFBBuffer::drawRawRectChunk( void *data,
187 p.drawRect( x, y, w, h ); 191 p.drawRect( x, y, w, h );
188 } 192 }
189 193
194 if (scaleFactor > 1) {
195 p.drawImage( x/scaleFactor, y/scaleFactor, img.smoothScale(w/scaleFactor,h/scaleFactor) );
196 emit updated( x/scaleFactor, y/scaleFactor, w/scaleFactor, h/scaleFactor );
197 }
198 else {
190 p.drawImage( x, y, img ); 199 p.drawImage( x, y, img );
191
192 emit updated( x, y, w, h ); 200 emit updated( x, y, w, h );
193} 201}
202}
194 203
diff --git a/noncore/comm/keypebble/krfbcanvas.cpp b/noncore/comm/keypebble/krfbcanvas.cpp
index 8b56795..896de7f 100644
--- a/noncore/comm/keypebble/krfbcanvas.cpp
+++ b/noncore/comm/keypebble/krfbcanvas.cpp
@@ -22,7 +22,8 @@ KRFBCanvas::KRFBCanvas( QWidget *parent, const char *name )
22 this, SLOT( loggedIn() ) ); 22 this, SLOT( loggedIn() ) );
23 23
24 loggedIn_ = false; 24 loggedIn_ = false;
25 QPEApplication::setStylusOperation(viewport(), QPEApplication::RightOnHold); 25
26 //QPEApplication::setStylusOperation(viewport(), QPEApplication::RightOnHold);
26 27
27 viewport()->setFocusPolicy( QWidget::StrongFocus ); 28 viewport()->setFocusPolicy( QWidget::StrongFocus );
28 viewport()->setFocus(); 29 viewport()->setFocus();
@@ -104,6 +105,8 @@ void KRFBCanvas::viewportPaintEvent( QPaintEvent *e )
104 QRect r = e->rect(); 105 QRect r = e->rect();
105 106
106 if ( loggedIn_ ) { 107 if ( loggedIn_ ) {
108 QPixmap p;
109
107 bitBlt( viewport(), r.x(), r.y(), 110 bitBlt( viewport(), r.x(), r.y(),
108 connection_->buffer()->pixmap(), 111 connection_->buffer()->pixmap(),
109 r.x() + contentsX(), r.y() + contentsY(), 112 r.x() + contentsX(), r.y() + contentsY(),
diff --git a/noncore/comm/keypebble/krfbdecoder.cpp b/noncore/comm/keypebble/krfbdecoder.cpp
index a964c09..94e3b79 100644
--- a/noncore/comm/keypebble/krfbdecoder.cpp
+++ b/noncore/comm/keypebble/krfbdecoder.cpp
@@ -195,7 +195,7 @@ void KRFBDecoder::gotServerInit()
195 qWarning( "RedShift = %d, GreenShift = %d, BlueShift = %d", 195 qWarning( "RedShift = %d, GreenShift = %d, BlueShift = %d",
196 info->redShift, info->greenShift,info-> blueShift ); 196 info->redShift, info->greenShift,info-> blueShift );
197 197
198 buf->resize( info->width, info->height ); 198 buf->resize( info->width/con->options()->scaleFactor, info->height /con->options()->scaleFactor);
199 199
200 // Wait for desktop name 200 // Wait for desktop name
201 qWarning( "Waiting for desktop name" ); 201 qWarning( "Waiting for desktop name" );
@@ -642,8 +642,9 @@ void KRFBDecoder::sendMouseEvent( QMouseEvent *e )
642 } 642 }
643 } 643 }
644 644
645 CARD16 x = Swap16IfLE( e->x() ); 645 // HACK: Scaling
646 CARD16 y = Swap16IfLE( e->y() ); 646 CARD16 x = Swap16IfLE( e->x() * con->options()->scaleFactor );
647 CARD16 y = Swap16IfLE( e->y() *con->options()->scaleFactor );
647 648
648 con->write( &PointerEventId, 1 ); 649 con->write( &PointerEventId, 1 );
649 con->write( &buttonMask, 1 ); 650 con->write( &buttonMask, 1 );
diff --git a/noncore/comm/keypebble/krfbdecoder.h b/noncore/comm/keypebble/krfbdecoder.h
index 4ba0185..db6271d 100644
--- a/noncore/comm/keypebble/krfbdecoder.h
+++ b/noncore/comm/keypebble/krfbdecoder.h
@@ -98,6 +98,9 @@ signals:
98 void error( const QString & ); 98 void error( const QString & );
99 void status( const QString & ); 99 void status( const QString & );
100 100
101protected:
102 /** The connection to the server. */
103 KRFBConnection *con;
101private: 104private:
102 State currentState; 105 State currentState;
103 106
@@ -118,8 +121,6 @@ private:
118 121
119 /** Where we draw the data (and the source of our events). */ 122 /** Where we draw the data (and the source of our events). */
120 KRFBBuffer *buf; 123 KRFBBuffer *buf;
121 /** The connection to the server. */
122 KRFBConnection *con;
123 124
124 /** Info about the RFB server. */ 125 /** Info about the RFB server. */
125 KRFBServerInfo *info; 126 KRFBServerInfo *info;
diff --git a/noncore/comm/keypebble/krfbserver.cpp b/noncore/comm/keypebble/krfbserver.cpp
index 5775f09..b47534e 100644
--- a/noncore/comm/keypebble/krfbserver.cpp
+++ b/noncore/comm/keypebble/krfbserver.cpp
@@ -9,6 +9,8 @@ KRFBServer::KRFBServer()
9 QString password; 9 QString password;
10 display=0; 10 display=0;
11 11
12 scaleFactor=1;
13
12 hexTile=0; 14 hexTile=0;
13 corre=0; 15 corre=0;
14 rre=0; 16 rre=0;
diff --git a/noncore/comm/keypebble/krfbserver.h b/noncore/comm/keypebble/krfbserver.h
index f87eecc..e38e2d2 100644
--- a/noncore/comm/keypebble/krfbserver.h
+++ b/noncore/comm/keypebble/krfbserver.h
@@ -29,6 +29,7 @@ public:
29 bool deIconify; 29 bool deIconify;
30 30
31 int updateRate; 31 int updateRate;
32 int scaleFactor;
32}; 33};
33 34
34#endif // KRFBOPTIONS_H 35#endif // KRFBOPTIONS_H
diff --git a/noncore/comm/keypebble/kvnc.cpp b/noncore/comm/keypebble/kvnc.cpp
index aa46e2f..b173004 100644
--- a/noncore/comm/keypebble/kvnc.cpp
+++ b/noncore/comm/keypebble/kvnc.cpp
@@ -72,6 +72,7 @@ KVNC::KVNC( const char *name ) : QMainWindow( 0, name )
72 stack->addWidget(canvas,get_unique_id()); 72 stack->addWidget(canvas,get_unique_id());
73 setCentralWidget( stack ); 73 setCentralWidget( stack );
74 74
75
75 connect( bookmarkSelector->bookmarkList, SIGNAL(doubleClicked(QListBoxItem *)), 76 connect( bookmarkSelector->bookmarkList, SIGNAL(doubleClicked(QListBoxItem *)),
76 this, SLOT(openConnection(QListBoxItem *)) ); 77 this, SLOT(openConnection(QListBoxItem *)) );
77 connect( canvas->connection(), SIGNAL(statusChanged(const QString &)), 78 connect( canvas->connection(), SIGNAL(statusChanged(const QString &)),
@@ -92,7 +93,10 @@ KVNC::KVNC( const char *name ) : QMainWindow( 0, name )
92 stack->raiseWidget( bookmarkSelector ); 93 stack->raiseWidget( bookmarkSelector );
93 94
94 95
95 QPEToolBar *bar = new QPEToolBar( this ); 96 bar= new QToolBar( this );
97 setToolBarsMovable( false );
98 setRightJustification(false);
99
96 100
97 QAction *n = new QAction( tr( "New Connection" ), Resource::loadPixmap( "new" ), 101 QAction *n = new QAction( tr( "New Connection" ), Resource::loadPixmap( "new" ),
98 QString::null, 0, this, 0 ); 102 QString::null, 0, this, 0 );
@@ -235,6 +239,7 @@ void KVNC::connected()
235 disconnectAction->setEnabled( true ); 239 disconnectAction->setEnabled( true );
236 fullScreenAction->setEnabled( true ); 240 fullScreenAction->setEnabled( true );
237 stack->raiseWidget(canvas); 241 stack->raiseWidget(canvas);
242 bar->hide();
238} 243}
239 244
240void KVNC::loggedIn() 245void KVNC::loggedIn()
@@ -254,6 +259,7 @@ void KVNC::disconnected()
254 disconnectAction->setEnabled( false ); 259 disconnectAction->setEnabled( false );
255 fullScreenAction->setEnabled( false ); 260 fullScreenAction->setEnabled( false );
256 stack->raiseWidget(bookmarkSelector); 261 stack->raiseWidget(bookmarkSelector);
262 bar->show();
257} 263}
258 264
259void KVNC::statusMessage( const QString &m ) 265void KVNC::statusMessage( const QString &m )
diff --git a/noncore/comm/keypebble/kvnc.h b/noncore/comm/keypebble/kvnc.h
index 6e0a385..82a24fc 100644
--- a/noncore/comm/keypebble/kvnc.h
+++ b/noncore/comm/keypebble/kvnc.h
@@ -4,7 +4,7 @@
4#define KVNC_H 4#define KVNC_H
5 5
6#include <qmainwindow.h> 6#include <qmainwindow.h>
7#include <qurl.h> 7#include <qtoolbar.h>
8#include <qwidgetstack.h> 8#include <qwidgetstack.h>
9#include "kvncbookmarkdlg.h" 9#include "kvncbookmarkdlg.h"
10 10
@@ -57,6 +57,7 @@ private:
57 QAction *disconnectAction; 57 QAction *disconnectAction;
58 QAction *ctlAltDelAction;; 58 QAction *ctlAltDelAction;;
59 QAction *connectAction; 59 QAction *connectAction;
60 QToolBar * bar;
60 61
61 KVNCBookmarkDlg * bookmarkSelector; 62 KVNCBookmarkDlg * bookmarkSelector;
62 QWidgetStack * stack; 63 QWidgetStack * stack;
diff --git a/noncore/comm/keypebble/kvncbookmarkdlg.cpp b/noncore/comm/keypebble/kvncbookmarkdlg.cpp
index 1f97d13..1e2f3c3 100644
--- a/noncore/comm/keypebble/kvncbookmarkdlg.cpp
+++ b/noncore/comm/keypebble/kvncbookmarkdlg.cpp
@@ -161,6 +161,8 @@ void KVNCBookmarkDlg::readBookmarks(void)
161 server->deIconify=val.toInt(); 161 server->deIconify=val.toInt();
162 else if (key=="updaterate") 162 else if (key=="updaterate")
163 server->updateRate=val.toInt(); 163 server->updateRate=val.toInt();
164 else if (key=="scalefactor")
165 server->scaleFactor=val.toInt();
164 166
165 } 167 }
166 if (server){ 168 if (server){
@@ -200,6 +202,7 @@ void KVNCBookmarkDlg::writeBookmarks(void)
200 t << "\treadonly=" << server->readOnly << '\n'; 202 t << "\treadonly=" << server->readOnly << '\n';
201 t << "\tdeiconify=" << server->deIconify << '\n'; 203 t << "\tdeiconify=" << server->deIconify << '\n';
202 t << "\tupdaterate=" << server->updateRate << '\n'; 204 t << "\tupdaterate=" << server->updateRate << '\n';
205 t << "\tscalefactor=" << server->scaleFactor << '\n';
203 206
204 } 207 }
205 f.close(); 208 f.close();
diff --git a/noncore/comm/keypebble/kvncconndlg.cpp b/noncore/comm/keypebble/kvncconndlg.cpp
index 6873feb..2f073f8 100644
--- a/noncore/comm/keypebble/kvncconndlg.cpp
+++ b/noncore/comm/keypebble/kvncconndlg.cpp
@@ -1,6 +1,7 @@
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 <qspinbox.h> 5#include <qspinbox.h>
5#include <qlabel.h> 6#include <qlabel.h>
6#include <qlayout.h> 7#include <qlayout.h>
@@ -29,6 +30,12 @@ KVNCConnDlg::KVNCConnDlg( KRFBServer *options,
29 rre->setChecked( options->rre ); 30 rre->setChecked( options->rre );
30 copyRect->setChecked( options->copyrect ); 31 copyRect->setChecked( options->copyrect );
31 32
33 for (int i=0; i < scaleFactor->count(); ++i) {
34 if (scaleFactor->text(i).toInt()==tmpOptions.scaleFactor) {
35 scaleFactor->setCurrentItem(i);
36 }
37 }
38
32 // TODO 39 // TODO
33 hex->setEnabled( false ); 40 hex->setEnabled( false );
34 corre->setEnabled( false ); 41 corre->setEnabled( false );
@@ -40,9 +47,12 @@ KVNCConnDlg::KVNCConnDlg( KRFBServer *options,
40 shared->setChecked( options->shared ); 47 shared->setChecked( options->shared );
41 timeBox->setValue( options->updateRate ); 48 timeBox->setValue( options->updateRate );
42 49
50 serverPassword->setEchoMode(QLineEdit::Password);
51
52 connect(togglePassword, SIGNAL( stateChanged(int) ), this, SLOT( showPassword(int) ) );
43 53
44}
45 54
55}
46KVNCConnDlg::~KVNCConnDlg() 56KVNCConnDlg::~KVNCConnDlg()
47{ 57{
48} 58}
@@ -66,6 +76,7 @@ void KVNCConnDlg::save()
66 tmpOptions.password = serverPassword->text(); 76 tmpOptions.password = serverPassword->text();
67 tmpOptions.display = serverDisplay->value(); 77 tmpOptions.display = serverDisplay->value();
68 tmpOptions.name = serverBookmark->text(); 78 tmpOptions.name = serverBookmark->text();
79 tmpOptions.scaleFactor = scaleFactor->currentText().toInt();
69 80
70 if (!serverBookmark->text().isEmpty()) { 81 if (!serverBookmark->text().isEmpty()) {
71 if ( options) { 82 if ( options) {
@@ -73,3 +84,11 @@ void KVNCConnDlg::save()
73 } 84 }
74 } 85 }
75} 86}
87
88void KVNCConnDlg::showPassword(int show)
89{
90 if (show)
91 serverPassword->setEchoMode(QLineEdit::Normal);
92 else
93 serverPassword->setEchoMode(QLineEdit::Password);
94}
diff --git a/noncore/comm/keypebble/kvncconndlg.h b/noncore/comm/keypebble/kvncconndlg.h
index fae7d62..5e84750 100644
--- a/noncore/comm/keypebble/kvncconndlg.h
+++ b/noncore/comm/keypebble/kvncconndlg.h
@@ -20,6 +20,7 @@ class KVNCConnDlg : public KVNCConnDlgBase
20 void accept(); 20 void accept();
21 private slots: 21 private slots:
22 void save(); 22 void save();
23 void showPassword(int);
23 24
24 private: 25 private:
25 KRFBServer tmpOptions; 26 KRFBServer tmpOptions;
diff --git a/noncore/comm/keypebble/kvncconndlgbase.ui b/noncore/comm/keypebble/kvncconndlgbase.ui
index df0d375..42765c1 100644
--- a/noncore/comm/keypebble/kvncconndlgbase.ui
+++ b/noncore/comm/keypebble/kvncconndlgbase.ui
@@ -11,8 +11,8 @@
11 <rect> 11 <rect>
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>984</width> 14 <width>260</width>
15 <height>676</height> 15 <height>242</height>
16 </rect> 16 </rect>
17 </property> 17 </property>
18 <property stdset="1"> 18 <property stdset="1">
@@ -22,21 +22,21 @@
22 <property> 22 <property>
23 <name>layoutMargin</name> 23 <name>layoutMargin</name>
24 </property> 24 </property>
25 <vbox>
26 <property stdset="1">
27 <name>margin</name>
28 <number>0</number>
29 </property>
30 <property stdset="1">
31 <name>spacing</name>
32 <number>6</number>
33 </property>
34 <widget> 25 <widget>
35 <class>QTabWidget</class> 26 <class>QTabWidget</class>
36 <property stdset="1"> 27 <property stdset="1">
37 <name>name</name> 28 <name>name</name>
38 <cstring>TabWidget3</cstring> 29 <cstring>TabWidget3</cstring>
39 </property> 30 </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">
@@ -56,56 +56,59 @@
56 <name>spacing</name> 56 <name>spacing</name>
57 <number>6</number> 57 <number>6</number>
58 </property> 58 </property>
59 <widget row="0" column="0" > 59 <widget row="2" column="1" rowspan="1" colspan="2" >
60 <class>QLabel</class> 60 <class>QLineEdit</class>
61 <property stdset="1"> 61 <property stdset="1">
62 <name>name</name> 62 <name>name</name>
63 <cstring>hostname</cstring> 63 <cstring>serverPassword</cstring>
64 </property> 64 </property>
65 <property stdset="1"> 65 <property stdset="1">
66 <name>text</name> 66 <name>autoMask</name>
67 <string>Host Name:</string> 67 <bool>true</bool>
68 </property>
69 <property stdset="1">
70 <name>echoMode</name>
71 <enum>Password</enum>
68 </property> 72 </property>
69 </widget> 73 </widget>
70 <widget row="1" column="0" > 74 <widget row="3" column="1" >
71 <class>QLabel</class> 75 <class>QCheckBox</class>
72 <property stdset="1"> 76 <property stdset="1">
73 <name>name</name> 77 <name>name</name>
74 <cstring>TextLabel2_2</cstring> 78 <cstring>togglePassword</cstring>
75 </property> 79 </property>
76 <property stdset="1"> 80 <property stdset="1">
77 <name>text</name> 81 <name>text</name>
78 <string>Display Number:</string> 82 <string>Show Password</string>
79 </property> 83 </property>
80 </widget> 84 </widget>
81 <widget row="2" column="1" rowspan="1" colspan="2" > 85 <widget row="2" column="0" >
82 <class>QLineEdit</class> 86 <class>QLabel</class>
83 <property stdset="1"> 87 <property stdset="1">
84 <name>name</name> 88 <name>name</name>
85 <cstring>serverPassword</cstring> 89 <cstring>TextLabel3</cstring>
86 </property> 90 </property>
87 <property stdset="1"> 91 <property stdset="1">
88 <name>autoMask</name> 92 <name>text</name>
89 <bool>true</bool> 93 <string>Password:</string>
90 </property> 94 </property>
91 </widget> 95 </widget>
92 <widget row="1" column="1" rowspan="1" colspan="2" > 96 <widget row="4" column="1" rowspan="1" colspan="2" >
93 <class>QSpinBox</class> 97 <class>QLineEdit</class>
94 <property stdset="1"> 98 <property stdset="1">
95 <name>name</name> 99 <name>name</name>
96 <cstring>serverDisplay</cstring> 100 <cstring>serverBookmark</cstring>
97 </property>
98 <property stdset="1">
99 <name>maxValue</name>
100 <number>500</number>
101 </property> 101 </property>
102 </widget>
103 <widget row="4" column="0" >
104 <class>QLabel</class>
102 <property stdset="1"> 105 <property stdset="1">
103 <name>minValue</name> 106 <name>name</name>
104 <number>0</number> 107 <cstring>TextLabel1_2</cstring>
105 </property> 108 </property>
106 <property stdset="1"> 109 <property stdset="1">
107 <name>value</name> 110 <name>text</name>
108 <number>0</number> 111 <string>Bookmark Name:</string>
109 </property> 112 </property>
110 </widget> 113 </widget>
111 <widget row="0" column="1" rowspan="1" colspan="2" > 114 <widget row="0" column="1" rowspan="1" colspan="2" >
@@ -115,33 +118,45 @@
115 <cstring>serverHostname</cstring> 118 <cstring>serverHostname</cstring>
116 </property> 119 </property>
117 </widget> 120 </widget>
118 <widget row="2" column="0" > 121 <widget row="0" column="0" >
119 <class>QLabel</class> 122 <class>QLabel</class>
120 <property stdset="1"> 123 <property stdset="1">
121 <name>name</name> 124 <name>name</name>
122 <cstring>TextLabel3</cstring> 125 <cstring>hostname</cstring>
123 </property> 126 </property>
124 <property stdset="1"> 127 <property stdset="1">
125 <name>text</name> 128 <name>text</name>
126 <string>Password:</string> 129 <string>Host Name:</string>
127 </property> 130 </property>
128 </widget> 131 </widget>
129 <widget row="3" column="1" rowspan="1" colspan="2" > 132 <widget row="1" column="0" >
130 <class>QLineEdit</class> 133 <class>QLabel</class>
131 <property stdset="1"> 134 <property stdset="1">
132 <name>name</name> 135 <name>name</name>
133 <cstring>serverBookmark</cstring> 136 <cstring>TextLabel2_2</cstring>
137 </property>
138 <property stdset="1">
139 <name>text</name>
140 <string>Display Number:</string>
134 </property> 141 </property>
135 </widget> 142 </widget>
136 <widget row="3" column="0" > 143 <widget row="1" column="1" rowspan="1" colspan="2" >
137 <class>QLabel</class> 144 <class>QSpinBox</class>
138 <property stdset="1"> 145 <property stdset="1">
139 <name>name</name> 146 <name>name</name>
140 <cstring>TextLabel1_2</cstring> 147 <cstring>serverDisplay</cstring>
141 </property> 148 </property>
142 <property stdset="1"> 149 <property stdset="1">
143 <name>text</name> 150 <name>maxValue</name>
144 <string>Bookmark Name:</string> 151 <number>500</number>
152 </property>
153 <property stdset="1">
154 <name>minValue</name>
155 <number>0</number>
156 </property>
157 <property stdset="1">
158 <name>value</name>
159 <number>0</number>
145 </property> 160 </property>
146 </widget> 161 </widget>
147 <spacer row="5" column="2" > 162 <spacer row="5" column="2" >
@@ -165,23 +180,6 @@
165 </size> 180 </size>
166 </property> 181 </property>
167 </spacer> 182 </spacer>
168 <widget row="4" column="1" >
169 <class>QLayoutWidget</class>
170 <property stdset="1">
171 <name>name</name>
172 <cstring>Layout3</cstring>
173 </property>
174 <hbox>
175 <property stdset="1">
176 <name>margin</name>
177 <number>0</number>
178 </property>
179 <property stdset="1">
180 <name>spacing</name>
181 <number>6</number>
182 </property>
183 </hbox>
184 </widget>
185 </grid> 183 </grid>
186 </widget> 184 </widget>
187 <widget> 185 <widget>
@@ -290,6 +288,59 @@
290 <string>Request shared session</string> 288 <string>Request shared session</string>
291 </property> 289 </property>
292 </widget> 290 </widget>
291 <widget>
292 <class>QLayoutWidget</class>
293 <property stdset="1">
294 <name>name</name>
295 <cstring>Layout3</cstring>
296 </property>
297 <hbox>
298 <property stdset="1">
299 <name>margin</name>
300 <number>0</number>
301 </property>
302 <property stdset="1">
303 <name>spacing</name>
304 <number>6</number>
305 </property>
306 <widget>
307 <class>QComboBox</class>
308 <item>
309 <property>
310 <name>text</name>
311 <string>1</string>
312 </property>
313 </item>
314 <item>
315 <property>
316 <name>text</name>
317 <string>2</string>
318 </property>
319 </item>
320 <item>
321 <property>
322 <name>text</name>
323 <string>4</string>
324 </property>
325 </item>
326 <property stdset="1">
327 <name>name</name>
328 <cstring>scaleFactor</cstring>
329 </property>
330 </widget>
331 <widget>
332 <class>QLabel</class>
333 <property stdset="1">
334 <name>name</name>
335 <cstring>TextLabel2_3</cstring>
336 </property>
337 <property stdset="1">
338 <name>text</name>
339 <string>Scale Factor</string>
340 </property>
341 </widget>
342 </hbox>
343 </widget>
293 <spacer> 344 <spacer>
294 <property> 345 <property>
295 <name>name</name> 346 <name>name</name>
@@ -412,7 +463,6 @@
412 </vbox> 463 </vbox>
413 </widget> 464 </widget>
414 </widget> 465 </widget>
415 </vbox>
416</widget> 466</widget>
417<tabstops> 467<tabstops>
418 <tabstop>TabWidget3</tabstop> 468 <tabstop>TabWidget3</tabstop>