summaryrefslogtreecommitdiff
path: root/noncore/apps/advancedfm/advancedfmMenu.cpp
Unidiff
Diffstat (limited to 'noncore/apps/advancedfm/advancedfmMenu.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfmMenu.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp
index 26bc36d..78f9da2 100644
--- a/noncore/apps/advancedfm/advancedfmMenu.cpp
+++ b/noncore/apps/advancedfm/advancedfmMenu.cpp
@@ -231,48 +231,46 @@ void AdvancedFm::doDelete() {
231 populateView(); 231 populateView();
232} 232}
233 233
234void AdvancedFm::filePerms() { 234void AdvancedFm::filePerms() {
235 QStringList curFileList = getPath(); 235 QStringList curFileList = getPath();
236 QString filePath; 236 QString filePath;
237 237
238 filePath = CurrentDir()->canonicalPath()+"/"; 238 filePath = CurrentDir()->canonicalPath()+"/";
239 239
240 for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) { 240 for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) {
241 filePermissions *filePerm; 241 filePermissions *filePerm;
242 filePerm = new filePermissions(this, "Permissions",true,0,(const QString &)(filePath+*it)); 242 filePerm = new filePermissions(this, "Permissions",true,0,(const QString &)(filePath+*it));
243 filePerm->showMaximized(); 243 QPEApplication::execDialog( filePerm );
244 filePerm->exec();
245 if( filePerm) 244 if( filePerm)
246 delete filePerm; 245 delete filePerm;
247 } 246 }
248 populateView(); 247 populateView();
249} 248}
250 249
251void AdvancedFm::doProperties() { 250void AdvancedFm::doProperties() {
252#if defined(QT_QWS_OPIE) 251#if defined(QT_QWS_OPIE)
253 252
254 QStringList curFileList = getPath(); 253 QStringList curFileList = getPath();
255 254
256 QString filePath; 255 QString filePath;
257 filePath = CurrentDir()->canonicalPath()+"/"; 256 filePath = CurrentDir()->canonicalPath()+"/";
258 257
259// qDebug("%d",curFileList.count()); 258// qDebug("%d",curFileList.count());
260 259
261 for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) { 260 for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) {
262// qDebug((filePath+*it)); 261// qDebug((filePath+*it));
263 DocLnk lnk( (filePath+*it)); 262 DocLnk lnk( (filePath+*it));
264 LnkProperties prop( &lnk ); 263 LnkProperties prop( &lnk );
265 prop.showMaximized(); 264 QPEApplication::execDialog( &prop );
266 prop.exec();
267 } 265 }
268#endif 266#endif
269 267
270} 268}
271 269
272void AdvancedFm::upDir() { 270void AdvancedFm::upDir() {
273 QDir *thisDir = CurrentDir(); 271 QDir *thisDir = CurrentDir();
274 QString current = thisDir->canonicalPath(); 272 QString current = thisDir->canonicalPath();
275 QDir dir(current); 273 QDir dir(current);
276 dir.cdUp(); 274 dir.cdUp();
277 current = dir.canonicalPath(); 275 current = dir.canonicalPath();
278 chdir( current.latin1() ); 276 chdir( current.latin1() );
@@ -592,26 +590,25 @@ void AdvancedFm::runCommand() {
592 fileDlg->exec(); 590 fileDlg->exec();
593 //QString command; 591 //QString command;
594 592
595 if( fileDlg->result() == 1 ) { 593 if( fileDlg->result() == 1 ) {
596// qDebug(fileDlg->LineEdit1->text()); 594// qDebug(fileDlg->LineEdit1->text());
597 QStringList command; 595 QStringList command;
598 596
599 command << "/bin/sh"; 597 command << "/bin/sh";
600 command << "-c"; 598 command << "-c";
601 command << fileDlg->LineEdit1->text(); 599 command << fileDlg->LineEdit1->text();
602 Output *outDlg; 600 Output *outDlg;
603 outDlg = new Output( command, this, tr("AdvancedFm Output"), true); 601 outDlg = new Output( command, this, tr("AdvancedFm Output"), true);
604 outDlg->showMaximized(); 602 QPEApplication::execDialog( outDlg );
605 outDlg->exec();
606 qApp->processEvents(); 603 qApp->processEvents();
607 604
608 } 605 }
609} 606}
610 607
611void AdvancedFm::runCommandStd() { 608void AdvancedFm::runCommandStd() {
612 if( !CurrentView()->currentItem()) return; 609 if( !CurrentView()->currentItem()) return;
613 QString curFile; 610 QString curFile;
614 QDir *thisDir = CurrentDir(); 611 QDir *thisDir = CurrentDir();
615 QListView *thisView = CurrentView(); 612 QListView *thisView = CurrentView();
616 if( thisView->currentItem()) 613 if( thisView->currentItem())
617 curFile = thisDir->canonicalPath() +"/"+ thisView->currentItem()->text(0); 614 curFile = thisDir->canonicalPath() +"/"+ thisView->currentItem()->text(0);
@@ -630,26 +627,25 @@ void AdvancedFm::runCommandStd() {
630void AdvancedFm::fileStatus() { 627void AdvancedFm::fileStatus() {
631 if( !CurrentView()->currentItem()) return; 628 if( !CurrentView()->currentItem()) return;
632 QString curFile; 629 QString curFile;
633 curFile = CurrentView()->currentItem()->text(0); 630 curFile = CurrentView()->currentItem()->text(0);
634 631
635 QStringList command; 632 QStringList command;
636 command << "/bin/sh"; 633 command << "/bin/sh";
637 command << "-c"; 634 command << "-c";
638 command << "stat -l "+ curFile; 635 command << "stat -l "+ curFile;
639 636
640 Output *outDlg; 637 Output *outDlg;
641 outDlg = new Output( command, this, tr("AdvancedFm Output"), true); 638 outDlg = new Output( command, this, tr("AdvancedFm Output"), true);
642 outDlg->showMaximized(); 639 QPEApplication::execDialog( outDlg );
643 outDlg->exec();
644 qApp->processEvents(); 640 qApp->processEvents();
645} 641}
646 642
647 643
648void AdvancedFm::mkDir() { 644void AdvancedFm::mkDir() {
649 makeDir(); 645 makeDir();
650} 646}
651 647
652void AdvancedFm::rn() { 648void AdvancedFm::rn() {
653 renameIt(); 649 renameIt();
654} 650}
655 651