AminetAminet
Search:
84782 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/gui/gauge.lha

Mirror:Random
Showing: ppc-morphos icongeneric icon
No screenshot available
Short:Create a progress requester, as in the AUISG
Author:"Olaf `Olsen' Barthel" olsen at sourcery.han.de
Uploader:
Type:dev/gui
Architecture:m68k-amigaos
Date:1997-01-27
Download:dev/gui/gauge.lha - View contents
Readme:dev/gui/gauge.readme
Downloads:674

   PURPOSE
	The "Amiga User Interface Style Guide" contains an example of how
	a progress requester should look like (page 29), but this example
	has no "teeth". It is just a visual cue, you still have to implement
	the requester yourself. Around Christmas Day, the issue was brought
	up in comp.sys.amiga.programmer how to program these progress
	requesters. This is my attempt at solving the problem.

   GOALS
	- The progress requester should be entirely self-contained and
	  reentrant.
	- It should be simple to find out if the user has hit the
	  "Stop" button.
	- Creation and management of the requester should follow a
	  familiar model.
	- The display should be font sensitive.

   IMPLEMENTATION
	The implementation consists of a set of BOOPSI objects, which are
	linked together, plus a display element for the gauge. This is
	similar to how Intuition builds system requesters and has the
	advantage of delegating the work load of refreshing and maintaining
	the display to Intuition. The application to create the display
	just has to listen for the user to hit the "Stop" button, it need
	not worry about housekeeping work.

	The gauge creation code is reentrant, it was written with SAS/C
	in mind. The only compiler dependant part is the custom class
	dispatcher. You must initialize IntuitionBase, GfxBase,
	UtilityBase and SysBase for the gauge code to work.

   COPYRIGHT AND USAGE RESTRICTIONS
	This implementation is Copyright © 1997 by Olaf `Olsen' Barthel.
	It is freely distributable. I place no restrictions on its usage.
	You may use this code in commercial software or shareware programs
	without having to pay royalties to me. An acknowledgement would
	still be nice, though :^) If you find bugs in the code or make
	enhancements, please notify me. I would like to keep this code
	updated, so everyone will be able to take advantage of it.

	My electronic mail address:

	    olsen@sourcery.han.de

	My postal address:

	    Olaf Barthel
	    Brabeckstrasse 35
	    D-30559 Hannover
	    Federal Republic of Germany


Contents of dev/gui/gauge.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                11153   36361  30.7% -lh5- 4d24 Jan 26  1997 gauge.c
[generic]                 3915   11647  33.6% -lh5- 6084 Jan 26  1997 gauge.doc
[generic]                  537    1270  42.3% -lh5- 0164 Jan 26  1997 gauge.h
[generic]                  128     205  62.4% -lh5- 93ab Jan 26  1997 smakefile
[generic]                 6257   12148  51.5% -lh5- 43f5 Jan 26  1997 test
[generic]                  764    1631  46.8% -lh5- 99e8 Jan 26  1997 test.c
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         6 files   22754   63262  36.0%            Jan 27  1997
Page generated in 0.01 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>