~ubuntu-branches/ubuntu/quantal/openmotif/quantal

« back to all changes in this revision

Viewing changes to demos/unsupported/dogs/README

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Bauer
  • Date: 2010-06-23 12:12:31 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100623121231-u89gxdp51sg9wjj2
Tags: 2.3.0-1
* New Maintainer (Closes: #379258) 
* Acknowledge NMU changes
* New upstream release (Closes: #494375)
* Get rid of security patches as they are already part of new upstream
  release (00-xpmvuln.openmotif.patch, 342092-CVE-2005-3964.patch)
* Bump Standards to 3.8.4
* Added {misc:Depends} to make the package lintian cleaner
* Fix weak-library-dev-dependency by adding ${binary:Version}) for the
  -dev Package of openmotif
* Let package depend on autotools-dev to use newer autotools-helper-files
* Work around an autoconf-bug (Gentoo-Bug #1475)
* Added Client-side anti-aliased fonts support via XFT
* Added UTF-8 and UTF8_STRING atom support
* Ability to show text and pixmaps in Label, LabelGadget and all
  derived widgets
* Support of PNG/JPEG image formats in the same way as XPM is supported
* Increase FILE_OFFSET_BITS to 64 to show files >2GB in file-selector
  Idea taken from Magne Oestlyngen (Closes: #288537)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $XConsortium: README /main/3 1996/07/15 14:11:26 drk $ */
 
2
 
 
3
This directory contains the sources of the Dog widget, the Square widget,
 
4
and the dogs demo.
 
5
 
 
6
DOG WIDGET
 
7
----------
 
8
The Dog widget demonstrates how to subclass a primitive widget which
 
9
will remain binary compatible with future versions of Motif. It uses
 
10
XmResolvePartOffsets(), and associated macros, and implements all
 
11
the recommendations in the XmResolvePartOffsets manpage.
 
12
 
 
13
The Dog widget is a subclass of XmPrimitive. It can bark and wag its
 
14
tail. If you want more exotic tricks - feel free to subclass it, or
 
15
replace up.bm, down.bm and bark.bm with more interesting bitmaps.
 
16
 
 
17
It has the following resources:
 
18
 
 
19
        DogNwagTime - time in milliseconds between each wag.
 
20
        DogNbarkTime - time in milliseconds the bark graphic is displayed.
 
21
        DogNbarkCallback - callback called by the bark action.
 
22
 
 
23
It has the following translations:
 
24
 
 
25
        osfActivate/Return/Space/MB1 = Bark
 
26
        W/MB2 = Wag tail.
 
27
        S/Shift-MB2 = Stop wagging tail.
 
28
        osfHelp = Help
 
29
 
 
30
SQUARE WIDGET
 
31
-------------
 
32
The Square widget demonstrates how to subclass a constraint widget which
 
33
will remain binary compatible with future versions of Motif. It uses
 
34
XmResolveAllPartOffsets(), and associated macros, and implements all
 
35
the recommendations in the XmResolveAllPartOffsets manpage.
 
36
 
 
37
The Square Widget is a subclass of XmBulletinBoard. It forces its children
 
38
to be square using a constraint resource.
 
39
 
 
40
It has one resource:
 
41
 
 
42
        SquareNmajorDimension - determines which dimension will be used
 
43
                                for the new size of the child. Values are
 
44
                                SquareWIDTH or SquareHEIGHT.
 
45
        
 
46
It has one constraint resource:
 
47
 
 
48
        SquareNmakeSquare -     determines whether the child is forced
 
49
                                to be square or set to its preferred size.
 
50
 
 
51
 
 
52
DOGS DEMO
 
53
---------
 
54
The dogs demo uses the Dog and Square widgets. It illustrates how
 
55
to incorporate new widgets into UIL source, using the user_defined
 
56
function.
 
57
 
 
58
It allows you to dynamically change the DogNwagTime and SquareNmakeSquare
 
59
resources.
 
60
 
 
61
If you have a machine with any sound generation features at all, you may
 
62
want to change the bark callback to something better than XBell().
 
63