Wmcalc 0.3 review
DownloadWmcalc is simple little application that I am writing
|
|
Wmcalc is simple little application that I am writing. If you're not familiar with these windowmanagers, check them out in the links section. Of course, it should work in just about any window manager.
Wmcalc is a 64x64 pixel application that performs all the functions (and eventually more) of a simple four function calculator. It includes a 10 digit alpha-numeric display, and twenty buttons for user input. Clicking on the display will clear the calculator.
Installation:
Untar the file:
tar xvzf wmcalc-0.3.tar.gz
CD to source directory:
cd wmcalc-0.3
Compile it:
make clean; make
Copy the config file:
cp .wmcalc ~
Put the executable somewhere in your path:
mv wmcalc /usr/local/bin (or anyhere in your path)
Run it:
wmcalc &
Grab the appicon and move it to the dock.
Change the settings to start with Windowmaker
Afterstep Wharf 1.6.??: (I don't use Afterstep anymore, so...)
*Wharf wmcalc -Swallow "wmcalc" wmcalc &
***Note***:
The appicon only has a two pixel border where you can grab and move it. It is easiest to grab along the bottom edge.
If make doesn't work, you may need to fiddle with the settings in the Makefile.
Tested on: (Well, it runs, I don't know if 'Tested' is quite right...)
WindowMaker-0.62.1
X Clients: Red Hat 6.0, Kernel 2.2.8
Usage:
usage: wmcalc [-g geometry] [-d dpy] [-v] [-f configfilename] [-h]
-g < geometry > Window Geometry - ie: 64x64+10+10
-d < display > Display - ie: 127.0.0.1:0.0
-v Verbose Mode.
-h Help. This message.
-f < filename > Full path to configuration file to use.
Buttons are defined as:
____________________
| x00 | where: x = 1 for Left Mouse Button
| 0 1 2 3 4 5 6 7 8 9| x = 2 for Middle Mouse Button
|--------------------| x = 3 for Right Mouse Button
|x01 x02 x03 x04 x05 |
|x06 x07 x08 x09 x10 | Note: the numbers 0..9 are the indicators
|x11 x12 x13 x14 x15 | for memory cells 0..9 respectively
|x16 x17 x18 x19 x20 |
--------------------
Button Functions:
100 Reinitialize the calculator, and both Registers
(Clear All)
200 Clear all the memory registers (0..10)
300 Clear the current number being entered only
x11 Start a program defined by CalcStart variable in config file
1yy Perform function shown on button
2yy Recall number from memory location [0-9] to display
for calculation
if yy = 2,3,4, 7,8,9, 12, 13, 14, 17
otherwise, can run a user-defined function (not implemented)
3yy Store Displayed number in memory location [0-9]
if yy = 2,3,4, 7,8,9, 12,13,14, 17
otherwise, can run a user-defined function (not implemented)
1xx Hopefully the other functions are obvious from their
button graphics.
What's New in This Release:
Added "Locked" memory capabilities via config file
General Code clean-up
Keyboard Support - may not be platform independent
Wmcalc 0.3 search tags