Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index d0ccc3f..96a2d0a 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -77,3 +77,2 @@ AdvancedFm::AdvancedFm( ) | |||
77 | setCaption( tr( "AdvancedFm" ) ); | 77 | setCaption( tr( "AdvancedFm" ) ); |
78 | // menuTimer( this ); | ||
79 | 78 | ||
@@ -86,3 +85,2 @@ AdvancedFm::AdvancedFm( ) | |||
86 | QPEMenuBar *menuBar = new QPEMenuBar(this); | 85 | QPEMenuBar *menuBar = new QPEMenuBar(this); |
87 | // fileMenu = new QPopupMenu( this ); | ||
88 | fileMenu = new QPopupMenu( this ); | 86 | fileMenu = new QPopupMenu( this ); |
@@ -97,6 +95,4 @@ AdvancedFm::AdvancedFm( ) | |||
97 | qpeDirButton->setPixmap( Resource::loadPixmap("launcher/opielogo16x16"));//,"",this,"QPEButton"); | 95 | qpeDirButton->setPixmap( Resource::loadPixmap("launcher/opielogo16x16"));//,"",this,"QPEButton"); |
98 | // qpeDirButton= new QPushButton(Resource::loadIconSet("launcher/opielogo16x16"),"",this,"QPEButton"); | ||
99 | qpeDirButton ->setFixedSize( QSize( 20, 20 ) ); | 96 | qpeDirButton ->setFixedSize( QSize( 20, 20 ) ); |
100 | connect( qpeDirButton ,SIGNAL(released()),this,SLOT( QPEButtonPushed()) ); | 97 | connect( qpeDirButton ,SIGNAL(released()),this,SLOT( QPEButtonPushed()) ); |
101 | //qpeDirButton->setFlat(TRUE); | ||
102 | layout->addMultiCellWidget( qpeDirButton , 0, 0, 2, 2); | 98 | layout->addMultiCellWidget( qpeDirButton , 0, 0, 2, 2); |
@@ -105,6 +101,4 @@ AdvancedFm::AdvancedFm( ) | |||
105 | cfButton->setPixmap(Resource::loadPixmap("cardmon/pcmcia")); | 101 | cfButton->setPixmap(Resource::loadPixmap("cardmon/pcmcia")); |
106 | // cfButton = new QPushButton(Resource::loadIconSet("cardmon/pcmcia"),"",this,"CFButton"); | ||
107 | cfButton ->setFixedSize( QSize( 20, 20 ) ); | 102 | cfButton ->setFixedSize( QSize( 20, 20 ) ); |
108 | connect( cfButton ,SIGNAL(released()),this,SLOT( CFButtonPushed()) ); | 103 | connect( cfButton ,SIGNAL(released()),this,SLOT( CFButtonPushed()) ); |
109 | //cfButton->setFlat(TRUE); | ||
110 | layout->addMultiCellWidget( cfButton , 0, 0, 3, 3); | 104 | layout->addMultiCellWidget( cfButton , 0, 0, 3, 3); |
@@ -113,6 +107,4 @@ AdvancedFm::AdvancedFm( ) | |||
113 | sdButton->setPixmap(Resource::loadPixmap("sdmon/sdcard")); | 107 | sdButton->setPixmap(Resource::loadPixmap("sdmon/sdcard")); |
114 | // sdButton = new QPushButton(Resource::loadIconSet("sdmon/sdcard"),"",this,"SDButton"); | ||
115 | sdButton->setFixedSize( QSize( 20, 20 ) ); | 108 | sdButton->setFixedSize( QSize( 20, 20 ) ); |
116 | connect( sdButton ,SIGNAL(released()),this,SLOT( SDButtonPushed()) ); | 109 | connect( sdButton ,SIGNAL(released()),this,SLOT( SDButtonPushed()) ); |
117 | // sdButton->setFlat(TRUE); | ||
118 | layout->addMultiCellWidget( sdButton , 0, 0, 4, 4); | 110 | layout->addMultiCellWidget( sdButton , 0, 0, 4, 4); |
@@ -121,6 +113,4 @@ AdvancedFm::AdvancedFm( ) | |||
121 | cdUpButton->setPixmap(Resource::loadPixmap("up")); | 113 | cdUpButton->setPixmap(Resource::loadPixmap("up")); |
122 | // cdUpButton = new QPushButton(Resource::loadIconSet("up"),"",this,"cdUpButton"); | ||
123 | cdUpButton ->setFixedSize( QSize( 20, 20 ) ); | 114 | cdUpButton ->setFixedSize( QSize( 20, 20 ) ); |
124 | connect( cdUpButton ,SIGNAL(released()),this,SLOT( upDir()) ); | 115 | connect( cdUpButton ,SIGNAL(released()),this,SLOT( upDir()) ); |
125 | //cdUpButton ->setFlat(TRUE); | ||
126 | layout->addMultiCellWidget( cdUpButton , 0, 0, 5, 5); | 116 | layout->addMultiCellWidget( cdUpButton , 0, 0, 5, 5); |
@@ -129,6 +119,4 @@ AdvancedFm::AdvancedFm( ) | |||
129 | docButton->setPixmap(Resource::loadPixmap("DocsIcon")); | 119 | docButton->setPixmap(Resource::loadPixmap("DocsIcon")); |
130 | // docButton = new QPushButton(Resource::loadIconSet("DocsIcon"),"",this,"docsButton"); | ||
131 | docButton->setFixedSize( QSize( 20, 20 ) ); | 120 | docButton->setFixedSize( QSize( 20, 20 ) ); |
132 | connect( docButton,SIGNAL(released()),this,SLOT( docButtonPushed()) ); | 121 | connect( docButton,SIGNAL(released()),this,SLOT( docButtonPushed()) ); |
133 | // docButton->setFlat(TRUE); | ||
134 | layout->addMultiCellWidget( docButton, 0, 0, 6, 6); | 122 | layout->addMultiCellWidget( docButton, 0, 0, 6, 6); |
@@ -137,10 +125,5 @@ AdvancedFm::AdvancedFm( ) | |||
137 | homeButton->setPixmap(Resource::loadPixmap("home")); | 125 | homeButton->setPixmap(Resource::loadPixmap("home")); |
138 | // homeButton = new QPushButton( Resource::loadIconSet("home"),"",this,"homeButton"); | ||
139 | homeButton->setFixedSize( QSize( 20, 20 ) ); | 126 | homeButton->setFixedSize( QSize( 20, 20 ) ); |
140 | connect(homeButton,SIGNAL(released()),this,SLOT(homeButtonPushed()) ); | 127 | connect(homeButton,SIGNAL(released()),this,SLOT(homeButtonPushed()) ); |
141 | // homeButton->setFlat(TRUE); | ||
142 | layout->addMultiCellWidget( homeButton, 0, 0, 7, 7); | 128 | layout->addMultiCellWidget( homeButton, 0, 0, 7, 7); |
143 | // fileMenu->insertItem( tr( "New" ), this, SLOT( newConnection() )); | ||
144 | // fileMenu->insertItem( tr( "Connect" ), this, SLOT( connector() )); | ||
145 | // fileMenu->insertItem( tr( "Disconnect" ), this, SLOT( disConnector() )); | ||
146 | 129 | ||
@@ -189,3 +172,2 @@ AdvancedFm::AdvancedFm( ) | |||
189 | Local_View = new QListView( tab, "Local_View" ); | 172 | Local_View = new QListView( tab, "Local_View" ); |
190 | // Local_View->setResizePolicy( QListView::AutoOneFit ); | ||
191 | Local_View->addColumn( tr("File"),130); | 173 | Local_View->addColumn( tr("File"),130); |
@@ -201,4 +183,2 @@ AdvancedFm::AdvancedFm( ) | |||
201 | 183 | ||
202 | |||
203 | |||
204 | tabLayout->addWidget( Local_View, 0, 0 ); | 184 | tabLayout->addWidget( Local_View, 0, 0 ); |
@@ -236,3 +216,2 @@ AdvancedFm::AdvancedFm( ) | |||
236 | this,SLOT( remoteListPressed(int, QListViewItem *, const QPoint&, int)) ); | 216 | this,SLOT( remoteListPressed(int, QListViewItem *, const QPoint&, int)) ); |
237 | // connect( Remote_View, SIGNAL( selectionChanged() ), SLOT( cancelMenuTimer() ) ); | ||
238 | 217 | ||
@@ -269,5 +248,2 @@ QListView *fileTree; | |||
269 | 248 | ||
270 | //////////////////// | ||
271 | |||
272 | |||
273 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 249 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
@@ -329,5 +305,2 @@ void AdvancedFm::populateLocalView() | |||
329 | QString fileL, fileS, fileDate; | 305 | QString fileL, fileS, fileDate; |
330 | // qDebug(currentDir.canonicalPath()); | ||
331 | // struct stat buf; | ||
332 | // mode_t mode; | ||
333 | QString fs= getFileSystemType((const QString &) currentDir.canonicalPath()); | 306 | QString fs= getFileSystemType((const QString &) currentDir.canonicalPath()); |
@@ -341,3 +314,2 @@ void AdvancedFm::populateLocalView() | |||
341 | QString symLink=fi->readLink(); | 314 | QString symLink=fi->readLink(); |
342 | // qDebug("Symlink detected "+symLink); | ||
343 | QFileInfo sym( symLink); | 315 | QFileInfo sym( symLink); |
@@ -353,3 +325,2 @@ void AdvancedFm::populateLocalView() | |||
353 | isDir=TRUE; | 325 | isDir=TRUE; |
354 | // qDebug( fileL); | ||
355 | } | 326 | } |
@@ -366,3 +337,2 @@ void AdvancedFm::populateLocalView() | |||
366 | pm= Resource::loadPixmap( "folder" ); | 337 | pm= Resource::loadPixmap( "folder" ); |
367 | // item->setPixmap( 0,pm ); | ||
368 | } else if ( fs == "vfat" && fileInfo.filePath().contains("/bin") ) { | 338 | } else if ( fs == "vfat" && fileInfo.filePath().contains("/bin") ) { |
@@ -373,9 +343,4 @@ void AdvancedFm::populateLocalView() | |||
373 | pm = Resource::loadPixmap( "exec"); | 343 | pm = Resource::loadPixmap( "exec"); |
374 | // else { //is exec | ||
375 | // pm = Resource::loadPixmap( "exec"); | ||
376 | // } | ||
377 | // // item->setPixmap( 0,pm); | ||
378 | } else if( !fi->isReadable() ) { | 344 | } else if( !fi->isReadable() ) { |
379 | pm = Resource::loadPixmap( "locked" ); | 345 | pm = Resource::loadPixmap( "locked" ); |
380 | // item->setPixmap( 0,pm); | ||
381 | } else { //everything else goes by mimetype | 346 | } else { //everything else goes by mimetype |
@@ -385,3 +350,2 @@ void AdvancedFm::populateLocalView() | |||
385 | pm = Resource::loadPixmap( "UnknownDocument-14" ); | 350 | pm = Resource::loadPixmap( "UnknownDocument-14" ); |
386 | // item->setPixmap( 0,pm); | ||
387 | } | 351 | } |
@@ -404,9 +368,5 @@ void AdvancedFm::populateLocalView() | |||
404 | struct stat buf; | 368 | struct stat buf; |
405 | // struct stat st; | ||
406 | dev_t devT; | 369 | dev_t devT; |
407 | // mode_t mode; | ||
408 | DIR *dir; | 370 | DIR *dir; |
409 | // int fd = 0; | ||
410 | struct dirent *mydirent; | 371 | struct dirent *mydirent; |
411 | // int i = 1; | ||
412 | if((dir = opendir( currentDir.canonicalPath().latin1())) != NULL) | 372 | if((dir = opendir( currentDir.canonicalPath().latin1())) != NULL) |
@@ -415,8 +375,5 @@ void AdvancedFm::populateLocalView() | |||
415 | qDebug(mydirent->d_name); | 375 | qDebug(mydirent->d_name); |
416 | // mode = buf.st_mode; | ||
417 | fileL.sprintf("%s", mydirent->d_name); | 376 | fileL.sprintf("%s", mydirent->d_name); |
418 | // fileS.sprintf("%d, %d", ); //this isn't correct | ||
419 | devT = buf.st_dev; | 377 | devT = buf.st_dev; |
420 | fileS.sprintf("%d, %d", (int) ( devT >>8) &0xFF, (int)devT &0xFF); | 378 | fileS.sprintf("%d, %d", (int) ( devT >>8) &0xFF, (int)devT &0xFF); |
421 | // fileS.sprintf("%d,%d", devT, devT); | ||
422 | fileDate.sprintf("%s", ctime( &buf.st_mtime)); | 379 | fileDate.sprintf("%s", ctime( &buf.st_mtime)); |
@@ -439,11 +396,2 @@ void AdvancedFm::populateRemoteView() | |||
439 | { | 396 | { |
440 | // QList<QListViewItem> * getSelectedItems( QListView * Local_View ); | ||
441 | // QListViewItemIterator it( Remote_View ); | ||
442 | // for ( ; it.current(); ++it ) { | ||
443 | // if ( it.current()->isSelected() ) { | ||
444 | // QString strItem = it.current()->text(0); | ||
445 | // QString localFile = currentRemoteDir.canonicalPath()+"/"+strItem; | ||
446 | // QFileInfo fi(localFile); | ||
447 | // } | ||
448 | // } | ||
449 | QPixmap pm; | 397 | QPixmap pm; |
@@ -490,3 +438,2 @@ void AdvancedFm::populateRemoteView() | |||
490 | pm= Resource::loadPixmap( "folder" ); | 438 | pm= Resource::loadPixmap( "folder" ); |
491 | // item->setPixmap( 0,pm ); | ||
492 | } else if ( fs == "vfat" && fileInfo.filePath().contains("/bin") ) { | 439 | } else if ( fs == "vfat" && fileInfo.filePath().contains("/bin") ) { |
@@ -497,6 +444,4 @@ void AdvancedFm::populateRemoteView() | |||
497 | pm = Resource::loadPixmap( "exec"); | 444 | pm = Resource::loadPixmap( "exec"); |
498 | // item->setPixmap( 0,pm); | ||
499 | } else if( !fi->isReadable() ) { | 445 | } else if( !fi->isReadable() ) { |
500 | pm = Resource::loadPixmap( "locked" ); | 446 | pm = Resource::loadPixmap( "locked" ); |
501 | // item->setPixmap( 0,pm); | ||
502 | } else { | 447 | } else { |
@@ -506,3 +451,2 @@ void AdvancedFm::populateRemoteView() | |||
506 | pm = Resource::loadPixmap( "UnknownDocument-14" ); | 451 | pm = Resource::loadPixmap( "UnknownDocument-14" ); |
507 | // item->setPixmap( 0,pm); | ||
508 | } | 452 | } |
@@ -515,3 +459,2 @@ void AdvancedFm::populateRemoteView() | |||
515 | pm.setMask( pm.createHeuristicMask( FALSE ) ); | 459 | pm.setMask( pm.createHeuristicMask( FALSE ) ); |
516 | // item->setPixmap( 0, pm); | ||
517 | } | 460 | } |
@@ -525,8 +468,4 @@ void AdvancedFm::populateRemoteView() | |||
525 | struct stat buf; | 468 | struct stat buf; |
526 | // struct stat st; | ||
527 | // mode_t mode; | ||
528 | DIR *dir; | 469 | DIR *dir; |
529 | // int fd = 0; | ||
530 | struct dirent *mydirent; | 470 | struct dirent *mydirent; |
531 | // int i = 1; | ||
532 | if((dir = opendir( currentRemoteDir.canonicalPath().latin1())) != NULL) | 471 | if((dir = opendir( currentRemoteDir.canonicalPath().latin1())) != NULL) |
@@ -535,5 +474,3 @@ void AdvancedFm::populateRemoteView() | |||
535 | qDebug(mydirent->d_name); | 474 | qDebug(mydirent->d_name); |
536 | // mode = buf.st_mode; | ||
537 | fileL.sprintf("%s", mydirent->d_name); | 475 | fileL.sprintf("%s", mydirent->d_name); |
538 | // fileS.sprintf("%d, %d", ); //this isn't correct | ||
539 | fileS.sprintf("%d,%d", (int) (buf.st_dev>>8)&0xFF, (int) buf.st_dev &0xFF); | 476 | fileS.sprintf("%d,%d", (int) (buf.st_dev>>8)&0xFF, (int) buf.st_dev &0xFF); |
@@ -651,4 +588,2 @@ void AdvancedFm::showHidden() | |||
651 | fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); | 588 | fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); |
652 | // localMenu->setItemChecked(localMenu->idAt(0),TRUE); | ||
653 | // currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); | ||
654 | b=FALSE; | 589 | b=FALSE; |
@@ -658,4 +593,2 @@ void AdvancedFm::showHidden() | |||
658 | fileMenu->setItemChecked( fileMenu->idAt(0),FALSE); | 593 | fileMenu->setItemChecked( fileMenu->idAt(0),FALSE); |
659 | // localMenu->setItemChecked(localMenu->idAt(0),FALSE); | ||
660 | // currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); | ||
661 | b=TRUE; | 594 | b=TRUE; |
@@ -670,4 +603,2 @@ void AdvancedFm::showRemoteHidden() | |||
670 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 603 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
671 | // viewMenu->setItemChecked(localMenu->idAt(0),TRUE); | ||
672 | // currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); | ||
673 | b=TRUE; | 604 | b=TRUE; |
@@ -676,4 +607,2 @@ void AdvancedFm::showRemoteHidden() | |||
676 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); | 607 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); |
677 | // localMenu->setItemChecked(localMenu->idAt(0),FALSE); | ||
678 | // currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); | ||
679 | b=FALSE; | 608 | b=FALSE; |
@@ -710,3 +639,2 @@ void AdvancedFm::remoteListPressed( int mouse, QListViewItem *item, const QPoint | |||
710 | void AdvancedFm::runThis() { | 639 | void AdvancedFm::runThis() { |
711 | // QFileInfo *fi; | ||
712 | QString fs; | 640 | QString fs; |
@@ -723,3 +651,2 @@ void AdvancedFm::runThis() { | |||
723 | | fs == "vfat" && fileInfo.filePath().contains("/bin") ) { | 651 | | fs == "vfat" && fileInfo.filePath().contains("/bin") ) { |
724 | // if( fileInfo.isExecutable() | | ||
725 | QCopEnvelope e("QPE/System", "execute(QString)" ); | 652 | QCopEnvelope e("QPE/System", "execute(QString)" ); |
@@ -737,3 +664,2 @@ void AdvancedFm::runThis() { | |||
737 | } | 664 | } |
738 | // MimeType mt( curFile); | ||
739 | } else { | 665 | } else { |
@@ -762,3 +688,2 @@ void AdvancedFm::runThis() { | |||
762 | } | 688 | } |
763 | // MimeType mt( curFile); | ||
764 | } | 689 | } |
@@ -1060,3 +985,2 @@ void AdvancedFm::doProperties() { | |||
1060 | LnkProperties prop( &lnk ); | 985 | LnkProperties prop( &lnk ); |
1061 | // connect(&prop, SIGNAL(select(const AppLnk *)), this, SLOT(externalSelected(const AppLnk *))); | ||
1062 | prop.showMaximized(); | 986 | prop.showMaximized(); |
@@ -1177,11 +1101,3 @@ void AdvancedFm::copy() | |||
1177 | QString destFile = currentRemoteDir.canonicalPath()+"/"+(*it); | 1101 | QString destFile = currentRemoteDir.canonicalPath()+"/"+(*it); |
1178 | // if(destFile.right(1).find("/",0,TRUE) == -1) | ||
1179 | // destFile+="/"; | ||
1180 | // destFile +=(*it); | ||
1181 | |||
1182 | curFile = currentDir.canonicalPath()+"/"+(*it); | 1102 | curFile = currentDir.canonicalPath()+"/"+(*it); |
1183 | // if(curFile.right(1).find("/",0,TRUE) == -1) | ||
1184 | // curFile +="/"; | ||
1185 | // curFile +=(*it); | ||
1186 | |||
1187 | QFile f(destFile); | 1103 | QFile f(destFile); |
@@ -1250,4 +1166,2 @@ void AdvancedFm::copyAs() | |||
1250 | curFile = currentDir.canonicalPath()+"/"+(*it); | 1166 | curFile = currentDir.canonicalPath()+"/"+(*it); |
1251 | // InputDialog *fileDlg; | ||
1252 | // fileDlg = new InputDialog(this,tr("Copy As"),TRUE, 0); | ||
1253 | fileDlg->setInputText((const QString &) destFile ); | 1167 | fileDlg->setInputText((const QString &) destFile ); |
@@ -1330,4 +1244,2 @@ void AdvancedFm::copySameDir() { | |||
1330 | fileDlg = new InputDialog(this,tr("Copy ")+curFile+tr(" As"),TRUE, 0); | 1244 | fileDlg = new InputDialog(this,tr("Copy ")+curFile+tr(" As"),TRUE, 0); |
1331 | // InputDialog *fileDlg; | ||
1332 | // fileDlg = new InputDialog(this,tr("Copy As"),TRUE, 0); | ||
1333 | fileDlg->setInputText((const QString &) destFile ); | 1245 | fileDlg->setInputText((const QString &) destFile ); |
@@ -1533,3 +1445,2 @@ void AdvancedFm::runCommand() { | |||
1533 | 1445 | ||
1534 | // int err=0; | ||
1535 | Output *outDlg; | 1446 | Output *outDlg; |
@@ -1542,3 +1453,2 @@ void AdvancedFm::runCommand() { | |||
1542 | sleep(1); | 1453 | sleep(1); |
1543 | // if(command.find("2>",0,TRUE) != -1) | ||
1544 | command +=" 2>&1"; | 1454 | command +=" 2>&1"; |
@@ -1591,3 +1501,2 @@ void AdvancedFm::fileStatus() { | |||
1591 | QString command = " stat -l "+ curFile +" 2>&1"; | 1501 | QString command = " stat -l "+ curFile +" 2>&1"; |
1592 | // int err=0; | ||
1593 | Output *outDlg; | 1502 | Output *outDlg; |
@@ -1766,3 +1675,2 @@ void AdvancedFm::parsetab(const QString &fileName) { | |||
1766 | struct mntent *me; | 1675 | struct mntent *me; |
1767 | // if(fileName == "/etc/mtab") { | ||
1768 | FILE *mntfp = setmntent( fileName.latin1(), "r" ); | 1676 | FILE *mntfp = setmntent( fileName.latin1(), "r" ); |
@@ -1779,4 +1687,2 @@ void AdvancedFm::parsetab(const QString &fileName) { | |||
1779 | fsList << filesystemType; | 1687 | fsList << filesystemType; |
1780 | // deviceList << deviceName; | ||
1781 | // qDebug(mountDir+"::"+filesystemType); | ||
1782 | fileSystemTypeList << mountDir+"::"+filesystemType; | 1688 | fileSystemTypeList << mountDir+"::"+filesystemType; |
@@ -1847,13 +1753,2 @@ void AdvancedFm::fileBeamFinished( Ir *ir) { | |||
1847 | 1753 | ||
1848 | |||
1849 | // QList<QListViewItem> * getSelectedItems( QListView * Local_View ); | ||
1850 | // QListViewItemIterator it( Local_View ); | ||
1851 | // for ( ; it.current(); ++it ) { | ||
1852 | // if ( it.current()->isSelected() ) { | ||
1853 | // QString strItem = it.current()->text(0); | ||
1854 | // QString localFile = currentDir.canonicalPath()+"/"+strItem; | ||
1855 | // QFileInfo fi(localFile); | ||
1856 | // } | ||
1857 | // } | ||
1858 | |||
1859 | void AdvancedFm::showFileMenu() { | 1754 | void AdvancedFm::showFileMenu() { |
@@ -1873,3 +1768,2 @@ void AdvancedFm::showFileMenu() { | |||
1873 | 1768 | ||
1874 | // QPopupMenu m; | ||
1875 | QPopupMenu *m = new QPopupMenu(0); | 1769 | QPopupMenu *m = new QPopupMenu(0); |