
Class Reference
DK_ToolGUI(DK_Tool *);Creates a DK_ToolGUI object. If you want extra tabs on the tool shelf, you should set _extraTabCount as described for createExtraTabs.
virtual Widget create
(Widget natural_size_parent,
Widget sized_to_fit_parent) = 0;
Creates the tool's interface. This method is called only once, when the tool editor is first opened. Use one of the two arguments as a parent for your panel:
virtual void update(void) = 0;Updates all the element's of the tool editor GUI. You must override this method.
u_int _extraTabCount;
virtual Widget createExtraTabs
(int tab,
Widget natural_size_parent,
Widget sized_to_fit_parent);
Creates extra tab panels in the tab deck. Set _extraTabCount to the desired number of tabs in the constructor of your DK_ToolGUI subclass. For a description of the parent arguments, see create.The tabs are named TAB#, where # is the tab index. To set the names of your tabs, you must provide resources in the $EDDIE3DIR/res/Eddie file. For example, if your custom tool is called "foo" and you want TAB2 to be named "bar":
Eddie*foo*tabArea.TAB2: bar
virtual void graphicChange (DK_Graphic *,
int) {}
Method for responding to a change in a graphic element.
virtual void animParamChange(DK_AnimParam *,
int) {}
Method for responding to a change in an animated parameter.
virtual Boolean canvasDoubleClick
( DK_Canvas*,
const DK_Vector2&,
const DK_IVector2& );
Handles a double-click in a canvas. For convenience, the pointer position is supplied in both ortho coordinates (DK_Vector2) and screen coordinates (DK_IVector2). If you override this method, return true; if you decide not to handle a particular event, call the base class (DKToolGUI::canvasDoubleClick).
virtual Boolean canvasButtonPress
( DK_Canvas*,
const DK_Vector2&,
const DK_IVector2& );
Handles a mouse button press in a canvas. For convenience, the pointer position is supplied in both ortho coordinates (DK_Vector2) and screen coordinates (DK_IVector2). To determine which button was pressed, use the X Window event handling functions. If you override this method, return true; if you decide not to handle a particular event, call the base class (DKToolGUI::canvasButtonPress).
virtual Boolean canvasButtonRelease
( DK_Canvas*,
const DK_Vector2&,
const DK_IVector2& );
Handles a mouse button release in a canvas. For convenience, the pointer position is supplied in both ortho coordinates (DK_Vector2) and screen coordinates (DK_IVector2). To determine which button was released, use the X Window event handling functions. If you override this method, return true; if you decide not to handle a particular event, call the base class (DKToolGUI::canvasButtonRelease).
virtual Boolean canvasKeyPress
( DK_Canvas*,
const DK_Vector2&,
const DK_IVector2& );
Handles a keyboard press in a canvas. For convenience, the pointer position is supplied in both ortho coordinates (DK_Vector2) and screen coordinates (DK_IVector2). To determine which key was pressed, use the X Window event handling functions. If you override this method, return true; if you decide not to handle a particular event, call the base class (DKToolGUI::canvasKeyPress).
virtual Boolean canvasKeyRelease
( DK_Canvas*,
const DK_Vector2&,
const DK_IVector2& );
Handles a keyboard release in a canvas. For convenience, the pointer position is supplied in both ortho coordinates (DK_Vector2) and screen coordinates (DK_IVector2). To determine which key was released, use the X Window event handling functions. If you override this method, return true; if you decide not to handle a particular event, call the base class (DKToolGUI::canvasKeyRelease).
virtual Boolean canvasMotion
( DK_Canvas*,
const DK_Vector2&,
const DK_IVector2& );
Handles mouse dragging in a canvas. For convenience, the pointer position is supplied in both ortho coordinates (DK_Vector2) and screen coordinates (DK_IVector2). To determine which button was pressed while dragging, use the X Window event handling functions. If you override this method, return true; if you decide not to handle a particular event, call the base class (DKToolGUI::canvasMotion). TimeLine &getTimeLine();Returns the tool's timeline. This function is provided to satisfy the construction requirements of some GUI elements; it is not visible to users of your tool.
float getFrameNumber(void);Returns the current frame set in the local timeline.
DK_FileBrowser *createFileBrowser(void);A convenience function for creating a file browser through the parent class.
DK_ImageGraphic *createImageGraphic(DK_Image *);A convenience function for creating a DK_ImageGraphic object through the parent class. The DK_ImageGraphic object is updated when the current frame changes.
void addChildToCanvas(DK_ImageCanvas *, u_int);Takes the rendered image from a child tool connected to the target leg indexed by the unsigned integer, and places it on the specified image canvas.
