summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/opie-console.pro4
-rw-r--r--noncore/apps/opie-console/quick_button.cpp67
-rw-r--r--noncore/apps/opie-console/quick_button.h27
3 files changed, 2 insertions, 96 deletions
diff --git a/noncore/apps/opie-console/opie-console.pro b/noncore/apps/opie-console/opie-console.pro
index 51b42bf..f5737d4 100644
--- a/noncore/apps/opie-console/opie-console.pro
+++ b/noncore/apps/opie-console/opie-console.pro
@@ -20,13 +20,13 @@ HEADERS = io_layer.h io_serial.h io_irda.h io_bt.h io_modem.h \
default.h \
iolayerbase.h \
serialconfigwidget.h irdaconfigwidget.h \
btconfigwidget.h modemconfigwidget.h \
atconfigdialog.h dialdialog.h \
procctl.h \
- function_keyboard.h quick_button.h \
+ function_keyboard.h \
receive_layer.h filereceive.h \
script.h \
dialer.h \
terminalwidget.h \
emulation_handler.h TECommon.h \
TEHistroy.h TEScreen.h TEWidget.h \
@@ -49,13 +49,13 @@ SOURCES = io_layer.cpp io_serial.cpp io_irda.cpp io_bt.cpp io_modem.cpp \
profileeditordialog.cpp \
iolayerbase.cpp \
serialconfigwidget.cpp irdaconfigwidget.cpp \
btconfigwidget.cpp modemconfigwidget.cpp \
atconfigdialog.cpp dialdialog.cpp \
default.cpp procctl.cpp \
- function_keyboard.cpp quick_button.cpp \
+ function_keyboard.cpp \
receive_layer.cpp filereceive.cpp \
script.cpp \
dialer.cpp \
terminalwidget.cpp \
emulation_handler.cpp TEHistory.cpp \
TEScreen.cpp TEWidget.cpp \
diff --git a/noncore/apps/opie-console/quick_button.cpp b/noncore/apps/opie-console/quick_button.cpp
deleted file mode 100644
index 09df901..0000000
--- a/noncore/apps/opie-console/quick_button.cpp
+++ b/dev/null
@@ -1,67 +0,0 @@
-#include <qevent.h>
-#include <qapplication.h>
-#include <qaction.h>
-
-#include <qpe/resource.h>
-#include "quick_button.h"
-
-QuickButton::QuickButton(QWidget *parent) : QFrame(parent) {
-
- QAction *a;
-
- // Button Commands
- a = new QAction( tr("Enter"), Resource::loadPixmap( "console/enter" ), QString::null, 0, this, 0 );
- connect( a, SIGNAL( activated() ), this, SLOT( hitEnter() ) );
- a->addTo( parent );
- a = new QAction( tr("Space"), Resource::loadPixmap( "console/space" ), QString::null, 0, this, 0 );
- connect( a, SIGNAL( activated() ), this, SLOT( hitSpace() ) );
- a->addTo( parent );
- a = new QAction( tr("Tab"), Resource::loadPixmap( "console/tab" ), QString::null, 0, this, 0 );
- connect( a, SIGNAL( activated() ), this, SLOT( hitTab() ) );
- a->addTo( parent );
- a = new QAction( tr("Up"), Resource::loadPixmap( "console/up" ), QString::null, 0, this, 0 );
- connect( a, SIGNAL( activated() ), this, SLOT( hitUp() ) );
- a->addTo( parent );
- a = new QAction( tr("Down"), Resource::loadPixmap( "console/down" ), QString::null, 0, this, 0 );
- connect( a, SIGNAL( activated() ), this, SLOT( hitDown() ) );
- a->addTo( parent );
- a = new QAction( tr("Paste"), Resource::loadPixmap( "paste" ), QString::null, 0, this, 0 );
- connect( a, SIGNAL( activated() ), this, SLOT( hitPaste() ) );
- a->addTo( parent );
-
-
-}
-
-QuickButton::~QuickButton() {
-}
-
-
-void QuickButton::hitEnter() {
- emit keyPressed( QKeyEvent::KeyPress, Qt::Key_Enter, 0, 1, 0);
-}
-
-void QuickButton::hitSpace() {
- emit keyPressed( QKeyEvent::KeyPress, Qt::Key_Space, 0, 1, 0);
-}
-
-void QuickButton::hitTab() {
- emit keyPressed( QKeyEvent::KeyPress, Qt::Key_Tab, 0, 1, 0);
-}
-
-void QuickButton::hitPaste() {
- /*
- TEWidget* te = getTe();
- if (te != 0) {
- te->pasteClipboard();
- }
- */
-}
-
-void QuickButton::hitUp() {
- emit keyPressed( QKeyEvent::KeyPress, Qt::Key_Up, 0, 1, 0);
-}
-
-void QuickButton::hitDown() {
- emit keyPressed( QKeyEvent::KeyPress, Qt::Key_Down, 0, 1, 0);
-}
-
diff --git a/noncore/apps/opie-console/quick_button.h b/noncore/apps/opie-console/quick_button.h
deleted file mode 100644
index d3eb1bb..0000000
--- a/noncore/apps/opie-console/quick_button.h
+++ b/dev/null
@@ -1,27 +0,0 @@
-#ifndef QUICK_BUTTON_H
-#define QUICK_BUTTON_H
-
-#include <qframe.h>
-
-class QuickButton : public QFrame {
-
- Q_OBJECT
-
-public:
- QuickButton( QWidget *parent = 0 );
- ~QuickButton();
-
- signals:
-
- void keyPressed( ushort, ushort, bool, bool, bool );
-
-private slots:
- void hitEnter();
- void hitSpace();
- void hitTab();
- void hitPaste();
- void hitUp();
- void hitDown();
-};
-
-#endif