Beispiel #1
0
        Widget CreateText()
        {
            var frame = new GimpFrame(_("Text"));

            var text = new GimpTextView(GetVariable <string>("text"));

            text.SetSizeRequest(-1, 100);
            frame.Add(text);

            return(frame);
        }
Beispiel #2
0
        void CreateBasedOnWidget(VBox parent)
        {
            var frame = new GimpFrame(_("Based On"));
              parent.PackStart(frame, true, true, 0);

              var vbox = new VBox(false, 12);
              frame.Add(vbox);

              var button = AddBasedOnButton(vbox, null, 0, _("Transparent Pixels"));
              button.Sensitive = _drawable.HasAlpha;
              button = AddBasedOnButton(vbox, button, 1, _("Top Left Pixel Color"));
              AddBasedOnButton(vbox, button, 2, _("Bottom Right Pixel Color"));
        }
Beispiel #3
0
        Widget CreateOutputEncoding()
        {
            var frame = new GimpFrame(_("Encoding"));

            var vbox = new VBox(false, 1);

            frame.Add(vbox);

            var button = AddEncodingButton(vbox, null, 0, _("_UTF-8"));

            button = AddEncodingButton(vbox, button, 1, _("_Shift-JIS"));
            AddEncodingButton(vbox, button, 2, _("_ISO-8859-1"));

            return(frame);
        }
Beispiel #4
0
        void CreateTypeFrame(HBox hbox)
        {
            var frame = new GimpFrame(_("Type"));

            hbox.PackStart(frame, false, false, 0);

            var vbox = new VBox(false, 1);

            frame.Add(vbox);

            var button = AddTypeButton(vbox, null, ForgeType.Planet, _("Pl_anet"));

            button = AddTypeButton(vbox, button, ForgeType.Clouds, _("C_louds"));
            AddTypeButton(vbox, button, ForgeType.Stars, _("_Night"));
        }
Beispiel #5
0
        Widget CreateErrorCorrection()
        {
            var frame = new GimpFrame(_("Error Correction Level"));

            var vbox = new VBox(false, 1);

            frame.Add(vbox);

            var button = AddErrorCorrectionButton(vbox, null, "L", "(7 % data loss)");

            button = AddErrorCorrectionButton(vbox, button, "M", "(15 % data loss)");
            button = AddErrorCorrectionButton(vbox, button, "Q", "(25 % data loss)");
            AddErrorCorrectionButton(vbox, button, "H", "(30 % data loss)");

            return(frame);
        }
Beispiel #6
0
        void CreateBasedOnWidget(VBox parent)
        {
            var frame = new GimpFrame(_("Based On"));

            parent.PackStart(frame, true, true, 0);

            var vbox = new VBox(false, 12);

            frame.Add(vbox);

            var button = AddBasedOnButton(vbox, null, 0, _("Transparent Pixels"));

            button.Sensitive = _drawable.HasAlpha;
            button           = AddBasedOnButton(vbox, button, 1, _("Top Left Pixel Color"));
            AddBasedOnButton(vbox, button, 2, _("Bottom Right Pixel Color"));
        }
Beispiel #7
0
        GimpTable CreateFramedTable(VBox vbox, string label,
                                    uint rows, uint columns)
        {
            var frame = new GimpFrame(_(label));

            vbox.Add(frame);

            var table = new GimpTable(rows, columns)
            {
                ColumnSpacing = 6, RowSpacing = 6
            };

            frame.Add(table);

            return(table);
        }
Beispiel #8
0
        void CreateTrimAwayWidget(VBox parent)
        {
            var frame = new GimpFrame(_("Trim Away"));

            parent.PackStart(frame, true, true, 0);

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

            frame.Add(table);

            CreateTrimWidget(table, 0, 0, _("_Top"), "top");
            CreateTrimWidget(table, 1, 0, _("_Left"), "left");
            CreateTrimWidget(table, 0, 1, _("_Bottom"), "bottom");
            CreateTrimWidget(table, 1, 1, _("_Right"), "right");
        }
Beispiel #9
0
        GimpFrame CreateLayerFrame(string frameLabel, string translateX,
                                   string translateY, string rotate)
        {
            var frame = new GimpFrame(_(frameLabel));

            var table = new GimpTable(3, 3)
            {
                BorderWidth = 12, RowSpacing = 12, ColumnSpacing = 12
            };

            frame.Add(table);

            AddSpinButton(table, 0, int.MinValue, int.MaxValue, "Translate X:",
                          GetVariable <int>(translateX));
            AddSpinButton(table, 1, int.MinValue, int.MaxValue, "Translate Y:",
                          GetVariable <int>(translateY));
            AddSpinButton(table, 2, 0, 360, "Rotate:", GetVariable <int>(rotate));

            return(frame);
        }
Beispiel #10
0
        GimpFrame CreateLayerFrame(string frameLabel, string translateX,
			       string translateY, string rotate)
        {
            var frame = new GimpFrame(_(frameLabel));

              var table = new GimpTable(3, 3)
            {BorderWidth = 12, RowSpacing = 12, ColumnSpacing = 12};
              frame.Add(table);

              AddSpinButton(table, 0, int.MinValue, int.MaxValue, "Translate X:",
            GetVariable<int>(translateX));
              AddSpinButton(table, 1, int.MinValue, int.MaxValue, "Translate Y:",
            GetVariable<int>(translateY));
              AddSpinButton(table, 2, 0, 360, "Rotate:", GetVariable<int>(rotate));

              return frame;
        }
Beispiel #11
0
        void CreateTypeFrame(HBox hbox)
        {
            var frame = new GimpFrame(_("Type"));
              hbox.PackStart(frame, false, false, 0);

              var vbox = new VBox(false, 1);
              frame.Add(vbox);

              var button = AddTypeButton(vbox, null, ForgeType.Planet, _("Pl_anet"));
              button = AddTypeButton(vbox, button, ForgeType.Clouds, _("C_louds"));
              AddTypeButton(vbox, button, ForgeType.Stars, _("_Night"));
        }
Beispiel #12
0
        GimpTable CreateFramedTable(VBox vbox, string label, 
				uint rows, uint columns)
        {
            var frame = new GimpFrame(_(label));
              vbox.Add(frame);

              var table = new GimpTable(rows, columns)
            {ColumnSpacing = 6, RowSpacing = 6};
              frame.Add(table);

              return table;
        }
Beispiel #13
0
        Widget CreateErrorCorrection()
        {
            var frame = new GimpFrame(_("Error Correction Level"));

              var vbox = new VBox(false, 1);
              frame.Add(vbox);

              var button = AddErrorCorrectionButton(vbox, null, "L", "(7 % data loss)");
              button = AddErrorCorrectionButton(vbox, button, "M", "(15 % data loss)");
              button = AddErrorCorrectionButton(vbox, button, "Q", "(25 % data loss)");
              AddErrorCorrectionButton(vbox, button, "H", "(30 % data loss)");

              return frame;
        }
Beispiel #14
0
        Widget CreateText()
        {
            var frame = new GimpFrame(_("Text"));

              var text = new GimpTextView(GetVariable<string>("text"));
              text.SetSizeRequest(-1, 100);
              frame.Add(text);

              return frame;
        }
Beispiel #15
0
        Widget CreateOutputEncoding()
        {
            var frame = new GimpFrame(_("Encoding"));

              var vbox = new VBox(false, 1);
              frame.Add(vbox);

              var button = AddEncodingButton(vbox, null, 0, _("_UTF-8"));
              button = AddEncodingButton(vbox, button, 1, _("_Shift-JIS"));
              AddEncodingButton(vbox, button, 2, _("_ISO-8859-1"));

              return frame;
        }
Beispiel #16
0
        void CreateTrimAwayWidget(VBox parent)
        {
            var frame = new GimpFrame(_("Trim Away"));
              parent.PackStart(frame, true, true, 0);

              var table = new GimpTable(2, 2)
            {ColumnSpacing = 6, RowSpacing = 6};
              frame.Add(table);

              CreateTrimWidget(table, 0, 0, _("_Top"), "top");
              CreateTrimWidget(table, 1, 0, _("_Left"), "left");
              CreateTrimWidget(table, 0, 1, _("_Bottom"), "bottom");
              CreateTrimWidget(table, 1, 1, _("_Right"), "right");
        }