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

util/cdity/ToolsMenu.lha

Mirror:Random
Showing:m68k-amigaosgeneric
No screenshot available
Short:Add tools to the Workbench Tools menu
Author:Kim Fastrup Larsen
Uploader:kimflarsen hotmail com (Kim Fastrup Larsen)
Type:util/cdity
Version:1.10.1
Architecture:m68k-amigaos >= 2.0
Date:2019-09-06
Download:http://aminet.net/util/cdity/ToolsMenu.lha - View contents
Readme:http://aminet.net/util/cdity/ToolsMenu.readme
Downloads:2483
New in version 1.10.1:
- Now ignores case when parsing YES/NO values in tool types
  and command line arguments.

New in version 1.10:

- When started from the Startup-Sequence (or any other CLI),
  ToolsMenu will now delay before installing its menu items,
  since Workbench may need time to initialize. If the de-
  fault delay of three seconds proves to be too short (or
  too long), a different one can be specified as a command
  line argument. One advantage of this delay is that you no
  longer need to place the Run command after LoadWB, and can
  therefore put it in User-Startup.
- Will now show a helpful error message if menu items cannot
  be saved.
- Fixed a bug when parsing the CX_PRIORITY command line ar-
  gument.


ToolsMenu requires Kickstart 2 or newer. Full source code is
included.

ToolsMenu is a commodity that will let you add tools and
projects to the Tools menu on your Workbench screen. Once an
item has been added, you can launch it by selecting it from
the menu. Any icons selected on the Workbench at that moment
become arguments for the launched tool.

For example, if you add MultiView, you can select the icon
of an image on the Workbench, then select MultiView from the
menu to view that image.

Tools will be run as if started by the Workbench. You will
not be able to open tools or projects that do not have prop-
er icons.

If the menu item is a project, the project icon's Default
Tool will be launched, and the project itself will become
the first argument.

ToolsMenu can look for tools in the command search path un-
der certain conditions; see the note for advanced users be-
low.

Adding items should be pretty self explanatory. Drag icons
into the window to add them, after which you can edit their
names if you like. You can also click the "New" button to
manually enter an item. You then write the name of the item
(as you would like it to appear in the menu) under the list,
and type in the full path of the tool or project over on the
right where it says "Tool". The path must include the name
of the tool or project.

You can move the currently selected item up and down using
the Edit menu. You can also sort the items alphabetically.
Note that the order of items will not be reflected in the
Workbench menu until you close the Commodity window.

The commodity can be iconified from the Project menu. In
this state, items can be added by dragging their icons onto
the commodity's icon.

When you are happy with your selection of items, you must
remember to save them from the pull down menu. The defini-
tions will be saved as tool types in the commodity's icon.

For advanced users: ToolsMenu can look through the command
search path for tools, but ONLY if it has been started from
the Startup-Sequence or User-Startup (or some other CLI).
Make sure to add CX_POPUP=NO as an argument to prevent its
window from opening. Something like this:

 Run >NIL: <path>/ToolsMenu CX_POPUP=NO

Workbench needs a little time to initialize, and for this
reason, when started from a CLI, ToolsMenu will wait for
three seconds before installing its menu items. If this
proves to be too short of a delay (you don't see your menu
items after booting), you can specify a delay as a number
seconds. For example, to specify a delay of five seconds, do
this:

 Run >NIL: <path>/ToolsMenu CX_POPUP=NO DELAY=5

You can use DELAY=0 if you don't want any delay.

Thanks go to Samir Hawamdeh for providing an Italian trans-
lation, and to everyone who provided me with feedback and
helpful suggestions!


History:

1.10.1 (Sep 6, 2019)
- Now ignores case when parsing YES/NO values in tool types
  and command line arguments.

1.10 (Aug 30, 2019)

- When started from the Startup-Sequence (or any other CLI),
  ToolsMenu will now delay before installing its menu items,
  since Workbench may need time to initialize. If the de-
  fault delay of three seconds proves to be too short (or
  too long), a different one can be specified as a command
  line argument. One advantage of this delay is that you no
  longer need to place the Run command after LoadWB, and can
  therefore put it in User-Startup.
- Will now show a helpful error message if menu items cannot
  be saved.
- Fixed a bug when parsing the CX_PRIORITY command line ar-
  gument.

1.9.1 (Jun 11, 2019)

- Fixed an issue introduced in 1.8 where changes made to the
  Tool Types of ToolsMenu's icon would be undone if you were
  to save your menu definitions in the same session.

1.9 (Jun 2, 2019)

- It is now possible to add projects as well as tools. When
  selecting a project, the project icon's Default Tool will
  be launched with the project itself as the first argument.
- If ToolsMenu has been started from a CLI, it can now look
  through the command search path for tools.
- Will now look for the TOOLPRI tool type to set the execu-
  tion priority in the same way that Workbench does.
- Fixed potential null pointer dereferences in case
  ToolsMenu's icon has been replaced by a freshly created
  icon with no tool types.

1.8.1 (Feb 13, 2019)

- Fixed button shortcuts not working

1.8 (Feb 10, 2019)

- Menu items can now be moved up and down using commands in
  the Edit menu; in order to make this run at a reasonable
  speed on all Amigas, the order of items will not be re-
  flected in the Workbench menu until you close the Commodi-
  ty window
- The commodity can now be iconified from the Project menu;
  in this state, tools can be added by dragging their icons
  onto the commodity's icon
- New and Delete buttons can now have keyboard shortcuts
- About-requester can now be closed by pressing the left
  Amiga key with V or B, like system requesters
- Includes Italian catalog by Samir Hawamdeh

1.7 (Feb 5, 2019)

- Added a function to sort items alphabetically
- The commodity's menu shortcut keys can now be localized

1.6 (Nov 26, 2018)

- Minor UI adjustments
- New, "proper" requester for About
- Modularized the source code

1.5 (Jul 28, 2015)

- Busy pointer for Kickstart 2
- Optimized and cleaned up a few things, made code more
  portable

1.4 (Apr 22, 2015)

- Improved layout for big fonts.
- Added "About..."

1.3 (Feb 12, 2015)

- Fixed an issue that caused some commodities (and possibly
  other tools) to crash.

1.2 (Feb 3, 2015)

- Use the user's preferred screen font.

1.1 (Jan 19, 2015)

- Fixed an issue where trying to run a tool with an empty
  path would cause a Guru Meditation.

1.0 (Jan 12, 2015)

- Initial release


Contents of util/cdity/ToolsMenu.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[Amiga]                    252     628  40.1% -lh5- 2c51 Sep  7 00:31 ToolsMenu.info
[Amiga]                    407     650  62.6% -lh5- 4b98 Sep  7 00:31 ToolsMenu/Catalogs/dansk/toolsmenu.catalog
[Amiga]                    485     782  62.0% -lh5- 8bb8 Sep  7 00:31 ToolsMenu/Catalogs/italiano/toolsmenu.catalog
[Amiga]                  12641   35147  36.0% -lh5- 7994 Sep  7 00:31 ToolsMenu/gpl-3.0.txt
[Amiga]                    246     477  51.6% -lh5- 7440 Sep  7 00:31 ToolsMenu/gpl-3.0.txt.info
[Amiga]                   2896    7242  40.0% -lh5- 967c Sep  7 00:31 ToolsMenu/Readme
[Amiga]                    246     477  51.6% -lh5- 7f30 Sep  7 00:31 ToolsMenu/ReadMe.info
[Amiga]                   1261    3038  41.5% -lh5- 276b Sep  7 00:31 ToolsMenu/Source/args.c
[Amiga]                    669    1138  58.8% -lh5- fce0 Sep  7 00:31 ToolsMenu/Source/args.h
[Amiga]                   1454    3485  41.7% -lh5- 364c Sep  7 00:31 ToolsMenu/Source/broker.c
[Amiga]                    568     940  60.4% -lh5- ed04 Sep  7 00:31 ToolsMenu/Source/broker.h
[Amiga]                    852    1603  53.2% -lh5- 630b Sep  7 00:31 ToolsMenu/Source/catalog.c
[Amiga]                    577     944  61.1% -lh5- 3fdf Sep  7 00:31 ToolsMenu/Source/catalog.h
[Amiga]                   1890    5034  37.5% -lh5- 7b8b Sep  7 00:31 ToolsMenu/Source/common.c
[Amiga]                   1056    2134  49.5% -lh5- 6d59 Sep  7 00:31 ToolsMenu/Source/common.h
[Amiga]                    578     950  60.8% -lh5- b972 Sep  7 00:31 ToolsMenu/Source/compiler.h
[Amiga]                   1581    4769  33.2% -lh5- 9099 Sep  7 00:31 ToolsMenu/Source/cx.c
[Amiga]                    805    1583  50.9% -lh5- 9f1f Sep  7 00:31 ToolsMenu/Source/cx.h
[Amiga]                    637    1141  55.8% -lh5- d555 Sep  7 00:31 ToolsMenu/Source/dansk.ct
[Amiga]                    845    1524  55.4% -lh5- 7925 Sep  7 00:31 ToolsMenu/Source/error.c
[Amiga]                    676    1111  60.8% -lh5- 044e Sep  7 00:31 ToolsMenu/Source/error.h
[Amiga]                   5668   18358  30.9% -lh5- cb74 Sep  7 00:31 ToolsMenu/Source/gui.c
[Amiga]                    654    1202  54.4% -lh5- 148a Sep  7 00:31 ToolsMenu/Source/gui.h
[Amiga]                   1762    4510  39.1% -lh5- 87fc Sep  7 00:31 ToolsMenu/Source/io.c
[Amiga]                    561     927  60.5% -lh5- 2f27 Sep  7 00:31 ToolsMenu/Source/io.h
[Amiga]                   1543    4182  36.9% -lh5- 33a7 Sep  7 00:31 ToolsMenu/Source/main.c
[Amiga]                   2087    6428  32.5% -lh5- 0eb0 Sep  7 00:31 ToolsMenu/Source/message.c
[Amiga]                    675    1206  56.0% -lh5- fac1 Sep  7 00:31 ToolsMenu/Source/message.h
[Amiga]                    485     782  62.0% -lh5- 8bb8 Sep  7 00:31 ToolsMenu/Source/Resources/Catalogs/italiano/ToolsMenu.catalog
[Amiga]                    279     567  49.2% -lh5- b3bb Sep  7 00:31 ToolsMenu/Source/Resources/ToolsMenu.info
[Amiga]                    122     169  72.2% -lh5- 67d4 Sep  7 00:31 ToolsMenu/Source/SCOPTIONS
[Amiga]                    728    1897  38.4% -lh5- ceba Sep  7 00:31 ToolsMenu/Source/smakefile
[Amiga]                    854    1503  56.8% -lh5- 96ad Sep  7 00:31 ToolsMenu/Source/snprintf.c
[Amiga]                    832    1414  58.8% -lh5- b50e Sep  7 00:31 ToolsMenu/Source/snprintf.h
[Amiga]                   2294    5835  39.3% -lh5- b0d1 Sep  7 00:31 ToolsMenu/Source/toolrun.c
[Amiga]                   1200    2561  46.9% -lh5- 0a4a Sep  7 00:31 ToolsMenu/Source/toolrun.h
[Amiga]                    851    1647  51.7% -lh5- 67a1 Sep  7 00:31 ToolsMenu/Source/toolsmenu.cd
[Amiga]                   3071    9172  33.5% -lh5- 145d Sep  7 00:31 ToolsMenu/Source/wb.c
[Amiga]                    617    1106  55.8% -lh5- effd Sep  7 00:31 ToolsMenu/Source/wb.h
[Amiga]                   8541   13692  62.4% -lh5- ff22 Sep  7 00:31 ToolsMenu/ToolsMenu
[Amiga]                    277     567  48.9% -lh5- 4234 Sep  7 00:31 ToolsMenu/ToolsMenu.info
[Amiga]                   2331    2331 100.0% -lh0- 7a11 Sep  7 00:31 ToolsMenu/ToolsMenu_ITA.lha
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        42 files   66054  154853  42.7%            Sep  6 21:50

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