public ToolObject()
{
ToolObject.s_instance = this;
this.m_selectMode = new ToolObject.SelectMode(this);
this.m_moveMode = new ToolObject.MoveMode(this);
this.m_rotateMode = new ToolObject.RotateMode(this);
this.m_addMode = new ToolObject.AddMode(this);
this.m_paramMode.Names = new string[]
{
Localizer.Localize("TOOL_OBJECT_MODE_SELECT") + " (1)",
Localizer.Localize("TOOL_OBJECT_MODE_MOVE") + " (2)",
Localizer.Localize("TOOL_OBJECT_MODE_ROTATE") + " (3)",
Localizer.Localize("TOOL_OBJECT_MODE_ADD") + " (4)"
};
this.m_paramMode.Values = new ToolObject.Mode[]
{
this.m_selectMode,
this.m_moveMode,
this.m_rotateMode,
this.m_addMode
};
this.m_paramMode.Images = new Image[]
{
this.m_selectMode.GetToolImage(),
this.m_moveMode.GetToolImage(),
this.m_rotateMode.GetToolImage(),
this.m_addMode.GetToolImage()
};
this.m_paramMode.ValueChanged += new EventHandler(this.editTool_ValueChanged);
this.m_paramMode.Value = this.m_addMode;
this.m_paramAxisType.Names = new string[]
{
Localizer.Localize("PARAM_AXIS_LOCAL"),
Localizer.Localize("PARAM_AXIS_WORLD")
};
this.m_paramAxisType.ValueChanged += new EventHandler(this.axisType_ValueChanged);
this.m_actionCopyClipboard.Callback = new ParamButton.ButtonDelegate(this.action_CopyClipboard);
this.m_actionDelete.Callback = new ParamButton.ButtonDelegate(this.action_Delete);
this.m_actionFreeze.Callback = new ParamButton.ButtonDelegate(this.action_Freeze);
this.m_actionUnfreeze.Callback = new ParamButton.ButtonDelegate(this.action_Unfreeze);
this.m_actionGotoObject.Callback = new ParamButton.ButtonDelegate(this.action_GotoObject);
this.m_paramObjectSelection.ActionPerformed += new EventHandler(this.action_GotoObject);
this.m_paramObjectSelection.ValueChanged += new EventHandler(this.action_SelectionValueChanged);
}