Previous Next Chapter

DefIcons Editor

The DefIcons editor, illustrated in Figure 5-4, allows you to change the deficons brainfile in an easy and comfortable way.

Figure 5-4. DefIcons Preferences Editor Window

DefIcons turns any faked icon (displayed when you pick the menu item Window/Show/All Files) into a more meaningful one. Depending on its prefs file, the program can identify different filetypes and supply an appropiate icon for each of them

Filetypes

To add a new filetype to the "Filetypes" list, press the "Add" button and enter the name of the filetype into the string gadget below the list. DefIcons/ icon.library will later use this name to find the icon which belongs to the filetype. Choose "Information ..." from the "Icon" menu or doubleclick the filetype to get information on the icon. To remove an entry press "Remove" (please note: removing a class [=filetype] will also remove its children!). The arrow buttons can be used to the change the position of the selected filetype(s)/ class(es) in the list.

Actions

In order to identify a filetype, DefIcons also needs to know how this can be done. Therefore the window contains another list which shows all actions (they are the description of the filetype) that have been defined for the selected filetype. To add a new action to the filetype, press the "Add" button, hold down the mouse button and select one of the following actions from the popup menu (then release the button:)

MATCH

The file must contain the given string at the given offset (relative to the current position). Hexvalues must be entered using the following style, eg. \x0a for 10 or \xff for 255

SEARCH

the file must contain the given string somewhere starting at the current position. If you select 'Skip spaces:', only spaces and tabs are allowed to precede the given string. "current position" means that each matching action (SEARCH/MATCH) increases the current position within the file. When a description doesn't match the next action will start at the beginning of the file.

PATTERN

The filename must match the given pattern.

FILESIZE

The file must have the given size.

PROTECTION

The file must have the given protection bits (un)set.

ISASCII

Check whether the file is a text file or not (only used by 'ascii' type).

OR

Alternative description follows.

MACROCLASS

This filetype will never become valid. Only its icon will be used, if one of the children, which does not have an icon, becomes valid

Learn...

(you need to select/create a filetype first) and selecting atleast two files of the same format in the filerequester that comes up (the more files, the better the result). Please note, that this function is very simply and will create only a list of MATCHes.

DefIons Project Menu

Merge..

Search...

Next

About...

DefIons Icon Menu

Information...

The Information requester opens for the selected DefIcon.

Edit...

The IconEdit program is run with the selected DefIcon loaded.

Top Previous Next Chapter