summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp60
1 files changed, 12 insertions, 48 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
@@ -22,8 +22,9 @@
#include "textedit.h"
-//#include "fileBrowser.h"
#include "fileSaver.h"
#include "filePermissions.h"
-
#include "fontDialog.h"
+#include <opie/ofileselector.h>
+#include <opie/ofiledialog.h>
+
#include <qpe/fontdatabase.h>
@@ -38,6 +39,2 @@
#include <qpe/qcopenvelope_qws.h>
-//#include <qpe/finddialog.h>
-
-#include <opie/ofileselector.h>
-#include <opie/ofiledialog.h>
@@ -509,46 +506,13 @@ void TextEdit::fileOpen()
bool b=FALSE;
-// if(cfg.readEntry("useOldFileDialog") == "TRUE")
-// b=TRUE;
-// if(!b) {
- QMap<QString, QStringList> map;
- map.insert(tr("All"), QStringList() );
- QStringList text;
- text << "text/*";
- map.insert(tr("Text"), text );
- QString str = OFileDialog::getOpenFileName( 2,"/", QString::null, map);//,"", "*", this );
+
+ QMap<QString, QStringList> map;
+ map.insert(tr("All"), QStringList() );
+ QStringList text;
+ text << "text/*";
+ map.insert(tr("Text"), text );
+ text << "*";
+ map.insert(tr("All"), text );
+ QString str = OFileDialog::getOpenFileName( 2,"/", QString::null, map);
if(!str.isEmpty() )
openFile( str );
-// } else {
-// QString str;
-// browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "*"); //
-// browseForFiles->setFileView( viewSelection );
-// browseForFiles->showMaximized();
-// // if( result != -1 )
-
-// if( browseForFiles->exec() != -1 ) {
-// QString selFile = browseForFiles->selectedFileName;
-// QStringList fileList = browseForFiles->fileList;
-// qDebug(selFile);
-// QStringList::ConstIterator f;
-// QString fileTemp;
-// for ( f = fileList.begin(); f != fileList.end(); f++ ) {
-// fileTemp = *f;
-// fileTemp.right( fileTemp.length()-5);
-// QString fileName = fileTemp;
-// if( fileName != "Unnamed" || fileName != "Empty Text" ) {
-// currentFileName = fileName;
-// qDebug("please open "+currentFileName);
-// openFile(currentFileName );
-// }
-// }
-// viewSelection = browseForFiles->SelectionCombo->currentItem();
-// }
-// delete browseForFiles;
-// editor->setEdited( FALSE);
-// edited1=FALSE;
-// edited=FALSE;
-// if(caption().left(1)=="*")
-// setCaption(caption().right(caption().length()-1));
-// doSearchBar();
-// }