|
|
|
@ -148,7 +148,7 @@ void BookReader::setupActions()
|
|
|
|
|
KStdAction::save(this, TQ_SLOT(fileSave()), actionCollection());
|
|
|
|
|
KStdAction::saveAs(this, TQ_SLOT(fileSaveAs()), actionCollection());
|
|
|
|
|
KStdAction::print(this, TQ_SLOT(filePrint()), actionCollection());
|
|
|
|
|
KStdAction::quit(kapp, TQ_SLOT(quit()), actionCollection());
|
|
|
|
|
KStdAction::quit(tdeApp, TQ_SLOT(quit()), actionCollection());
|
|
|
|
|
|
|
|
|
|
KStdAction::firstPage(this, TQ_SLOT(gotoFirstPage()), actionCollection());
|
|
|
|
|
KStdAction::prior(this, TQ_SLOT(prevPage()), actionCollection());
|
|
|
|
@ -165,7 +165,7 @@ void BookReader::setupActions()
|
|
|
|
|
|
|
|
|
|
KStdAction::preferences(this, TQ_SLOT(optionsPreferences()), actionCollection());
|
|
|
|
|
|
|
|
|
|
TDEConfig *config = kapp->config();
|
|
|
|
|
TDEConfig *config = tdeApp->config();
|
|
|
|
|
recentFilesAction->loadEntries(config);
|
|
|
|
|
|
|
|
|
|
// this doesn't do anything useful. it's just here to illustrate
|
|
|
|
@ -349,7 +349,7 @@ bool BookReader::queryExit()
|
|
|
|
|
|
|
|
|
|
void BookReader::writeSettings()
|
|
|
|
|
{
|
|
|
|
|
TDEConfig * config = kapp->config();
|
|
|
|
|
TDEConfig * config = tdeApp->config();
|
|
|
|
|
config->writeEntry("size", m_view->size());
|
|
|
|
|
config->writeEntry("lastURL", m_view->currentURL());
|
|
|
|
|
config->writeEntry("lastURLPage", m_view->currentPage());
|
|
|
|
@ -387,7 +387,7 @@ void BookReader::fullScreen()
|
|
|
|
|
|
|
|
|
|
void BookReader::loadLastUrl()
|
|
|
|
|
{
|
|
|
|
|
TDEConfig * config = kapp->config();
|
|
|
|
|
TDEConfig * config = tdeApp->config();
|
|
|
|
|
TQSize size = config->readSizeEntry("size");
|
|
|
|
|
lastURL = config->readEntry("lastURL");
|
|
|
|
|
connect(m_view, TQ_SIGNAL(loadingFinished()), this, TQ_SLOT(loadLastURLSetPage()));
|
|
|
|
@ -439,7 +439,7 @@ void BookReader::gotoPage()
|
|
|
|
|
|
|
|
|
|
void BookReader::loadLastURLSetPage()
|
|
|
|
|
{
|
|
|
|
|
int lastURLPage = kapp->config()->readNumEntry("lastURLPage");
|
|
|
|
|
int lastURLPage = tdeApp->config()->readNumEntry("lastURLPage");
|
|
|
|
|
m_view->setCurrentPage(lastURLPage);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|