author | llornkcor <llornkcor> | 2002-06-29 00:34:32 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-06-29 00:34:32 (UTC) |
commit | 9cc6f3de75b884f338f708ff03900b197f281802 (patch) (unidiff) | |
tree | fa325ddf6fd61fbfcaa3cb9ec9e772dbef87fe0d | |
parent | 971f94ceb114149efbf8d90b607d25dcbd358435 (diff) | |
download | opie-9cc6f3de75b884f338f708ff03900b197f281802.zip opie-9cc6f3de75b884f338f708ff03900b197f281802.tar.gz opie-9cc6f3de75b884f338f708ff03900b197f281802.tar.bz2 |
b bye and added all files to ofiledialog
-rw-r--r-- | core/apps/textedit/textedit.cpp | 50 |
1 files changed, 7 insertions, 43 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index ccc43fa..ea27e1b 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -20,12 +20,13 @@ | |||
20 | // changes added by L. J. Potter Sun 02-17-2002 21:31:31 | 20 | // changes added by L. J. Potter Sun 02-17-2002 21:31:31 |
21 | 21 | ||
22 | #include "textedit.h" | 22 | #include "textedit.h" |
23 | //#include "fileBrowser.h" | ||
24 | #include "fileSaver.h" | 23 | #include "fileSaver.h" |
25 | #include "filePermissions.h" | 24 | #include "filePermissions.h" |
26 | |||
27 | #include "fontDialog.h" | 25 | #include "fontDialog.h" |
28 | 26 | ||
27 | #include <opie/ofileselector.h> | ||
28 | #include <opie/ofiledialog.h> | ||
29 | |||
29 | #include <qpe/fontdatabase.h> | 30 | #include <qpe/fontdatabase.h> |
30 | #include <qpe/global.h> | 31 | #include <qpe/global.h> |
31 | #include <qpe/fileselector.h> | 32 | #include <qpe/fileselector.h> |
@@ -36,10 +37,6 @@ | |||
36 | #include <qpe/qpemenubar.h> | 37 | #include <qpe/qpemenubar.h> |
37 | #include <qpe/qpetoolbar.h> | 38 | #include <qpe/qpetoolbar.h> |
38 | #include <qpe/qcopenvelope_qws.h> | 39 | #include <qpe/qcopenvelope_qws.h> |
39 | //#include <qpe/finddialog.h> | ||
40 | |||
41 | #include <opie/ofileselector.h> | ||
42 | #include <opie/ofiledialog.h> | ||
43 | 40 | ||
44 | #include <qstringlist.h> | 41 | #include <qstringlist.h> |
45 | #include <qaction.h> | 42 | #include <qaction.h> |
@@ -507,50 +504,17 @@ void TextEdit::fileOpen() | |||
507 | Config cfg("TextEdit"); | 504 | Config cfg("TextEdit"); |
508 | cfg.setGroup("View"); | 505 | cfg.setGroup("View"); |
509 | bool b=FALSE; | 506 | bool b=FALSE; |
510 | // if(cfg.readEntry("useOldFileDialog") == "TRUE") | 507 | |
511 | // b=TRUE; | ||
512 | // if(!b) { | ||
513 | QMap<QString, QStringList> map; | 508 | QMap<QString, QStringList> map; |
514 | map.insert(tr("All"), QStringList() ); | 509 | map.insert(tr("All"), QStringList() ); |
515 | QStringList text; | 510 | QStringList text; |
516 | text << "text/*"; | 511 | text << "text/*"; |
517 | map.insert(tr("Text"), text ); | 512 | map.insert(tr("Text"), text ); |
518 | QString str = OFileDialog::getOpenFileName( 2,"/", QString::null, map);//,"", "*", this ); | 513 | text << "*"; |
514 | map.insert(tr("All"), text ); | ||
515 | QString str = OFileDialog::getOpenFileName( 2,"/", QString::null, map); | ||
519 | if(!str.isEmpty() ) | 516 | if(!str.isEmpty() ) |
520 | openFile( str ); | 517 | openFile( str ); |
521 | // } else { | ||
522 | // QString str; | ||
523 | // browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "*"); // | ||
524 | // browseForFiles->setFileView( viewSelection ); | ||
525 | // browseForFiles->showMaximized(); | ||
526 | // // if( result != -1 ) | ||
527 | |||
528 | // if( browseForFiles->exec() != -1 ) { | ||
529 | // QString selFile = browseForFiles->selectedFileName; | ||
530 | // QStringList fileList = browseForFiles->fileList; | ||
531 | // qDebug(selFile); | ||
532 | // QStringList::ConstIterator f; | ||
533 | // QString fileTemp; | ||
534 | // for ( f = fileList.begin(); f != fileList.end(); f++ ) { | ||
535 | // fileTemp = *f; | ||
536 | // fileTemp.right( fileTemp.length()-5); | ||
537 | // QString fileName = fileTemp; | ||
538 | // if( fileName != "Unnamed" || fileName != "Empty Text" ) { | ||
539 | // currentFileName = fileName; | ||
540 | // qDebug("please open "+currentFileName); | ||
541 | // openFile(currentFileName ); | ||
542 | // } | ||
543 | // } | ||
544 | // viewSelection = browseForFiles->SelectionCombo->currentItem(); | ||
545 | // } | ||
546 | // delete browseForFiles; | ||
547 | // editor->setEdited( FALSE); | ||
548 | // edited1=FALSE; | ||
549 | // edited=FALSE; | ||
550 | // if(caption().left(1)=="*") | ||
551 | // setCaption(caption().right(caption().length()-1)); | ||
552 | // doSearchBar(); | ||
553 | // } | ||
554 | 518 | ||
555 | } | 519 | } |
556 | 520 | ||