• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

example1/H03-May-2022-346223

example2/H09-Jan-2006-370293

xpm/H03-May-2022-

COPYINGH A D01-May-200217.6 KiB341281

ChangelogH A D09-Jan-20064.5 KiB11097

Changelog.JasonH A D05-Jan-20035.4 KiB155105

MakefileH A D03-May-2022770 3923

READMEH A D15-Sep-20033.1 KiB6758

colors.hH A D05-Jan-20031.5 KiB5544

wmapp.ccH A D03-May-202211.3 KiB385256

wmapp.hH A D09-Jan-20064.4 KiB181130

wmbutton.ccH A D05-Jan-20031.3 KiB6049

wmbutton.hH A D05-Jan-2003368 1913

wmcallback.ccH A D05-Jan-2003577 3527

wmcallback.hH A D09-Jan-20062.9 KiB11991

wmcanvas.ccH A D05-Jan-20034.1 KiB161122

wmcanvas.hH A D05-Jan-20032.4 KiB6948

wmclickable.hH A D05-Jan-2003479 2214

wmellipse.ccH A D15-Sep-20031.8 KiB6049

wmellipse.hH A D05-Jan-2003607 2212

wmframe.ccH A D05-Jan-20038.3 KiB304232

wmframe.hH A D05-Jan-20033.4 KiB11060

wmhistory.ccH A D05-Jan-20031.8 KiB6856

wmhistory.hH A D05-Jan-20032 KiB7245

wmimage.ccH A D05-Jan-20032.5 KiB9266

wmimage.hH A D05-Jan-20031.3 KiB5338

wmled.ccH A D05-Jan-2003249 138

wmled.hH A D10-Dec-2002750 3522

wmmeter.hH A D10-Dec-20021.3 KiB5839

wmmeterbar.ccH A D15-Sep-20032.6 KiB8170

wmmeterbar.hH A D10-Dec-20021.2 KiB4828

wmslider.ccH A D15-Sep-20031.1 KiB4333

wmslider.hH A D10-Dec-2002713 3322

wmtextbar.ccH A D09-Jan-20062 KiB6649

wmtextbar.hH A D10-Dec-20021.3 KiB5840

wmwidget.ccH A D05-Jan-20032.1 KiB10083

wmwidget.hH A D09-Jan-20069.2 KiB379271

wmwindow.ccH A D03-May-20222.9 KiB11675

wmwindow.hH A D05-Jan-20032.9 KiB13189

xwrapper.ccH A D15-Sep-200310.1 KiB328280

xwrapper.hH A D03-May-20224.9 KiB14296

README

1WMApp: version 0.0.4.2
2Copyright (C) 2001-2003 Kevin and Jason McCarty <kmccarty@princeton.edu>
3			and others (see code for details)
4Licensed under the GNU GPL (see COPYING file).
5
6This is WMApp, a C++ graphics library written exclusively for developing
7WindowMaker dockapps.  If you like dockapps, but you also like C++ and you
8are tired of trying to work with the code in wmgeneral.c, this library is
9for you!
10
11For an example program based on this library, check out the source code
12in the example directory.  This program is long on eyecandy and short
13on usefulness, but it gives an idea of what is possible.  "make wmexample"
14to build it.  A second example program may be obtained with "make wmatc".
15
16Features
17--------
18- Dockapp windows are set up automatically for you.
19- State model: a dockapp may be in one of several states ("windows"), which
20  can each look different and have different functionality
21- On-the-fly clipping; no more masking xpms needed!
22- Simple callback model: attach as many callback functions to each button
23  as desired.  Callbacks can take arbitrary data as an argument, change
24  the properties of other widgets, and even switch between dockapp states.
25- You may automatically execute a list of functions (different for each window)
26  at set intervals of time.  Useful for clocks, CPU load displays, etc.
27- Numerous widgets, all with the familiar dockapp look.  The color scheme
28  of many may be changed.  Many common WindowMaker dockapps could already
29  be rewritten to use this library.
30
31Widgets
32-------
33- Text box for conveying information; comes with three font sizes.
34- Progress meter to show changes in a quantity, e.g. percent download.
35- History display to show how a quantity changes over time, e.g. CPU load.
36- Buttons (optionally with an image) that can have callback functions set
37  and can be activated and deactivated.
38- Images that may display an XPM icon.
39- Glowing LED-type things that may be in one of four states:
40  off, green, yellow, and red.
41- Frames in which widgets (including other frames) may be nested.  Frames
42  may have a border and / or padding between their contents.
43- Sliders that may be moved up and down with the mouse wheel
44  (or by clicking) to set a value.
45- Canvas that may be drawn upon with various drawing functions.
46
47Most of the above widgets may also inherit from one or more of the following
48for additional features:
49
50- Elliptical widget that clips contents to an ellipse
51- Callback widget that can execute actions when clicked upon
52
53Limitations
54-----------
55- Still not guaranteed not to leak memory or X resources
56- API is not guaranteed to be backwards compatible when it changes
57  (note the version number)
58- The executables produced with this library are several times larger
59  than those created using wmgeneral.c.
60- WMApp does not support dynamic widget resizing.
61- Text box fonts do not have lowercase letters.  (They can easily be
62  implemented -- just edit the character maps in the xpm directory --
63  but I think they would look quite bad due to the small fonts.)
64- Changing the color of the fonts is not supported at runtime.  (You can
65  of course do this at compile time by editing the font XPMs.)
66
67