mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
282 lines
8.1 KiB
XML
282 lines
8.1 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() && infoFile.open( QIODevice::ReadOnly ) )
|
|
{
|
|
QDomDocument doc;
|
|
if ( doc.setContent( &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 <tool>...</tool> as XML string
|
|
annotationTools << temp.toString(-1);
|
|
}
|
|
toolDescription = toolDescription.nextSibling();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
kWarning() << "AnnotatingTools XML file seems to be damaged";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
kWarning() << "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="ShellOpenFileInTabs" type="Bool" >
|
|
<default>false</default>
|
|
</entry>
|
|
<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="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" />
|
|
<choice name="Magnifier" />
|
|
</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 );
|
|
if ( userString.isEmpty() )
|
|
{
|
|
userString = currentUser.loginName();
|
|
}
|
|
</code>
|
|
<default code="true">userString</default>
|
|
</entry>
|
|
</group>
|
|
</kcfg>
|