|
|
|
|
@ -78,7 +78,10 @@ Shell::Shell() |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
PDFPartView * partView = static_cast<PDFPartView *>(m_part->widget()); |
|
|
|
|
Part* part = static_cast<Part*>(m_part); |
|
|
|
|
connect( partView->outputdev, SIGNAL( rightClick() ),SLOT( slotRMBClick() ) ); |
|
|
|
|
connect( this, SIGNAL( restoreDocument(const KURL &, int) ),part, SLOT( restoreDocument(const KURL &, int))); |
|
|
|
|
connect( this, SIGNAL( saveDocumentRestoreInfo(KConfig*) ),part, SLOT( saveDocumentRestoreInfo(KConfig*))); |
|
|
|
|
|
|
|
|
|
readSettings(); |
|
|
|
|
} |
|
|
|
|
@ -136,7 +139,7 @@ Shell::saveProperties(KConfig* config) |
|
|
|
|
// the 'config' object points to the session managed
|
|
|
|
|
// config file. anything you write here will be available
|
|
|
|
|
// later when this app is restored
|
|
|
|
|
config->writePathEntry( "URL", m_part->url().url() ); |
|
|
|
|
emit saveDocumentRestoreInfo(config); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Shell::slotShowMenubar() |
|
|
|
|
@ -163,8 +166,7 @@ void Shell::readProperties(KConfig* config) |
|
|
|
|
if(m_part) |
|
|
|
|
{ |
|
|
|
|
KURL url ( config->readPathEntry( "URL" ) ); |
|
|
|
|
if ( url.isValid() ) |
|
|
|
|
openURL( url ); |
|
|
|
|
if ( url.isValid() ) emit restoreDocument(url, config->readNumEntry( "Page", 1 )); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|