summaryrefslogtreecommitdiff
path: root/noncore/apps/advancedfm/advancedfm.cpp
authorllornkcor <llornkcor>2004-09-25 04:52:52 (UTC)
committer llornkcor <llornkcor>2004-09-25 04:52:52 (UTC)
commit2b31930ef559a2893f47aa866a706ea13d99a6f5 (patch) (unidiff)
tree2796ab2ebd826b2167a31cc3f8ca8ccb8c4900d1 /noncore/apps/advancedfm/advancedfm.cpp
parent688bd5382ab60c2146050fc2ff36850ef08a79b9 (diff)
downloadopie-2b31930ef559a2893f47aa866a706ea13d99a6f5.zip
opie-2b31930ef559a2893f47aa866a706ea13d99a6f5.tar.gz
opie-2b31930ef559a2893f47aa866a706ea13d99a6f5.tar.bz2
more redundant code
Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index 48332b7..9cb9aba 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -365,12 +365,15 @@ void AdvancedFm::CFButtonPushed() {
365 if(zaurusDevice) 365 if(zaurusDevice)
366 changeTo("/mnt/cf"); //zaurus 366 changeTo("/mnt/cf"); //zaurus
367 else 367 else
368 changeTo("/mnt/hda"); //ipaq 368 changeTo("/mnt/hda"); //ipaq
369} 369}
370 370
371void AdvancedFm::QPEButtonPushed() {
372 changeTo(QPEApplication::qpeDir());
373}
371 374
372void AdvancedFm::doAbout() { 375void AdvancedFm::doAbout() {
373 QMessageBox::message("AdvancedFm",tr("<P>Advanced FileManager is copyright 2002-2003 by L.J.Potter<llornkcor@handhelds.org> and is licensed by the GPL</P>")); 376 QMessageBox::message("AdvancedFm",tr("<P>Advanced FileManager is copyright 2002-2003 by L.J.Potter<llornkcor@handhelds.org> and is licensed by the GPL</P>"));
374} 377}
375 378
376void AdvancedFm::keyPressEvent( QKeyEvent *e) { 379void AdvancedFm::keyPressEvent( QKeyEvent *e) {
@@ -425,20 +428,12 @@ void AdvancedFm::keyReleaseEvent( QKeyEvent *e) {
425 docButtonPushed(); 428 docButtonPushed();
426 else 429 else
427 e->accept(); 430 e->accept();
428} 431}
429 432
430 433
431void AdvancedFm::QPEButtonPushed() {
432 QString current = QPEApplication::qpeDir();
433 chdir( current.latin1() );
434 CurrentDir()->cd( current, TRUE);
435 populateView();
436 update();
437}
438
439void AdvancedFm::parsetab(const QString &fileName) { 434void AdvancedFm::parsetab(const QString &fileName) {
440 435
441 fileSystemTypeList.clear(); 436 fileSystemTypeList.clear();
442 fsList.clear(); 437 fsList.clear();
443 struct mntent *me; 438 struct mntent *me;
444 FILE *mntfp = setmntent( fileName.latin1(), "r" ); 439 FILE *mntfp = setmntent( fileName.latin1(), "r" );