-rw-r--r-- | noncore/apps/opie-console/PLANS | 5 | ||||
-rw-r--r-- | noncore/apps/opie-console/main.cpp | 35 | ||||
-rw-r--r-- | noncore/apps/opie-console/opie-console.control | 2 | ||||
-rw-r--r-- | noncore/apps/opie-console/opie-console.pro | 4 |
4 files changed, 39 insertions, 7 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 | |||
@@ -7,49 +7,48 @@ Besides this requirement we would like to be able to execute 'scripts' | |||
7 | in a session. | 7 | in a session. |
8 | A script would just write to the TEmulation and then be sent via | 8 | A script would just write to the TEmulation and then be sent via |
9 | an IOlayer. | 9 | an IOlayer. |
10 | 10 | ||
11 | We want a modular architecture which might support plugins in | 11 | We want a modular architecture which might support plugins in |
12 | the future | 12 | the future |
13 | 13 | ||
14 | should we have a general opie-console setting dialog where you configure | 14 | should we have a general opie-console setting dialog where you configure |
15 | general things like where the tabs are, the profiles, and the default | 15 | general things like where the tabs are, the profiles, and the default |
16 | keyboard? | 16 | keyboard? |
17 | 17 | ||
18 | 18 | ||
19 | (Almost) DONE: | 19 | (Almost) DONE: |
20 | Framework | 20 | Framework |
21 | Serial IOLayer | 21 | Serial IOLayer |
22 | Saving and Restoring Profiles | 22 | Saving and Restoring Profiles |
23 | ConfigDialog Framework | 23 | ConfigDialog Framework |
24 | IOLayer | 24 | IOLayer |
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 | Keys - hash | ||
31 | 32 | ||
32 | TASKS in progress: | 33 | TASKS in progress: |
33 | Keys - hash | ||
34 | |||
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 |
41 | neither know anything.... speed flow and such stuff | 40 | neither know anything.... speed flow and such stuff |
42 | you start to experiment and it starts to work | 41 | you start to experiment and it starts to work |
43 | now you want to save the session | 42 | now you want to save the session |
44 | 43 | ||
45 | hash => got it. | 44 | hash => got it. |
46 | 45 | ||
47 | OPEN tasks: | 46 | OPEN tasks: |
48 | Receiving ( copy &n paste from filetransfer.cpp ) | 47 | Receiving ( copy &n paste from filetransfer.cpp ) |
49 | 48 | ||
50 | POSTPONED UNTIL LATER: | 49 | POSTPONED UNTIL LATER: |
51 | Irda ConfigWidget | 50 | Irda ConfigWidget |
52 | BT ConfigWidget | 51 | BT ConfigWidget |
53 | IRDA-Layer | 52 | IRDA-Layer |
54 | Bluetooth-Layer | 53 | Bluetooth-Layer |
55 | 54 | ||
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 | ||
6 | class OConsoleApplication : public Opie::Core::OApplication { | ||
7 | public: | ||
8 | OConsoleApplication(int argc, char* argv[]); | ||
9 | protected: | ||
10 | bool qwsEventFilter( QWSEvent * ); | ||
11 | }; | ||
5 | 12 | ||
6 | OPIE_EXPORT_APP( Opie::Core::OApplicationFactory<MainWindow> ); | 13 | OConsoleApplication::OConsoleApplication(int argc, char* argv[] ) |
14 | : Opie::Core::OApplication(argc, argv, "opie-console") | ||
15 | {} | ||
7 | 16 | ||
17 | bool 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 | |||
31 | int 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,10 +1,10 @@ | |||
1 | Package: opie-console | 1 | Package: opie-console |
2 | Files: plugins/application/libopie-console.so* bin/opie-console apps/Applications/opie-console.desktop pics/console/* | 2 | Files: bin/opie-console apps/Applications/opie-console.desktop pics/console/* |
3 | Priority: optional | 3 | Priority: optional |
4 | Section: opie/applications | 4 | Section: opie/applications |
5 | Maintainer: Opie Team <opie@handhelds.org> | 5 | Maintainer: Opie Team <opie@handhelds.org> |
6 | Architecture: arm | 6 | Architecture: arm |
7 | Version: 0.6-$SUB_VERSION | 7 | Version: 0.6-$SUB_VERSION |
8 | Depends: qpe-base, libopiecore2, libopieui2, opie-console-help-en, lrzsz, opie-keytabs | 8 | Depends: qpe-base, libopiecore2, libopieui2, opie-console-help-en, lrzsz, opie-keytabs |
9 | License: GPL | 9 | License: GPL |
10 | Description: Opie terminal app | 10 | Description: Opie terminal app |
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,25 +1,26 @@ | |||
1 | CONFIG += qt warn_on quick-app | 1 | TEMPLATE = app |
2 | CONFIG += qt warn_on | ||
2 | HEADERS = io_layer.h io_serial.h io_irda.h io_bt.h io_modem.h \ | 3 | HEADERS = 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 \ |
8 | profileconfig.h \ | 9 | profileconfig.h \ |
9 | profilemanager.h \ | 10 | profilemanager.h \ |
10 | tabwidget.h \ | 11 | tabwidget.h \ |
11 | configdialog.h \ | 12 | configdialog.h \ |
12 | keytrans.h \ | 13 | keytrans.h \ |
13 | transferdialog.h \ | 14 | transferdialog.h \ |
14 | profiledialogwidget.h \ | 15 | profiledialogwidget.h \ |
15 | profileeditordialog.h \ | 16 | profileeditordialog.h \ |
16 | default.h \ | 17 | default.h \ |
17 | iolayerbase.h \ | 18 | iolayerbase.h \ |
18 | serialconfigwidget.h irdaconfigwidget.h \ | 19 | serialconfigwidget.h irdaconfigwidget.h \ |
19 | btconfigwidget.h modemconfigwidget.h \ | 20 | btconfigwidget.h modemconfigwidget.h \ |
20 | atconfigdialog.h dialdialog.h \ | 21 | atconfigdialog.h dialdialog.h \ |
21 | procctl.h \ | 22 | procctl.h \ |
22 | function_keyboard.h \ | 23 | function_keyboard.h \ |
23 | receive_layer.h filereceive.h \ | 24 | receive_layer.h filereceive.h \ |
24 | script.h \ | 25 | script.h \ |
25 | dialer.h \ | 26 | dialer.h \ |
@@ -39,34 +40,35 @@ SOURCES = io_layer.cpp io_serial.cpp io_irda.cpp io_bt.cpp io_modem.cpp \ | |||
39 | profileconfig.cpp \ | 40 | profileconfig.cpp \ |
40 | profilemanager.cpp \ | 41 | profilemanager.cpp \ |
41 | tabwidget.cpp \ | 42 | tabwidget.cpp \ |
42 | configdialog.cpp \ | 43 | configdialog.cpp \ |
43 | keytrans.cpp \ | 44 | keytrans.cpp \ |
44 | transferdialog.cpp \ | 45 | transferdialog.cpp \ |
45 | profiledialogwidget.cpp \ | 46 | profiledialogwidget.cpp \ |
46 | profileeditordialog.cpp \ | 47 | profileeditordialog.cpp \ |
47 | iolayerbase.cpp \ | 48 | iolayerbase.cpp \ |
48 | serialconfigwidget.cpp irdaconfigwidget.cpp \ | 49 | serialconfigwidget.cpp irdaconfigwidget.cpp \ |
49 | btconfigwidget.cpp modemconfigwidget.cpp \ | 50 | btconfigwidget.cpp modemconfigwidget.cpp \ |
50 | atconfigdialog.cpp dialdialog.cpp \ | 51 | atconfigdialog.cpp dialdialog.cpp \ |
51 | default.cpp procctl.cpp \ | 52 | default.cpp procctl.cpp \ |
52 | function_keyboard.cpp \ | 53 | function_keyboard.cpp \ |
53 | receive_layer.cpp filereceive.cpp \ | 54 | receive_layer.cpp filereceive.cpp \ |
54 | script.cpp \ | 55 | script.cpp \ |
55 | dialer.cpp \ | 56 | dialer.cpp \ |
56 | terminalwidget.cpp \ | 57 | terminalwidget.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 | ||
64 | DESTDIR = $(OPIEDIR)/bin/ | ||
63 | INTERFACES = configurebase.ui editbase.ui | 65 | INTERFACES = configurebase.ui editbase.ui |
64 | INCLUDEPATH += $(OPIEDIR)/include | 66 | INCLUDEPATH += $(OPIEDIR)/include |
65 | DEPENDPATH += $(OPIEDIR)/include | 67 | DEPENDPATH += $(OPIEDIR)/include |
66 | LIBS += -lqpe -lopiecore2 -lopieui2 -lutil | 68 | LIBS += -lqpe -lopiecore2 -lopieui2 -lutil |
67 | TARGET = opie-console | 69 | TARGET = opie-console |
68 | 70 | ||
69 | DEFINES += HAVE_OPENPTY | 71 | DEFINES += HAVE_OPENPTY |
70 | 72 | ||
71 | 73 | ||
72 | include ( $(OPIEDIR)/include.pro ) | 74 | include ( $(OPIEDIR)/include.pro ) |