3896
<section xmlns:xi="http://www.w3.org/2001/XInclude" id="prefs-tag-button">
3897
<title><button></title>
3899
<para>A simple button. Its representation is a button widget.</para>
3904
<imagedata fileref="gfx/prefs-button" format="PNG"/>
3910
<section><title>Attributes</title>
3912
<informaltable frame="topbot">
3919
<entry>Default Value</entry>
3920
<entry>Description</entry>
3926
<entry valign="top">callback</entry>
3927
<entry valign="top">function</entry>
3928
<entry valign="top"/>
3929
<entry valign="top">A callback function which is called every time
3930
the button is clicked. The callback takes the name of the bound
3931
property and the new value as arguments.</entry>
3934
<entry valign="top">enabled</entry>
3935
<entry valign="top">boolean</entry>
3936
<entry valign="top">true</entry>
3937
<entry valign="top">Whether the config item is enabled. Disabled items
3938
appear greyed out.</entry>
3941
<entry valign="top">help</entry>
3942
<entry valign="top">string</entry>
3943
<entry valign="top"/>
3944
<entry valign="top">The tooltip text for the element in the
3945
configuration dialog.</entry>
3948
<entry valign="top">label</entry>
3949
<entry valign="top">string</entry>
3950
<entry valign="top"/>
3951
<entry valign="top">The label text for the element in the
3952
configuration dialog.</entry>
3963
<section><title>Examples</title>
3965
<programlisting><![CDATA[
3966
<button label="I am a button. Please click me ;)."
3967
help="Just a simple button."
3968
callback="my_personal_callback" />
3969
]]></programlisting>
3895
3974
<section xmlns:xi="http://www.w3.org/2001/XInclude" id="prefs-tag-color">
3896
3975
<title><color></title>
4243
4322
configuration dialog.</entry>
4325
<entry valign="top">increment</entry>
4326
<entry valign="top">float</entry>
4327
<entry valign="top">1.0</entry>
4328
<entry valign="top">The increment rate when the spin button's
4329
arrows are activated.</entry>
4246
4332
<entry valign="top">label</entry>
4247
4333
<entry valign="top">string</entry>
4248
4334
<entry valign="top"/>
4250
4336
configuration dialog.</entry>
4339
<entry valign="top">max</entry>
4340
<entry valign="top">float</entry>
4341
<entry valign="top">9999.0</entry>
4342
<entry valign="top">The maximal value allowed.</entry>
4253
4345
<entry valign="top">min</entry>
4254
4346
<entry valign="top">float</entry>
4255
4347
<entry valign="top">0.0</entry>
4256
4348
<entry valign="top">The minimal value allowed.</entry>
4259
<entry valign="top">max</entry>
4260
<entry valign="top">float</entry>
4261
<entry valign="top">9999.0</entry>
4262
<entry valign="top">The maximal value allowed.</entry>
4511
4598
configuration dialog.</entry>
4601
<entry valign="top">increment</entry>
4602
<entry valign="top">integer</entry>
4603
<entry valign="top">1</entry>
4604
<entry valign="top">The increment rate when the spin button's
4605
arrows are activated.</entry>
4514
4608
<entry valign="top">label</entry>
4515
4609
<entry valign="top">string</entry>
4516
4610
<entry valign="top"/>
4518
4612
configuration dialog.</entry>
4521
<entry valign="top">min</entry>
4522
<entry valign="top">integer</entry>
4523
<entry valign="top">0</entry>
4524
<entry valign="top">The minimal value allowed.</entry>
4527
4615
<entry valign="top">max</entry>
4528
4616
<entry valign="top">integer</entry>
4529
4617
<entry valign="top">9999</entry>
4530
4618
<entry valign="top">The maximal value allowed.</entry>
4621
<entry valign="top">min</entry>
4622
<entry valign="top">integer</entry>
4623
<entry valign="top">0</entry>
4624
<entry valign="top">The minimal value allowed.</entry>
4991
<section xmlns:xi="http://www.w3.org/2001/XInclude" id="prefs-tag-toggle">
4992
<title><toggle> <emphasis>[new in 0.36.2]</emphasis></title>
4994
<para>A toggle setting. Its representation is a toggle button widget
4995
with items defined by <link linkend="prefs-tag-item"><item></link>
5002
<imagedata fileref="gfx/prefs-toggle" format="PNG"/>
5008
<section><title>Attributes</title>
5010
<informaltable frame="topbot">
5017
<entry>Default Value</entry>
5018
<entry>Description</entry>
5024
<entry valign="top">bind</entry>
5025
<entry valign="top">string</entry>
5026
<entry valign="top"/>
5027
<entry valign="top">The name of the variable or property to which the
5028
configuration element is bound.</entry>
5031
<entry valign="top">callback</entry>
5032
<entry valign="top">function</entry>
5033
<entry valign="top"/>
5034
<entry valign="top">A callback function which is called every time
5035
the value changes. The callback takes the name of the bound
5036
property and the new value as arguments.</entry>
5039
<entry valign="top">enabled</entry>
5040
<entry valign="top">boolean</entry>
5041
<entry valign="top">true</entry>
5042
<entry valign="top">Whether the config item is enabled. Disabled items
5043
appear greyed out.</entry>
5046
<entry valign="top">help</entry>
5047
<entry valign="top">string</entry>
5048
<entry valign="top"/>
5049
<entry valign="top">The tooltip text for the element in the
5050
configuration dialog.</entry>
5053
<entry valign="top">label</entry>
5054
<entry valign="top">string</entry>
5055
<entry valign="top"/>
5056
<entry valign="top">The label text for the element in the
5057
configuration dialog.</entry>
5060
<entry valign="top">items</entry>
5061
<entry valign="top">tuple</entry>
5062
<entry valign="top"/>
5063
<entry valign="top">The items which are children of an toggle can be accessed via this
5064
variable. You will get a list of tuples in the form of
5065
(label, value).</entry>
5076
<section><title>Examples</title>
5078
<programlisting><![CDATA[
5079
<toggle id="mytoggle" label="Borders" bind="mytoggle" enabled="True" >
5080
<item label="Left" value="left"/>
5081
<item label="Right" value="right"/>
5082
<item label="Top" value="top"/>
5083
<item label="Bottom" value="bottom"/>
5085
]]></programlisting>
4897
5090
<section xmlns:xi="http://www.w3.org/2001/XInclude" id="prefs-tag-unit">
4898
5091
<title><unit></title>
4993
5184
configuration dialog.</entry>
5187
<entry valign="top">increment</entry>
5188
<entry valign="top">float</entry>
5189
<entry valign="top">1.0</entry>
5190
<entry valign="top">The increment rate when the spin button's
5191
arrows are activated.</entry>
4996
5194
<entry valign="top">label</entry>
4997
5195
<entry valign="top">string</entry>
4998
5196
<entry valign="top"/>
5000
5198
configuration dialog.</entry>
5201
<entry valign="top">max</entry>
5202
<entry valign="top">float</entry>
5203
<entry valign="top">9999.0</entry>
5204
<entry valign="top">The maximal value allowed.</entry>
5003
5207
<entry valign="top">min</entry>
5004
5208
<entry valign="top">float</entry>
5005
5209
<entry valign="top">0.0</entry>
5006
5210
<entry valign="top">The minimal value allowed.</entry>
5009
<entry valign="top">max</entry>
5010
<entry valign="top">float</entry>
5011
<entry valign="top">9999.0</entry>
5012
<entry valign="top">The maximal value allowed.</entry>