-rw-r--r-- | noncore/apps/opie-reader/Bkmks.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/opie-reader/BuffDoc.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/opie-reader/QTReaderApp.cpp | 46 |
3 files changed, 25 insertions, 25 deletions
diff --git a/noncore/apps/opie-reader/Bkmks.cpp b/noncore/apps/opie-reader/Bkmks.cpp index 92ed69f..0cb9ea9 100644 --- a/noncore/apps/opie-reader/Bkmks.cpp +++ b/noncore/apps/opie-reader/Bkmks.cpp @@ -169,9 +169,9 @@ CList<Bkmk>* BkmkFile::readall() unsigned long newmagic; fread(&newmagic, sizeof(newmagic), 1, f); if (newmagic != magic) { - if (QMessageBox::warning(NULL, "Old bookmark file!", "Which version of QTReader\ndid you upgrade from?", "0_4*", "Any other version") == 0) + if (QMessageBox::warning(NULL, "Old bookmark file!", "Which version of OpieReader\ndid you upgrade from?", "0_4*", "Any other version") == 0) { fseek(f,0,SEEK_SET); bl = readall04(); } diff --git a/noncore/apps/opie-reader/BuffDoc.cpp b/noncore/apps/opie-reader/BuffDoc.cpp index e37b136..d4541ea 100644 --- a/noncore/apps/opie-reader/BuffDoc.cpp +++ b/noncore/apps/opie-reader/BuffDoc.cpp @@ -208,9 +208,9 @@ int BuffDoc::openfile(QWidget* _parent, const char *src) #endif if (ret != 0) { delete exp; - QMessageBox::information(_parent, "QTReader", "Unknown file compression type","Try another file"); + QMessageBox::information(_parent, "OpieReader", "Unknown file compression type","Try another file"); return ret; } // qDebug("Doing final open:%x:%x",exp,filt); diff --git a/noncore/apps/opie-reader/QTReaderApp.cpp b/noncore/apps/opie-reader/QTReaderApp.cpp index 0608b66..ef1f4f1 100644 --- a/noncore/apps/opie-reader/QTReaderApp.cpp +++ b/noncore/apps/opie-reader/QTReaderApp.cpp @@ -98,9 +98,9 @@ void QTReaderApp::listBkmkFiles() m_nRegAction = cRmBkmkFile; editorStack->raiseWidget( bkmkselector ); } else - QMessageBox::information(this, "QTReader", "No bookmark files"); + QMessageBox::information(this, "OpieReader", "No bookmark files"); } QTReaderApp::QTReaderApp( QWidget *parent, const char *name, WFlags f ) : QMainWindow( parent, name, f ), bFromDocView( FALSE ), m_dontSave(false) @@ -117,9 +117,9 @@ QTReaderApp::QTReaderApp( QWidget *parent, const char *name, WFlags f ) m_autogenstr = "^ *[A-Z].*[a-z] *$"; setToolBarsMovable( FALSE ); - setIcon( Resource::loadPixmap( "uqtreader" ) ); + setIcon( Resource::loadPixmap( "opie-reader/uqtreader" ) ); QPEToolBar *bar = new QPEToolBar( this ); bar->setHorizontalStretchable( TRUE ); addToolBar(bar, "tool",QMainWindow::Top, true); @@ -254,9 +254,9 @@ QTReaderApp::QTReaderApp( QWidget *parent, const char *name, WFlags f ) connect(ag, SIGNAL( selected(QAction*) ), this, SLOT( buttonActionSelected(QAction*) ) ); - a = m_scrollButton = new QAction( tr( "Scroll" ), Resource::loadPixmap( "panel-arrow-down" ), QString::null, 0, this, 0, true ); + a = m_scrollButton = new QAction( tr( "Scroll" ), Resource::loadPixmap( "opie-reader/panel-arrow-down" ), QString::null, 0, this, 0, true ); // connect( a, SIGNAL( activated() ), this, SLOT( autoScroll() ) ); a->setOn(false); connect( a, SIGNAL( toggled(bool) ), this, SLOT( autoScroll(bool) ) ); file->insertSeparator(); @@ -629,15 +629,15 @@ void QTReaderApp::msgHandler(const QCString& _msg, const QByteArray& _data) if ( msg == "info(QString)" ) { QString info; stream >> info; - QMessageBox::information(this, "QTReader", info); + QMessageBox::information(this, "OpieReader", info); } else if ( msg == "warn(QString)" ) { QString info; stream >> info; - QMessageBox::warning(this, "QTReader", info); + QMessageBox::warning(this, "OpieReader", info); } else if ( msg == "exit()" ) @@ -750,9 +750,9 @@ void QTReaderApp::msgHandler(const QCString& _msg, const QByteArray& _data) { pos = reader->locate(); if (!reader->buffdoc.getline(&test,reader->width())) { - QMessageBox::information(this, "QTReader", QString("Can't find\n")+info); + QMessageBox::information(this, "OpieReader", QString("Can't find\n")+info); pos = start; break; } } @@ -913,14 +913,14 @@ void QTReaderApp::autoScroll(bool _b) } void QTReaderApp::TBD() { - QMessageBox::information(this, "QTReader", "Not yet implemented", 1); + QMessageBox::information(this, "OpieReader", "Not yet implemented", 1); } void QTReaderApp::TBDzoom() { - QMessageBox::information(this, "QTReader", "Zooming is done interactively\nTry left/right cursor keys", 1); + QMessageBox::information(this, "OpieReader", "Zooming is done interactively\nTry left/right cursor keys", 1); } void QTReaderApp::clearBkmkList() { @@ -940,9 +940,9 @@ void QTReaderApp::fileOpen() if (pBkmklist != NULL) { if (m_fBkmksChanged) { - if (QMessageBox::warning(this, "QTReader", "Save bookmarks?", "Save", "Don't bother") == 0) + if (QMessageBox::warning(this, "OpieReader", "Save bookmarks?", "Save", "Don't bother") == 0) savebkmks(); } delete pBkmklist; pBkmklist = NULL; @@ -952,9 +952,9 @@ void QTReaderApp::fileOpen() /* editorStack->raiseWidget( fileSelector ); fileSelector->reread(); */ - fileBrowser* fb = new fileBrowser(this,"QTReader",TRUE, + fileBrowser* fb = new fileBrowser(this,"OpieReader",TRUE, 0, // WStyle_Customize | WStyle_NoBorderEx, "*", QFileInfo(reader->m_lastfile).dirPath(true)); @@ -972,9 +972,9 @@ void QTReaderApp::showinfo() { unsigned long fs, ts, pl; if (reader->empty()) { - QMessageBox::information(this, "QTReader", "No file loaded", 1); + QMessageBox::information(this, "OpieReader", "No file loaded", 1); } else { reader->sizes(fs,ts); @@ -1019,9 +1019,9 @@ void QTReaderApp::addAnno(const QString& name, const QString& text) if (m_annoIsEditing) { if (name.isEmpty()) { - QMessageBox::information(this, "QTReader", "Need a name for the bookmark\nPlease try again", 1); + QMessageBox::information(this, "OpieReader", "Need a name for the bookmark\nPlease try again", 1); } else { addAnno(name, text, m_annoWin->getPosn()); @@ -1076,9 +1076,9 @@ bool QTReaderApp::findNextBookmark(size_t start) void QTReaderApp::addanno() { if (reader->empty()) { - QMessageBox::information(this, "QTReader", "No file loaded", 1); + QMessageBox::information(this, "OpieReader", "No file loaded", 1); } else { m_annoWin->setName(""); @@ -1230,9 +1230,9 @@ void QTReaderApp::do_overlap(const QString& lcn) { reader->m_overlap = ulcn; } else - QMessageBox::information(this, "QTReader", "Must be a number"); + QMessageBox::information(this, "OpieReader", "Must be a number"); } void QTReaderApp::do_mono(const QString& lcn) { @@ -1245,9 +1245,9 @@ void QTReaderApp::do_mono(const QString& lcn) reader->refresh(); // reader->setmono(true); } else - QMessageBox::information(this, "QTReader", "Must be a number"); + QMessageBox::information(this, "OpieReader", "Must be a number"); } /* void QTReaderApp::editPaste() @@ -1417,9 +1417,9 @@ void QTReaderApp::openFile( const DocLnk &f ) readbkmks(); } else { - QMessageBox::information(this, "QTReader", "File does not exist"); + QMessageBox::information(this, "OpieReader", "File does not exist"); } } @@ -1485,14 +1485,14 @@ void QTReaderApp::clear() void QTReaderApp::updateCaption() { if ( !doc ) - setCaption( tr("QTReader") ); + setCaption( tr("OpieReader") ); else { QString s = doc->name(); if ( s.isEmpty() ) s = tr( "Unnamed" ); - setCaption( s + " - " + tr("QTReader") ); + setCaption( s + " - " + tr("OpieReader") ); } } void QTReaderApp::setDocument(const QString& fileref) @@ -1531,9 +1531,9 @@ void QTReaderApp::closeEvent( QCloseEvent *e ) return; } if (m_fBkmksChanged && pBkmklist != NULL) { - if (QMessageBox::warning(this, "QTReader", "Save bookmarks?", "Save", "Don't bother") == 0) + if (QMessageBox::warning(this, "OpieReader", "Save bookmarks?", "Save", "Don't bother") == 0) savebkmks(); delete pBkmklist; pBkmklist = NULL; m_fBkmksChanged = false; @@ -1586,9 +1586,9 @@ void QTReaderApp::listbkmk() if (searchVisible) searchBar->hide(); editorStack->raiseWidget( bkmkselector ); } else - QMessageBox::information(this, "QTReader", "No bookmarks in memory"); + QMessageBox::information(this, "OpieReader", "No bookmarks in memory"); } void QTReaderApp::do_autogen() { @@ -1645,9 +1645,9 @@ void QTReaderApp::do_jump(const QString& lcn) unsigned long ulcn = lcn.toULong(&ok); if (ok) reader->locate(ulcn); else - QMessageBox::information(this, "QTReader", "Must be a number"); + QMessageBox::information(this, "OpieReader", "Must be a number"); } void QTReaderApp::do_regaction() { @@ -1685,9 +1685,9 @@ void QTReaderApp::do_settarget(const QString& _txt) if (ind == -1) { m_targetapp = ""; m_targetmsg = ""; - QMessageBox::information(this, "QTReader", "Format is\nappname/messagename"); + QMessageBox::information(this, "OpieReader", "Format is\nappname/messagename"); } else { m_targetapp = _txt.left(ind); @@ -1920,9 +1920,9 @@ void QTReaderApp::addbkmk() void QTReaderApp::do_addbkmk(const QString& text) { if (text.isEmpty()) { - QMessageBox::information(this, "QTReader", "Need a name for the bookmark\nSelect add again", 1); + QMessageBox::information(this, "OpieReader", "Need a name for the bookmark\nSelect add again", 1); } else { if (pBkmklist == NULL) pBkmklist = new CList<Bkmk>; |