Diffstat (limited to 'libopie/ofileselector/ofileselector.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie/ofileselector/ofileselector.cpp | 48 |
1 files changed, 32 insertions, 16 deletions
diff --git a/libopie/ofileselector/ofileselector.cpp b/libopie/ofileselector/ofileselector.cpp index f655606..16ee3ee 100644 --- a/libopie/ofileselector/ofileselector.cpp +++ b/libopie/ofileselector/ofileselector.cpp @@ -263,3 +263,3 @@ QString text; -void OFileSelector::setPopupFactory(OPopupMenuFactory *popup ) +void OFileSelector::setPopupFactory(OPopupMenuFactory */*popup*/ ) { @@ -278,3 +278,3 @@ QString OFileSelector::selectedName() const name = lnk.file(); - }else if( m_selector == Extended || m_selector == ExtendedAll ){ + }else { if ( m_shLne ) { @@ -306,5 +306,5 @@ QString OFileSelector::selectedPath()const path = QPEApplication::documentDir(); - }else if( m_selector == Extended || m_selector == ExtendedAll ){ - ; //FIXME - } + } /*else if( m_selector == Extended || m_selector == ExtendedAll ){ + ; + }*/ return path; @@ -335,3 +335,3 @@ int OFileSelector::fileCount() default: - count = currentView()->childCount(); + count = currentView()->fileCount(); break; @@ -351,3 +351,3 @@ DocLnk OFileSelector::selectedDocument() const default: - lnk = DocLnk( selectedName() ); // new DocLnk + lnk = DocLnk( selectedName() ); break; @@ -374,2 +374,3 @@ void OFileSelector::slotCancel() } +/* switch the views */ void OFileSelector::slotViewCheck(const QString &sel) @@ -406,3 +407,3 @@ void OFileSelector::slotViewCheck(const QString &sel) } -// not yet finished..... + QString OFileSelector::currentMimeType() const{ @@ -633,3 +634,3 @@ void OFileSelector::initVars() } -void OFileSelector::addFile(const QString &mime, QFileInfo *info, bool symlink) +void OFileSelector::addFile(const QString &, QFileInfo *info, bool ) { @@ -644,3 +645,3 @@ void OFileSelector::addFile(const QString &mime, QFileInfo *info, bool symlink) } -void OFileSelector::addDir(const QString &mime, QFileInfo *info, bool symlink ) +void OFileSelector::addDir(const QString &, QFileInfo *, bool ) { @@ -927,3 +928,2 @@ bool OFileSelector::compliesMime( const QString& mime ) { int pos; - int pos2; for ( it2 = list.begin(); it2 != list.end(); ++it2 ) { @@ -951,4 +951,5 @@ void OFileSelector::slotSelectionChanged() } -void OFileSelector::slotCurrentChanged(QListViewItem* item ) +void OFileSelector::slotCurrentChanged(QListViewItem* /*item*/ ) { + /* if( item == 0 ) @@ -970,6 +971,8 @@ void OFileSelector::slotCurrentChanged(QListViewItem* item ) } + } */ } -} -void OFileSelector::slotClicked( int button, QListViewItem *item, const QPoint &, int) +void OFileSelector::slotClicked( int /*button*/, QListViewItem */*item*/, const QPoint &, int) + { + /* if ( item == 0 ) @@ -1003,3 +1006,3 @@ void OFileSelector::slotClicked( int button, QListViewItem *item, const QPoint & } - } + } */ } @@ -1014,3 +1017,3 @@ void OFileSelector::slotRightButton(int button, QListViewItem *item, const QPoin } -void OFileSelector::slotContextMenu( QListViewItem *item) +void OFileSelector::slotContextMenu( QListViewItem */*item*/) { @@ -1020,2 +1023,3 @@ void OFileSelector::slotChangedDir() { + /* OFileSelectorItem *sel = (OFileSelectorItem*)m_View->currentItem(); @@ -1025,2 +1029,3 @@ void OFileSelector::slotChangedDir() } + */ } @@ -1028,2 +1033,3 @@ void OFileSelector::slotOpen() { + /* OFileSelectorItem *sel = (OFileSelectorItem*)m_View->currentItem(); @@ -1036,2 +1042,3 @@ void OFileSelector::slotOpen() } + */ } @@ -1047,2 +1054,3 @@ void OFileSelector::slotDelete() { + /* OFileSelectorItem *sel = (OFileSelectorItem*)m_View->currentItem(); @@ -1062,2 +1070,3 @@ void OFileSelector::slotDelete() delete sel; + */ } @@ -1212,2 +1221,5 @@ OFileView* OFileSelector::currentView() { } +OFileView* OFileSelector::currentView() const{ + return 0l; +} int OFileSelector::filter() { @@ -1246 +1258,5 @@ void OFileSelector::internChangedDir( const QDir& s) { } +QPixmap OFileSelector::pixmap( const QString& s ) { + + return (*m_pixmaps)[s]; +} |