Ejemplo n.º 1
0
        public Dialog(VariableSet variables)
            : base("Splitter", variables)
        {
            var vbox = new VBox(false, 12) {BorderWidth = 12};
              VBox.PackStart(vbox, true, true, 0);

              var table = new GimpTable(4, 2)
            {ColumnSpacing = 6, RowSpacing = 6};
              vbox.PackStart(table, false, false, 0);

              var hbox = new HBox(false, 6);
              table.Attach(hbox, 0, 2, 0, 1);

              hbox.Add(new Label("f(x, y):"));
              hbox.Add(new GimpEntry(GetVariable<string>("formula")));
              hbox.Add(new Label("= 0"));

              table.Attach(CreateLayerFrame("Layer 1", "translate_1_x", "translate_1_y",
                    "rotate_1"), 0, 1, 1, 2);

              table.Attach(CreateLayerFrame("Layer 2", "translate_2_x", "translate_2_y",
                    "rotate_2"), 1, 2, 1, 2);

              table.Attach(new GimpCheckButton(_("_Merge visible layers"),
                       GetVariable<bool>("merge")), 0, 1, 3, 4);

              table.Attach(CreateAdvancedOptions(), 1, 2, 3, 4);

              var keep = new GimpComboBox(GetVariable<int>("keep_layer"),
                  new string[]{_("Both Layers"),
                           _("Layer 1"), _("Layer 2")});
              table.AttachAligned(0, 5, _("Keep:"), 0.0, 0.5, keep, 1, true);
        }
Ejemplo n.º 2
0
        void CreateColorModeWidget(VariableSet variables)
        {
            var mode = new GimpComboBox(variables.Get <int>("color_mode"),
                                        new string[] { _("Grayscale"), _("RGB Color") });

            AttachAligned(0, 3, _("_Mode:"), 0.0, 0.5, mode, 2, false);
        }
Ejemplo n.º 3
0
        public Dialog(Drawable drawable, VariableSet variables)
            : base("Mezzotint", drawable, variables, 
	   () => new DrawablePreview(drawable))
        {
            var type = new GimpComboBox(GetVariable<int>("type"),
            new string[] {_("Fine dots"), _("Medium dots"), _("Grainy dots"),
              _("Coarse dots"), _("Short lines"), _("Medium lines"),
              _("Long lines"), _("Short strokes"), _("Medium strokes"),
              _("Long strokes")});

              Vbox.PackStart(type, false, false, 0);
        }
Ejemplo n.º 4
0
        public Dialog(Drawable drawable, VariableSet variables) :
            base("Mezzotint", drawable, variables,
                 () => new DrawablePreview(drawable))
        {
            var type = new GimpComboBox(GetVariable <int>("type"),
                                        new string[] { _("Fine dots"), _("Medium dots"), _("Grainy dots"),
                                                       _("Coarse dots"), _("Short lines"), _("Medium lines"),
                                                       _("Long lines"), _("Short strokes"), _("Medium strokes"),
                                                       _("Long strokes") });

            Vbox.PackStart(type, false, false, 0);
        }
Ejemplo n.º 5
0
        public Dialog(VariableSet variables) :
            base("Splitter", variables)
        {
            var vbox = new VBox(false, 12)
            {
                BorderWidth = 12
            };

            VBox.PackStart(vbox, true, true, 0);

            var table = new GimpTable(4, 2)
            {
                ColumnSpacing = 6, RowSpacing = 6
            };

            vbox.PackStart(table, false, false, 0);

            var hbox = new HBox(false, 6);

            table.Attach(hbox, 0, 2, 0, 1);

            hbox.Add(new Label("f(x, y):"));
            hbox.Add(new GimpEntry(GetVariable <string>("formula")));
            hbox.Add(new Label("= 0"));

            table.Attach(CreateLayerFrame("Layer 1", "translate_1_x", "translate_1_y",
                                          "rotate_1"), 0, 1, 1, 2);

            table.Attach(CreateLayerFrame("Layer 2", "translate_2_x", "translate_2_y",
                                          "rotate_2"), 1, 2, 1, 2);

            table.Attach(new GimpCheckButton(_("_Merge visible layers"),
                                             GetVariable <bool>("merge")), 0, 1, 3, 4);

            table.Attach(CreateAdvancedOptions(), 1, 2, 3, 4);

            var keep = new GimpComboBox(GetVariable <int>("keep_layer"),
                                        new string[] { _("Both Layers"),
                                                       _("Layer 1"), _("Layer 2") });

            table.AttachAligned(0, 5, _("Keep:"), 0.0, 0.5, keep, 1, true);
        }
Ejemplo n.º 6
0
 void CreateColorModeWidget(VariableSet variables)
 {
     var mode = new GimpComboBox(variables.Get<int>("color_mode"),
           new string[]{_("Grayscale"), _("RGB Color")});
       AttachAligned(0, 3, _("_Mode:"), 0.0, 0.5, mode, 2, false);
 }