Source: widgets/chem/kekule.chemWidget.base.js

/**
 * @fileoverview
 * Chem widget is widget related with chem tasks, such as chem object view/editor.
 * @author Partridge Jiang
 */

/*
 * requires /widgets/kekule.widget.base.js
 */

/**
 * Namespace for chem widgets.
 * @type {namespace}
 */
Kekule.ChemWidget = {};

/*
 * Base class of all chem widgets. Actually a alias of Kekule.Widget.BaseWidget.
 * @class
 */
Kekule.ChemWidget.AbstractWidget = Kekule.Widget.BaseWidget;

/**
 * Enumeration of names to create tool buttons and other child components in chem viewer and editor.
 * @class
 */
Kekule.ChemWidget.ComponentWidgetNames =
{
	menu: 'menu',

	newDoc: 'newDoc',
	clearObjs: 'clearObjs',
	loadFile: 'loadFile',
	loadData: 'loadData',
	saveData: 'saveData',
	zoomIn: 'zoomIn',
	zoomOut: 'zoomOut',
	resetZoom: 'resetZoom',
	rotateRight: 'rotateRight',
	rotateLeft: 'rotateLeft',
	rotateX: 'rotateX',
	rotateY: 'rotateY',
	rotateZ: 'rotateZ',
	reset: 'reset',
	molDisplayType: 'molDisplayType',
	molDisplayTypeCondensed: 'molDisplayTypeCondensed',
	molDisplayTypeSkeletal: 'molDisplayTypeSkeletal',
	molDisplayTypeWire: 'molDisplayTypeWire',
	molDisplayTypeSticks: 'molDisplayTypeSticks',
	molDisplayTypeBallStick: 'molDisplayTypeBallStick',
	molDisplayTypeSpaceFill: 'molDisplayTypeSpaceFill',
	molHideHydrogens: 'molHideHydrogens',
	openEditor: 'openEditor',
	config: 'config',

	objInspector: 'objInspector',
	undo: 'undo',
	redo: 'redo',
	copy: 'copy',
	cut: 'cut',
	paste: 'paste',
	cloneSelection: 'cloneSelection',
	toggleSelect: 'toggleSelect',
	dragScroll: 'dragScroll',
	erase: 'erase',
	manipulate: 'manipulate',
	trackInput: 'trackInput',
	molBond: 'bond',
	molAtom: 'atom',
	molFormula: 'formula',
	molAtomAndFormula: 'atomAndFormula',
	molCharge: 'charge',
	textBlock: 'textBlock',
	imageBlock: 'imageBlock',
	molRing: 'ring',
	glyph: 'glyph',
	textImage: 'textImage',

	fontName: 'fontName',
	fontSize: 'fontSize',
	color: 'color',
	textDirection: 'textDirection',
	textAlign: 'textAlign'
};

/** @ignore */
Kekule.ChemWidget.HtmlClassNames = {
	PREFIX: 'K-Chem-',
	INNER_TOOLBAR: 'K-Chem-InnerToolbar'
};