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

util/wb/Hexaco_1.0.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Color values as hex/dec/... (MUI, +src)
Author:r-tea amiga pl (Artur r-tea Ostrowski)
Uploader:r-tea amiga pl (Artur r-tea Ostrowski)
Type:util/wb
Version:1.0
Requires:MUI 3.8+, lamp.mcc, at least 16 col WB screen, Newicons
Architecture:m68k-amigaos
Date:2017-08-17
Download:http://aminet.net/util/wb/Hexaco_1.0.lha - View contents
Readme:http://aminet.net/util/wb/Hexaco_1.0.readme
Downloads:297
I used to code simple HTML docs in CygnusED from time to time. And each time
I lacked something to adjust a colour and get its values or name easily and
quickly.
This is why I finally decided to write this tiny tool.
Hexaco needs MUI 3.8+ and Lamp.mcc.
On ECS/AGA machines it needs at least 16 colour Workbench to get the colorfield
activated otherwise it will show up blank. If you use FullPalette patch by
Massimo Tantignone then it's recomended to temporarily disable it to get the
Colorfield working.
*** It's very rough, early version thus it may cause unexpected issues ***

___QUICK DESCRIPTION OF WINDOW CONTENTS___
Cycle gadget:
-hex: hexadecimal representation of RGB colour values #RRGGBB (mostly used in
HTML)
-dec: decimal representation of RGB colour values R,G,B
-bin: binary representation of RGB colour values %RRRRRRRR,%GGGGGGGG, %BBBBBBBB
-bits: visual representation of RGB colour values (simply helps to imagine how
bytes look like)
HTML name: the HTML name of choosen colour (if exists). You can enter a name or
select one from the popup list.
"CtC" buttons: copy content of Text field to Clipboard (Copy to Clipboard)

---KEYBOARD USAGE___
- [TAB] and [RShift+TAB] to cycle through all window content
- [ENTER] to confirm content/open cycle gadget/press button
- [C] to copy hex/dec/bin content to Clipboard
- [Shift+C] to copy HTML name to Clipboard

___GUI SETTINGS VIA TOOLTYPES OR CLI/SHELL___
All ToolTypes/CLI parameters are of switch type. If one exist then switches
something on, if not then switches it off.
- HTML: appends HTML name text field
- BITS: appends lamps group
- KNOBS: changes sliders to knobs
- RGBLEFT: moves colour sliders from right side to left

In Shell/CLI type Hexaco ? for parameters description.

Program was written in AmigaE and compiled with EC 3.3a (AmigaOS/m68k).
Source with some coments included.
Praogram was created and compiled under MorphOS 3.9. Tested on MorphOS 3.9,
AmigaOS 3.1 m68k and AmigaOS 4.1.

NOTE! This is not good exapmle of building proper MUI application. In fact this
is the worst example of it :-) I used hooks instead of subclassing. This is
the easiest way for "sunday programmers" but remember: the worst way to buid
a serious MUI application, thus consider it as an example for very beginners.

Feel free to distribute the source code, share with it, do any changes as well
as copy all or parts of it. Just play with it and see how brilliant is MUI :-)

Please, let me know if you found it useful in any way, either if you have any
suggestions or comments. Would be nice to receive a grab of Hexaco's window
with your MUI's favourite prefs :-)

For those beginners who want to play with my lame code :-)
To compile the source just execute the compiler EC pointing the source code.
I.e.:
ec ram:hexaco.e

AmigaE's author: Wouter van Oortmerssen
MUI's author: Stefan Stuntz. Further developing by MorphOS Team.
Lamp.mcc author: Christian Rosentreter
StringEdit.m (E-Developer-Pack.lha) author: Daniel Westerberg alias Deniil
The default two state icon I have painted in PersonalPaint and merged with
SaveNewIcon Arexx script (pp2ni.lha) created by Eric van Velthooven.
A big bunch of thankyous go to very patient Damien Stewart and other guys from
AmigaE Mailing List at positron at freelists.org
Thanks to Norbert for OS3.1 testing and enhancing the default icon.
Thanks to Phibrizzo for patiently testing on OS3.1.


Versions / Changelog:
0.9.1: (5/04/2017)
- firs public release;
0.9.5: (24/04/2017) public
- (new) added GUI configuration via icon ToolTypes
- (fix) very bad crash on AmigaOS4.x
- all String gadgets changed to Text gadgets
1.0 (19/07/2017)
- Hex, Dec and Bin String fields are grouped together into one field.
	The function of field is switched by cycle gadget.
- (new) keyboard handling of the whole GUI
- (new) sliders can be changed to knobs
- (new) Workbench top bar displays Hexaco's application info
- (new) Shell/CLI support
- (new) "?" Shell/CLI parameter displays help
- (fix) HTML name field refuses uppercase input
- pop up list keyboard handling much improved


Contents of util/wb/Hexaco_1.0.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[generic]                 1843    2811  65.6% -lh5- 1da7 Sep 22  2013 Hexaco.info
[generic]                 1478    2334  63.3% -lh5- 0bf5 Apr 24 00:37 Hexaco/grabs.info
[generic]                13369   13369 100.0% -lh0- 0e73 Apr  2 00:12 Hexaco/grabs/Hexaco_091_window_MOS.png
[generic]                12969   12969 100.0% -lh0- a5d4 Apr 24 00:35 Hexaco/grabs/Hexaco_095_window_MOS.png
[generic]               105656  328178  32.2% -lh5- e508 Apr 25 18:16 Hexaco/grabs/Hexaco_095_window_OS4.iff
[generic]               593848  593848 100.0% -lh0- c83f Jun 12 19:19 Hexaco/grabs/Hexaco_098_OS3_1.jpg
[generic]                50842   50842 100.0% -lh0- 93f6 Jul 21 23:49 Hexaco/grabs/Hexaco_10_window_MOS.png
[generic]                15740   15740 100.0% -lh0- 24ad Jul 21 23:08 Hexaco/grabs/Hexaco_10_window_OS3.png
[generic]                29763   29763 100.0% -lh0- 992e Jul 21 23:29 Hexaco/grabs/Hexaco_10_window_OS4.png
[generic]                12435   32876  37.8% -lh5- 671d Jul 23 13:24 Hexaco/Hexaco
[generic]                  741    1764  42.0% -lh5- 22fc Jul 20 01:15 Hexaco/Hexaco.info
[generic]                 2276    4341  52.4% -lh5- ef02 Jul 27 21:58 Hexaco/Hexaco_1-0.readme
[generic]                 8713   31930  27.3% -lh5- 1a22 Jul 23 13:23 Hexaco/hexaco_2017-07-19.e
[generic]                 1482    2334  63.5% -lh5- 15e1 Jul 21 23:56 Hexaco/icons.info
[generic]                10136   10430  97.2% -lh5- f33a Sep  5  2009 Hexaco/icons/Hexaco_png.info
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total        15 files  861291 1133529  76.0%            Aug 17 16:26

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