Esempio n. 1
0
        protected override void OnBuildToolBar(Gtk.Toolbar tb)
        {
            base.OnBuildToolBar(tb);

            if (tolerance_label == null)
            {
                tolerance_label = new ToolBarLabel(string.Format("    {0}: ", Catalog.GetString("Tolerance")));
            }

            tb.AppendItem(tolerance_label);

            if (tolerance_slider == null)
            {
                tolerance_slider = new ToolBarSlider(0, 100, 1, 50);
            }

            tb.AppendItem(tolerance_slider);
        }
Esempio n. 2
0
        protected override void OnBuildToolBar(Gtk.Toolbar tb)
        {
            base.OnBuildToolBar(tb);

            if (mode_label == null)
            {
                mode_label = new ToolBarLabel(string.Format(" {0}: ", Catalog.GetString("Flood Mode")));
            }

            tb.AppendItem(mode_label);

            if (mode_button == null)
            {
                mode_button = new ToolBarDropDownButton();

                mode_button.AddItem(Catalog.GetString("Contiguous"), "Tools.FreeformShape.png", true);
                mode_button.AddItem(Catalog.GetString("Global"), "Menu.Help.Website.png", false);
            }

            tb.AppendItem(mode_button);

            if (mode_sep == null)
            {
                mode_sep = new Gtk.SeparatorToolItem();
            }

            tb.AppendItem(mode_sep);

            if (tolerance_label == null)
            {
                tolerance_label = new ToolBarLabel(string.Format(" {0}: ", Catalog.GetString("Tolerance")));
            }

            tb.AppendItem(tolerance_label);

            if (tolerance_slider == null)
            {
                tolerance_slider = new ToolBarSlider(0, 100, 1, 0);
            }

            tb.AppendItem(tolerance_slider);
        }