author | llornkcor <llornkcor> | 2002-05-27 13:48:04 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-27 13:48:04 (UTC) |
commit | 22e2c411ad5e6ff1c01c754a2fe824af26c3c9bd (patch) (side-by-side diff) | |
tree | 4fdcaa011e88ef93148825ca40696ab58ff2a57c | |
parent | 9dd7e9c149a17482fd947139f105946ede672b64 (diff) | |
download | opie-22e2c411ad5e6ff1c01c754a2fe824af26c3c9bd.zip opie-22e2c411ad5e6ff1c01c754a2fe824af26c3c9bd.tar.gz opie-22e2c411ad5e6ff1c01c754a2fe824af26c3c9bd.tar.bz2 |
removed redundant entries from suggested commands, added 3 qcop commands to main list
-rw-r--r-- | core/apps/embeddedkonsole/commandeditdialog.cpp | 34 | ||||
-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 3 |
2 files changed, 8 insertions, 29 deletions
diff --git a/core/apps/embeddedkonsole/commandeditdialog.cpp b/core/apps/embeddedkonsole/commandeditdialog.cpp index ce21c47..8b2abfa 100644 --- a/core/apps/embeddedkonsole/commandeditdialog.cpp +++ b/core/apps/embeddedkonsole/commandeditdialog.cpp @@ -1,113 +1,89 @@ //comandeditdialog.cpp #include "commandeditdialog.h" #include "playlistselection.h" #include <qstring.h> #include <qpe/config.h> #include <qpe/qpetoolbar.h> #include <qwidget.h> #include <qpe/qpemenubar.h> #include <qpe/resource.h> #include <qlist.h> #include <qtoolbutton.h> #include <qvbox.h> #include <qlistview.h> #include <qlineedit.h> #include <qheader.h> #include <qlabel.h> #include <qmessagebox.h> #include "smallcommandeditdialogbase.h" CommandEditDialog::CommandEditDialog(QWidget *parent, const char* name, WFlags fl ) : CommandEditDialogBase(parent, name, TRUE, fl) { m_SuggestedCommandList->addColumn( tr("Command Selection") ); m_SuggestedCommandList->header()->hide(); m_SuggestedCommandList->setSorting(-1,FALSE); m_SuggestedCommandList->clearSelection(); m_SuggestedCommandList->setSorting(0,TRUE); - - QListViewItem *item; - - - item = new QListViewItem( m_SuggestedCommandList,"ls "); - - item = new QListViewItem( m_SuggestedCommandList,"cat "); - item = new QListViewItem( m_SuggestedCommandList,"cd "); - item = new QListViewItem( m_SuggestedCommandList,"chmod "); - item = new QListViewItem( m_SuggestedCommandList,"cp "); - item = new QListViewItem( m_SuggestedCommandList,"dc "); - item = new QListViewItem( m_SuggestedCommandList,"df "); - item = new QListViewItem( m_SuggestedCommandList,"dmesg "); - item = new QListViewItem( m_SuggestedCommandList,"echo "); + QListViewItem *item; item = new QListViewItem( m_SuggestedCommandList,"export "); - item = new QListViewItem( m_SuggestedCommandList,"env "); - item = new QListViewItem( m_SuggestedCommandList,"find "); - item = new QListViewItem( m_SuggestedCommandList,"free "); item = new QListViewItem( m_SuggestedCommandList,"ifconfig "); item = new QListViewItem( m_SuggestedCommandList,"ipkg "); - item = new QListViewItem( m_SuggestedCommandList,"mkdir "); - item = new QListViewItem( m_SuggestedCommandList,"mv "); - item = new QListViewItem( m_SuggestedCommandList,"nc localhost 7776 "); - item = new QListViewItem( m_SuggestedCommandList,"nc localhost 7777 "); - item = new QListViewItem( m_SuggestedCommandList,"nslookup "); - item = new QListViewItem( m_SuggestedCommandList,"ping "); - item = new QListViewItem( m_SuggestedCommandList,"ps aux"); - item = new QListViewItem( m_SuggestedCommandList,"pwd "); - item = new QListViewItem( m_SuggestedCommandList,"rm "); - item = new QListViewItem( m_SuggestedCommandList,"rmdir "); - item = new QListViewItem( m_SuggestedCommandList,"route "); item = new QListViewItem( m_SuggestedCommandList,"gzip "); item = new QListViewItem( m_SuggestedCommandList,"gunzip "); item = new QListViewItem( m_SuggestedCommandList,"chgrp "); item = new QListViewItem( m_SuggestedCommandList,"chown "); item = new QListViewItem( m_SuggestedCommandList,"date "); item = new QListViewItem( m_SuggestedCommandList,"dd "); - item = new QListViewItem( m_SuggestedCommandList,"df "); item = new QListViewItem( m_SuggestedCommandList,"dmesg "); item = new QListViewItem( m_SuggestedCommandList,"fuser "); item = new QListViewItem( m_SuggestedCommandList,"hostname "); item = new QListViewItem( m_SuggestedCommandList,"kill "); item = new QListViewItem( m_SuggestedCommandList,"killall "); item = new QListViewItem( m_SuggestedCommandList,"ln "); item = new QListViewItem( m_SuggestedCommandList,"ln -s "); + item = new QListViewItem( m_SuggestedCommandList,"lsmod"); + item = new QListViewItem( m_SuggestedCommandList,"depmod -a"); + item = new QListViewItem( m_SuggestedCommandList,"modprobe "); item = new QListViewItem( m_SuggestedCommandList,"mount "); item = new QListViewItem( m_SuggestedCommandList,"more "); item = new QListViewItem( m_SuggestedCommandList,"sort "); item = new QListViewItem( m_SuggestedCommandList,"touch "); item = new QListViewItem( m_SuggestedCommandList,"umount "); item = new QListViewItem( m_SuggestedCommandList,"mknod "); item = new QListViewItem( m_SuggestedCommandList,"netstat "); + item = new QListViewItem( m_SuggestedCommandList,"route "); item = new QListViewItem( m_SuggestedCommandList,"cardctl eject "); m_SuggestedCommandList->setSelected(m_SuggestedCommandList->firstChild(),TRUE); m_SuggestedCommandList->sort(); connect( m_SuggestedCommandList, SIGNAL( clicked( QListViewItem * ) ), m_PlayListSelection, SLOT( addToSelection( QListViewItem *) ) ); ToolButton1->setTextLabel("new"); ToolButton1->setPixmap(Resource::loadPixmap("new")); ToolButton1->setAutoRaise(TRUE); ToolButton1->setFocusPolicy(QWidget::NoFocus); connect(ToolButton1,SIGNAL(clicked()),this,SLOT(showAddDialog())); ToolButton2->setTextLabel("edit"); ToolButton2->setPixmap(Resource::loadPixmap("edit")); ToolButton2->setAutoRaise(TRUE); ToolButton2->setFocusPolicy(QWidget::NoFocus); connect(ToolButton2,SIGNAL(clicked()),this,SLOT(showEditDialog())); ToolButton3->setTextLabel("delete"); ToolButton3->setPixmap(Resource::loadPixmap("editdelete")); ToolButton3->setAutoRaise(TRUE); ToolButton3->setFocusPolicy(QWidget::NoFocus); connect(ToolButton3,SIGNAL(clicked()),m_PlayListSelection,SLOT(removeSelected())); ToolButton4->setTextLabel("up"); ToolButton4->setPixmap(Resource::loadPixmap("up")); ToolButton4->setAutoRaise(TRUE); ToolButton4->setFocusPolicy(QWidget::NoFocus); connect(ToolButton4,SIGNAL(clicked()),m_PlayListSelection,SLOT(moveSelectedUp())); diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index f13d0c9..3f6e0b4 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp @@ -100,64 +100,67 @@ public: }; // This could be configurable or dynamicly generated from the bash history // file of the user static const char *commonCmds[] = { "ls ", // I left this here, cause it looks better than the first alpha "cardctl eject", "cat ", "cd ", "chmod ", "clear", "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 ", + "qcop QPE/System 'linkChanged(QString)' ''", + "qcop QPE/System 'restart()'", + "qcop QPE/System 'quit()'", "rm ", "rmdir ", "route ", "set ", "traceroute", /* "gzip", "gunzip", "chgrp", "chown", "date", "dd", "df", "dmesg", "fuser", "hostname", "kill", "killall", "ln", "ping", "mount", "more", "sort", "touch", "umount", "mknod", "netstat", */ "exit", NULL |