mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
1be2290358
To make tts more user friendly allow user to select which voice is used for tts playback.
427 lines
14 KiB
XML
427 lines
14 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" />
|
|
<signal name="builtinAnnotationToolsChanged" />
|
|
<signal name="quickAnnotationToolsChanged" />
|
|
<signal name="viewContinuousChanged" />
|
|
<signal name="colorModesChanged2" >
|
|
<label>Same as colorModesChanged(), but kconfig_compiler does not allow to inherit signals, so appending a '2'.</label>
|
|
</signal>
|
|
<signal name="primaryAnnotationToolBarChanged" />
|
|
<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="Layers" >
|
|
<entry key="LayersSearchCaseSensitive" type="Bool">
|
|
<default>false</default>
|
|
</entry>
|
|
<entry key="LayersSearchRegularExpression" 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="DrawingTools" type="StringList">
|
|
<code>
|
|
QStringList drawingTools;
|
|
// load the default tool list from the 'xml tools definition' file
|
|
QFile infoDrawingFile( QStandardPaths::locate(QStandardPaths::GenericDataLocation, "okular/drawingtools.xml") );
|
|
if ( infoDrawingFile.exists() && infoDrawingFile.open( QIODevice::ReadOnly ) )
|
|
{
|
|
QDomDocument doc;
|
|
if ( doc.setContent( &infoDrawingFile ) )
|
|
{
|
|
const QDomElement toolsDefinition = doc.elementsByTagName("drawingTools").item( 0 ).toElement();
|
|
// create the annotationTools list from the XML dom tree
|
|
QDomNode toolDescription = toolsDefinition.firstChild();
|
|
while ( toolDescription.isElement() )
|
|
{
|
|
const QDomElement toolElement = toolDescription.toElement();
|
|
if ( toolElement.tagName() == "tool" )
|
|
{
|
|
QDomDocument temp;
|
|
temp.appendChild( temp.importNode( toolElement, true) );
|
|
// add each <tool>...</tool> as XML string
|
|
drawingTools << temp.toString(-1);
|
|
}
|
|
toolDescription = toolDescription.nextSibling();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
qWarning() << "DrawingTools XML file seems to be damaged";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
qWarning() << "Unable to open DrawingTools XML definition";
|
|
}
|
|
</code>
|
|
<default code="true">drawingTools</default>
|
|
</entry>
|
|
<entry key="BuiltinAnnotationTools" type="StringList">
|
|
<code>
|
|
QStringList builtinAnnotationTools;
|
|
// load the default tool list from the 'xml tools definition' file
|
|
QFile infoFile( QStandardPaths::locate(QStandardPaths::GenericDataLocation, "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 builtinAnnotationTools 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
|
|
builtinAnnotationTools << temp.toString(-1);
|
|
}
|
|
toolDescription = toolDescription.nextSibling();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
qWarning() << "AnnotatingTools XML file seems to be damaged";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
qWarning() << "Unable to open AnnotatingTools XML definition";
|
|
}
|
|
</code>
|
|
<default code="true">builtinAnnotationTools</default>
|
|
<emit signal="builtinAnnotationToolsChanged" />
|
|
</entry>
|
|
<entry key="QuickAnnotationTools" type="StringList">
|
|
<code>
|
|
QStringList quickAnnotationTools;
|
|
// load the default tool list from the 'xml tools definition' file
|
|
QFile quickAnnFile( QStandardPaths::locate(QStandardPaths::GenericDataLocation, "okular/toolsQuick.xml") );
|
|
if ( quickAnnFile.exists() && quickAnnFile.open( QIODevice::ReadOnly ) )
|
|
{
|
|
QDomDocument doc;
|
|
if ( doc.setContent( &quickAnnFile ) )
|
|
{
|
|
QDomElement toolsDefinition = doc.elementsByTagName("quickAnnotatingTools").item( 0 ).toElement();
|
|
// create the quickAnnotationTools 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
|
|
quickAnnotationTools << temp.toString(-1);
|
|
}
|
|
toolDescription = toolDescription.nextSibling();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
qWarning() << "QuickAnnotatingTools XML file seems to be damaged";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
qWarning() << "Unable to open QuickAnnotatingTools XML definition";
|
|
}
|
|
</code>
|
|
<default code="true">quickAnnotationTools</default>
|
|
<emit signal="quickAnnotationToolsChanged" />
|
|
</entry>
|
|
<entry key="AnnotationContinuousMode" type="Bool">
|
|
<default>true</default>
|
|
</entry>
|
|
<entry key="QuickAnnotationDefaultAction" type="UInt">
|
|
<default>0</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="SwitchToTabIfOpen" type="Bool">
|
|
<default>true</default>
|
|
</entry>
|
|
<entry key="ShowOSD" type="Bool" >
|
|
<default>true</default>
|
|
</entry>
|
|
<entry key="ShowEmbeddedContentMessages" type="Bool" >
|
|
<default>true</default>
|
|
</entry>
|
|
<entry key="DisplayDocumentTitle" type="Bool" >
|
|
<default>true</default>
|
|
</entry>
|
|
<entry key="rtlReadingDirection" type="Bool" >
|
|
<default>false</default>
|
|
</entry>
|
|
<entry key="DisplayDocumentNameOrPath" type="Enum" >
|
|
<default>Name</default>
|
|
<choices>
|
|
<choice name="Name" />
|
|
<choice name="Path" />
|
|
</choices>
|
|
</entry>
|
|
<entry key="UseTTS" type="Bool" />
|
|
<entry key="ttsEngine" type="String">
|
|
<default>speechd</default>
|
|
</entry>
|
|
<entry key="ttsVoice" type="String">
|
|
<default></default>
|
|
</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="NoTransitions" />
|
|
<choice name="Replace" />
|
|
<choice name="Random" />
|
|
<choice name="BlindsHorizontal" />
|
|
<choice name="BlindsVertical" />
|
|
<choice name="BoxIn" />
|
|
<choice name="BoxOut" />
|
|
<choice name="Dissolve" />
|
|
<choice name="Fade" />
|
|
<choice name="GlitterDown" />
|
|
<choice name="GlitterRight" />
|
|
<choice name="GlitterRightDown" />
|
|
<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="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>false</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="SmoothScrolling" type="Bool" >
|
|
<default>true</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>
|
|
<emit signal="viewContinuousChanged" />
|
|
</entry>
|
|
<entry key="PrimaryAnnotationToolBar" type="Enum" >
|
|
<default>FullAnnotationToolBar</default>
|
|
<choices>
|
|
<choice name="FullAnnotationToolBar" />
|
|
<choice name="QuickAnnotationToolBar" />
|
|
</choices>
|
|
<emit signal="primaryAnnotationToolBarChanged" />
|
|
</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="TrimMode" type="Enum" >
|
|
<default>None</default>
|
|
<choices>
|
|
<choice name="None" />
|
|
<choice name="Margins" />
|
|
<choice name="Selection" />
|
|
</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" />
|
|
<choice name="TrimSelect" />
|
|
</choices>
|
|
</entry>
|
|
<entry key="ShowSourceLocationsGraphically" type="Bool" >
|
|
<default>false</default>
|
|
</entry>
|
|
<entry key="UseCustomBackgroundColor" type="Bool" >
|
|
<default>false</default>
|
|
</entry>
|
|
<entry key="BackgroundColor" type="Color" >
|
|
</entry>
|
|
</group>
|
|
<group name="Search" >
|
|
<entry key="SearchCaseSensitive" type="Bool">
|
|
<default>false</default>
|
|
</entry>
|
|
<entry key="SearchFromCurrentPage" type="Bool">
|
|
<default>true</default>
|
|
</entry>
|
|
<entry key="FindAsYouType" 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>
|
|
<emit signal="colorModesChanged2" />
|
|
</entry>
|
|
<entry key="RecolorBackground" type="Color" >
|
|
<default code="true" >0xF0F0F0</default>
|
|
<emit signal="colorModesChanged2" />
|
|
</entry>
|
|
<entry key="BWThreshold" type="UInt" >
|
|
<default>127</default>
|
|
<min>2</min>
|
|
<max>253</max>
|
|
<emit signal="colorModesChanged2" />
|
|
</entry>
|
|
<entry key="BWContrast" type="UInt" >
|
|
<default>2</default>
|
|
<min>2</min>
|
|
<max>6</max>
|
|
<emit signal="colorModesChanged2" />
|
|
</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>
|