AminetAminet
Search:
82737 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.9.1
Architecture:m68k-amigaos >= 2.0
Date:2019-06-12
Download:http://aminet.net/util/cdity/ToolsMenu.lha - View contents
Readme:http://aminet.net/util/cdity/ToolsMenu.readme
Downloads:2097
New in version 1.9.1:

- 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.

New in version 1.9:

- 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.


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 some other CLI). You will want to
make sure to run ToolsMenu AFTER LoadWB, because otherwise
it won't be able to install its menu items upon starting up.
Also 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

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


History:

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 Jun 11 10:06 ToolsMenu.info
[Amiga]                    407     650  62.6% -lh5- 4b98 Jun 11 10:06 ToolsMenu/Catalogs/dansk/toolsmenu.catalog
[Amiga]                    485     782  62.0% -lh5- 8bb8 Jun 11 10:06 ToolsMenu/Catalogs/italiano/toolsmenu.catalog
[Amiga]                  12641   35147  36.0% -lh5- 7994 Jun 11 10:06 ToolsMenu/gpl-3.0.txt
[Amiga]                    246     477  51.6% -lh5- 7440 Jun 11 10:06 ToolsMenu/gpl-3.0.txt.info
[Amiga]                   2505    6205  40.4% -lh5- 8054 Jun 11 10:06 ToolsMenu/Readme
[Amiga]                    246     477  51.6% -lh5- 7f30 Jun 11 10:06 ToolsMenu/ReadMe.info
[Amiga]                   1235    2961  41.7% -lh5- 5cc6 Jun 11 10:06 ToolsMenu/Source/args.c
[Amiga]                    671    1140  58.9% -lh5- 63fe Jun 11 10:06 ToolsMenu/Source/args.h
[Amiga]                   1454    3485  41.7% -lh5- 364c Jun 11 10:06 ToolsMenu/Source/broker.c
[Amiga]                    568     940  60.4% -lh5- ed04 Jun 11 10:06 ToolsMenu/Source/broker.h
[Amiga]                    852    1603  53.2% -lh5- 630b Jun 11 10:06 ToolsMenu/Source/catalog.c
[Amiga]                    577     944  61.1% -lh5- 3fdf Jun 11 10:06 ToolsMenu/Source/catalog.h
[Amiga]                   1597    3967  40.3% -lh5- 92bb Jun 11 10:06 ToolsMenu/Source/common.c
[Amiga]                    969    1817  53.3% -lh5- 749a Jun 11 10:06 ToolsMenu/Source/common.h
[Amiga]                    520     851  61.1% -lh5- f86a Jun 11 10:06 ToolsMenu/Source/compiler.h
[Amiga]                   1605    4769  33.7% -lh5- 1214 Jun 11 10:06 ToolsMenu/Source/cx.c
[Amiga]                    789    1547  51.0% -lh5- f2bf Jun 11 10:06 ToolsMenu/Source/cx.h
[Amiga]                    637    1141  55.8% -lh5- d555 Jun 11 10:06 ToolsMenu/Source/dansk.ct
[Amiga]                    777    1408  55.2% -lh5- 0e7f Jun 11 10:06 ToolsMenu/Source/error.c
[Amiga]                    579     950  60.9% -lh5- d8de Jun 11 10:06 ToolsMenu/Source/error.h
[Amiga]                   5635   18234  30.9% -lh5- 9b86 Jun 11 10:06 ToolsMenu/Source/gui.c
[Amiga]                    653    1190  54.9% -lh5- 8e29 Jun 11 10:06 ToolsMenu/Source/gui.h
[Amiga]                   1746    4530  38.5% -lh5- 9d2c Jun 11 10:06 ToolsMenu/Source/io.c
[Amiga]                    532     884  60.2% -lh5- dd06 Jun 11 10:06 ToolsMenu/Source/io.h
[Amiga]                   1527    4069  37.5% -lh5- 810e Jun 11 10:06 ToolsMenu/Source/main.c
[Amiga]                   2087    6428  32.5% -lh5- 0eb0 Jun 11 10:06 ToolsMenu/Source/message.c
[Amiga]                    675    1206  56.0% -lh5- fac1 Jun 11 10:06 ToolsMenu/Source/message.h
[Amiga]                    485     782  62.0% -lh5- 8bb8 Jun 11 10:06 ToolsMenu/Source/Resources/Catalogs/italiano/ToolsMenu.catalog
[Amiga]                    279     567  49.2% -lh5- b3bb Jun 11 10:06 ToolsMenu/Source/Resources/ToolsMenu.info
[Amiga]                    119     161  73.9% -lh5- 995d Jun 11 10:06 ToolsMenu/Source/SCOPTIONS
[Amiga]                    733    1890  38.8% -lh5- a4ba Jun 11 10:06 ToolsMenu/Source/smakefile
[Amiga]                    411     767  53.6% -lh5- 43de Jun 11 10:06 ToolsMenu/Source/sprintf.asm
[Amiga]                   2294    5856  39.2% -lh5- 0149 Jun 11 10:06 ToolsMenu/Source/toolrun.c
[Amiga]                   1200    2561  46.9% -lh5- 0a4a Jun 11 10:06 ToolsMenu/Source/toolrun.h
[Amiga]                    851    1647  51.7% -lh5- 67a1 Jun 11 10:06 ToolsMenu/Source/toolsmenu.cd
[Amiga]                   3141    9287  33.8% -lh5- 411f Jun 11 10:06 ToolsMenu/Source/wb.c
[Amiga]                    617    1106  55.8% -lh5- 517c Jun 11 10:06 ToolsMenu/Source/wb.h
[Amiga]                   8572   13812  62.1% -lh5- 6a72 Jun 11 10:06 ToolsMenu/ToolsMenu
[Amiga]                    279     567  49.2% -lh5- b3bb Jun 11 10:06 ToolsMenu/ToolsMenu.info
[Amiga]                   2331    2331 100.0% -lh0- 7a11 Jun 11 10:06 ToolsMenu/ToolsMenu_ITA.lha
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        41 files   63779  149764  42.6%            Jun 12 07:55

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