summaryrefslogtreecommitdiff
path: root/core
authorllornkcor <llornkcor>2002-09-01 13:16:27 (UTC)
committer llornkcor <llornkcor>2002-09-01 13:16:27 (UTC)
commit41d125f02fb485f963818efea9f32f3f29148710 (patch) (side-by-side diff)
tree1a56bad99a18d7003543e5456458f23dcb8cee1d /core
parent21394ee7a48bbe0768a1b820b2493defa534257e (diff)
downloadopie-41d125f02fb485f963818efea9f32f3f29148710.zip
opie-41d125f02fb485f963818efea9f32f3f29148710.tar.gz
opie-41d125f02fb485f963818efea9f32f3f29148710.tar.bz2
added a few remaining tr, fixed a few bugs
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp26
1 files changed, 15 insertions, 11 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index d61da2a..8eaafce 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -443,2 +443,4 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f )
TextEdit::~TextEdit() {
+ if( edited1 & !useAdvancedFeatures )
+ saveAs();
}
@@ -446,3 +448,3 @@ TextEdit::~TextEdit() {
void TextEdit::cleanUp() {
-// save();
+qDebug("cleanUp");// save();
Config cfg("TextEdit");
@@ -459,3 +461,3 @@ void TextEdit::cleanUp() {
void TextEdit::accept() {
- if(edited1)
+ if( edited1)
saveAs();
@@ -637,3 +639,3 @@ void TextEdit::openFile( const QString &f ) {
switch ( QMessageBox::warning(this,tr("Text Editor"),
- tr("Text Editor has detected\n you selected a .desktop file.\nOpen .desktop file or linked file?"),
+ tr("Text Editor has detected<BR>you selected a <B>.desktop</B> file.<BR>Open <B>.desktop</B> file or <B>linked</B> file?"),
tr(".desktop File"),tr("Linked Document"),0,1,1) ) {
@@ -648,4 +650,6 @@ void TextEdit::openFile( const QString &f ) {
} else {
- filer = f;
- fileIs = TRUE;
+ DocLnk sf(f);
+ filer = sf.file();
+// filer = f;
+// fileIs = TRUE;
}
@@ -739,3 +743,3 @@ bool TextEdit::save() {
} else {
- QMessageBox::message("Text Edit","Write Failed");
+ QMessageBox::message(tr("Text Edit"),tr("Write Failed"));
return false;
@@ -916,3 +920,3 @@ void TextEdit::changeFont() {
void TextEdit::editDelete() {
- switch ( QMessageBox::warning(this,tr("Text Editor"),tr("Do you really want\nto delete the current file\nfrom the disk?\nThis is irreversable!!"),tr("Yes"),tr("No"),0,0,1) ) {
+ switch ( QMessageBox::warning(this,tr("Text Editor"),tr("Do you really want<BR>to <B>delete</B> the current file\nfrom the disk?<BR>This is <B>irreversable!!</B>"),tr("Yes"),tr("No"),0,0,1) ) {
case 0:
@@ -959,6 +963,6 @@ void TextEdit::receive(const QCString&msg, const QByteArray&) {
void TextEdit::doAbout() {
- QMessageBox::about(0,"Text Edit","Text Edit is copyright\n"
- "2000 Trolltech AS, and\n"
- "2002 by L.J.Potter \nljp@llornkcor.com\n"
- "and is licensed under the GPL");
+ QMessageBox::about(0,tr("Text Edit"),tr("Text Edit is copyright<BR>"
+ "2000 Trolltech AS, and<BR>"
+ "2002 by <B>L. J. Potter <BR>llornkcor@handhelds.org</B><BR>"
+ "and is licensed under the GPL"));
}