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 /noncore/comm/keypebble/kvnc.cpp | |
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
Diffstat (limited to 'noncore/comm/keypebble/kvnc.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/comm/keypebble/kvnc.cpp | 16 |
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 | |||
@@ -183,6 +183,18 @@ void KVNC::setupActions() | |||
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() |
@@ -238,6 +250,8 @@ void KVNC::connected() | |||
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 | } |
@@ -258,6 +272,8 @@ void KVNC::disconnected() | |||
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 | } |