Ejemplo n.º 1
0
        internal protected Variable GetSharedVariable(string key, out Task task)
        {
            Variable variable;

            if (sharedVariables != null)
            {
                variable = sharedVariables.Get(key);
            }
            else
            {
                variable = null;
            }

            if (variable != null)  // Found in current task
            {
                task = this;
            }
            else if (ParentTask != null)   // Try find in ancestor nodes
            {
                variable = ParentTask.GetSharedVariable(key, out task);
            }
            else
            {
                task = null;
            }

            return(variable);
        }
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
        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);
        }
Ejemplo n.º 4
0
 void CreatePositionWidget(VariableSet variables)
 {
     _position = new GimpComboBox(variables.Get <int>("position"),
                                  new string[] { _("Centered"), _("Top Left"),
                                                 _("Bottom Left"),
                                                 _("Top Right"),
                                                 _("Bottom Right") });
     AttachAligned(0, 4, _("Position:"), 0.0, 0.5, _position, 1, false);
 }
Ejemplo n.º 5
0
 void CreateTextWidget(VariableSet variables)
 {
     _entry = new GimpEntry(variables.Get <string>("label"));
     AttachAligned(0, 1, _("Custom Text:"), 0.0, 0.5, _entry, 1, true);
 }
Ejemplo n.º 6
0
 void CreateUnitsWidget(VariableSet variables)
 {
     Attach(new GimpComboBox(variables.Get <int>("units"),
                             new string[] { "pixels/inch", "pixels/cm",
                                            "pixels/mm" }), 2, 3, 2, 3);
 }
Ejemplo n.º 7
0
        void CreateFlattenWidget(VariableSet variables)
        {
            var flatten = variables.Get <bool>("flatten");

            Attach(new GimpCheckButton(_("Flatten All Layers"), flatten), 0, 2, 4, 5);
        }
Ejemplo n.º 8
0
 void CreateTextWidget(VariableSet variables)
 {
     _entry = new GimpEntry(variables.Get<string>("label"));
       AttachAligned(0, 1, _("Custom Text:"), 0.0, 0.5, _entry, 1, true);
 }
Ejemplo n.º 9
0
 void CreatePositionWidget(VariableSet variables)
 {
     _position = new GimpComboBox(variables.Get<int>("position"),
            new string[]{_("Centered"), _("Top Left"),
                 _("Bottom Left"),
                 _("Top Right"),
                 _("Bottom Right")});
       AttachAligned(0, 4, _("Position:"), 0.0, 0.5, _position, 1, false);
 }
Ejemplo n.º 10
0
 void CreateFlattenWidget(VariableSet variables)
 {
     var flatten = variables.Get<bool>("flatten");
       Attach(new GimpCheckButton(_("Flatten All Layers"), flatten), 0, 2, 4, 5);
 }
Ejemplo n.º 11
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.º 12
0
 void CreateUnitsWidget(VariableSet variables)
 {
     Attach(new GimpComboBox(variables.Get<int>("units"),
           new string[]{"pixels/inch", "pixels/cm",
                "pixels/mm"}), 2, 3, 2, 3);
 }
Ejemplo n.º 13
0
 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);
 }