-rw-r--r-- | noncore/graphics/opie-eye/gui/iconview.cpp | 45 |
1 files changed, 42 insertions, 3 deletions
diff --git a/noncore/graphics/opie-eye/gui/iconview.cpp b/noncore/graphics/opie-eye/gui/iconview.cpp index 4ced52d..c07a1e5 100644 --- a/noncore/graphics/opie-eye/gui/iconview.cpp +++ b/noncore/graphics/opie-eye/gui/iconview.cpp @@ -202,5 +202,4 @@ void PIconView::slotDirUp() { dir.cdUp(); slotChangeDir( dir.absPath() ); - } @@ -216,4 +215,7 @@ void PIconView::slotChangeDir(const QString& path) { return; + /* + * Say what we want and take what we get + */ lister->setStartPath( path ); m_path = lister->currentPath(); @@ -221,4 +223,8 @@ void PIconView::slotChangeDir(const QString& path) { m_view->viewport()->setUpdatesEnabled( false ); m_view->clear(); + + /* + * add files and folders + */ addFolders( lister->folders() ); addFiles( lister->files() ); @@ -233,4 +239,8 @@ void PIconView::slotChangeDir(const QString& path) { } +/** + * get the current file name + * @param isDir see if this is a dir or real file + */ QString PIconView::currentFileName(bool &isDir)const { isDir = false; @@ -259,4 +269,8 @@ void PIconView::slotTrash() { delete m_view->currentItem(); } + +/* + * see what views are available + */ void PIconView::loadViews() { ViewMap::Iterator it; @@ -270,4 +284,7 @@ void PIconView::resetView() { } +/* + *swicth view reloadDir and connect signals + */ void PIconView::slotViewChanged( int i) { if (!m_views->count() ) { @@ -304,4 +321,7 @@ void PIconView::slotReloadDir() { +/* + * add files and folders + */ void PIconView::addFolders( const QStringList& lst) { QStringList::ConstIterator it; @@ -320,4 +340,7 @@ void PIconView::addFiles( const QStringList& lst) { } +/* + * user clicked on the item. Change dir or view + */ void PIconView::slotClicked(QIconViewItem* _it) { if(!_it ) @@ -331,4 +354,8 @@ void PIconView::slotClicked(QIconViewItem* _it) { } +/* + * got thumb info add to the cache if items is visible + * we later need update after processing of slave is done + */ void PIconView::slotThumbInfo( const QString& _path, const QString& str ) { IconViewItem* item = g_stringInf[_path]; @@ -343,4 +370,8 @@ void PIconView::slotThumbInfo( const QString& _path, const QString& str ) { g_stringInf.remove( _path ); } + +/* + * got thumbnail and see if it is visible so we need to update later + */ void PIconView::slotThumbNail(const QString& _path, const QPixmap &pix) { IconViewItem* item = g_stringPix[_path]; @@ -360,8 +391,15 @@ void PIconView::slotThumbNail(const QString& _path, const QPixmap &pix) { +/* + * FIXME rename + */ void PIconView::slotRename() { } + +/* + * BEAM the current file + */ void PIconView::slotBeam() { bool isDir; @@ -377,4 +415,7 @@ void PIconView::slotBeam() { } +/* + * BEAM done clean up + */ void PIconView::slotBeamDone( Ir* ir) { delete ir; @@ -394,5 +435,4 @@ void PIconView::slotEnd() { void PIconView::slotShowImage() { - qWarning( "SLotShowImage" ); bool isDir = false; QString name = currentFileName(isDir); @@ -405,5 +445,4 @@ void PIconView::slotShowImage( const QString& name) { } void PIconView::slotImageInfo() { - qWarning( "SlotImageInfo" ); bool isDir = false; QString name = currentFileName(isDir); |