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

util/time/DigiClock.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Clock for the Workbench titlebar
Author:Alex Carmona
Uploader:Alex Carmona <AmigaOne theworld net>
Type:util/time
Version:1.3
Architecture:ppc-amigaos >= 4.0.5
Date:2011-02-26
Download:http://aminet.net/util/time/DigiClock.lha - View contents
Readme:http://aminet.net/util/time/DigiClock.readme
Downloads:1314

DigiClock is a simple clock I wrote as a replacement for the Clock.docky which
was using too many CPU cycles for my taste.

My main goal was to make it look and behave exactly like the Clock.docky I had
on a subdock next to the screen depth gadget, which blended nicely with the
Workbench titlebar gradient.

I then added a few features so that other users can customize it according to
their own taste and GUI settings.


It features...

- Clock with standard HH:MM:SS time or localized time
- Lowest CPU load possible (approx. 0.02% on G4 at 800MHz)
- Can be launched on any public screen
- Automatically adjusts its height to match the screen titlebar
- Automatically positions itself next to the screen depth gadget
- Shadow under font for better contrast
- Displays the localized day and date on the titlebar
- User-defined font name and size
- User-defined vertical offset for font with odd sized digits
- User-defined window position to override the automatic placement
- User-defined text/shadow/background/gradient colors
- User-defined external command on double-click

===============================================================================

HISTORY:

v1.3 (02.25.2011)
- Now the background can be shaded using alpha-blending
- Added Transparent ToolType to have a clock without shading on the titlebar
- Now the clock hides automatically when IPrefs needs to temporarily close the
  screen, so it's not necessary to quit it to change some screen settings
- Fixed typo which could have caused a crash if the window couldn't be opened

v1.2 (01.30.2011)
- Now the default time format is HH:MM:SS while the date remains localized
- Added LocaleTimeFormat ToolType, to enable localized time format if desired
- Fixed time string output, it was drawing 8 chars even if the time was shorter

v1.1 (01.26.2011)
- Added PubScreen ToolType to open the clock on any public screen
- The window is now inactive on launch (was hiding WB title after WBStartup)
- Date string is now localized according to the user's locale settings
- Switched from libc to OS functions for time/date functions
- Optimized timer code to further reduce CPU load, now it's around 0.02% :-)
 
v1.0 (16.10.2010)
- First public release
 
===============================================================================

Thanks to:
René W. Olsen for the help implementing the Timer & MsgPort for the clock loop
Steven Solie for helping me sort out why it crashed on SAM
Mason (Martin Merz) for the new DigiClock icon (and all the other icons)

===============================================================================

Enjoy!

--
Amiga... Duh!


Contents of util/time/DigiClock.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[unknown]                10600   12402  85.5% -lh5- 504b Oct 18 03:45 Clock.info
[unknown]                 8451   76674  11.0% -lh5- 59d2 Feb 25 07:24 Clock/DigiClock
[unknown]                 4283   12811  33.4% -lh5- bea6 Feb 25 07:23 Clock/DigiClock.c
[unknown]                10901   12358  88.2% -lh5- 218e Oct 18 03:45 Clock/DigiClock.c.info
[unknown]                18886   23489  80.4% -lh5- ed4b Feb 25 08:01 Clock/DigiClock.info
[unknown]                 2860    6586  43.4% -lh5- e309 Feb 25 07:59 Clock/DigiClock.readme
[unknown]                10315   12232  84.3% -lh5- c995 Oct 18 03:44 Clock/DigiClock.readme.info
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         7 files   66296  156552  42.3%            Feb 26 19:09

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>