author | zecke <zecke> | 2004-10-16 21:06:28 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-16 21:06:28 (UTC) |
commit | 999a0f2d22f132005bde62558ace48a0ce8b1dcc (patch) (unidiff) | |
tree | 75f528b52a8a89289925e62bbd4c48d316c8ddcf /noncore/apps/opie-console/TEWidget.cpp | |
parent | e70f226f5c4c2f488f6c4406034a04e128c0ca93 (diff) | |
download | opie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.zip opie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.tar.gz opie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.tar.bz2 |
-Remove never finished classes by ibotty for the console widget
-Put setCurrent into ComboboxHelper and remove duplication from the
dialogs
-Remove old and unneeded debug output
-IOBt, IOIrda can share the implementation for sening,recieving
and supports with IOSerial
Diffstat (limited to 'noncore/apps/opie-console/TEWidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/TEWidget.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/TEWidget.cpp b/noncore/apps/opie-console/TEWidget.cpp index d168a5e..98c1793 100644 --- a/noncore/apps/opie-console/TEWidget.cpp +++ b/noncore/apps/opie-console/TEWidget.cpp | |||
@@ -1020,25 +1020,24 @@ bool TEWidget::eventFilter( QObject *obj, QEvent *e ) | |||
1020 | static_cast<QKeyEvent *>( e )->ignore(); | 1020 | static_cast<QKeyEvent *>( e )->ignore(); |
1021 | return true; | 1021 | return true; |
1022 | } | 1022 | } |
1023 | if ( obj != this /* when embedded */ && obj != parent() /* when standalone */ ) | 1023 | if ( obj != this /* when embedded */ && obj != parent() /* when standalone */ ) |
1024 | return FALSE; // not us | 1024 | return FALSE; // not us |
1025 | if ( e->type() == QEvent::Wheel) { | 1025 | if ( e->type() == QEvent::Wheel) { |
1026 | QApplication::sendEvent(scrollbar, e); | 1026 | QApplication::sendEvent(scrollbar, e); |
1027 | } | 1027 | } |
1028 | 1028 | ||
1029 | #ifdef FAKE_CTRL_AND_ALT | 1029 | #ifdef FAKE_CTRL_AND_ALT |
1030 | static bool control = FALSE; | 1030 | static bool control = FALSE; |
1031 | static bool alt = FALSE; | 1031 | static bool alt = FALSE; |
1032 | // odebug << " Has a keyboard with no CTRL and ALT keys, but we fake it:" << oendl; | ||
1033 | bool dele=FALSE; | 1032 | bool dele=FALSE; |
1034 | if ( e->type() == QEvent::KeyPress || e->type() == QEvent::KeyRelease ) { | 1033 | if ( e->type() == QEvent::KeyPress || e->type() == QEvent::KeyRelease ) { |
1035 | QKeyEvent* ke = (QKeyEvent*)e; | 1034 | QKeyEvent* ke = (QKeyEvent*)e; |
1036 | bool keydown = e->type() == QEvent::KeyPress || ke->isAutoRepeat(); | 1035 | bool keydown = e->type() == QEvent::KeyPress || ke->isAutoRepeat(); |
1037 | switch (ke->key()) { | 1036 | switch (ke->key()) { |
1038 | case Key_F9: // let this be "Control" | 1037 | case Key_F9: // let this be "Control" |
1039 | control = keydown; | 1038 | control = keydown; |
1040 | e = new QKeyEvent(QEvent::KeyPress, Key_Control, 0, ke->state()); | 1039 | e = new QKeyEvent(QEvent::KeyPress, Key_Control, 0, ke->state()); |
1041 | dele=TRUE; | 1040 | dele=TRUE; |
1042 | break; | 1041 | break; |
1043 | case Key_F13: // let this be "Alt" | 1042 | case Key_F13: // let this be "Alt" |
1044 | alt = keydown; | 1043 | alt = keydown; |
@@ -1059,29 +1058,26 @@ bool TEWidget::eventFilter( QObject *obj, QEvent *e ) | |||
1059 | ke->ascii(), ke->state()|AltButton, ke->text()); | 1058 | ke->ascii(), ke->state()|AltButton, ke->text()); |
1060 | dele=TRUE; | 1059 | dele=TRUE; |
1061 | } | 1060 | } |
1062 | } | 1061 | } |
1063 | } | 1062 | } |
1064 | #endif | 1063 | #endif |
1065 | 1064 | ||
1066 | if ( e->type() == QEvent::KeyPress ) { | 1065 | if ( e->type() == QEvent::KeyPress ) { |
1067 | QKeyEvent* ke = (QKeyEvent*)e; | 1066 | QKeyEvent* ke = (QKeyEvent*)e; |
1068 | actSel=0; // Key stroke implies a screen update, so TEWidget won't | 1067 | actSel=0; // Key stroke implies a screen update, so TEWidget won't |
1069 | // know where the current selection is. | 1068 | // know where the current selection is. |
1070 | 1069 | ||
1071 | // odebug << "key pressed is 0x" << ke->key() << "" << oendl; | ||
1072 | 1070 | ||
1073 | if( ke->state() == ShiftButton && ke->key() == Key_Tab) { //lets hardcode this sucker | 1071 | if( ke->state() == ShiftButton && ke->key() == Key_Tab) { //lets hardcode this sucker |
1074 | |||
1075 | // odebug << "key pressed 2 is 0x" << ke->key() << "" << oendl; | ||
1076 | emitText("\\"); // expose | 1072 | emitText("\\"); // expose |
1077 | } else | 1073 | } else |
1078 | emit keyPressedSignal(ke); // expose | 1074 | emit keyPressedSignal(ke); // expose |
1079 | ke->accept(); | 1075 | ke->accept(); |
1080 | #ifdef FAKE_CTRL_AND_ALT | 1076 | #ifdef FAKE_CTRL_AND_ALT |
1081 | if ( dele ) delete e; | 1077 | if ( dele ) delete e; |
1082 | #endif | 1078 | #endif |
1083 | return true; // stop the event | 1079 | return true; // stop the event |
1084 | } | 1080 | } |
1085 | if ( e->type() == QEvent::Enter ) { | 1081 | if ( e->type() == QEvent::Enter ) { |
1086 | QObject::disconnect( (QObject*)cb, SIGNAL(dataChanged()), | 1082 | QObject::disconnect( (QObject*)cb, SIGNAL(dataChanged()), |
1087 | this, SLOT(onClearSelection()) ); | 1083 | this, SLOT(onClearSelection()) ); |