summaryrefslogtreecommitdiff
path: root/noncore/comm/keypebble/kvnc.cpp
authortreke <treke>2002-11-17 18:30:27 (UTC)
committer treke <treke>2002-11-17 18:30:27 (UTC)
commitbdecd392488dee486d302f683b91acf89708d4a6 (patch) (unidiff)
tree987ed4ddd7c5d0df0ef03f7a949f74837edc9ec7 /noncore/comm/keypebble/kvnc.cpp
parent44ffc30c0317e47f91ee20b3dc0b719a74d7991c (diff)
downloadopie-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
Diffstat (limited to 'noncore/comm/keypebble/kvnc.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/comm/keypebble/kvnc.cpp16
1 files changed, 16 insertions, 0 deletions
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
@@ -180,12 +180,24 @@ void KVNC::setupActions()
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
188void KVNC::toggleFullScreen() 200void KVNC::toggleFullScreen()
189{ 201{
190 if ( fullscreen ) { 202 if ( fullscreen ) {
191 canvas->releaseKeyboard(); 203 canvas->releaseKeyboard();
@@ -235,12 +247,14 @@ 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
245void KVNC::loggedIn() 259void KVNC::loggedIn()
246{ 260{
@@ -255,12 +269,14 @@ void KVNC::disconnected()
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
265void KVNC::statusMessage( const QString &m ) 281void KVNC::statusMessage( const QString &m )
266{ 282{