-rw-r--r-- | libopie/ofileselector.cc | 23 | ||||
-rw-r--r-- | libopie/ofileselector.h | 4 |
2 files changed, 25 insertions, 2 deletions
diff --git a/libopie/ofileselector.cc b/libopie/ofileselector.cc index 14f035e..fbe69ed 100644 --- a/libopie/ofileselector.cc +++ b/libopie/ofileselector.cc @@ -748,4 +748,7 @@ void OFileSelector::initializeListView() m_location->insertItem(path+ "<-"+disk ); } + int count = m_location->count(); + m_location->insertItem(m_currentDir ); + m_location->setCurrentItem( count ); }; m_View = new QListView(m_pseudo, "Extended view" ); @@ -1003,4 +1006,9 @@ bool OFileSelector::cd(const QString &str ) m_currentDir = str; reparse(); + if(m_shTool ){ + int count = m_location->count(); + m_location->insertItem(str ); + m_location->setCurrentItem( count ); + } return true; } @@ -1054,6 +1062,19 @@ void OFileSelector::cdUP() m_currentDir = dir.absPath(); reparse(); + int count = m_location->count(); + m_location->insertItem(m_currentDir ); + m_location->setCurrentItem( count ); } } +void OFileSelector::slotHome() +{ + cd(QDir::homeDirPath() ); +} +void OFileSelector::slotDoc() +{ + cd(QDir::homeDirPath() + "/Documents" ); +} +void OFileSelector::slotNavigate() +{ - +} diff --git a/libopie/ofileselector.h b/libopie/ofileselector.h index b91c0ea..bf3cb48 100644 --- a/libopie/ofileselector.h +++ b/libopie/ofileselector.h @@ -268,5 +268,7 @@ private slots: virtual void slotDelete(); virtual void cdUP(); - + virtual void slotHome(); + virtual void slotDoc(); + virtual void slotNavigate( ); }; |