author | llornkcor <llornkcor> | 2002-07-01 23:53:13 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-01 23:53:13 (UTC) |
commit | 947bd80f93998f75378db1d677b85eb121c10a1d (patch) (side-by-side diff) | |
tree | 9559208fb4c5f5aa31e1f354415f91e95175ca4d | |
parent | 7ae4965a4052808172e843356cdfb2d0a673bccf (diff) | |
download | opie-947bd80f93998f75378db1d677b85eb121c10a1d.zip opie-947bd80f93998f75378db1d677b85eb121c10a1d.tar.gz opie-947bd80f93998f75378db1d677b85eb121c10a1d.tar.bz2 |
changed caption and added cvsigonre
-rw-r--r-- | noncore/apps/opie-reader/.cvsignore | 3 | ||||
-rw-r--r-- | noncore/apps/opie-reader/QTReaderApp.cpp | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/noncore/apps/opie-reader/.cvsignore b/noncore/apps/opie-reader/.cvsignore new file mode 100644 index 0000000..5344d1b --- a/dev/null +++ b/noncore/apps/opie-reader/.cvsignore @@ -0,0 +1,3 @@ +Makefile +Makefile.in +moc*
\ No newline at end of file diff --git a/noncore/apps/opie-reader/QTReaderApp.cpp b/noncore/apps/opie-reader/QTReaderApp.cpp index 620e93e..06a35f6 100644 --- a/noncore/apps/opie-reader/QTReaderApp.cpp +++ b/noncore/apps/opie-reader/QTReaderApp.cpp @@ -958,102 +958,102 @@ void QTReaderApp::showEditTools() reader->setFocus(); } /* void QTReaderApp::save() { if ( !doc ) return; if ( !editor->edited() ) return; QString rt = editor->text(); QString pt = rt; if ( doc->name().isEmpty() ) { unsigned ispace = pt.find( ' ' ); unsigned ienter = pt.find( '\n' ); int i = (ispace < ienter) ? ispace : ienter; QString docname; if ( i == -1 ) { if ( pt.isEmpty() ) docname = "Empty Text"; else docname = pt; } else { docname = pt.left( i ); } doc->setName(docname); } FileManager fm; fm.saveFile( *doc, rt ); } */ void QTReaderApp::clear() { if (doc != 0) { // QMessageBox::information(this, "QTReader", "Deleting doc", 1); delete doc; // QMessageBox::information(this, "QTReader", "Deleted doc", 1); doc = 0; } reader->clear(); } void QTReaderApp::updateCaption() { if ( !doc ) - setCaption( tr("QTReader") ); + setCaption( tr("Opie Reader") ); else { QString s = doc->name(); if ( s.isEmpty() ) s = tr( "Unnamed" ); - setCaption( s + " - " + tr("QTReader") ); + setCaption( s + " - " + tr("Opie Reader") ); } } void QTReaderApp::setDocument(const QString& fileref) { bFromDocView = TRUE; //QMessageBox::information(0, "setDocument", fileref); openFile(DocLnk(fileref)); // showEditTools(); } void QTReaderApp::closeEvent( QCloseEvent *e ) { if (editorStack->visibleWidget() == reader) { if (m_fontVisible) { m_fontBar->hide(); m_fontVisible = false; } if (regVisible) { regBar->hide(); regVisible = false; return; } if (searchVisible) { searchBar->hide(); searchVisible = false; return; } if (m_fBkmksChanged && pBkmklist != NULL) { if (QMessageBox::warning(this, "QTReader", "Save bookmarks?", "Save", "Don't bother") == 0) savebkmks(); delete pBkmklist; pBkmklist = NULL; m_fBkmksChanged = false; } bFromDocView = FALSE; saveprefs(); e->accept(); } else { showEditTools(); } |