summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-11-09 16:28:53 (UTC)
committer llornkcor <llornkcor>2002-11-09 16:28:53 (UTC)
commit4482a8372144f3afa434416e43b6193a54a99a4e (patch) (unidiff)
treef6a88d3d41a547abb8cc6bdd3e5e719649348e36
parent41fc715a41b7ef2289ae84957e593a04664a04e6 (diff)
downloadopie-4482a8372144f3afa434416e43b6193a54a99a4e.zip
opie-4482a8372144f3afa434416e43b6193a54a99a4e.tar.gz
opie-4482a8372144f3afa434416e43b6193a54a99a4e.tar.bz2
small changes
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
@@ -35,4 +35,5 @@ INCLUDEPATH += $(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 \
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
@@ -20,5 +20,5 @@
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>
@@ -56,5 +56,5 @@
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
@@ -297,5 +297,5 @@ void Konsole::init(const char* _pgm, QStrList & _args)
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
@@ -371,6 +371,9 @@ void Konsole::init(const char* _pgm, QStrList & _args)
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));
@@ -754,5 +757,5 @@ void Konsole::colorMenuSelected(int iD)
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
@@ -798,5 +801,5 @@ void Konsole::configMenuSelected(int iD)
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
@@ -1001,5 +1004,5 @@ void Konsole::changeForegroundColor(const QColor &color) {
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");
@@ -1025,5 +1028,5 @@ void Konsole::changeBackgroundColor(const QColor &color) {
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