💾 Archived View for cugi.ie › aminet › 1721612770.gmi captured on 2024-08-18 at 19:22:22. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Convert numbers between bin/oct/dec/hex

   Author:       Kim Fastrup Larsen
   Uploader:     kimflarsen hotmail com (Kim Fastrup Larsen)
   Type:         util/wb
   Version:      1.2.1
   Architecture: m68k-amigaos
   Date:         2024-07-21
   Readme:       http://aminet.net/util/wb/BaseConv.readme
   Downloads:    529

http://aminet.net/util/wb/BaseConv.lha

New in version 1.2.1

--------------------

- Will now suppress DOS requesters asking to insert ENV: or

ENVARC: if these are not mounted.

- Now activates a "busy" state while saving settings.

- Fixed not checking whether atexit succeeds.

- For those interested in the source code, the requester

code now lays out buttons like EasyRequest, ie. equally

spaced apart.

Base Converter

--------------

This is a little Workbench utility that lets you convert

numbers between binary, octal, decimal and hexadecimal. Sim-

ply enter a number in one of the string gadgets, press the

Return key, and the other three will be updated.

Using the settings menu, you can choose, for each base,

whether the current number should be displayed as a signed

or unsigned value.

When you save your settings, the size and position of the

window is saved as well.

The program was designed for Kickstart 1.2/1.3, but runs

cleanly on later releases, and when doing so will take ad-

vantage of certain features, such as tab cycling, input fil-

tering and new look menus. You can also specify the public

screen upon which you want the utility to appear, and it

will use the font of whatever screen on which it is running.

The program can also be localized on Workbench 2.1 or later.

A translation to Danish is included.

Source code included

--------------------

This program is written in C with a bit of assembler as

well. Full source code is included. In fact, one of the main

purposes of this release is to provide quality source code

to anyone trying to write similar tools for the Amiga, or as

a sort of document on how such programs work.

I originally wrote a simple version of this utility way back

in the early 1990s (never released), but have rewritten it

completely to incorporate what I've learned over the years

about writing modular, reusable and adaptable code.

Configuration

-------------

You can use the SETTINGS tool type or Shell argument to

specify a file or directory in which settings should be

saved (and from which they will be loaded if found).

On Kickstart 2 and later, you can use the PUBSCREEN tool

type or argument to specify the public screen on which you

want to program's window to open.

More stuff

----------

I have released several projects on Aminet. Almost all of

them include source code, but the newer ones are probably

the most useful, so allow me to highlight them here.

ScreenTime - A highly configurable screen clock with a popup

calendar:

https://aminet.net/package/util/time/ScreenTime

ToolsMenu - Add tools and projects to the Workbench Tools

menu with a simple graphical user interface:

https://aminet.net/package/util/cdity/ToolsMenu

Labyrinth - Remake of a Commodore 64 game:

https://aminet.net/package/game/misc/labyrinth64

You can get a list of all my projects with this link:

https://aminet.net/search?readme=kimflarsen

History

-------

1.2.1 (Jul 21, 2024)

- Will now suppress DOS requesters asking to insert ENV: or

ENVARC: if these are not mounted.

- Now activates a "busy" state while saving settings.

- Fixed not checking whether atexit succeeds.

- For those interested in the source code, the requester

code now lays out buttons like EasyRequest, ie. equally

spaced apart.

1.2 (Jun 28, 2024)

- Gadget labels now indicate a gadget's shortcut key by

underlining a character à la GadTools.

- Now works better on public screens with unusual pen ar-

rangements.

- Now updates the font used for menus when preferences are

changed on Workbench 1.2/1.3.

1.1 (May 30, 2024)

- Now refreshes the window when preferences are changed on

Workbench 1.2/1.3.

1.0 (May 10, 2024)

- Initial release.

Contents of util/wb/BaseConv.lha

PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown]                  344     900  38.2% -lh5- 6fc7 Jul 21 16:12 BaseConv.info
[unknown]                10877   16572  65.6% -lh5- 0907 Jul 21 16:12 BaseConv/BaseConv
[unknown]                  310     436  71.1% -lh5- cdf9 Jul 21 16:12 BaseConv/BaseConv.info
[unknown]                  268     418  64.1% -lh5- e393 Jul 21 16:12 BaseConv/Catalogs/dansk/BaseConv.catalog
[unknown]                12641   35147  36.0% -lh5- 7994 Jul 21 16:12 BaseConv/gpl-3.0.txt
[unknown]                  198     370  53.5% -lh5- ea97 Jul 21 16:12 BaseConv/gpl-3.0.txt.info
[unknown]                 2042    4440  46.0% -lh5- 57bc Jul 21 16:12 BaseConv/ReadMe
[unknown]                  193     370  52.2% -lh5- 6cdb Jul 21 16:12 BaseConv/ReadMe.info
[unknown]                40360   40360 100.0% -lh0- 93a7 Jul 21 16:12 BaseConv_Src.lha
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total         9 files   67233   99013  67.9%            Jul 22 01:46

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