Class Reference

DK_IconBrowser

DK_IconBrowser is a GUI class that handles icon browsers on the tool shelf, such as the ones found in the Impressionist and PainterlyEffects tools.

Constructor

DK_IconBrowser(const char *name, Widget parent);
DK_IconBrowser(const char *name);
The first method creates an icon browser and makes it the child of the specified widget. The second method assumes that you will call create at a later time; this is required by derived classes that override create, since you cannot call virtual functions from base class constructors.

setDir

void setDir(const char *dir);
Scans the specified directory for icons and displays them in the browser.

selectIcon

void selectIcon(const char* iconName)
Selects the specified icon.

getSelectedIconName

char *getSelectedIconName();
Returns the file name of the selected icon, not including the path. If no icon is selected, NULL is returned.

create

virtual void create(Widget parent)
Creates a widget and makes it the parent of the icon browser.

Constructor
setDir
selectIcon
getSelectedIconName
create

SOFTIMAGE Eddie 3.5 - 10 JAN 1997