Add GUI check box control whether to retainn kpdf metadata.

This resolves bug report 1215.
pull/1/head
Darrell Anderson 11 years ago
parent d2151830b9
commit 194cf519e4

@ -45,6 +45,11 @@
<label>Watch File</label>
<whatsthis>If this is on, then the file will be reloaded whenever it changes on disk</whatsthis>
<default>false</default>
</entry>
<entry name="RetainDocumentData" type="Bool">
<label>Retain document viewing data</label>
<whatsthis>If this is on, then document viewing options are retained</whatsthis>
<default>true</default>
</entry>
</group>
<group name="Ghostscript">

@ -92,6 +92,14 @@
<string>&amp;Watch file</string>
</property>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>kcfg_RetainDocumentData</cstring>
</property>
<property name="text">
<string>&amp;Retain document viewing data</string>
</property>
</widget>
</vbox>
</widget>
<widget class="TQLayoutWidget">

@ -56,6 +56,9 @@
<entry key="ObeyDRM" type="Bool" >
<default>true</default>
</entry>
<entry key="RetainDocumentData" type="Bool" >
<default>true</default>
</entry>
</group>
<group name="MainView" >
<entry key="ShowLeftPanel" type="Bool" >

@ -1404,6 +1404,8 @@ void KPDFDocument::saveDocumentInfo() const
if ( d->docFileName.isNull() )
return;
if ( KpdfSettings::retainDocumentData() )
{
TQFile infoFile( d->xmlFileName );
if (infoFile.open( IO_WriteOnly | IO_Truncate) )
{
@ -1463,6 +1465,7 @@ void KPDFDocument::saveDocumentInfo() const
os << xml;
}
infoFile.close();
}
}
void KPDFDocument::slotTimedMemoryCheck()

@ -11,6 +11,9 @@
<entry key="WatchFile" type="Bool">
<default>true</default>
</entry>
<entry key="RetainDocumentData" type="Bool">
<default>true</default>
</entry>
<entry key="Zoom" type="Double">
<default>1.0</default>
</entry>

Loading…
Cancel
Save