okular/conf/okular.kcfg
Thomas Fischer e4aa8317b5 Auto-fit zoom
BUGS: 249364
REVIEW: 110003
2013-08-18 17:19:20 +02:00

280 lines
8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<include>kuser.h</include>
<kcfgfile arg="true" />
<group name="Dlg Performance" >
<entry key="EnableCompositing" type="Bool" >
<default>true</default>
</entry>
</group>
<group name="Debugging Options" >
<entry key="DebugDrawBoundaries" type="Bool" >
<default>false</default>
</entry>
<entry key="DebugDrawAnnotationRect" type="Bool" >
<default>false</default>
</entry>
</group>
<group name="Contents" >
<entry key="ContentsSearchCaseSensitive" type="Bool">
<default>false</default>
</entry>
<entry key="ContentsSearchRegularExpression" type="Bool">
<default>false</default>
</entry>
</group>
<group name="Reviews" >
<entry key="ReviewsSearchCaseSensitive" type="Bool">
<default>false</default>
</entry>
<entry key="ReviewsSearchRegularExpression" type="Bool">
<default>false</default>
</entry>
<entry key="AnnotationTools" type="StringList">
<code>
QStringList annotationTools;
// load the default tool list from the 'xml tools definition' file
QFile infoFile( KStandardDirs::locate("data", "okular/tools.xml") );
if ( infoFile.exists() &amp;&amp; infoFile.open( QIODevice::ReadOnly ) )
{
QDomDocument doc;
if ( doc.setContent( &amp;infoFile ) )
{
QDomElement toolsDefinition = doc.elementsByTagName("annotatingTools").item( 0 ).toElement();
// create the annotationTools list from the XML dom tree
QDomNode toolDescription = toolsDefinition.firstChild();
while ( toolDescription.isElement() )
{
QDomElement toolElement = toolDescription.toElement();
if ( toolElement.tagName() == "tool" )
{
QDomDocument temp;
temp.appendChild( temp.importNode( toolElement, true) );
// add each &lt;tool&gt;...&lt;/tool&gt; as XML string
annotationTools &lt;&lt; temp.toString(-1);
}
toolDescription = toolDescription.nextSibling();
}
}
else
{
kWarning() &lt;&lt; "AnnotatingTools XML file seems to be damaged";
}
}
else
{
kWarning() &lt;&lt; "Unable to open AnnotatingTools XML definition";
}
</code>
<default code="true">annotationTools</default>
</entry>
</group>
<group name="Zoom">
<entry key="ZoomMode" type="UInt" >
<default>1</default>
<max>3</max>
</entry>
</group>
<group name="General" >
<entry key="ShowOSD" type="Bool" >
<default>true</default>
</entry>
<entry key="DisplayDocumentTitle" type="Bool" >
<default>true</default>
</entry>
<entry key="DisplayDocumentNameOrPath" type="Enum" >
<default>Name</default>
<choices>
<choice name="Name" />
<choice name="Path" />
</choices>
</entry>
<entry key="UseKTTSD" type="Bool" />
<entry key="WatchFile" type="Bool" >
<default>true</default>
</entry>
</group>
<group name="Dlg Presentation" >
<entry key="SlidesBackgroundColor" type="Color" >
<default code="true" >Qt::black</default>
</entry>
<entry key="SlidesTransition" type="Enum" >
<default>Replace</default>
<choices>
<choice name="BlindsHorizontal" />
<choice name="BlindsVertical" />
<choice name="BoxIn" />
<choice name="BoxOut" />
<choice name="Dissolve" />
<choice name="GlitterDown" />
<choice name="GlitterRight" />
<choice name="GlitterRightDown" />
<choice name="Random" />
<choice name="Replace" />
<choice name="SplitHorizontalIn" />
<choice name="SplitHorizontalOut" />
<choice name="SplitVerticalIn" />
<choice name="SplitVerticalOut" />
<choice name="WipeDown" />
<choice name="WipeRight" />
<choice name="WipeLeft" />
<choice name="WipeUp" />
</choices>
</entry>
<entry key="SlidesCursor" type="Enum" >
<default>HiddenDelay</default>
<choices>
<choice name="HiddenDelay" />
<choice name="Visible" />
<choice name="Hidden" />
</choices>
</entry>
<entry key="SlidesShowProgress" type="Bool" >
<default>true</default>
</entry>
<entry key="SlidesShowSummary" type="Bool" >
<default>false</default>
</entry>
<entry key="SlidesPencilColor" type="Color" >
<default code="true" >Qt::red</default>
</entry>
<entry key="SlidesTransitionsEnabled" type="Bool" >
<default>true</default>
</entry>
<entry key="SlidesScreen" type="Int" >
<default>-2</default>
<min>-2</min>
<max>20</max>
</entry>
</group>
<group name="Main View" >
<entry key="ShowLeftPanel" type="Bool" >
<default>true</default>
</entry>
<entry key="SplitterSizes" type="IntList" />
<entry key="ShowBottomBar" type="Bool" >
<default>true</default>
</entry>
</group>
<group name="Nav Panel" >
<entry key="CurrentPageOnly" type="Bool" >
<default>false</default>
</entry>
<entry key="GroupByAuthor" type="Bool" >
<default>true</default>
</entry>
<entry key="GroupByPage" type="Bool" >
<default>true</default>
</entry>
<entry key="FilterBookmarks" type="Bool" >
<default>false</default>
</entry>
<entry key="SyncThumbnailsViewport" type="Bool" >
<default>true</default>
</entry>
<entry key="TocPageColumn" type="Bool" >
<default>true</default>
</entry>
<entry key="SidebarShowText" type="Bool" >
<default>true</default>
</entry>
<entry key="SidebarIconSize" type="UInt" >
<default>48</default>
</entry>
</group>
<group name="PageView" >
<entry key="EditToolBarPlacement" type="Int" >
<default>0</default>
</entry>
<entry key="ShowScrollBars" type="Bool" >
<default>true</default>
</entry>
<entry key="ScrollOverlap" type="UInt" >
<default>0</default>
<min>0</min>
<max>50</max>
</entry>
<entry key="ViewColumns" type="UInt" >
<default>3</default>
<min>1</min>
<max>8</max>
</entry>
<entry key="TrimMargins" type="Bool" >
<default>false</default>
</entry>
<entry key="ViewContinuous" type="Bool" >
<default>true</default>
</entry>
<entry key="ViewMode" type="Enum" >
<default>Single</default>
<choices>
<choice name="Single" />
<choice name="Facing" />
<choice name="FacingFirstCentered" />
<choice name="Summary" />
</choices>
</entry>
<entry key="MouseMode" type="Enum" >
<default>Browse</default>
<choices>
<choice name="Browse" />
<choice name="Zoom" />
<choice name="RectSelect" />
<choice name="TextSelect" />
<choice name="TableSelect" />
</choices>
</entry>
<entry key="ShowSourceLocationsGraphically" type="Bool" >
<default>false</default>
</entry>
</group>
<group name="Search" >
<entry key="SearchCaseSensitive" type="Bool">
<default>false</default>
</entry>
<entry key="SearchFromCurrentPage" type="Bool">
<default>true</default>
</entry>
</group>
<group name="Dlg Accessibility" >
<entry key="HighlightImages" type="Bool" >
<default>false</default>
</entry>
<entry key="HighlightLinks" type="Bool" >
<default>false</default>
</entry>
<entry key="RecolorForeground" type="Color" >
<default code="true" >0x600000</default>
</entry>
<entry key="RecolorBackground" type="Color" >
<default code="true" >0xF0F0F0</default>
</entry>
<entry key="BWThreshold" type="UInt" >
<default>127</default>
<min>2</min>
<max>253</max>
</entry>
<entry key="BWContrast" type="UInt" >
<default>2</default>
<min>2</min>
<max>6</max>
</entry>
</group>
<group name="Identity" >
<entry key="IdentityAuthor" type="String">
<code>
KUser currentUser;
QString userString = currentUser.property( KUser::FullName ).toString();
if ( userString.isEmpty() )
{
userString = currentUser.loginName();
}
</code>
<default code="true">userString</default>
</entry>
</group>
</kcfg>