author | harlekin <harlekin> | 2002-10-24 12:53:46 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-24 12:53:46 (UTC) |
commit | 6d502006357bdfa3f2f03d8227dcc7e04fdcc93c (patch) (side-by-side diff) | |
tree | a9be901eb47b62a297b0b27ea7adac27de97228b /noncore/apps | |
parent | 36f411501a68daae3195b481d789864dfc9a2ce8 (diff) | |
download | opie-6d502006357bdfa3f2f03d8227dcc7e04fdcc93c.zip opie-6d502006357bdfa3f2f03d8227dcc7e04fdcc93c.tar.gz opie-6d502006357bdfa3f2f03d8227dcc7e04fdcc93c.tar.bz2 |
do not build quickbutton anymore
-rw-r--r-- | noncore/apps/opie-console/opie-console.pro | 4 | ||||
-rw-r--r-- | noncore/apps/opie-console/quick_button.cpp | 67 | ||||
-rw-r--r-- | noncore/apps/opie-console/quick_button.h | 27 |
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 @@ -23,7 +23,7 @@ HEADERS = io_layer.h io_serial.h io_irda.h io_bt.h io_modem.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 \ @@ -52,7 +52,7 @@ SOURCES = io_layer.cpp io_serial.cpp io_irda.cpp io_bt.cpp io_modem.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 \ 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 |