summaryrefslogtreecommitdiff
authordrw <drw>2004-02-24 00:01:04 (UTC)
committer drw <drw>2004-02-24 00:01:04 (UTC)
commit99bcf9b87929dfba62449f6e365eff561ed3fab9 (patch) (unidiff)
tree26cda4ab533b907126a97056b5c96c3f9ab504df
parentda044756096aef5819add4c0faf5f305b155648f (diff)
downloadopie-99bcf9b87929dfba62449f6e365eff561ed3fab9.zip
opie-99bcf9b87929dfba62449f6e365eff561ed3fab9.tar.gz
opie-99bcf9b87929dfba62449f6e365eff561ed3fab9.tar.bz2
Embedded Konsole: libopie->libopie2
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/config.in2
-rwxr-xr-xcore/apps/embeddedkonsole/embeddedkonsole.pro4
-rw-r--r--core/apps/embeddedkonsole/konsole.cpp12
-rw-r--r--core/apps/embeddedkonsole/main.cpp12
-rw-r--r--core/apps/embeddedkonsole/opie-embeddedkonsole.control2
5 files changed, 11 insertions, 21 deletions
diff --git a/core/apps/embeddedkonsole/config.in b/core/apps/embeddedkonsole/config.in
index 3a421d6..a3a1844 100644
--- a/core/apps/embeddedkonsole/config.in
+++ b/core/apps/embeddedkonsole/config.in
@@ -1,4 +1,4 @@
1 config EMBEDDEDKONSOLE 1 config EMBEDDEDKONSOLE
2 boolean "opie-embeddedkonsole (konsole from KDE adapted for Qt/Embedded)" 2 boolean "opie-embeddedkonsole (konsole from KDE adapted for Qt/Embedded)"
3 default "y" 3 default "y"
4 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE 4 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBQTAUX
diff --git a/core/apps/embeddedkonsole/embeddedkonsole.pro b/core/apps/embeddedkonsole/embeddedkonsole.pro
index 427c013..2743488 100755
--- a/core/apps/embeddedkonsole/embeddedkonsole.pro
+++ b/core/apps/embeddedkonsole/embeddedkonsole.pro
@@ -24,15 +24,15 @@ SOURCES = TEScreen.cpp \
24 keytrans.cpp \ 24 keytrans.cpp \
25 konsole.cpp \ 25 konsole.cpp \
26 commandeditdialog.cpp \ 26 commandeditdialog.cpp \
27 commandeditwidget.cpp \ 27 commandeditwidget.cpp \
28 playlistselection.cpp \ 28 playlistselection.cpp \
29 MyPty.cpp \ 29 MyPty.cpp \
30 main.cpp 30 main.cpp
31INTERFACES = commandeditdialogbase.ui smallcommandeditdialogbase.ui 31INTERFACES = commandeditdialogbase.ui smallcommandeditdialogbase.ui
32TARGET = embeddedkonsole 32TARGET = embeddedkonsole
33INCLUDEPATH += $(OPIEDIR)/include 33INCLUDEPATH += $(OPIEDIR)/include
34DEPENDPATH += $(OPIEDIR)/include 34DEPENDPATH += $(OPIEDIR)/include
35LIBS += -lqpe -lopie 35LIBS += -lqpe -lopiecore2 -lqtaux2
36TMAKE_CXXFLAGS += -DQT_QWS_OPIE -DHAVE_OPENPTY 36TMAKE_CXXFLAGS += -DQT_QWS_OPIE -DHAVE_OPENPTY
37 37
38include ( $(OPIEDIR)/include.pro ) 38include ( $(OPIEDIR)/include.pro )
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp
index d10b66d..46c0203 100644
--- a/core/apps/embeddedkonsole/konsole.cpp
+++ b/core/apps/embeddedkonsole/konsole.cpp
@@ -21,12 +21,16 @@
21/* -------------------------------------------------------------------------- */ 21/* -------------------------------------------------------------------------- */
22// enhancements added by L.J. Potter <ljp@llornkcor.com> 22// enhancements added by L.J. Potter <ljp@llornkcor.com>
23//#define QT_QWS_OPIE 23//#define QT_QWS_OPIE
24 24
25#include <stdlib.h> 25#include <stdlib.h>
26 26
27#ifdef QT_QWS_OPIE
28#include <opie2/ocolorpopupmenu.h>
29#endif
30
27#include <qpe/resource.h> 31#include <qpe/resource.h>
28 32
29#include <qdir.h> 33#include <qdir.h>
30#include <qevent.h> 34#include <qevent.h>
31#include <qdragobject.h> 35#include <qdragobject.h>
32#include <qobjectlist.h> 36#include <qobjectlist.h>
@@ -60,16 +64,12 @@
60#include <assert.h> 64#include <assert.h>
61 65
62#include "konsole.h" 66#include "konsole.h"
63#include "keytrans.h" 67#include "keytrans.h"
64#include "commandeditdialog.h" 68#include "commandeditdialog.h"
65 69
66#ifdef QT_QWS_OPIE
67#include <opie/colorpopupmenu.h>
68#endif
69
70class EKNumTabBar : public QTabBar 70class EKNumTabBar : public QTabBar
71{ 71{
72public: 72public:
73 EKNumTabBar(QWidget *parent = 0, const char *name = 0) : 73 EKNumTabBar(QWidget *parent = 0, const char *name = 0) :
74 QTabBar(parent, name) 74 QTabBar(parent, name)
75 {} 75 {}
@@ -1524,13 +1524,13 @@ void Konsole::colorMenuSelected(int iD)
1524 if(iD==-19) 1524 if(iD==-19)
1525 { 1525 {
1526 // Custom 1526 // Custom
1527 qDebug("do custom"); 1527 qDebug("do custom");
1528 if(fromMenu) 1528 if(fromMenu)
1529 { 1529 {
1530 OColorPopupMenu* penColorPopupMenu = new OColorPopupMenu(Qt::black, this, "foreground color"); 1530 Opie::OColorPopupMenu* penColorPopupMenu = new Opie::OColorPopupMenu(Qt::black, this, "foreground color");
1531 connect(penColorPopupMenu, SIGNAL(colorSelected(const QColor&)), this, 1531 connect(penColorPopupMenu, SIGNAL(colorSelected(const QColor&)), this,
1532 SLOT(changeForegroundColor(const QColor&))); 1532 SLOT(changeForegroundColor(const QColor&)));
1533 penColorPopupMenu->exec(); 1533 penColorPopupMenu->exec();
1534 } 1534 }
1535 if(!fromMenu) 1535 if(!fromMenu)
1536 { 1536 {
@@ -1875,13 +1875,13 @@ void Konsole::changeForegroundColor(const QColor &color)
1875 qDebug("foreground "+color.name()); 1875 qDebug("foreground "+color.name());
1876 cfg.write(); 1876 cfg.write();
1877 1877
1878 qDebug("do other dialog"); 1878 qDebug("do other dialog");
1879#ifdef QT_QWS_OPIE 1879#ifdef QT_QWS_OPIE
1880 1880
1881 OColorPopupMenu* penColorPopupMenu2 = new OColorPopupMenu(Qt::black, this,"background color"); 1881 Opie::OColorPopupMenu* penColorPopupMenu2 = new Opie::OColorPopupMenu(Qt::black, this,"background color");
1882 connect(penColorPopupMenu2, SIGNAL(colorSelected(const QColor&)), this, 1882 connect(penColorPopupMenu2, SIGNAL(colorSelected(const QColor&)), this,
1883 SLOT(changeBackgroundColor(const QColor&))); 1883 SLOT(changeBackgroundColor(const QColor&)));
1884 penColorPopupMenu2->exec(); 1884 penColorPopupMenu2->exec();
1885#endif 1885#endif
1886} 1886}
1887 1887
diff --git a/core/apps/embeddedkonsole/main.cpp b/core/apps/embeddedkonsole/main.cpp
index a6a079c..fe30b7e 100644
--- a/core/apps/embeddedkonsole/main.cpp
+++ b/core/apps/embeddedkonsole/main.cpp
@@ -18,22 +18,12 @@
18/* Copyright (C) 2000 by John Ryland <jryland@trolltech.com> */ 18/* Copyright (C) 2000 by John Ryland <jryland@trolltech.com> */
19/* */ 19/* */
20/* -------------------------------------------------------------------------- */ 20/* -------------------------------------------------------------------------- */
21 21
22#include "konsole.h" 22#include "konsole.h"
23 23
24#include <qpe/qpeapplication.h> 24#include <opie2/oapplicationfactory.h>
25#include <opie/oapplicationfactory.h>
26
27#include <qfile.h>
28
29#include <unistd.h>
30#include <stdio.h>
31#include <stdlib.h>
32
33#include <pwd.h>
34#include <sys/types.h>
35 25
36 26
37/* --| main |------------------------------------------------------ */ 27/* --| main |------------------------------------------------------ */
38OPIE_EXPORT_APP( OApplicationFactory<Konsole> ) 28OPIE_EXPORT_APP( OApplicationFactory<Konsole> )
39 29
diff --git a/core/apps/embeddedkonsole/opie-embeddedkonsole.control b/core/apps/embeddedkonsole/opie-embeddedkonsole.control
index 5807cd1..a338e19 100644
--- a/core/apps/embeddedkonsole/opie-embeddedkonsole.control
+++ b/core/apps/embeddedkonsole/opie-embeddedkonsole.control
@@ -1,10 +1,10 @@
1Package: opie-embeddedkonsole 1Package: opie-embeddedkonsole
2Files: plugins/application/libembeddedkonsole.so* bin/embeddedkonsole apps/Applications/embeddedkonsole.desktop pics/konsole 2Files: plugins/application/libembeddedkonsole.so* bin/embeddedkonsole apps/Applications/embeddedkonsole.desktop pics/konsole
3Priority: optional 3Priority: optional
4Section: opie/applications 4Section: opie/applications
5Maintainer: L.J. Potter <lpotter@trolltech.com> 5Maintainer: L.J. Potter <lpotter@trolltech.com>
6Architecture: arm 6Architecture: arm
7Depends: task-opie-minimal, libopie1, opie-keytabs 7Depends: task-opie-minimal, libopiecore2, libqtaux2, opie-keytabs
8Description: KDE's konsole (shell terminal) 8Description: KDE's konsole (shell terminal)
9 Ported to the Opie environment. 9 Ported to the Opie environment.
10Version: $QPE_VERSION$EXTRAVERSION 10Version: $QPE_VERSION$EXTRAVERSION