public Dialog(Image image, Drawable drawable, VariableSet variables) : base("Ministeck", drawable, variables, () => new DrawablePreview(drawable)) { _image = image; var table = new GimpTable(2, 2) { ColumnSpacing = 6, RowSpacing = 6 }; Vbox.PackStart(table, false, false, 0); var size = new GimpSpinButton(3, 100, 1, GetVariable <int>("size")); table.AttachAligned(0, 0, _("_Size:"), 0.0, 0.5, size, 2, true); var limit = new GimpCheckButton(_("_Limit Shapes"), GetVariable <bool>("limit")); table.Attach(limit, 2, 3, 0, 1); var colorButton = new GimpColorButton("", 16, 16, GetVariable <RGB>("color"), ColorAreaType.Flat) { Update = true }; table.AttachAligned(0, 1, _("C_olor:"), 0.0, 0.5, colorButton, 1, true); }
void CreateColorButton(GimpTable table, int row, string label, Variable<RGB> color) { var button = new GimpColorButton("", 16, 16, color, ColorAreaType.Flat) {Update = true}; table.AttachAligned(0, row, label, 0.0, 0.5, button, 1, true); }
void CreateColorButton(GimpTable table, int column, int row, string label, string identifier) { var color = GetVariable<RGB>(identifier); var button = new GimpColorButton("", 16, 16, color, ColorAreaType.Flat) {Update = true}; table.AttachAligned(column, row, _(label), 0.0, 0.5, button, 1, true); }
void CreateColorButton(GimpTable table, int row, string label, Variable <RGB> color) { var button = new GimpColorButton("", 16, 16, color, ColorAreaType.Flat) { Update = true }; table.AttachAligned(0, row, label, 0.0, 0.5, button, 1, true); }
void CreateColorButton(GimpTable table, int column, int row, string label, string identifier) { var color = GetVariable <RGB>(identifier); var button = new GimpColorButton("", 16, 16, color, ColorAreaType.Flat) { Update = true }; table.AttachAligned(column, row, _(label), 0.0, 0.5, button, 1, true); }
void CreateColorAndOpacityWidget() { var hbox = new HBox(false, 12); _color = new GimpColorButton("", 16, 16, new RGB(0, 0, 0), ColorAreaType.Flat); _color.Update = true; hbox.Add(_color); _opacity = new SpinButton(0, 100, 1); hbox.Add(new Label(_("Opacity:"))); hbox.Add(_opacity); hbox.Add(new Label("%")); AttachAligned(0, 3, _("Color:"), 0.0, 0.5, hbox, 1, true); }
public Dialog(Image image, Drawable drawable, VariableSet variables) : base("Ministeck", drawable, variables, () => new DrawablePreview(drawable)) { _image = image; var table = new GimpTable(2, 2) {ColumnSpacing = 6, RowSpacing = 6}; Vbox.PackStart(table, false, false, 0); var size = new GimpSpinButton(3, 100, 1, GetVariable<int>("size")); table.AttachAligned(0, 0, _("_Size:"), 0.0, 0.5, size, 2, true); var limit = new GimpCheckButton(_("_Limit Shapes"), GetVariable<bool>("limit")); table.Attach(limit, 2, 3, 0, 1); var colorButton = new GimpColorButton("", 16, 16, GetVariable<RGB>("color"), ColorAreaType.Flat) {Update = true}; table.AttachAligned(0, 1, _("C_olor:"), 0.0, 0.5, colorButton, 1, true); }