protected override void OnBuildToolBar(Toolbar tb) { base.OnBuildToolBar(tb); if (label_type == null) { label_type = new ToolBarLabel(string.Format(" {0}: ", Catalog.GetString("Type"))); } if (comboBox_type == null) { comboBox_type = new ToolBarComboBox(100, 0, false, Catalog.GetString("Normal"), Catalog.GetString("Smooth")); comboBox_type.ComboBox.Changed += (o, e) => { eraser_type = (EraserType)comboBox_type.ComboBox.Active; }; } tb.AppendItem(label_type); tb.AppendItem(comboBox_type); // Change the cursor when the BrushWidth is changed. brush_width.ComboBox.Changed += (sender, e) => SetCursor(DefaultCursor); }
protected override void OnBuildToolBar(Toolbar tb) { base.OnBuildToolBar(tb); if (label_type == null) label_type = new ToolBarLabel (string.Format (" {0}: ", Catalog.GetString ("Type"))); if (comboBox_type == null) { comboBox_type = new ToolBarComboBox (100, 0, false, Catalog.GetString ("Normal"), Catalog.GetString ("Smooth")); comboBox_type.ComboBox.Changed += (o, e) => { eraser_type = (EraserType)comboBox_type.ComboBox.Active; }; } tb.AppendItem (label_type); tb.AppendItem (comboBox_type); // Change the cursor when the BrushWidth is changed. brush_width.ComboBox.Changed += (sender, e) => SetCursor (DefaultCursor); }