Warning, /graphics/okular/conf/okular.kcfg is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" encoding="UTF-8"?> 0002 <kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" 0003 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 0004 xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 0005 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > 0006 <include>kuser.h</include> 0007 <kcfgfile arg="true" /> 0008 <signal name="builtinAnnotationToolsChanged" /> 0009 <signal name="quickAnnotationToolsChanged" /> 0010 <signal name="viewContinuousChanged" /> 0011 <signal name="colorModesChanged2" > 0012 <label>Same as colorModesChanged(), but kconfig_compiler does not allow to inherit signals, so appending a '2'.</label> 0013 </signal> 0014 <signal name="primaryAnnotationToolBarChanged" /> 0015 <group name="Dlg Performance" > 0016 <entry key="EnableCompositing" type="Bool" > 0017 <default>true</default> 0018 </entry> 0019 </group> 0020 <group name="Debugging Options" > 0021 <entry key="DebugDrawBoundaries" type="Bool" > 0022 <default>false</default> 0023 </entry> 0024 <entry key="DebugDrawAnnotationRect" type="Bool" > 0025 <default>false</default> 0026 </entry> 0027 </group> 0028 <group name="Contents" > 0029 <entry key="ContentsSearchCaseSensitive" type="Bool"> 0030 <default>false</default> 0031 </entry> 0032 <entry key="ContentsSearchRegularExpression" type="Bool"> 0033 <default>false</default> 0034 </entry> 0035 </group> 0036 <group name="Layers" > 0037 <entry key="LayersSearchCaseSensitive" type="Bool"> 0038 <default>false</default> 0039 </entry> 0040 <entry key="LayersSearchRegularExpression" type="Bool"> 0041 <default>false</default> 0042 </entry> 0043 </group> 0044 <group name="Reviews" > 0045 <entry key="ReviewsSearchCaseSensitive" type="Bool"> 0046 <default>false</default> 0047 </entry> 0048 <entry key="ReviewsSearchRegularExpression" type="Bool"> 0049 <default>false</default> 0050 </entry> 0051 <entry key="DrawingTools" type="StringList"> 0052 <code> 0053 QStringList drawingTools; 0054 // load the default tool list from the 'xml tools definition' file 0055 QFile infoDrawingFile( QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("okular/drawingtools.xml")) ); 0056 if ( infoDrawingFile.exists() && infoDrawingFile.open( QIODevice::ReadOnly ) ) 0057 { 0058 QDomDocument doc; 0059 if ( doc.setContent( &infoDrawingFile ) ) 0060 { 0061 const QDomElement toolsDefinition = doc.elementsByTagName(QStringLiteral("drawingTools")).item( 0 ).toElement(); 0062 // create the annotationTools list from the XML dom tree 0063 QDomNode toolDescription = toolsDefinition.firstChild(); 0064 while ( toolDescription.isElement() ) 0065 { 0066 const QDomElement toolElement = toolDescription.toElement(); 0067 if ( toolElement.tagName() == QStringLiteral("tool") ) 0068 { 0069 QDomDocument temp; 0070 temp.appendChild( temp.importNode( toolElement, true) ); 0071 // add each <tool>...</tool> as XML string 0072 drawingTools << temp.toString(-1); 0073 } 0074 toolDescription = toolDescription.nextSibling(); 0075 } 0076 } 0077 else 0078 { 0079 qWarning() << "DrawingTools XML file seems to be damaged"; 0080 } 0081 } 0082 else 0083 { 0084 qWarning() << "Unable to open DrawingTools XML definition"; 0085 } 0086 </code> 0087 <default code="true">drawingTools</default> 0088 </entry> 0089 <entry key="BuiltinAnnotationTools" type="StringList"> 0090 <code> 0091 QStringList builtinAnnotationTools; 0092 // load the default tool list from the 'xml tools definition' file 0093 QFile infoFile( QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("okular/tools.xml")) ); 0094 if ( infoFile.exists() && infoFile.open( QIODevice::ReadOnly ) ) 0095 { 0096 QDomDocument doc; 0097 if ( doc.setContent( &infoFile ) ) 0098 { 0099 QDomElement toolsDefinition = doc.elementsByTagName(QStringLiteral("annotatingTools")).item( 0 ).toElement(); 0100 // create the builtinAnnotationTools list from the XML dom tree 0101 QDomNode toolDescription = toolsDefinition.firstChild(); 0102 while ( toolDescription.isElement() ) 0103 { 0104 QDomElement toolElement = toolDescription.toElement(); 0105 if ( toolElement.tagName() == QStringLiteral("tool") ) 0106 { 0107 QDomDocument temp; 0108 temp.appendChild( temp.importNode( toolElement, true) ); 0109 // add each <tool>...</tool> as XML string 0110 builtinAnnotationTools << temp.toString(-1); 0111 } 0112 toolDescription = toolDescription.nextSibling(); 0113 } 0114 } 0115 else 0116 { 0117 qWarning() << "AnnotatingTools XML file seems to be damaged"; 0118 } 0119 } 0120 else 0121 { 0122 qWarning() << "Unable to open AnnotatingTools XML definition"; 0123 } 0124 </code> 0125 <default code="true">builtinAnnotationTools</default> 0126 <emit signal="builtinAnnotationToolsChanged" /> 0127 </entry> 0128 <entry key="QuickAnnotationTools" type="StringList"> 0129 <code> 0130 QStringList quickAnnotationTools; 0131 // load the default tool list from the 'xml tools definition' file 0132 QFile quickAnnFile( QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("okular/toolsQuick.xml")) ); 0133 if ( quickAnnFile.exists() && quickAnnFile.open( QIODevice::ReadOnly ) ) 0134 { 0135 QDomDocument doc; 0136 if ( doc.setContent( &quickAnnFile ) ) 0137 { 0138 QDomElement toolsDefinition = doc.elementsByTagName(QStringLiteral("quickAnnotatingTools")).item( 0 ).toElement(); 0139 // create the quickAnnotationTools list from the XML dom tree 0140 QDomNode toolDescription = toolsDefinition.firstChild(); 0141 while ( toolDescription.isElement() ) 0142 { 0143 QDomElement toolElement = toolDescription.toElement(); 0144 if ( toolElement.tagName() == QStringLiteral("tool") ) 0145 { 0146 QDomDocument temp; 0147 temp.appendChild( temp.importNode( toolElement, true) ); 0148 // add each <tool>...</tool> as XML string 0149 quickAnnotationTools << temp.toString(-1); 0150 } 0151 toolDescription = toolDescription.nextSibling(); 0152 } 0153 } 0154 else 0155 { 0156 qWarning() << "QuickAnnotatingTools XML file seems to be damaged"; 0157 } 0158 } 0159 else 0160 { 0161 qWarning() << "Unable to open QuickAnnotatingTools XML definition"; 0162 } 0163 </code> 0164 <default code="true">quickAnnotationTools</default> 0165 <emit signal="quickAnnotationToolsChanged" /> 0166 </entry> 0167 <entry key="AnnotationContinuousMode" type="Bool"> 0168 <default>true</default> 0169 </entry> 0170 <entry key="QuickAnnotationDefaultAction" type="UInt"> 0171 <default>0</default> 0172 </entry> 0173 </group> 0174 <group name="Zoom"> 0175 <entry key="ZoomMode" type="UInt" > 0176 <default>1</default> 0177 <max>3</max> 0178 </entry> 0179 </group> 0180 <group name="General" > 0181 <entry key="ShellOpenFileInTabs" type="Bool" > 0182 <default>false</default> 0183 </entry> 0184 <entry key="SwitchToTabIfOpen" type="Bool"> 0185 <default>true</default> 0186 </entry> 0187 <entry key="ShowOSD" type="Bool" > 0188 <default>true</default> 0189 </entry> 0190 <entry key="ShowEmbeddedContentMessages" type="Bool" > 0191 <default>true</default> 0192 </entry> 0193 <entry key="DisplayDocumentTitle" type="Bool" > 0194 <default>true</default> 0195 </entry> 0196 <entry key="rtlReadingDirection" type="Bool" > 0197 <default>false</default> 0198 </entry> 0199 <entry key="DisplayDocumentNameOrPath" type="Enum" > 0200 <default>Name</default> 0201 <choices> 0202 <choice name="Name" /> 0203 <choice name="Path" /> 0204 </choices> 0205 </entry> 0206 <entry key="UseTTS" type="Bool" /> 0207 <entry key="ttsEngine" type="String"> 0208 <default>speechd</default> 0209 </entry> 0210 <entry key="ttsVoice" type="String"> 0211 <default></default> 0212 </entry> 0213 <entry key="WatchFile" type="Bool" > 0214 <default>true</default> 0215 </entry> 0216 </group> 0217 <group name="Dlg Presentation" > 0218 <entry key="SlidesBackgroundColor" type="Color" > 0219 <default code="true" >Qt::black</default> 0220 </entry> 0221 <entry key="SlidesTransition" type="Enum" > 0222 <default>Replace</default> 0223 <choices> 0224 <choice name="NoTransitions" /> 0225 <choice name="Replace" /> 0226 <choice name="Random" /> 0227 <choice name="BlindsHorizontal" /> 0228 <choice name="BlindsVertical" /> 0229 <choice name="BoxIn" /> 0230 <choice name="BoxOut" /> 0231 <choice name="Dissolve" /> 0232 <choice name="Fade" /> 0233 <choice name="GlitterDown" /> 0234 <choice name="GlitterRight" /> 0235 <choice name="GlitterRightDown" /> 0236 <choice name="SplitHorizontalIn" /> 0237 <choice name="SplitHorizontalOut" /> 0238 <choice name="SplitVerticalIn" /> 0239 <choice name="SplitVerticalOut" /> 0240 <choice name="WipeDown" /> 0241 <choice name="WipeRight" /> 0242 <choice name="WipeLeft" /> 0243 <choice name="WipeUp" /> 0244 </choices> 0245 </entry> 0246 <entry key="SlidesCursor" type="Enum" > 0247 <default>HiddenDelay</default> 0248 <choices> 0249 <choice name="HiddenDelay" /> 0250 <choice name="Visible" /> 0251 <choice name="Hidden" /> 0252 </choices> 0253 </entry> 0254 <entry key="SlidesShowProgress" type="Bool" > 0255 <default>true</default> 0256 </entry> 0257 <entry key="SlidesShowSummary" type="Bool" > 0258 <default>false</default> 0259 </entry> 0260 <entry key="SlidesScreen" type="Int" > 0261 <default>-2</default> 0262 <min>-2</min> 0263 <max>20</max> 0264 </entry> 0265 </group> 0266 <group name="Main View" > 0267 <entry key="ShowLeftPanel" type="Bool" > 0268 <default>true</default> 0269 </entry> 0270 <entry key="SplitterSizes" type="IntList" /> 0271 <entry key="ShowBottomBar" type="Bool" > 0272 <default>false</default> 0273 </entry> 0274 </group> 0275 <group name="Nav Panel" > 0276 <entry key="CurrentPageOnly" type="Bool" > 0277 <default>false</default> 0278 </entry> 0279 <entry key="GroupByAuthor" type="Bool" > 0280 <default>true</default> 0281 </entry> 0282 <entry key="GroupByPage" type="Bool" > 0283 <default>true</default> 0284 </entry> 0285 <entry key="FilterBookmarks" type="Bool" > 0286 <default>false</default> 0287 </entry> 0288 <entry key="SyncThumbnailsViewport" type="Bool" > 0289 <default>true</default> 0290 </entry> 0291 <entry key="TocPageColumn" type="Bool" > 0292 <default>true</default> 0293 </entry> 0294 <entry key="SidebarShowText" type="Bool" > 0295 <default>true</default> 0296 </entry> 0297 <entry key="SidebarIconSize" type="UInt" > 0298 <default>48</default> 0299 </entry> 0300 </group> 0301 <group name="PageView" > 0302 <entry key="EditToolBarPlacement" type="Int" > 0303 <default>0</default> 0304 </entry> 0305 <entry key="SmoothScrolling" type="Bool" > 0306 <default>true</default> 0307 </entry> 0308 <entry key="ShowScrollBars" type="Bool" > 0309 <default>true</default> 0310 </entry> 0311 <entry key="ScrollOverlap" type="UInt" > 0312 <default>0</default> 0313 <min>0</min> 0314 <max>50</max> 0315 </entry> 0316 <entry key="ViewColumns" type="UInt" > 0317 <default>3</default> 0318 <min>1</min> 0319 <max>8</max> 0320 </entry> 0321 <entry key="TrimMargins" type="Bool" > 0322 <default>false</default> 0323 </entry> 0324 <entry key="ViewContinuous" type="Bool" > 0325 <default>true</default> 0326 <emit signal="viewContinuousChanged" /> 0327 </entry> 0328 <entry key="DragBeyondScreenEdges" type="Bool" > 0329 <default>true</default> 0330 </entry> 0331 <entry key="PrimaryAnnotationToolBar" type="Enum" > 0332 <default>FullAnnotationToolBar</default> 0333 <choices> 0334 <choice name="FullAnnotationToolBar" /> 0335 <choice name="QuickAnnotationToolBar" /> 0336 </choices> 0337 <emit signal="primaryAnnotationToolBarChanged" /> 0338 </entry> 0339 <entry key="ViewMode" type="Enum" > 0340 <default>Single</default> 0341 <choices> 0342 <choice name="Single" /> 0343 <choice name="Facing" /> 0344 <choice name="FacingFirstCentered" /> 0345 <choice name="Summary" /> 0346 </choices> 0347 </entry> 0348 <entry key="TrimMode" type="Enum" > 0349 <default>None</default> 0350 <choices> 0351 <choice name="None" /> 0352 <choice name="Margins" /> 0353 <choice name="Selection" /> 0354 </choices> 0355 </entry> 0356 <entry key="MouseMode" type="Enum" > 0357 <default>Browse</default> 0358 <choices> 0359 <choice name="Browse" /> 0360 <choice name="Zoom" /> 0361 <choice name="RectSelect" /> 0362 <choice name="TextSelect" /> 0363 <choice name="TableSelect" /> 0364 <choice name="Magnifier" /> 0365 <choice name="TrimSelect" /> 0366 </choices> 0367 </entry> 0368 <entry key="ShowSourceLocationsGraphically" type="Bool" > 0369 <default>false</default> 0370 </entry> 0371 <entry key="UseCustomBackgroundColor" type="Bool" > 0372 <default>false</default> 0373 </entry> 0374 <entry key="BackgroundColor" type="Color" > 0375 </entry> 0376 </group> 0377 <group name="Search" > 0378 <entry key="SearchCaseSensitive" type="Bool"> 0379 <default>false</default> 0380 </entry> 0381 <entry key="SearchFromCurrentPage" type="Bool"> 0382 <default>true</default> 0383 </entry> 0384 <entry key="FindAsYouType" type="Bool"> 0385 <default>true</default> 0386 </entry> 0387 </group> 0388 <group name="Dlg Accessibility" > 0389 <entry key="HighlightImages" type="Bool" > 0390 <default>false</default> 0391 </entry> 0392 <entry key="HighlightLinks" type="Bool" > 0393 <default>false</default> 0394 </entry> 0395 <entry key="RecolorForeground" type="Color" > 0396 <default code="true" >0x600000</default> 0397 <emit signal="colorModesChanged2" /> 0398 </entry> 0399 <entry key="RecolorBackground" type="Color" > 0400 <default code="true" >0xF0F0F0</default> 0401 <emit signal="colorModesChanged2" /> 0402 </entry> 0403 <entry key="BWThreshold" type="UInt" > 0404 <default>127</default> 0405 <min>2</min> 0406 <max>253</max> 0407 <emit signal="colorModesChanged2" /> 0408 </entry> 0409 <entry key="BWContrast" type="UInt" > 0410 <default>2</default> 0411 <min>2</min> 0412 <max>6</max> 0413 <emit signal="colorModesChanged2" /> 0414 </entry> 0415 </group> 0416 <group name="Identity" > 0417 <entry key="IdentityAuthor" type="String"> 0418 <code> 0419 KUser currentUser; 0420 QString userString = currentUser.property( KUser::FullName ).toString(); 0421 if ( userString.isEmpty() ) 0422 { 0423 userString = currentUser.loginName(); 0424 } 0425 </code> 0426 <default code="true">userString</default> 0427 </entry> 0428 </group> 0429 </kcfg>