home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 64
/
af064sub.adf
/
TinyClock
/
TinyClock.doc
< prev
next >
Wrap
Text File
|
1994-07-29
|
9KB
|
286 lines
TinyClock v2.0
by Mika "MKsa" Kuulusa
Original Source by Martin W. Scott
Copyright (C) Martin W. Scott & Mika Kuulusa, 1993.
Released March '93
This is Freeware.
[NOTE: Requires OS 2.04 or higher]
DISCLAIMER
The programs and files in this distribution are freely distributable, but
are also Copyright (C) Martin W. Scott & Mika Kuulusa. They may be freely
distributed as long as no more than a nominal fee is charged to cover time
and copying costs. No commercial usage is permitted without written
permission from the authors. Everything in this distribution must be kept
together, in original unmodified form.
The above is generally known as FreeWare.
INTRODUCTION
Martin W. Scott:
There are far too many clock programs for the Amiga -- it seems that
no-one likes what's on offer and so writes their own, and places it
in the Public Domain. And good, too: we have a LOT of choice.
But what about ANALOG clocks? Well, there's Commodore's clock, but
that uses over 40K memory and too much of the processor. Then there's
WizardClock, but again that is big, and not resizeable (though it is
neat, and has lots of nice extras). And lastly (as far as I know)
there's FAClock, but the less said about that the better...
But, like so many before me, the clock I wanted wasn't there. One that
came close was a small analog clock by Matt Dillon. It was rather too
limited though. However, using that source as a starting point, I
produced TinyClock. Much has been added, for both aesthetics and
functionality.
My aim is to make TinyClock the clock you want, as ubiquitous as
xclock on Sun Workstations.
I (Mika Kuulusa):
When I first got TinyClock, I was stunned. I just loved the
functionality of the program. But... I didn't like the look of the
clock.
So, I emailed Martin and asked for the sources to do some
enhancements. I got them and TinyClock v2.0 was the result.
I hope prefer the new hands (triangles) to the old 'lines'.
Oh and there is more to come...
DESCRIPTION
TinyClock is an Analog-type clock Commodity for Amigas with os2.0 or
higher. Here's a rundown of TinyClock's features:
(* = new/enhanced feature compared to TinyClock v1.x)
- Resizeable ANALOG display
* Enhanced hands (drawn as triangles)
* Enhanced pips (drawn as filled rectangles or circles)
* Preferences GUI (Graphic User Interface)
- An alarm facility
* Optionally chirps every half-hour, and twice on the hour
* Optionally moves window to front or to back of other
windows automatically
* Colors used in clock rendering can be changed as desired.
Colors now chosen from palette of the screen.
- Can save position,size etc. for subsequent runs
* Whole window is a 'drag bar', except right-hand and bottom
edges, which act as a 'sizing gadget'. There is FreezeWindow
toggle to disable these gadgets.
* Displays day,date and alarm ON/OFF status in MenuBar when
window is active
- WB 2.0 'icon look', with menus that use screen's font
- Uses tiny amount of processor (only redraws when necessary)
* Is a Commodity
* AGA and OS3.0 NewLookMenus supported
My aim is to make TinyClock The clock you want, as ubiquitous as
xclock on Sun Workstations.
RUNNING TINYCLOCK
From Workbench:
Double click the TinyClock icon.
From CLI:
Give the command 'TinyClock' Command-line options are't used.
If you want it go backround use command 'run >NIL: TinyClock'.
You may want to start TinyClock in startup. If you do, just drag the
TinyClock icon to WBStartup drawer and it will be run every time
you boot.
USAGE
As mentioned in the 'features' list, almost the whole window is a 'drag bar'
(this is like some programs' iconified states). The picture below shows what
parts of the window do what:
+-------------------------+-+
| | |
| | |
| Click here to | <---- Click in this region
| | |
| POSITION | | to RESIZE window
| | |
| window | |
| | |
| | |
+-------------------------+ |
+---------------------------+
Menus Self-explanatory, I hope. Here's a quick rundown though...
+--- Shortcut
MENUS: | +--- Description
| |
Project:
WindowToFront F Moves window to front of all other windows
WindowToBack B Moves window to back of all other windows
Set Prefs... P Modify current Preferences
Set Colors... C Choose colors from the palette
----------------
Reset Prefs R Reloads previously saved Preferences
Save Prefs S Save current Preferences
About... ? Displays a small 'about' message
Quit Q Terminate program
Alarm:
Alarm O Togglesalarm ON/OFF. See NOTE !
Set Alarm... A Pops up a requester letting you set alarm time
(NOTE1: the preferences are saved to "ENVARC:TinyClockPrefs", it will save
all current properties, except Alarm ON/OFF status)
(NOTE3: Alarm is ON if there is a ' * ' after the date in the menubar.
Alarm is OFF if there isn't a ' * ' in the menubar.)
(NOTE3: Alarm requester uses a 24-hour clock, with hour 00 meaning midnight.)
PREFERENCES GUI:
AutoMove
Off no automatic moves
AutoGoFront keep window always in the front
AutoGoBack keep window always in the back
BevelBox
Off no bevel box at all
Box Up lifted look
Box Down recessed look
Chirp
Off no beeps used
On Hour make 2 beeps on hour
On Hour&Half make 2 beeps on hour and 1 beep on half
FreezeWindow set window drag and size gadgets on/off
CenterPip draw the tiny pip to the centre of the clock
Hotkey keycode for clock window popup
Set Colors... select colors
CAVEATS
Since TinyClock updates once every four seconds, it will take (at most)
that long for its window to come to the front/back, and for the display
to reflect a new system time. However, the display will update on the
minute, not a few seconds either side.
Commodity Active/InActive commands only enable/disable the HotKey of the
clock.
AUTHORS
TinyClock is written in C and compiled with SAS/C v6.2. The ancient
source code for clock was (C) Matt Dillon (although it's now
unrecognisable). Thanks to Martin W. Scott for letting me enhance
his magnificent clock! Thanks also to Michael 'Dense' Lorant for
A4000 betatesting and all the others dudez on #amiga :)
Martin wants to thank Mike Meyer et al. for Mg3 (the best pd text editor)
and Steve Koren for SKsh. GadToolsBox v1.3 generated the alarm window and
gadgets - thanks to Jaba Development for a great program.
Here are the addresses where we can be reached. I'm always happy to
receive _gifts_, bug-reports, comments or suggestions for enhancement of
TinyClock. Martin is busy finishing his studies, so I am the first port
of call then.
My address: Mika Kuulusa
Yliopistonkatu 46B49
33100 Tampere
Finland
Telephone: +358-31-236 304
Email: k114636@cc.tut.fi
I (Mika Kuulusa) can be also reached from IRC (Internet Relay Chat)
as 'MKsa' ...daily =)
Enjoy!
Mika Kuulusa & Martin W. Scott
Ps. IF YOU LIKE THIS CLOCK A LOT, SEND ME A POSTCARD!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HISTORY
v2.0 - major face-lift (hands now drawn as filled triangles)
- a nifty gadtools.library preferences GUI
- runs now as Commodity (there is a HotKey for clock popup)
- freezewindow option (drag & size gadgets disabled)
- if alarm is ON, you can see it as '*' in the MenuTitle
- chirp occurrences modified (Off/On Hour/On Hour&Half)
- now optionally pops window to back if it is in front of
other window (automove)
- colors are now chosen from palette of the screen
- pips drawn as scaled rectangles or circles
- saves Preferences now to 'ENVARC:TinyClockPrefs'
- AGA and OS3.0 NewLookMenus supported
v1.04 - alarm window now has 'Time now' gadget to fill in current time.
- increased audio priority of beep, so sound gets through when it
needs to (unless programs ask for the audio.device with a higher
priority than they ought too...).
v1.03 - now has alarm facility.
- fixed small bugette whereby minute hand was not pointing to
the exactly ideal place -- now you can read-off the minutes
fairly accurately with a small window.
v1.02 - now optionally pops its window to front when obscured; thus,
v1.01 and below .config files will not be loaded -- sorry...
v1.01 - now sets its priority to 10, to update on time regardless
of heavy CPU load.
- improved beep sound (doesn't 'grate' so much now).
v1.0 - initial release.