Diffstat (limited to 'noncore/apps/advancedfm/advancedfmData.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfmData.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/noncore/apps/advancedfm/advancedfmData.cpp b/noncore/apps/advancedfm/advancedfmData.cpp index d0de442..a120f35 100644 --- a/noncore/apps/advancedfm/advancedfmData.cpp +++ b/noncore/apps/advancedfm/advancedfmData.cpp @@ -13,4 +13,6 @@ #include <opie/otabwidget.h> +#include <qpe/storage.h> + #include <qpe/qpeapplication.h> #include <qpe/resource.h> @@ -84,4 +86,6 @@ void AdvancedFm::init() { fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); fileMenu->insertSeparator(); + fileMenu->insertItem( tr( "File Search" ), this, SLOT( openSearch() )); + fileMenu->insertSeparator(); fileMenu->insertItem( tr( "Make Directory" ), this, SLOT( mkDir() )); fileMenu->insertItem( tr( "Rename" ), this, SLOT( rn() )); @@ -199,4 +203,5 @@ void AdvancedFm::init() { /////////////// + struct utsname name; /* check for embedix kernel running on the zaurus*/ if (uname(&name) != -1) { @@ -206,8 +211,15 @@ void AdvancedFm::init() { } else { zaurusDevice=FALSE; - sdButton->hide(); } } + if( !StorageInfo::hasSd() || !StorageInfo::hasMmc()) { + qDebug("not have sd"); + sdButton->hide(); + } + if( !StorageInfo::hasCf() ) { + qDebug("not have cf"); + cfButton->hide(); + } currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); currentDir.setPath( QDir::currentDirPath()); @@ -249,4 +261,5 @@ void AdvancedFm::initConnections() connect( Local_View, SIGNAL( clicked( QListViewItem*)), this,SLOT( ListClicked(QListViewItem *)) ); + connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) ); |