[lcdproc] menus for clients

William W. Ferrell wwf@frontierdev.com
Tue, 27 Mar 2001 09:50:12 -0700


--Clx92ZfkiYIKRjnr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

--- joris@robijn.net's mailer spewed these beefy chunks ---
> OK here's the promised thread. It's about the (long existing) idea of=20
> giving the clients their own menu.=20

I remember this old thread :)

> Something like: from the main menu you choose "clients", and then a=20
> list of clients that have registered a menu shows up. For example=20
> "memsizes". You select "memsizes". Then the menu defined by memsizes=20
> shows up, with things like column order, sort order etc.
>=20
> We could make menu's by using the widget language like:
> --> CREATEMENUITEM SCREEN=3Ds1 TYPE=3Daction NAME=3D"play"
> <-- OK
> --> CREATEMENUITEM SCREEN=3Ds1 TYPE=3Daction NAME=3D"stop"
> <-- OK
> --> CREATEMENUITEM SCREEN=3Ds1 TYPE=3Daction NAME=3D"stop"
> <-- ERROR CODE=3Dexists TEXT=3D"This item already exists"
> --> CREATEMENUITEM SCREEN=3Ds1 TYPE=3Daction NAME=3D"sort/name"
> <-- OK
> --> CREATEMENUITEM SCREEN=3Ds1 TYPE=3Daction NAME=3D"sort/size"
> <-- OK
> --> CREATEMENUITEM SCREEN=3Ds1 TYPE=3Daction NAME=3D"sort/time"
> <-- OK
> --> CREATEMENUITEM SCREEN=3Ds1 TYPE=3Dslider NAME=3D"volume"
> <-- OK
>=20
> Notice the submenu being created for "sort".
>=20
> When an item is selected the client receives messages like:
> <-- EVENT TYPE=3Dmenuaction SCREEN=3Ds1 NAME=3D"play"
> <-- EVENT TYPE=3Dmenuslider SCREEN=3Ds1 NAME=3D"volume" VALUE=3D34
>=20
> Removal of items with
> --> DELETEMENUITEM SCREEN=3Ds1 TYPE=3Daction NAME=3D"sort/name"
> <-- OK
> --> DELETEMENUITEM SCREEN=3Ds1 TYPE=3Daction NAME=3D"sort/size"
> <-- OK
> --> DELETEMENUITEM SCREEN=3Ds1 TYPE=3Daction NAME=3D"sort/time"
> <-- OK
> And the submenu is removed as well.
>=20
> or:
> --> ERASEMENU SCREEN=3Ds1
> <-- OK
> And all items are gone.
>=20
> --> ERASEMENU SCREEN=3Ds1 NAME=3D"sort"
> <-- OK
> to erase the sort submenu only.

This looks good; more stuff to add to the docs. Ugh. I *must* start
writing that stuff *very* soon now.

--
William W. Ferrell, Senior System Administrator, Global Crossing Ltd.
950 17th St Ste 2200, Denver, CO 80202   1.303.223.0564

Public key available:
  gpg --keyserver certserver.pgp.com --recv-key 7478FC7A

To live is always desirable.
		-- Eleen the Capellan, "Friday's Child", stardate 3498.9

--Clx92ZfkiYIKRjnr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjrAxMQACgkQgAeqhXR4/HpDcgCeP5psypwozW/JQCfPKFLhfNAS
tKMAn2igOQnVTVK7sq/MJkUP6Cq1ofwY
=RvlE
-----END PGP SIGNATURE-----


--Clx92ZfkiYIKRjnr
Content-Type: text/plain; charset=


-----------------------------------------------------------
To unsubscribe from this list send a blank message to
lcdproc-unsubscribe@lists.omnipotent.net
--Clx92ZfkiYIKRjnr--