author | llornkcor <llornkcor> | 2002-02-01 18:27:20 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-01 18:27:20 (UTC) |
commit | 96f799b935cda52dfed323cadb9025ba1ae737df (patch) (unidiff) | |
tree | a171ad37eed9bfb8619e8c524f4311a9abc3f4f1 | |
parent | 4ffeffe4e91867dca42c02ddc5521d4182cabbb6 (diff) | |
download | opie-96f799b935cda52dfed323cadb9025ba1ae737df.zip opie-96f799b935cda52dfed323cadb9025ba1ae737df.tar.gz opie-96f799b935cda52dfed323cadb9025ba1ae737df.tar.bz2 |
enabled fix
-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index f3f0c29..efcb1f2 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp | |||
@@ -43,24 +43,25 @@ | |||
43 | #include <qpe/config.h> | 43 | #include <qpe/config.h> |
44 | #include <qstringlist.h> | 44 | #include <qstringlist.h> |
45 | #include <qpalette.h> | 45 | #include <qpalette.h> |
46 | 46 | ||
47 | #include <sys/wait.h> | 47 | #include <sys/wait.h> |
48 | #include <stdio.h> | 48 | #include <stdio.h> |
49 | #include <stdlib.h> | 49 | #include <stdlib.h> |
50 | #include <assert.h> | 50 | #include <assert.h> |
51 | 51 | ||
52 | #include "konsole.h" | 52 | #include "konsole.h" |
53 | #include "keytrans.h" | 53 | #include "keytrans.h" |
54 | 54 | ||
55 | |||
55 | class EKNumTabBar : public QTabBar { | 56 | class EKNumTabBar : public QTabBar { |
56 | public: | 57 | public: |
57 | void numberTabs() | 58 | void numberTabs() |
58 | { | 59 | { |
59 | // Yes, it really is this messy. QTabWidget needs functions | 60 | // Yes, it really is this messy. QTabWidget needs functions |
60 | // that provide acces to tabs in a sequential way. | 61 | // that provide acces to tabs in a sequential way. |
61 | int m=INT_MIN; | 62 | int m=INT_MIN; |
62 | for (int i=0; i<count(); i++) { | 63 | for (int i=0; i<count(); i++) { |
63 | QTab* left=0; | 64 | QTab* left=0; |
64 | QListIterator<QTab> it(*tabList()); | 65 | QListIterator<QTab> it(*tabList()); |
65 | int x=INT_MAX; | 66 | int x=INT_MAX; |
66 | for( QTab* t; (t=it.current()); ++it ) { | 67 | for( QTab* t; (t=it.current()); ++it ) { |
@@ -111,24 +112,25 @@ static const char *commonCmds[] = | |||
111 | "df ", | 112 | "df ", |
112 | "dmesg", | 113 | "dmesg", |
113 | "echo ", | 114 | "echo ", |
114 | "find ", | 115 | "find ", |
115 | "free", | 116 | "free", |
116 | "grep ", | 117 | "grep ", |
117 | "ifconfig ", | 118 | "ifconfig ", |
118 | "ipkg ", | 119 | "ipkg ", |
119 | "mkdir ", | 120 | "mkdir ", |
120 | "mv ", | 121 | "mv ", |
121 | "nc localhost 7776", | 122 | "nc localhost 7776", |
122 | "nc localhost 7777", | 123 | "nc localhost 7777", |
124 | "netstat ", | ||
123 | "nslookup ", | 125 | "nslookup ", |
124 | "ping ", | 126 | "ping ", |
125 | "ps aux", | 127 | "ps aux", |
126 | "pwd ", | 128 | "pwd ", |
127 | "rm ", | 129 | "rm ", |
128 | "rmdir ", | 130 | "rmdir ", |
129 | "route ", | 131 | "route ", |
130 | "set ", | 132 | "set ", |
131 | "traceroute", | 133 | "traceroute", |
132 | 134 | ||
133 | /* | 135 | /* |
134 | "gzip", | 136 | "gzip", |
@@ -692,25 +694,25 @@ void Konsole::configMenuSelected(int iD) | |||
692 | if(!secondToolBar->isHidden()) { | 694 | if(!secondToolBar->isHidden()) { |
693 | secondToolBar->hide(); | 695 | secondToolBar->hide(); |
694 | configMenu->changeItem( iD,"Show Command List"); | 696 | configMenu->changeItem( iD,"Show Command List"); |
695 | cfg.writeEntry("Hidden","TRUE"); | 697 | cfg.writeEntry("Hidden","TRUE"); |
696 | configMenu->setItemEnabled(-20 ,FALSE); | 698 | configMenu->setItemEnabled(-20 ,FALSE); |
697 | } else { | 699 | } else { |
698 | secondToolBar->show(); | 700 | secondToolBar->show(); |
699 | configMenu->changeItem( iD,"Hide Command List"); | 701 | configMenu->changeItem( iD,"Hide Command List"); |
700 | cfg.writeEntry("Hidden","FALSE"); | 702 | cfg.writeEntry("Hidden","FALSE"); |
701 | configMenu->setItemEnabled(-20 ,TRUE); | 703 | configMenu->setItemEnabled(-20 ,TRUE); |
702 | 704 | ||
703 | if(cfg.readEntry("EditEnabled","FALSE")=="TRUE") { | 705 | if(cfg.readEntry("EditEnabled","FALSE")=="TRUE") { |
704 | configMenu->setItemChecked(-16,TRUE); | 706 | configMenu->setItemChecked(-20,TRUE); |
705 | commonCombo->setEditable( TRUE ); | 707 | commonCombo->setEditable( TRUE ); |
706 | } else { | 708 | } else { |
707 | configMenu->setItemChecked(-20,FALSE); | 709 | configMenu->setItemChecked(-20,FALSE); |
708 | commonCombo->setEditable( FALSE ); | 710 | commonCombo->setEditable( FALSE ); |
709 | } | 711 | } |
710 | } | 712 | } |
711 | } | 713 | } |
712 | if( iD == -3) { | 714 | if( iD == -3) { |
713 | cfg.setGroup("Tabs"); | 715 | cfg.setGroup("Tabs"); |
714 | QString tmp=cfg.readEntry("Position","Top"); | 716 | QString tmp=cfg.readEntry("Position","Top"); |
715 | 717 | ||
716 | if(tmp=="Top") { | 718 | if(tmp=="Top") { |