summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xcore/apps/embeddedkonsole/embeddedkonsole.pro1
-rw-r--r--core/apps/embeddedkonsole/konsole.cpp21
2 files changed, 13 insertions, 9 deletions
diff --git a/core/apps/embeddedkonsole/embeddedkonsole.pro b/core/apps/embeddedkonsole/embeddedkonsole.pro
index bfa16a2..913cb89 100755
--- a/core/apps/embeddedkonsole/embeddedkonsole.pro
+++ b/core/apps/embeddedkonsole/embeddedkonsole.pro
@@ -31,12 +31,13 @@ SOURCES = TEScreen.cpp \
31 main.cpp 31 main.cpp
32INTERFACES = commandeditdialogbase.ui smallcommandeditdialogbase.ui 32INTERFACES = commandeditdialogbase.ui smallcommandeditdialogbase.ui
33TARGET = embeddedkonsole 33TARGET = embeddedkonsole
34INCLUDEPATH += $(OPIEDIR)/include 34INCLUDEPATH += $(OPIEDIR)/include
35DEPENDPATH += $(OPIEDIR)/include 35DEPENDPATH += $(OPIEDIR)/include
36LIBS += -lqpe -lopie 36LIBS += -lqpe -lopie
37TMAKE_CXXFLAGS += -DQT_QWS_OPIE
37 38
38TRANSLATIONS = ../../../i18n/de/embeddedkonsole.ts \ 39TRANSLATIONS = ../../../i18n/de/embeddedkonsole.ts \
39 ../../../i18n/en/embeddedkonsole.ts \ 40 ../../../i18n/en/embeddedkonsole.ts \
40 ../../../i18n/es/embeddedkonsole.ts \ 41 ../../../i18n/es/embeddedkonsole.ts \
41 ../../../i18n/fr/embeddedkonsole.ts \ 42 ../../../i18n/fr/embeddedkonsole.ts \
42 ../../../i18n/hu/embeddedkonsole.ts \ 43 ../../../i18n/hu/embeddedkonsole.ts \
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp
index ebff05e..4480fe2 100644
--- a/core/apps/embeddedkonsole/konsole.cpp
+++ b/core/apps/embeddedkonsole/konsole.cpp
@@ -16,13 +16,13 @@
16/* Ported Konsole to Qt/Embedded */ 16/* Ported Konsole to Qt/Embedded */
17/* */ 17/* */
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// enhancements added by L.J. Potter <ljp@llornkcor.com> 21// enhancements added by L.J. Potter <ljp@llornkcor.com>
22#define QWS_QT_OPIE 22//#define QT_QWS_OPIE
23 23
24#include <qpe/resource.h> 24#include <qpe/resource.h>
25 25
26#include <qdir.h> 26#include <qdir.h>
27#include <qevent.h> 27#include <qevent.h>
28#include <qdragobject.h> 28#include <qdragobject.h>
@@ -52,13 +52,13 @@
52#include <assert.h> 52#include <assert.h>
53 53
54#include "konsole.h" 54#include "konsole.h"
55#include "keytrans.h" 55#include "keytrans.h"
56#include "commandeditdialog.h" 56#include "commandeditdialog.h"
57 57
58#ifdef QWS_QT_OPIE 58#ifdef QT_QWS_OPIE
59#include <opie/colorpopupmenu.h> 59#include <opie/colorpopupmenu.h>
60#endif 60#endif
61 61
62class EKNumTabBar : public QTabBar { 62class EKNumTabBar : public QTabBar {
63public: 63public:
64 void numberTabs() 64 void numberTabs()
@@ -293,13 +293,13 @@ void Konsole::init(const char* _pgm, QStrList & _args)
293 colorMenu->insertItem(tr( "Magenta on Blue")); 293 colorMenu->insertItem(tr( "Magenta on Blue"));
294 colorMenu->insertItem(tr( "Cyan on White")); 294 colorMenu->insertItem(tr( "Cyan on White"));
295 colorMenu->insertItem(tr( "White on Cyan")); 295 colorMenu->insertItem(tr( "White on Cyan"));
296 colorMenu->insertItem(tr( "Blue on Black")); 296 colorMenu->insertItem(tr( "Blue on Black"));
297 colorMenu->insertItem(tr( "Amber on Black")); 297 colorMenu->insertItem(tr( "Amber on Black"));
298 298
299#ifdef QWS_QT_OPIE 299#ifdef QT_QWS_OPIE
300 colorMenu->insertItem(tr( "Custom")); 300 colorMenu->insertItem(tr( "Custom"));
301#endif 301#endif
302 302
303 configMenu->insertItem(tr( "Colors") ,colorMenu); 303 configMenu->insertItem(tr( "Colors") ,colorMenu);
304 304
305 connect( fontList, SIGNAL( activated(int) ), this, SLOT( fontChanged(int) )); 305 connect( fontList, SIGNAL( activated(int) ), this, SLOT( fontChanged(int) ));
@@ -367,14 +367,17 @@ void Konsole::init(const char* _pgm, QStrList & _args)
367 scrollMenu->insertItem(tr( "Right" )); 367 scrollMenu->insertItem(tr( "Right" ));
368// scrollMenu->insertSeparator(4); 368// scrollMenu->insertSeparator(4);
369// scrollMenu->insertItem(tr( "Horizontal" )); 369// scrollMenu->insertItem(tr( "Horizontal" ));
370 370
371 configMenu->insertItem(tr( "ScrollBar" ),scrollMenu); 371 configMenu->insertItem(tr( "ScrollBar" ),scrollMenu);
372 372
373 configMenu->insertItem(tr( "Wrap" )); 373 int jut = configMenu->insertItem(tr( "Wrap" ));
374 int jut = configMenu->insertItem(tr( "Use Beep" )); 374 cfg.setGroup("ScrollBar");
375 configMenu->setItemChecked(jut, cfg.readBoolEntry("HorzScroll",0));
376
377 jut = configMenu->insertItem(tr( "Use Beep" ));
375 cfg.setGroup("Menubar"); 378 cfg.setGroup("Menubar");
376 configMenu->setItemChecked(jut, cfg.readBoolEntry("useBeep",0)); 379 configMenu->setItemChecked(jut, cfg.readBoolEntry("useBeep",0));
377 380
378 381
379//scrollMenuSelected(-29); 382//scrollMenuSelected(-29);
380// cfg.setGroup("ScrollBar"); 383// cfg.setGroup("ScrollBar");
@@ -750,13 +753,13 @@ void Konsole::colorMenuSelected(int iD)
750 if(iD==-18) {// Black, Gold 753 if(iD==-18) {// Black, Gold
751 background.setRgb(0x00,0x00,0x00); 754 background.setRgb(0x00,0x00,0x00);
752 foreground.setRgb(255,215,0); 755 foreground.setRgb(255,215,0);
753 cfg.writeEntry("Schema","18"); 756 cfg.writeEntry("Schema","18");
754 colorMenu->setItemChecked(-18,TRUE); 757 colorMenu->setItemChecked(-18,TRUE);
755 } 758 }
756#ifdef QWS_QT_OPIE 759#ifdef QT_QWS_OPIE
757 if(iD==-19) { 760 if(iD==-19) {
758// Custom 761// Custom
759 qDebug("do custom"); 762 qDebug("do custom");
760 if(fromMenu) { 763 if(fromMenu) {
761 ColorPopupMenu* penColorPopupMenu = new ColorPopupMenu(Qt::black, this, "foreground color"); 764 ColorPopupMenu* penColorPopupMenu = new ColorPopupMenu(Qt::black, this, "foreground color");
762 connect(penColorPopupMenu, SIGNAL(colorSelected(const QColor&)), this, 765 connect(penColorPopupMenu, SIGNAL(colorSelected(const QColor&)), this,
@@ -794,13 +797,13 @@ void Konsole::configMenuSelected(int iD)
794// QString temp; 797// QString temp;
795// qDebug( temp.sprintf("configmenu %d",iD)); 798// qDebug( temp.sprintf("configmenu %d",iD));
796 TEWidget* te = getTe(); 799 TEWidget* te = getTe();
797 Config cfg("Konsole"); 800 Config cfg("Konsole");
798 cfg.setGroup("Menubar"); 801 cfg.setGroup("Menubar");
799 int i,j; 802 int i,j;
800#ifdef QWS_QT_OPIE 803#ifdef QT_QWS_OPIE
801 i=-29;j=-30; 804 i=-29;j=-30;
802#else 805#else
803 i=-28;j=-29; 806 i=-28;j=-29;
804#endif 807#endif
805 808
806 if(iD == -4) { 809 if(iD == -4) {
@@ -997,13 +1000,13 @@ void Konsole::changeForegroundColor(const QColor &color) {
997 1000
998 cfg.writeEntry("foreground",color.name()); 1001 cfg.writeEntry("foreground",color.name());
999 qDebug("foreground "+color.name()); 1002 qDebug("foreground "+color.name());
1000 cfg.write(); 1003 cfg.write();
1001 1004
1002qDebug("do other dialog"); 1005qDebug("do other dialog");
1003#ifdef QWS_QT_OPIE 1006#ifdef QT_QWS_OPIE
1004 1007
1005 ColorPopupMenu* penColorPopupMenu2 = new ColorPopupMenu(Qt::black, this,"background color"); 1008 ColorPopupMenu* penColorPopupMenu2 = new ColorPopupMenu(Qt::black, this,"background color");
1006 connect(penColorPopupMenu2, SIGNAL(colorSelected(const QColor&)), this, 1009 connect(penColorPopupMenu2, SIGNAL(colorSelected(const QColor&)), this,
1007 SLOT(changeBackgroundColor(const QColor&))); 1010 SLOT(changeBackgroundColor(const QColor&)));
1008 penColorPopupMenu2->exec(); 1011 penColorPopupMenu2->exec();
1009#endif 1012#endif
@@ -1021,13 +1024,13 @@ void Konsole::changeBackgroundColor(const QColor &color) {
1021 qDebug("background "+color.name()); 1024 qDebug("background "+color.name());
1022 cfg.write(); 1025 cfg.write();
1023} 1026}
1024 1027
1025void Konsole::doWrap() { 1028void Konsole::doWrap() {
1026int i; 1029int i;
1027#ifdef QWS_QT_OPIE 1030#ifdef QT_QWS_OPIE
1028i=-29; 1031i=-29;
1029#else 1032#else
1030i=-28; 1033i=-28;
1031#endif 1034#endif
1032 1035
1033 Config cfg("Konsole"); 1036 Config cfg("Konsole");