summaryrefslogtreecommitdiff
path: root/noncore/apps
Unidiff
Diffstat (limited to 'noncore/apps') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/PLANS3
-rw-r--r--noncore/apps/opie-console/main.cpp35
-rw-r--r--noncore/apps/opie-console/opie-console.control2
-rw-r--r--noncore/apps/opie-console/opie-console.pro4
4 files changed, 38 insertions, 6 deletions
diff --git a/noncore/apps/opie-console/PLANS b/noncore/apps/opie-console/PLANS
index a7c7578..bef7196 100644
--- a/noncore/apps/opie-console/PLANS
+++ b/noncore/apps/opie-console/PLANS
@@ -25,16 +25,15 @@ keyboard?
25 Profile->Session and MainWidget 25 Profile->Session and MainWidget
26 FilesendingLayer ( Z/Y Modem tested X does not work at all ) 26 FilesendingLayer ( Z/Y Modem tested X does not work at all )
27 Fullscreen 27 Fullscreen
28 Modem - Josef 28 Modem - Josef
29 Keys - hash 29 Keys - hash
30 Scripting - wazlaf 30 Scripting - wazlaf
31
32TASKS in progress:
33 Keys - hash 31 Keys - hash
34 32
33TASKS in progress:
35 Session->Profile - hash => why is this needed? you can not change any settings 34 Session->Profile - hash => why is this needed? you can not change any settings
36 after you start the session, so all you would do is 35 after you start the session, so all you would do is
37 create a duplicate of the profile used to open the 36 create a duplicate of the profile used to open the
38 current session. maybe needed later when you can change 37 current session. maybe needed later when you can change
39 settings while the session is running (colors, fonts...) 38 settings while the session is running (colors, fonts...)
40 zecke => think of that. You try to hook up with a New Device 39 zecke => think of that. You try to hook up with a New Device
diff --git a/noncore/apps/opie-console/main.cpp b/noncore/apps/opie-console/main.cpp
index eafc9b2..58c9c57 100644
--- a/noncore/apps/opie-console/main.cpp
+++ b/noncore/apps/opie-console/main.cpp
@@ -1,8 +1,39 @@
1#include <opie2/oapplicationfactory.h> 1#include <opie2/oapplication.h>
2#include <qwsevent_qws.h>
2 3
3#include "mainwindow.h" 4#include "mainwindow.h"
4 5
6class OConsoleApplication : public Opie::Core::OApplication {
7public:
8 OConsoleApplication(int argc, char* argv[]);
9protected:
10 bool qwsEventFilter( QWSEvent * );
11};
5 12
6OPIE_EXPORT_APP( Opie::Core::OApplicationFactory<MainWindow> ); 13OConsoleApplication::OConsoleApplication(int argc, char* argv[] )
14 : Opie::Core::OApplication(argc, argv, "opie-console")
15{}
7 16
17bool OConsoleApplication::qwsEventFilter( QWSEvent *e) {
18 if( e->type == QWSEvent::Key ) {
19 QWSKeyEvent *key = static_cast<QWSKeyEvent*>(e);
20
21 /* prevent QPEApplication to filter the key */
22 if(key->simpleData.keycode == Qt::Key_Escape)
23 return QApplication::qwsEventFilter(e);
24
25 }
26
27 return Opie::Core::OApplication::qwsEventFilter( e);
28}
29
30
31int main(int argc, char* argv[]) {
32 OConsoleApplication app(argc, argv);
33
34 MainWindow win;
35 app.showMainWidget(&win);
36
37 return app.exec();
38}
8 39
diff --git a/noncore/apps/opie-console/opie-console.control b/noncore/apps/opie-console/opie-console.control
index 994e662..e924b79 100644
--- a/noncore/apps/opie-console/opie-console.control
+++ b/noncore/apps/opie-console/opie-console.control
@@ -1,8 +1,8 @@
1Package: opie-console 1Package: opie-console
2Files: plugins/application/libopie-console.so* bin/opie-console apps/Applications/opie-console.desktop pics/console/* 2Files: bin/opie-console apps/Applications/opie-console.desktop pics/console/*
3Priority: optional 3Priority: optional
4Section: opie/applications 4Section: opie/applications
5Maintainer: Opie Team <opie@handhelds.org> 5Maintainer: Opie Team <opie@handhelds.org>
6Architecture: arm 6Architecture: arm
7Version: 0.6-$SUB_VERSION 7Version: 0.6-$SUB_VERSION
8Depends: qpe-base, libopiecore2, libopieui2, opie-console-help-en, lrzsz, opie-keytabs 8Depends: qpe-base, libopiecore2, libopieui2, opie-console-help-en, lrzsz, opie-keytabs
diff --git a/noncore/apps/opie-console/opie-console.pro b/noncore/apps/opie-console/opie-console.pro
index 57bd0f4..6bc42bd 100644
--- a/noncore/apps/opie-console/opie-console.pro
+++ b/noncore/apps/opie-console/opie-console.pro
@@ -1,7 +1,8 @@
1CONFIG += qt warn_on quick-app 1TEMPLATE = app
2CONFIG += qt warn_on
2HEADERS = io_layer.h io_serial.h io_irda.h io_bt.h io_modem.h \ 3HEADERS = io_layer.h io_serial.h io_irda.h io_bt.h io_modem.h \
3 file_layer.h filetransfer.h \ 4 file_layer.h filetransfer.h \
4 metafactory.h \ 5 metafactory.h \
5 session.h \ 6 session.h \
6 mainwindow.h \ 7 mainwindow.h \
7 profile.h \ 8 profile.h \
@@ -57,12 +58,13 @@ SOURCES = io_layer.cpp io_serial.cpp io_irda.cpp io_bt.cpp io_modem.cpp \
57 emulation_handler.cpp TEHistory.cpp \ 58 emulation_handler.cpp TEHistory.cpp \
58 TEScreen.cpp TEWidget.cpp \ 59 TEScreen.cpp TEWidget.cpp \
59 TEmuVt102.cpp TEmulation.cpp MyPty.cpp \ 60 TEmuVt102.cpp TEmulation.cpp MyPty.cpp \
60 consoleconfigwidget.cpp 61 consoleconfigwidget.cpp
61 62
62 63
64DESTDIR = $(OPIEDIR)/bin/
63INTERFACES = configurebase.ui editbase.ui 65INTERFACES = configurebase.ui editbase.ui
64INCLUDEPATH += $(OPIEDIR)/include 66INCLUDEPATH += $(OPIEDIR)/include
65DEPENDPATH += $(OPIEDIR)/include 67DEPENDPATH += $(OPIEDIR)/include
66LIBS += -lqpe -lopiecore2 -lopieui2 -lutil 68LIBS += -lqpe -lopiecore2 -lopieui2 -lutil
67TARGET = opie-console 69TARGET = opie-console
68 70