summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-05-29 15:24:04 (UTC)
committer llornkcor <llornkcor>2002-05-29 15:24:04 (UTC)
commitceaf90ad848c69d693f0c9eedbc8f9ab1935e42f (patch) (unidiff)
treed66941f764e2c162b1707881ce44b8d396651f98
parent949c238e785ad1060db41690bb60b1e252824708 (diff)
downloadopie-ceaf90ad848c69d693f0c9eedbc8f9ab1935e42f.zip
opie-ceaf90ad848c69d693f0c9eedbc8f9ab1935e42f.tar.gz
opie-ceaf90ad848c69d693f0c9eedbc8f9ab1935e42f.tar.bz2
: is not the proper way to end a line in C, nor C++.. please use a ; next time
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 403bd92..f89ed6d 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -481,65 +481,65 @@ void TextEdit::setBold(bool y)
481} 481}
482 482
483void TextEdit::setItalic(bool y) 483void TextEdit::setItalic(bool y)
484{ 484{
485 QFont f = editor->font(); 485 QFont f = editor->font();
486 f.setItalic(y); 486 f.setItalic(y);
487 editor->setFont(f); 487 editor->setFont(f);
488} 488}
489 489
490void TextEdit::setWordWrap(bool y) 490void TextEdit::setWordWrap(bool y)
491{ 491{
492 bool state = editor->edited(); 492 bool state = editor->edited();
493 editor->setWordWrap(y ? QMultiLineEdit::WidgetWidth : QMultiLineEdit::NoWrap ); 493 editor->setWordWrap(y ? QMultiLineEdit::WidgetWidth : QMultiLineEdit::NoWrap );
494 editor->setEdited( state ); 494 editor->setEdited( state );
495} 495}
496 496
497void TextEdit::fileNew() 497void TextEdit::fileNew()
498{ 498{
499// if( !bFromDocView ) { 499// if( !bFromDocView ) {
500// saveAs(); 500// saveAs();
501// } 501// }
502 newFile(DocLnk()); 502 newFile(DocLnk());
503} 503}
504 504
505void TextEdit::fileOpen() 505void TextEdit::fileOpen()
506{ 506{
507 Config cfg("TextEdit"); 507 Config cfg("TextEdit");
508 cfg.setGroup("View"); 508 cfg.setGroup("View");
509 bool b=FALSE; 509 bool b=FALSE;
510// if(cfg.readEntry("useOldFileDialog") == "TRUE") 510// if(cfg.readEntry("useOldFileDialog") == "TRUE")
511// b=TRUE; 511// b=TRUE;
512// if(!b) { 512// if(!b) {
513 QString str = OFileDialog::getOpenFileName( 1,"/")://,"", "*", this ); 513 QString str = OFileDialog::getOpenFileName( 1,"/");//,"", "*", this );
514 if(!str.isEmpty() ) 514 if(!str.isEmpty() )
515 openFile( str ); 515 openFile( str );
516// } else { 516// } else {
517// QString str; 517// QString str;
518// browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "*"); // 518// browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "*"); //
519// browseForFiles->setFileView( viewSelection ); 519// browseForFiles->setFileView( viewSelection );
520// browseForFiles->showMaximized(); 520// browseForFiles->showMaximized();
521// // if( result != -1 ) 521// // if( result != -1 )
522 522
523// if( browseForFiles->exec() != -1 ) { 523// if( browseForFiles->exec() != -1 ) {
524// QString selFile = browseForFiles->selectedFileName; 524// QString selFile = browseForFiles->selectedFileName;
525// QStringList fileList = browseForFiles->fileList; 525// QStringList fileList = browseForFiles->fileList;
526// qDebug(selFile); 526// qDebug(selFile);
527// QStringList::ConstIterator f; 527// QStringList::ConstIterator f;
528// QString fileTemp; 528// QString fileTemp;
529// for ( f = fileList.begin(); f != fileList.end(); f++ ) { 529// for ( f = fileList.begin(); f != fileList.end(); f++ ) {
530// fileTemp = *f; 530// fileTemp = *f;
531// fileTemp.right( fileTemp.length()-5); 531// fileTemp.right( fileTemp.length()-5);
532// QString fileName = fileTemp; 532// QString fileName = fileTemp;
533// if( fileName != "Unnamed" || fileName != "Empty Text" ) { 533// if( fileName != "Unnamed" || fileName != "Empty Text" ) {
534// currentFileName = fileName; 534// currentFileName = fileName;
535// qDebug("please open "+currentFileName); 535// qDebug("please open "+currentFileName);
536// openFile(currentFileName ); 536// openFile(currentFileName );
537// } 537// }
538// } 538// }
539// viewSelection = browseForFiles->SelectionCombo->currentItem(); 539// viewSelection = browseForFiles->SelectionCombo->currentItem();
540// } 540// }
541// delete browseForFiles; 541// delete browseForFiles;
542// editor->setEdited( FALSE); 542// editor->setEdited( FALSE);
543// edited1=FALSE; 543// edited1=FALSE;
544// edited=FALSE; 544// edited=FALSE;
545// if(caption().left(1)=="*") 545// if(caption().left(1)=="*")