2005-01-09 21:55:56 +00:00
|
|
|
<?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" >
|
2007-08-03 20:34:04 +00:00
|
|
|
<include>kuser.h</include>
|
2011-12-11 22:22:04 +00:00
|
|
|
<kcfgfile arg="true" />
|
2012-10-15 22:27:42 +00:00
|
|
|
<group name="Dlg Performance" >
|
|
|
|
<entry key="EnableCompositing" type="Bool" >
|
|
|
|
<default>true</default>
|
|
|
|
</entry>
|
|
|
|
</group>
|
2005-03-24 18:43:20 +00:00
|
|
|
<group name="Debugging Options" >
|
|
|
|
<entry key="DebugDrawBoundaries" type="Bool" >
|
|
|
|
<default>false</default>
|
|
|
|
</entry>
|
|
|
|
<entry key="DebugDrawAnnotationRect" type="Bool" >
|
|
|
|
<default>false</default>
|
|
|
|
</entry>
|
|
|
|
</group>
|
2012-10-15 22:27:42 +00:00
|
|
|
<group name="Contents" >
|
|
|
|
<entry key="ContentsSearchCaseSensitive" type="Bool">
|
2004-10-29 10:28:29 +00:00
|
|
|
<default>false</default>
|
|
|
|
</entry>
|
2012-10-15 22:27:42 +00:00
|
|
|
<entry key="ContentsSearchRegularExpression" type="Bool">
|
2004-10-27 14:10:57 +00:00
|
|
|
<default>false</default>
|
|
|
|
</entry>
|
2012-10-15 22:27:42 +00:00
|
|
|
</group>
|
|
|
|
<group name="Reviews" >
|
|
|
|
<entry key="ReviewsSearchCaseSensitive" type="Bool">
|
2004-11-09 17:20:19 +00:00
|
|
|
<default>false</default>
|
|
|
|
</entry>
|
2012-10-15 22:27:42 +00:00
|
|
|
<entry key="ReviewsSearchRegularExpression" type="Bool">
|
|
|
|
<default>false</default>
|
2004-10-27 14:10:57 +00:00
|
|
|
</entry>
|
2012-12-27 23:25:47 +00:00
|
|
|
<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();
|
|
|
|
}
|
|
|
|
}
|
2013-05-21 10:29:49 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
kWarning() << "AnnotatingTools XML file seems to be damaged";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
kWarning() << "Unable to open AnnotatingTools XML definition";
|
2012-12-27 23:25:47 +00:00
|
|
|
}
|
|
|
|
</code>
|
|
|
|
<default code="true">annotationTools</default>
|
|
|
|
</entry>
|
2004-10-27 14:10:57 +00:00
|
|
|
</group>
|
2012-10-15 22:27:42 +00:00
|
|
|
<group name="Zoom">
|
|
|
|
<entry key="ZoomMode" type="UInt" >
|
|
|
|
<default>1</default>
|
2013-08-18 15:19:20 +00:00
|
|
|
<max>3</max>
|
2012-10-15 22:27:42 +00:00
|
|
|
</entry>
|
|
|
|
</group>
|
|
|
|
<group name="General" >
|
|
|
|
<entry key="ShowOSD" type="Bool" >
|
2005-01-15 13:58:08 +00:00
|
|
|
<default>true</default>
|
2004-10-27 14:10:57 +00:00
|
|
|
</entry>
|
2012-10-15 22:27:42 +00:00
|
|
|
<entry key="DisplayDocumentTitle" type="Bool" >
|
|
|
|
<default>true</default>
|
|
|
|
</entry>
|
|
|
|
<entry key="DisplayDocumentNameOrPath" type="Enum" >
|
|
|
|
<default>Name</default>
|
2009-10-08 21:55:51 +00:00
|
|
|
<choices>
|
2012-10-15 22:27:42 +00:00
|
|
|
<choice name="Name" />
|
|
|
|
<choice name="Path" />
|
2009-10-08 21:55:51 +00:00
|
|
|
</choices>
|
2012-10-15 22:27:42 +00:00
|
|
|
</entry>
|
|
|
|
<entry key="UseKTTSD" type="Bool" />
|
|
|
|
<entry key="WatchFile" type="Bool" >
|
|
|
|
<default>true</default>
|
2009-10-08 21:55:51 +00:00
|
|
|
</entry>
|
2004-10-27 14:10:57 +00:00
|
|
|
</group>
|
2005-03-24 18:43:20 +00:00
|
|
|
<group name="Dlg Presentation" >
|
2005-01-03 23:31:40 +00:00
|
|
|
<entry key="SlidesBackgroundColor" type="Color" >
|
|
|
|
<default code="true" >Qt::black</default>
|
2004-12-30 22:43:15 +00:00
|
|
|
</entry>
|
2005-01-03 23:31:40 +00:00
|
|
|
<entry key="SlidesTransition" type="Enum" >
|
|
|
|
<default>Replace</default>
|
|
|
|
<choices>
|
2005-01-09 23:23:37 +00:00
|
|
|
<choice name="BlindsHorizontal" />
|
|
|
|
<choice name="BlindsVertical" />
|
|
|
|
<choice name="BoxIn" />
|
|
|
|
<choice name="BoxOut" />
|
2005-01-03 23:31:40 +00:00
|
|
|
<choice name="Dissolve" />
|
2005-01-09 23:23:37 +00:00
|
|
|
<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" />
|
2005-01-03 23:31:40 +00:00
|
|
|
</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" >
|
2004-12-30 22:43:15 +00:00
|
|
|
<default>true</default>
|
|
|
|
</entry>
|
|
|
|
<entry key="SlidesShowSummary" type="Bool" >
|
|
|
|
<default>false</default>
|
2006-11-01 23:03:48 +00:00
|
|
|
</entry>
|
|
|
|
<entry key="SlidesPencilColor" type="Color" >
|
|
|
|
<default code="true" >Qt::red</default>
|
2004-12-30 22:43:15 +00:00
|
|
|
</entry>
|
2008-03-13 13:00:37 +00:00
|
|
|
<entry key="SlidesTransitionsEnabled" type="Bool" >
|
|
|
|
<default>true</default>
|
|
|
|
</entry>
|
2008-04-07 18:16:39 +00:00
|
|
|
<entry key="SlidesScreen" type="Int" >
|
2008-04-11 18:25:15 +00:00
|
|
|
<default>-2</default>
|
|
|
|
<min>-2</min>
|
2008-04-07 18:16:39 +00:00
|
|
|
<max>20</max>
|
|
|
|
</entry>
|
2004-12-30 22:43:15 +00:00
|
|
|
</group>
|
2005-03-24 18:43:20 +00:00
|
|
|
<group name="Main View" >
|
|
|
|
<entry key="ShowLeftPanel" type="Bool" >
|
|
|
|
<default>true</default>
|
|
|
|
</entry>
|
|
|
|
<entry key="SplitterSizes" type="IntList" />
|
2010-10-29 21:47:17 +00:00
|
|
|
<entry key="ShowBottomBar" type="Bool" >
|
|
|
|
<default>true</default>
|
|
|
|
</entry>
|
2005-03-24 18:43:20 +00:00
|
|
|
</group>
|
2005-06-24 16:43:19 +00:00
|
|
|
<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>
|
2005-07-05 19:10:48 +00:00
|
|
|
<entry key="TocPageColumn" type="Bool" >
|
2006-12-22 21:16:30 +00:00
|
|
|
<default>true</default>
|
2005-07-05 19:10:48 +00:00
|
|
|
</entry>
|
2007-08-25 15:39:17 +00:00
|
|
|
<entry key="SidebarShowText" type="Bool" >
|
|
|
|
<default>true</default>
|
|
|
|
</entry>
|
2007-11-01 22:58:09 +00:00
|
|
|
<entry key="SidebarIconSize" type="UInt" >
|
|
|
|
<default>48</default>
|
|
|
|
</entry>
|
2005-06-24 16:43:19 +00:00
|
|
|
</group>
|
2005-03-24 18:43:20 +00:00
|
|
|
<group name="PageView" >
|
|
|
|
<entry key="EditToolBarPlacement" type="Int" >
|
|
|
|
<default>0</default>
|
|
|
|
</entry>
|
|
|
|
<entry key="ShowScrollBars" type="Bool" >
|
|
|
|
<default>true</default>
|
|
|
|
</entry>
|
2011-09-07 22:43:30 +00:00
|
|
|
<entry key="ScrollOverlap" type="UInt" >
|
|
|
|
<default>0</default>
|
|
|
|
<min>0</min>
|
|
|
|
<max>50</max>
|
|
|
|
</entry>
|
2005-03-24 18:43:20 +00:00
|
|
|
<entry key="ViewColumns" type="UInt" >
|
2007-07-30 15:05:42 +00:00
|
|
|
<default>3</default>
|
2005-03-24 18:43:20 +00:00
|
|
|
<min>1</min>
|
|
|
|
<max>8</max>
|
|
|
|
</entry>
|
2008-05-27 14:00:59 +00:00
|
|
|
<entry key="TrimMargins" type="Bool" >
|
2008-05-19 00:37:14 +00:00
|
|
|
<default>false</default>
|
|
|
|
</entry>
|
2005-03-24 18:43:20 +00:00
|
|
|
<entry key="ViewContinuous" type="Bool" >
|
|
|
|
<default>true</default>
|
|
|
|
</entry>
|
2010-01-10 01:19:16 +00:00
|
|
|
<entry key="ViewMode" type="Enum" >
|
|
|
|
<default>Single</default>
|
|
|
|
<choices>
|
|
|
|
<choice name="Single" />
|
|
|
|
<choice name="Facing" />
|
|
|
|
<choice name="FacingFirstCentered" />
|
|
|
|
<choice name="Summary" />
|
|
|
|
</choices>
|
2007-05-17 20:46:16 +00:00
|
|
|
</entry>
|
2012-03-09 17:43:40 +00:00
|
|
|
<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>
|
2011-10-17 19:56:45 +00:00
|
|
|
<entry key="ShowSourceLocationsGraphically" type="Bool" >
|
|
|
|
<default>false</default>
|
|
|
|
</entry>
|
2004-10-30 20:54:48 +00:00
|
|
|
</group>
|
2009-05-08 16:26:02 +00:00
|
|
|
<group name="Search" >
|
|
|
|
<entry key="SearchCaseSensitive" type="Bool">
|
|
|
|
<default>false</default>
|
|
|
|
</entry>
|
|
|
|
<entry key="SearchFromCurrentPage" type="Bool">
|
2012-02-20 19:33:55 +00:00
|
|
|
<default>true</default>
|
2009-05-08 16:26:02 +00:00
|
|
|
</entry>
|
|
|
|
</group>
|
2012-10-15 22:27:42 +00:00
|
|
|
<group name="Dlg Accessibility" >
|
|
|
|
<entry key="HighlightImages" type="Bool" >
|
2009-11-19 17:26:41 +00:00
|
|
|
<default>false</default>
|
|
|
|
</entry>
|
2012-10-15 22:27:42 +00:00
|
|
|
<entry key="HighlightLinks" type="Bool" >
|
2009-11-19 17:26:41 +00:00
|
|
|
<default>false</default>
|
|
|
|
</entry>
|
2012-10-15 22:27:42 +00:00
|
|
|
<entry key="RecolorForeground" type="Color" >
|
|
|
|
<default code="true" >0x600000</default>
|
2009-11-19 17:26:41 +00:00
|
|
|
</entry>
|
2012-10-15 22:27:42 +00:00
|
|
|
<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>
|
2009-11-19 17:26:41 +00:00
|
|
|
</entry>
|
|
|
|
</group>
|
2004-10-27 14:10:57 +00:00
|
|
|
</kcfg>
|