author | llornkcor <llornkcor> | 2004-09-25 06:51:24 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-09-25 06:51:24 (UTC) |
commit | 3d4aef2df9828aedccf5d576ecbc8aad6621362e (patch) (side-by-side diff) | |
tree | 435f8e3b658ef45d8e95d29a305d20c62e01c24e /noncore/apps/advancedfm/advancedfm.cpp | |
parent | 448e2835ff7b84162022b62f8570935739a167bb (diff) | |
download | opie-3d4aef2df9828aedccf5d576ecbc8aad6621362e.zip opie-3d4aef2df9828aedccf5d576ecbc8aad6621362e.tar.gz opie-3d4aef2df9828aedccf5d576ecbc8aad6621362e.tar.bz2 |
not hardcoded path
Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 41 |
1 files changed, 7 insertions, 34 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index ec7a08a..f1be471 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -15,2 +15,5 @@ #include <opie2/odebug.h> + +#include <opie2/ostorageinfo.h> + #include <qpe/qpeapplication.h> @@ -212,11 +215,2 @@ void AdvancedFm::rePopulate() { populateView(); - -// int tmpTab = whichTab; -// // odebug << "" << tmpTab << "" << oendl; - -// for(int i =1; i < 3; i++) { -// TabWidget->setCurrentWidget(i - 1); -// populateView(); -// } -// TabWidget->setCurrentWidget( tmpTab - 1); } @@ -224,8 +218,2 @@ void AdvancedFm::rePopulate() { void AdvancedFm::ListClicked(QListViewItem *selectedItem) { -// if ( TabWidget->currentWidget() == tab) -// qDebug("XXXXXXXXXXXXXXXXXXXXXXXX ListClicked local"); -// else -// qDebug("XXXXXXXXXXXXXXXXXXXXXXXX ListClicked remote"); - - if(selectedItem) { @@ -279,3 +267,2 @@ void AdvancedFm::refreshCurrentTab() { // if ( TabWidget->currentWidget() == tab) { - } @@ -354,3 +341,4 @@ void AdvancedFm::docButtonPushed() { void AdvancedFm::SDButtonPushed() { - changeTo("/mnt/card");// this can change so fix + Opie::Core::OStorageInfo info; + changeTo(info.sdPath()); } @@ -358,6 +346,4 @@ void AdvancedFm::SDButtonPushed() { void AdvancedFm::CFButtonPushed() { - if(zaurusDevice) - changeTo("/mnt/cf"); //zaurus - else - changeTo("/mnt/hda"); //ipaq + Opie::Core::OStorageInfo info; + changeTo(info.cfPath()); } @@ -772,3 +758,2 @@ void AdvancedFm::setDocument(const QString &file) { changeTo( file); - } @@ -776,14 +761,2 @@ void AdvancedFm::setDocument(const QString &file) { -void AdvancedFm::findFile(const QString &fileName) { - QFileInfo fi(fileName); - QListView *thisView = CurrentView(); - QListViewItemIterator it( thisView ); - for ( ; it.current(); ++it ) { - if(it.current()->text(0) == fi.fileName()) { - it.current()->setSelected(true); - thisView->ensureItemVisible(it.current()); - } - } -} - void AdvancedFm::slotSwitchMenu(int item) { |