2001-08-09 Richard Hestilow <hestilow@ximian.com> * Makeflie.am (EXTRA_DIST): Install all pixmaps. (pixmaps_DATA): Add blank-screen.png. * pref-file.c: Replace "programs" value with a regenerated string. (print_aligned_row): Added. (print_list_to_str): Added. * preferences.h (Screensaver): Add new fields "filename", "compat_command_line", "fakepreview", and "fakes", to deal with the new xml storage. (Preferences): Add new fields "savers_hash" and "invalidsavers". * preferences.c (screensaver_list_prepend_dir): Added. (screensaver_cmp_func): Added. (screensaver_list_load): Added. (preferences_new): Initialize savers_hash. (clean_saver_list): Added. (preferences_load): Load screensavers from xml. (parse_arg_default): Added. (screensaver_read_xml): Updated for the new format. (screensaver_new_from_file): Added. * prefs-widget.c (double_click_cb): Added. (): Remove right click menu, add double click handler. (model_is_cell_editable): Fix for etable bug. (random_timeout_cb): Avoid vidwhacker and webcollage. * preview.c: Optionally show fakepreview if set, and deal with compat_command_line, and refresh pixbufs. (command_exists): Renamed to rc_command_exists. * rc-parse.c: (parse_screensaver_list): Merely update the existing entries, via the provided hash. * screensaver-prefs-dialog.c (get_argument_data): Just find the xml file using ::filename. * screensavers/magic.pl.in: Added. * screensavers/Makefile.am: Generate .xml.h files for translators, and install all .xml files and .png files, and run magic.pl on make install.
75 lines
No EOL
3 KiB
XML
75 lines
No EOL
3 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<screensaver name="ant" _label="Ant">
|
|
<command arg="-root"/>
|
|
|
|
<!-- This is an XLOCKMORE based hack -->
|
|
|
|
<!-- Specific options for XLOCKMORE program ... -->
|
|
|
|
<boolean id="sharpturn" _label="Sharp turns"
|
|
arg-set="-sharpturns" test="sharpturns"/>
|
|
<boolean id="truchet" _label="Truchet lines"
|
|
arg-set="-truchet" test="truchet"/>
|
|
|
|
<!-- Generic XLOCKMORE options... -->
|
|
|
|
<number id="speed" _label="Speed" _low-label="Slow" _high-label="Fast"
|
|
type="slider" low="0" high="80000" arg="-delay %"
|
|
from-cli-conv="80000 - var" to-cli-conv="80000 - var"
|
|
default="79000"/>
|
|
<number id="cycles" _label="Timeout" _low-label="Small" _high-label="Large"
|
|
type="slider" low="0" high="8000000" arg="-cycles %"
|
|
default="40000"/>
|
|
|
|
<hgroup>
|
|
<select id="rand_count">
|
|
<option id="rand" _label="Random"/>
|
|
<option id="specific" _label="Specific"
|
|
test="count" enable="count"/>
|
|
</select>
|
|
<number id="count" _label="number of Ants"
|
|
type="spinbutton" low="0" high="100" arg="-count %"
|
|
default="1"/>
|
|
</hgroup>
|
|
|
|
<hgroup>
|
|
<select id="rand_size">
|
|
<!-- <option id="rand" _label="Random size upto" enable="neg_size"/> -->
|
|
<option id="rand" _label="Random size upto"/>
|
|
<option id="specific" _label="Specific size of"
|
|
test="size > 0" enable="pos_size"/>
|
|
</select>
|
|
<!-- **** Need to be able to say "if rand: -size" -->
|
|
<number id="size"
|
|
type="spinbutton" low="0" high="18" arg="-size %"
|
|
default="8"/>
|
|
</hgroup>
|
|
|
|
<number id="ncolours" _label="Number of colours"
|
|
_low-label="Two" _high-label="Many"
|
|
type="slider" low="2" high="16384" arg="-ncolors %"
|
|
default="64"/>
|
|
<select id="neighbors">
|
|
<option id="rand" _label="Randomize"/>
|
|
<option id="three" _label="Three Sided cells"
|
|
arg-set="-neighbors 3" test="neighbors = 3"/>
|
|
<option id="four" _label="Four Sided cells"
|
|
arg-set="-neighbors 4" test="neighbors = 4"/>
|
|
<option id="six" _label="Six Sided cells" enable="sharpturn"
|
|
arg-set="-neighbors 6" test="neighbors = 6"/>
|
|
<option id="nine" _label="Nine Sided cells"
|
|
arg-set="-neighbors 9" test="neighbors = 9"/>
|
|
<option id="twelve" _label="Twelve Sided cells" enable="sharpturn"
|
|
arg-set="-neighbors 12" test="neighbors = 12"/>
|
|
</select>
|
|
|
|
<select id="use_color">
|
|
<option id="mono" _label="Monochrome" arg-set="-mono" test="mono"/>
|
|
<option id="color" _label="Full Color" enable="ncolours"/>
|
|
</select>
|
|
|
|
|
|
|
|
<_description>A cellular automaton that is really a two-dimensional Turing machine: as the heads (``ants'') walk along the screen, they change pixel values in their path. Then, as they pass over changed pixels, their behavior is influenced. Written by David Bagley.</_description>
|
|
</screensaver> |