From 7fcf35f1632134cc9f0b3d38949864df3df59c4c Mon Sep 17 00:00:00 2001 From: tille Date: Sat, 06 Jul 2002 15:26:04 +0000 Subject: cmd line dialog --- (limited to 'noncore/unsupported/oipkg') diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp index 53db477..d1be8d0 100644 --- a/noncore/unsupported/oipkg/mainwindow.cpp +++ b/noncore/unsupported/oipkg/mainwindow.cpp @@ -52,7 +52,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : listViewPackages = new PackageListView( this,"listViewPackages",settings ); setCentralWidget( listViewPackages ); listViewPackages->addList( tr("feeds"), &packageListServers ); - listViewPackages->addList( tr("ipkgfind"), &packageListSearch ); + listViewPackages->addList( tr("ipkgfind&killefiz"), &packageListSearch ); listViewPackages->addList( tr("documents"), &packageListDocLnk ); ipkg = new PmIpkg( settings, this ); packageListServers.setSettings( settings ); @@ -192,7 +192,7 @@ void MainWindow::makeMenu() //SEARCH searchBar = new QPEToolBar(this); addToolBar( searchBar, "Search", QMainWindow::Top, TRUE ); - label = new QLabel( tr("ipkgfind: "), searchBar ); + label = new QLabel( tr("Search: "), searchBar ); // label->setBackgroundMode( PaletteForeground ); searchBar->setHorizontalStretchable( TRUE ); searchEdit = new QLineEdit( searchBar, "seachEdit" ); diff --git a/noncore/unsupported/oipkg/pmipkg.cpp b/noncore/unsupported/oipkg/pmipkg.cpp index d29036b..71e9b88 100644 --- a/noncore/unsupported/oipkg/pmipkg.cpp +++ b/noncore/unsupported/oipkg/pmipkg.cpp @@ -25,7 +25,7 @@ #include #include #include - +#include #include #include #include @@ -39,7 +39,7 @@ //#define OPROCESS PmIpkg::PmIpkg( PackageManagerSettings* s, QWidget* p, const char * name, WFlags f ) - : QObject ( p ) + : QObject ( p ), shellWarning(true) { settings = s; runwindow = new RunWindow( p, name, true, f ); @@ -156,6 +156,12 @@ bool PmIpkg::runIpkg(const QString& args, const QString& dest ) } } pclose(fp); + if (!ret && shellWarning) + { + shellWarning = false; + QMessageBox::critical( runwindow, tr("install failure"), + tr("

Did you start me from the command line?

")); + } #endif //out( "Finished!"); pvDebug(2,QString(ret?"success\n":"failure\n")); diff --git a/noncore/unsupported/oipkg/pmipkg.h b/noncore/unsupported/oipkg/pmipkg.h index 28bc5dd..662800a 100644 --- a/noncore/unsupported/oipkg/pmipkg.h +++ b/noncore/unsupported/oipkg/pmipkg.h @@ -38,7 +38,6 @@ public: void commit(); void update(); void show(); - /** No descriptions */ void clearLists(); public slots: @@ -54,6 +53,7 @@ public slots: void getIpkgOutput(OProcess *proc, char *buffer, int buflen); private: + bool shellWarning; OProcess *ipkgProcess; PackageManagerSettings* settings; RunWindow *runwindow; -- cgit v0.9.0.2