summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-11-10 02:09:45 (UTC)
committer llornkcor <llornkcor>2002-11-10 02:09:45 (UTC)
commit7601c75b529d9ff205403a32206b9431845cfc91 (patch) (unidiff)
tree83aa6347ad7e0cf0175f88f86666c5df705526b1
parentea13a08c3f27b007b24743d8de066fbe52961534 (diff)
downloadopie-7601c75b529d9ff205403a32206b9431845cfc91.zip
opie-7601c75b529d9ff205403a32206b9431845cfc91.tar.gz
opie-7601c75b529d9ff205403a32206b9431845cfc91.tar.bz2
fixes for sharp rom version
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/konsole.cpp34
1 files changed, 20 insertions, 14 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp
index 4480fe2..8885b58 100644
--- a/core/apps/embeddedkonsole/konsole.cpp
+++ b/core/apps/embeddedkonsole/konsole.cpp
@@ -861,52 +861,58 @@ void Konsole::setColor()
861 Config cfg("Konsole"); 861 Config cfg("Konsole");
862 cfg.setGroup("Colors"); 862 cfg.setGroup("Colors");
863 int scheme = cfg.readNumEntry("Schema",1); 863 int scheme = cfg.readNumEntry("Schema",1);
864 if(scheme != 1) colorMenuSelected( -scheme); 864 if(scheme != 1) colorMenuSelected( -scheme);
865} 865}
866 866
867void Konsole::scrollMenuSelected(int index) 867void Konsole::scrollMenuSelected(int index)
868{ 868{
869 qDebug( "scrollbar menu %d",index); 869 qDebug( "scrollbar menu %d",index);
870 TEWidget* te = getTe(); 870 TEWidget* te = getTe();
871 Config cfg("Konsole"); 871 Config cfg("Konsole");
872 cfg.setGroup("ScrollBar"); 872 cfg.setGroup("ScrollBar");
873 switch( index){ 873 int i,j,k;
874 case -25: 874#ifdef QT_QWS_OPIE
875 te->setScrollbarLocation(0); 875i=-25;j=-26;k=-27;
876 cfg.writeEntry("Position",0); 876#else
877 break; 877i=-24;j=-25;k=-26;
878 case -26: 878#endif
879 te->setScrollbarLocation(1); 879 if(index == i) {
880 cfg.writeEntry("Position",1); 880
881 break; 881 te->setScrollbarLocation(0);
882 case -27: 882 cfg.writeEntry("Position",0);
883 te->setScrollbarLocation(2); 883 } else if(index == j) {
884 cfg.writeEntry("Position",2); 884
885 break; 885 te->setScrollbarLocation(1);
886 cfg.writeEntry("Position",1);
887 } else if(index == k) {
888
889 te->setScrollbarLocation(2);
890 cfg.writeEntry("Position",2);
891 }
892
886// case -29: { 893// case -29: {
887// bool b=cfg.readBoolEntry("HorzScroll",0); 894// bool b=cfg.readBoolEntry("HorzScroll",0);
888// cfg.writeEntry("HorzScroll", !b ); 895// cfg.writeEntry("HorzScroll", !b );
889// cfg.write(); 896// cfg.write();
890// if(cfg.readNumEntry("Position",2) == 0) { 897// if(cfg.readNumEntry("Position",2) == 0) {
891// te->setScrollbarLocation(1); 898// te->setScrollbarLocation(1);
892// te->setWrapAt(0); 899// te->setWrapAt(0);
893// } else { 900// } else {
894// te->setScrollbarLocation(0); 901// te->setScrollbarLocation(0);
895// te->setWrapAt(120); 902// te->setWrapAt(120);
896// } 903// }
897// te->setScrollbarLocation( cfg.readNumEntry("Position",2)); 904// te->setScrollbarLocation( cfg.readNumEntry("Position",2));
898// } 905// }
899// break; 906// break;
900 };
901} 907}
902 908
903void Konsole::editCommandListMenuSelected(int iD) 909void Konsole::editCommandListMenuSelected(int iD)
904{ 910{
905// QString temp; 911// QString temp;
906// qDebug( temp.sprintf("edit command list %d",iD)); 912// qDebug( temp.sprintf("edit command list %d",iD));
907 TEWidget* te = getTe(); 913 TEWidget* te = getTe();
908 Config cfg("Konsole"); 914 Config cfg("Konsole");
909 cfg.setGroup("Menubar"); 915 cfg.setGroup("Menubar");
910 if( iD == -3) { 916 if( iD == -3) {
911 if(!secondToolBar->isHidden()) { 917 if(!secondToolBar->isHidden()) {
912 secondToolBar->hide(); 918 secondToolBar->hide();