author | llornkcor <llornkcor> | 2002-02-02 00:17:02 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-02 00:17:02 (UTC) |
commit | 612f02246dbb07db268e158f6959727a6598c6d5 (patch) (side-by-side diff) | |
tree | 7dceba4874ad04c35bd6e0cf7c0d053d931ea6d2 /core/apps/embeddedkonsole/konsole.cpp | |
parent | 5a3c8bf8c1033882685f3a6d897c6fa5229403e3 (diff) | |
download | opie-612f02246dbb07db268e158f6959727a6598c6d5.zip opie-612f02246dbb07db268e158f6959727a6598c6d5.tar.gz opie-612f02246dbb07db268e158f6959727a6598c6d5.tar.bz2 |
startup command list edit enable bug fixed. added env to commandlist
Diffstat (limited to 'core/apps/embeddedkonsole/konsole.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index efcb1f2..f154bb8 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp @@ -49,13 +49,12 @@ #include <stdlib.h> #include <assert.h> #include "konsole.h" #include "keytrans.h" - class EKNumTabBar : public QTabBar { public: void numberTabs() { // Yes, it really is this messy. QTabWidget needs functions // that provide acces to tabs in a sequential way. @@ -109,22 +108,22 @@ static const char *commonCmds[] = "chmod ", "cp ", "dc ", "df ", "dmesg", "echo ", + "env", "find ", "free", "grep ", "ifconfig ", "ipkg ", "mkdir ", "mv ", "nc localhost 7776", "nc localhost 7777", - "netstat ", "nslookup ", "ping ", "ps aux", "pwd ", "rm ", "rmdir ", @@ -294,16 +293,18 @@ void Konsole::init(const char* _pgm, QStrList & _args) secondToolBar = new QPEToolBar( this ); secondToolBar->setHorizontalStretchable( TRUE ); commonCombo = new QComboBox( secondToolBar ); - if( listHidden) - secondToolBar->hide(); configMenu->insertItem( "Edit Command List"); - + if( listHidden) { + secondToolBar->hide(); + configMenu->setItemEnabled(-20 ,FALSE); + } + cfg.setGroup("Commands"); commonCombo->setInsertionPolicy(QComboBox::AtCurrent); for (int i = 0; commonCmds[i] != NULL; i++) { commonCombo->insertItem( commonCmds[i], i ); tmp = cfg.readEntry( QString::number(i),""); |