Warning, /utilities/kcalc/kcalc.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>QFontDatabase</include>
0007   <include>KColorScheme</include>
0008   <include>KLocalizedString</include>
0009   <kcfgfile name="kcalcrc"/>
0010   <group name="Colors">
0011     <entry name="ForeColor" type="Color">
0012       <label>The foreground color of the display.</label>
0013       <code>KColorScheme schemeView(QPalette::Active, KColorScheme::View);
0014             QColor defaultColor = schemeView.foreground().color();</code>
0015       <default code="true">defaultColor</default>
0016     </entry>
0017     <entry name="BackColor" type="Color">
0018       <label>The background color of the display.</label>
0019       <code>defaultColor = schemeView.background().color();</code>
0020       <default code="true">defaultColor</default>
0021     </entry>
0022     <entry name="NumberButtonsColor" type="Color">
0023       <label>The color of number buttons.</label>
0024       <code>KColorScheme schemeButtons(QPalette::Active, KColorScheme::Button);
0025             QColor defaultButtonColor = schemeButtons.background().color();</code>
0026       <default code="true">defaultButtonColor</default>
0027     </entry>
0028     <entry name="FunctionButtonsColor" type="Color">
0029       <label>The color of function buttons.</label>
0030       <default code="true">defaultButtonColor</default>
0031     </entry>
0032     <entry name="StatButtonsColor" type="Color">
0033       <label>The color of statistical buttons.</label>
0034       <default code="true">defaultButtonColor</default>
0035     </entry>
0036     <entry name="HexButtonsColor" type="Color">
0037       <label>The color of hex buttons.</label>
0038       <default code="true">defaultButtonColor</default>
0039     </entry>
0040     <entry name="MemoryButtonsColor" type="Color">
0041       <label>The color of memory buttons.</label>
0042       <default code="true">defaultButtonColor</default>
0043     </entry>
0044     <entry name="OperationButtonsColor" type="Color">
0045       <label>The color of operation buttons.</label>
0046       <default code="true">defaultButtonColor</default>
0047     </entry>
0048     <entry name="ConstantsButtonsColor" type="Color">
0049       <label>The color of constants buttons.</label>
0050       <default code="true">defaultButtonColor</default>
0051     </entry>
0052     <entry name="NumberFontsColor" type="Color">
0053       <label>The color of number fonts.</label>
0054       <code>KColorScheme schemeFonts(QPalette::Active, KColorScheme::Button);
0055             QColor defaultFontColor = schemeFonts.foreground().color();</code>
0056       <default code="true">defaultFontColor</default>
0057     </entry>
0058     <entry name="FunctionFontsColor" type="Color">
0059       <label>The color of function fonts.</label>
0060       <default code="true">defaultFontColor</default>
0061     </entry>
0062     <entry name="StatFontsColor" type="Color">
0063       <label>The color of statistical fonts.</label>
0064       <default code="true">defaultFontColor</default>
0065     </entry>
0066     <entry name="HexFontsColor" type="Color">
0067       <label>The color of hex fonts.</label>
0068       <default code="true">defaultFontColor</default>
0069     </entry>
0070     <entry name="MemoryFontsColor" type="Color">
0071       <label>The color of memory fonts.</label>
0072       <default code="true">defaultFontColor</default>
0073     </entry>
0074     <entry name="OperationFontsColor" type="Color">
0075       <label>The color of operation font.</label>
0076       <default code="true">defaultFontColor</default>
0077     </entry>
0078     <entry name="ConstantsFontsColor" type="Color">
0079       <label>The color of constants fonts.</label>
0080       <default code="true">defaultFontColor</default>
0081     </entry>
0082   </group>
0083   <group name="Font">
0084     <entry name="ButtonFont" type="Font">
0085       <label>The font to use for the buttons.</label>
0086       <default code="true">QFontDatabase::systemFont(QFontDatabase::GeneralFont)</default>
0087     </entry>
0088     <entry name="DisplayFont" type="Font">
0089       <label>The font to use in the display.</label>
0090       <code>QFont defaultDisplayFont = QFontDatabase::systemFont(QFontDatabase::GeneralFont);
0091             defaultDisplayFont.setWeight(QFont::Bold);
0092             defaultDisplayFont.setPointSizeF(defaultDisplayFont.pointSizeF() * 1.4);</code>
0093       <default code="true">defaultDisplayFont</default>
0094     </entry>
0095     <entry name="HistoryFont" type="Font">
0096       <label>The font to use in the history.</label>
0097         <default code="true">QFontDatabase::systemFont(QFontDatabase::GeneralFont)</default>
0098     </entry>
0099   </group>
0100   <group name="Precision">
0101     <entry name="Precision" type="UInt" key="precision">
0102       <label>Maximum number of digits displayed.</label>
0103       <whatsthis>
0104         KCalc can compute with many more digits than the number that
0105         fits on the display. This setting gives the maximum number of
0106         digits displayed, before KCalc starts using scientific notation,
0107         i.e. notation of the type 2.34e12.
0108       </whatsthis> 
0109       <default>12</default>
0110       <min>8</min>
0111       <max>200</max>
0112     </entry>
0113     <entry name="FixedPrecision" type="UInt" key="fixedprecision">
0114       <label>Number of fixed decimal digits.</label>
0115       <default>2</default>
0116     </entry>
0117     <entry name="Fixed" type="Bool" key="fixed">
0118       <label>Whether to use fixed decimal places.</label>
0119       <default>false</default>
0120     </entry>
0121   </group>
0122   <group name="General">
0123     <entry name="Beep" type="Bool" key="beep">
0124       <label>Whether to beep on error.</label>
0125       <default>true</default>
0126     </entry>
0127     <entry name="CaptionResult" type="Bool" key="captionresult">
0128       <label>Whether to show the result in the window title.</label>
0129       <default>false</default>
0130     </entry>
0131     <entry name="GroupDigits" type="Bool" key="groupdigits">
0132       <label>Whether to group digits.</label>
0133       <default>true</default>
0134     </entry>
0135     <entry name="TwosComplement" type="Bool" key="twoscomplement">
0136       <label>Whether to use Two's Complement for non-decimal numbers.</label>
0137       <whatsthis>
0138         Select to use Two's Complement notation for Binary, Octal
0139         and Hexidecimal numbers. This is a common notation to represent
0140         negative numbers in computers.
0141       </whatsthis>
0142       <default>true</default>
0143     </entry>
0144     <entry name="RepeatLastOperation" type="Bool" key="repeatlastoperation">
0145       <label>Enables that the last operation is repeated when "=" is pressed</label>
0146       <default>false</default>
0147     </entry>
0148     <entry name="CalculatorMode" type="Enum">
0149       <choices>
0150         <choice name="simple">
0151           <label>Easy Calculator Mode</label>
0152           <whatsthis>A very simple mode where only the basic calculator buttons are shown</whatsthis>
0153         </choice>
0154         <choice name="science">
0155           <label>Science Calculator Mode</label>
0156           <whatsthis>Mode with science buttons and optional constants buttons</whatsthis>
0157         </choice>
0158         <choice name="statistics">
0159           <label>Statistic Calculator Mode</label>
0160           <whatsthis>Mode with additional statistics buttons and optional constants buttons</whatsthis>
0161         </choice>
0162         <choice name="numeral">
0163           <label>Numeral System Mode</label>
0164           <whatsthis>Mode with logic buttons and selectable base. Optional bit edit available.</whatsthis>
0165         </choice>
0166       </choices>
0167     </entry>
0168     <entry name="ShowBitset" type="Bool">
0169       <label>Whether to show the bit edit widget.</label>
0170       <default>false</default>
0171     </entry>
0172     <entry name="ShowConstants" type="Bool">
0173       <label>Whether to show constant buttons.</label>
0174       <default>false</default>
0175     </entry>
0176     <entry name="ShowHistory" type="Bool">
0177       <label>Whether to show the history window.</label>
0178       <default>false</default>
0179     </entry>
0180     <entry name="AngleMode" type="UInt">
0181       <label>Degrees, radians or grads</label>
0182       <default>0</default>
0183     </entry>
0184     <entry name="BaseMode" type="UInt">
0185       <label>Numeric base</label>
0186       <default>10</default>
0187     </entry>
0188   </group>
0189   <group name="Grouping">
0190     <entry name="BinaryGrouping" type="UInt" key="binaryGrouping">
0191         <label>Binary figures will be separated by a whitespace after every Xth digit.</label>
0192         <whatsthis>
0193             For easier readability it's possible to visible group the individual digits into pairs
0194             for example instead of 10111001 you can display 1011 1001, by setting the setting to
0195             4, thus inserting a whitespace after every 4th digit.
0196         </whatsthis>
0197         <default>4</default>
0198     </entry>
0199     <entry name="OctalGrouping" type="UInt" key="octalGrouping">
0200         <label>Octal figures will be separated by a whitespace after every Xth digit.</label>
0201         <whatsthis>
0202             For easier readability it's possible to visible group the individual digits into pairs
0203             for example instead of 42140213 you can display 4214 0213, by setting the setting to
0204             4, thus inserting a whitespace after every 4th digit.
0205         </whatsthis>
0206         <default>4</default>
0207     </entry>
0208     <entry name="HexadecimalGrouping" type="UInt" key="hexadecimalGrouping">
0209         <label>Hexadecimal figures will be separated by a whitespace after every Xth digit.</label>
0210         <whatsthis>
0211             For easier readability it's possible to visible group the individual digits into pairs
0212             for example instead of AF1C42 you can display AF 1C 42, by setting the setting to
0213             2, thus inserting a whitespace after every 2nd digit.
0214         </whatsthis>
0215         <default>2</default>
0216     </entry>
0217   </group>
0218   <group name="UserConstants">
0219         <entry name="nameConstant$(ConstIndex)" type="String" key="nameConstant$(ConstIndex)">
0220         <label>Name of the user programmable constants.</label>
0221         <parameter name="ConstIndex" type="Int" max="5"/>
0222         <code>
0223                 QString nameConstant0 = i18nc("Name of the user programmable constant", "C1");
0224                 QString nameConstant1 = i18nc("Name of the user programmable constant", "C2");
0225                 QString nameConstant2 = i18nc("Name of the user programmable constant", "C3");
0226                 QString nameConstant3 = i18nc("Name of the user programmable constant", "C4");
0227                 QString nameConstant4 = i18nc("Name of the user programmable constant", "C5");
0228                 QString nameConstant5 = i18nc("Name of the user programmable constant", "C6");
0229         </code>
0230         <default param="0" code="true">nameConstant0</default>
0231         <default param="1" code="true">nameConstant1</default>
0232         <default param="2" code="true">nameConstant2</default>
0233         <default param="3" code="true">nameConstant3</default>
0234         <default param="4" code="true">nameConstant4</default>
0235         <default param="5" code="true">nameConstant5</default>
0236         </entry>
0237 
0238         <entry name="valueConstant$(ConstIndex)" type="String" key="valueConstant$(ConstIndex)">
0239         <label>List of user programmable constants</label>
0240         <parameter name="ConstIndex" type="Int" max="5"/>
0241         <default param="0">0</default>
0242         <default param="1">0</default>
0243         <default param="2">0</default>
0244         <default param="3">0</default>
0245         <default param="4">0</default>
0246         <default param="5">0</default>
0247         </entry>
0248   </group>
0249 </kcfg>