void CreateResolutionWidget(VariableSet variables) { var resolution = variables.Get <int>("resolution"); var button = new GimpSpinButton(0, 1200, 1, resolution); AttachAligned(0, 2, _("_Resolution:"), 0.0, 0.5, button, 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); }
void AddSpinButton(GimpTable table, int row, int min, int max, string label, Variable <int> variable) { var spinner = new GimpSpinButton(min, max, 1, variable) { WidthChars = 4 }; table.AttachAligned(0, row, _(label), 0.0, 0.5, spinner, 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); }
void AddSpinButton(GimpTable table, int row, int min, int max, string label, Variable<int> variable) { var spinner = new GimpSpinButton(min, max, 1, variable) {WidthChars = 4}; table.AttachAligned(0, row, _(label), 0.0, 0.5, spinner, 1, true); }
void CreatePort(GimpTable table) { var port = new GimpSpinButton(0, 9999, 1, GetVariable <int>("port")); table.AttachAligned(0, 0, _("_Port:"), 0.0, 0.5, port, 2, true); }
void CreateResolutionWidget(VariableSet variables) { var resolution = variables.Get<int>("resolution"); var button = new GimpSpinButton(0, 1200, 1, resolution); AttachAligned(0, 2, _("_Resolution:"), 0.0, 0.5, button, 1, true); }
void CreatePort(GimpTable table) { var port = new GimpSpinButton(0, 9999, 1, GetVariable<int>("port")); table.AttachAligned(0, 0, _("_Port:"), 0.0, 0.5, port, 2, true); }