dojo.provide("dojox.drawing.ui.dom.Toolbar");
dojo.deprecated("dojox.drawing.ui.dom.Toolbar", "It may not even make it to the 1.4 release.", 1.4);
(function(){
dojo.declare("dojox.drawing.ui.dom.Toolbar", [], {
// NOTE:
// dojox.drawing.Toolbar is DEPRECATED.
// The intention never was to use HTML as buttons for a Drawing.
// This was implemented in order to finish the project for which
// Drawing was developed.
// Instead use: drawing/ui/Toolbar.js
//
// summary:
// Creates a Toolbar to be used with a DojoX Drawing.
// description:
// Currently works in markup only. A class is required with
// either horizontal or vertical as a class (IE prevented using
// either as a default). Assign an attribute of 'drawingId' with
// the id of the DojoX Drawing to which this is assigned.
// The node children will be assigned as the Tools in the toolbar.
// Plugins can also be assigned.
// The Toolbar is largely self contained and has no real public
// methods or events. the Drawing object should be used.
//
// example:
// |
//
// TODO: Toolbar works in markup only. Need programmatic.
// NOTE: There are plans to make the toolbar out of dojox.gfx vectors.
// This may change the APIs in the future.
//
// baseClass:String
// The CSS style to apply to the toolbar node
baseClass:"drawingToolbar",
// buttonClass:String
// The CSS style to apply to each button node
buttonClass:"drawingButton",
// iconClass:String
// The CSS style to apply to each button icon node
iconClass:"icon",
//
constructor: function(props, node){
// props is null from markup
dojo.addOnLoad(this, function(){
this.domNode = dojo.byId(node);
dojo.addClass(this.domNode, this.baseClass);
this.parse();
});