summaryrefslogtreecommitdiff
path: root/libopie/ofileselector/ofileselector.cpp
Unidiff
Diffstat (limited to 'libopie/ofileselector/ofileselector.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie/ofileselector/ofileselector.cpp48
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;
263 263
264void OFileSelector::setPopupFactory(OPopupMenuFactory *popup ) 264void OFileSelector::setPopupFactory(OPopupMenuFactory */*popup*/ )
265{ 265{
@@ -278,3 +278,3 @@ QString OFileSelector::selectedName() const
278 name = lnk.file(); 278 name = lnk.file();
279 }else if( m_selector == Extended || m_selector == ExtendedAll ){ 279 }else {
280 if ( m_shLne ) { 280 if ( m_shLne ) {
@@ -306,5 +306,5 @@ QString OFileSelector::selectedPath()const
306 path = QPEApplication::documentDir(); 306 path = QPEApplication::documentDir();
307 }else if( m_selector == Extended || m_selector == ExtendedAll ){ 307 } /*else if( m_selector == Extended || m_selector == ExtendedAll ){
308 ; //FIXME 308 ;
309 } 309 }*/
310 return path; 310 return path;
@@ -335,3 +335,3 @@ int OFileSelector::fileCount()
335 default: 335 default:
336 count = currentView()->childCount(); 336 count = currentView()->fileCount();
337 break; 337 break;
@@ -351,3 +351,3 @@ DocLnk OFileSelector::selectedDocument() const
351 default: 351 default:
352 lnk = DocLnk( selectedName() ); // new DocLnk 352 lnk = DocLnk( selectedName() );
353 break; 353 break;
@@ -374,2 +374,3 @@ void OFileSelector::slotCancel()
374} 374}
375/* switch the views */
375void OFileSelector::slotViewCheck(const QString &sel) 376void OFileSelector::slotViewCheck(const QString &sel)
@@ -406,3 +407,3 @@ void OFileSelector::slotViewCheck(const QString &sel)
406} 407}
407// not yet finished..... 408
408QString OFileSelector::currentMimeType() const{ 409QString OFileSelector::currentMimeType() const{
@@ -633,3 +634,3 @@ void OFileSelector::initVars()
633} 634}
634void OFileSelector::addFile(const QString &mime, QFileInfo *info, bool symlink) 635void OFileSelector::addFile(const QString &, QFileInfo *info, bool )
635{ 636{
@@ -644,3 +645,3 @@ void OFileSelector::addFile(const QString &mime, QFileInfo *info, bool symlink)
644} 645}
645void OFileSelector::addDir(const QString &mime, QFileInfo *info, bool symlink ) 646void OFileSelector::addDir(const QString &, QFileInfo *, bool )
646{ 647{
@@ -927,3 +928,2 @@ bool OFileSelector::compliesMime( const QString& mime ) {
927 int pos; 928 int pos;
928 int pos2;
929 for ( it2 = list.begin(); it2 != list.end(); ++it2 ) { 929 for ( it2 = list.begin(); it2 != list.end(); ++it2 ) {
@@ -951,4 +951,5 @@ void OFileSelector::slotSelectionChanged()
951} 951}
952void OFileSelector::slotCurrentChanged(QListViewItem* item ) 952void OFileSelector::slotCurrentChanged(QListViewItem* /*item*/ )
953{ 953{
954 /*
954 if( item == 0 ) 955 if( item == 0 )
@@ -970,6 +971,8 @@ void OFileSelector::slotCurrentChanged(QListViewItem* item )
970 } 971 }
972 } */
971 } 973 }
972} 974void OFileSelector::slotClicked( int /*button*/, QListViewItem */*item*/, const QPoint &, int)
973void OFileSelector::slotClicked( int button, QListViewItem *item, const QPoint &, int) 975
974{ 976{
977 /*
975 if ( item == 0 ) 978 if ( item == 0 )
@@ -1003,3 +1006,3 @@ void OFileSelector::slotClicked( int button, QListViewItem *item, const QPoint &
1003 } 1006 }
1004 } 1007 } */
1005} 1008}
@@ -1014,3 +1017,3 @@ void OFileSelector::slotRightButton(int button, QListViewItem *item, const QPoin
1014} 1017}
1015void OFileSelector::slotContextMenu( QListViewItem *item) 1018void OFileSelector::slotContextMenu( QListViewItem */*item*/)
1016{ 1019{
@@ -1020,2 +1023,3 @@ void OFileSelector::slotChangedDir()
1020{ 1023{
1024 /*
1021 OFileSelectorItem *sel = (OFileSelectorItem*)m_View->currentItem(); 1025 OFileSelectorItem *sel = (OFileSelectorItem*)m_View->currentItem();
@@ -1025,2 +1029,3 @@ void OFileSelector::slotChangedDir()
1025 } 1029 }
1030 */
1026} 1031}
@@ -1028,2 +1033,3 @@ void OFileSelector::slotOpen()
1028{ 1033{
1034 /*
1029 OFileSelectorItem *sel = (OFileSelectorItem*)m_View->currentItem(); 1035 OFileSelectorItem *sel = (OFileSelectorItem*)m_View->currentItem();
@@ -1036,2 +1042,3 @@ void OFileSelector::slotOpen()
1036 } 1042 }
1043 */
1037} 1044}
@@ -1047,2 +1054,3 @@ void OFileSelector::slotDelete()
1047{ 1054{
1055 /*
1048 OFileSelectorItem *sel = (OFileSelectorItem*)m_View->currentItem(); 1056 OFileSelectorItem *sel = (OFileSelectorItem*)m_View->currentItem();
@@ -1062,2 +1070,3 @@ void OFileSelector::slotDelete()
1062 delete sel; 1070 delete sel;
1071 */
1063} 1072}
@@ -1212,2 +1221,5 @@ OFileView* OFileSelector::currentView() {
1212} 1221}
1222OFileView* OFileSelector::currentView() const{
1223 return 0l;
1224}
1213int OFileSelector::filter() { 1225int OFileSelector::filter() {
@@ -1246 +1258,5 @@ void OFileSelector::internChangedDir( const QDir& s) {
1246} 1258}
1259QPixmap OFileSelector::pixmap( const QString& s ) {
1260
1261 return (*m_pixmaps)[s];
1262}