Beispiel #1
0
        private void Build()
        {
            var vBox = new Gtk.VBox(false, 5);



            var Titulo = new Gtk.Label("<b>CALENDARIO</b>");

            Titulo.UseMarkup = true;
            var MiCalendario = new Gtk.Calendar();
            //MiCalendario.DragDrop ();
            //boRRAR DRAG
            var H1 = new Gtk.Label("<b>EJERCICIO</b>");

            H1.UseMarkup = true;
            EjercicioDia = new Gtk.Label();
            EjercicioDia.SetAlignment(0, 0);
            MarcarMes(MiCalendario);

            MiCalendario.DaySelected  += OnDaySelected;
            MiCalendario.MonthChanged += OnMonthChanged;

            vBox.PackStart(Titulo, true, false, 10);
            vBox.PackStart(MiCalendario, true, true, 10);
            vBox.PackStart(H1, true, false, 5);
            vBox.PackStart(EjercicioDia, true, true, 5);

            this.Add(vBox);
        }
Beispiel #2
0
        Gtk.Widget CalendarControls()
        {
            var vbox = new Gtk.VBox {
                Spacing = 5
            };

            calendar = new Gtk.Calendar
            {
                CanFocus       = true,
                DisplayOptions = Gtk.CalendarDisplayOptions.ShowHeading | Gtk.CalendarDisplayOptions.ShowDayNames
            };

            calendar.DaySelected += delegate {
                OnDateChanged(EventArgs.Empty);
            };

            calendar.DaySelectedDoubleClick += delegate {
                OnDateChanged(EventArgs.Empty);
                Close();
            };

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

            var hbox = new Gtk.HBox(true, 6);

            var todayButton = new Gtk.Button {
                CanFocus = true,
                Label    = HasTime ? "Now" : "Today"
            };

            todayButton.Clicked += delegate {
                if (HasDate)
                {
                    calendar.Date = DateTime.Now;
                }
                if (HasTime)
                {
                    hourSpin.Value    = DateTime.Now.Hour;
                    minutesSpin.Value = DateTime.Now.Minute;
                    secondsSpin.Value = DateTime.Now.Second;
                    UpdateClock();
                }
                OnDateChanged(EventArgs.Empty);
                Close();
            };

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

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

            return(vbox);
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.CalendarWindow
     this.Name              = "ocmgtk.CalendarWindow";
     this.WindowPosition    = ((Gtk.WindowPosition)(4));
     this.Decorated         = false;
     this.DestroyWithParent = true;
     // Internal child ocmgtk.CalendarWindow.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.cal                = new Gtk.Calendar();
     this.cal.CanFocus       = true;
     this.cal.Name           = "cal";
     this.cal.DisplayOptions = ((Gtk.CalendarDisplayOptions)(35));
     w1.Add(this.cal);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.cal]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Internal child ocmgtk.CalendarWindow.ActionArea
     Gtk.HButtonBox w3 = this.ActionArea;
     w3.Name        = "dialog1_ActionArea";
     w3.Spacing     = 10;
     w3.BorderWidth = ((uint)(5));
     w3.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk              = new Gtk.Button();
     this.buttonOk.CanDefault   = true;
     this.buttonOk.CanFocus     = true;
     this.buttonOk.Name         = "buttonOk";
     this.buttonOk.UseStock     = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label        = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk]));
     w4.Expand = false;
     w4.Fill   = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 228;
     this.DefaultHeight = 271;
     this.Show();
     this.cal.DaySelectedDoubleClick += new System.EventHandler(this.OnCalDClick);
     this.buttonOk.Clicked           += new System.EventHandler(this.OnClicked);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.CalendarWindow
     this.Name = "ocmgtk.CalendarWindow";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Decorated = false;
     this.DestroyWithParent = true;
     // Internal child ocmgtk.CalendarWindow.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.cal = new Gtk.Calendar();
     this.cal.CanFocus = true;
     this.cal.Name = "cal";
     this.cal.DisplayOptions = ((Gtk.CalendarDisplayOptions)(35));
     w1.Add(this.cal);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.cal]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Internal child ocmgtk.CalendarWindow.ActionArea
     Gtk.HButtonBox w3 = this.ActionArea;
     w3.Name = "dialog1_ActionArea";
     w3.Spacing = 10;
     w3.BorderWidth = ((uint)(5));
     w3.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk]));
     w4.Expand = false;
     w4.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 228;
     this.DefaultHeight = 271;
     this.Show();
     this.cal.DaySelectedDoubleClick += new System.EventHandler(this.OnCalDClick);
     this.buttonOk.Clicked += new System.EventHandler(this.OnClicked);
 }
Beispiel #5
0
        public DatePicker(DateTime datetime, bool nodatebutton, bool selectrange)
            : this(datetime, nodatebutton)
        {
            SelectRange = selectrange;

            if (SelectRange)
            {
                Calc2 = new Gtk.Calendar();
                Calc2.DaySelectedDoubleClick += HandleDaySelectedDoubleClick;
                Gtk.Separator sep = new Gtk.Separator(Gtk.Orientation.Vertical);
                sep.WidthRequest = 20;
                HBox.PackStart(sep, true, true, 0);
                HBox.PackEnd(Calc2, true, true, 0);
            }
        }
Beispiel #6
0
        /// <summary>
        /// Genera la vista de <see cref="Calendar"></see> de la aplicación
        /// </summary>
        /// <returns>La vista en que se muestra el <see cref="Calendar"></see></returns>
        private Gtk.VBox CalendarView()
        {
            var ViewBox = new Gtk.VBox(false, 5);

            // Calendar
            Calendar = new Gtk.Calendar();

            // Calendar events.
            Calendar.DaySelected  += (o, args) => CalendarDay();
            Calendar.MonthChanged += (o, args) => CalendarMonth();

            ViewBox.Add(Calendar);

            return(ViewBox);
        }
Beispiel #7
0
        //MARCAR DIAS DEL MES INICIAL CON EJERCICIO Y SI COINCIDE EL DIA PONER EL EJERCICIO QUE SE HACE
        private void MarcarMes(Gtk.Calendar MiCalendario)
        {
            foreach (Ejercicio i in ejtotal)
            {
                if (MiCalendario.Month + 1 == i.fecha.Month && MiCalendario.Year == i.fecha.Year)
                {
                    MiCalendario.MarkDay((uint)i.fecha.Day);

                    if (MiCalendario.Day == i.fecha.Day)
                    {
                        this.EjercicioDia.Text      = "<b>-></b> " + i.ejercicio;
                        this.EjercicioDia.UseMarkup = true;
                    }
                }
            }
        }
Beispiel #8
0
        public Calendar() : base("Calendario")
        {
            SetDefaultSize(300, 270);
            SetPosition(Gtk.WindowPosition.Center);

            label = new Gtk.Label("...");

            Gtk.Calendar calendar = new Gtk.Calendar();
            calendar.DaySelected += OnDaySelected;

            Gtk.Fixed fix = new Gtk.Fixed();
            fix.Put(calendar, 20, 20);
            fix.Put(label, 40, 230);

            Add(fix);

            ShowAll();
        }
Beispiel #9
0
        //AL PASAR MES LIMPIAR EL CALENDARIO Y PONER EL DEL MES SIGUIENTE
        private void OnMonthChanged(object sender, EventArgs args)
        {
            Gtk.Calendar MiCalendario = (Gtk.Calendar)sender;

            //for each borrando todo
            for (uint i = 0; i <= 31; i++)
            {
                MiCalendario.UnmarkDay(i);
            }

            foreach (Ejercicio i in ejtotal)
            {
                if (MiCalendario.Month + 1 == i.fecha.Month && MiCalendario.Year == i.fecha.Year)
                {
                    MiCalendario.MarkDay((uint)i.fecha.Day);
                }
            }
        }
Beispiel #10
0
        //PARA MOSTRAR EL EJERCICIO AL CLICAR EN EL DIA
        private void OnDaySelected(object sender, EventArgs args)
        {
            Gtk.Calendar MiCalendario = (Gtk.Calendar)sender;

            Boolean esDiaEjercicio = false;

            foreach (Ejercicio i in ejtotal)
            {
                if (MiCalendario.Month + 1 == i.fecha.Month && MiCalendario.Year == i.fecha.Year && MiCalendario.Day == i.fecha.Day)
                {
                    esDiaEjercicio              = true;
                    this.EjercicioDia.Text      = "<b>-></b> " + i.ejercicio;
                    this.EjercicioDia.UseMarkup = true;
                }
            }
            if (esDiaEjercicio == false)
            {
                this.EjercicioDia.Text = "";
            }
        }
Beispiel #11
0
        /// <summary>
        /// initialize the widegt
        /// </summary>
        private void init()
        {
            this.Expand = true;
            SetSizeRequest(400, 200);
            NoDateButton = false;
            VBox         = new Gtk.Box(Gtk.Orientation.Vertical, 0);
            HBox         = new Gtk.Box(Gtk.Orientation.Horizontal, 0);

            Calc = new Gtk.Calendar();
            //Calc.DisplayOptions = Gtk.CalendarDisplayOptions.ShowDetails;
            //Calc.SelectionNotifyEvent += HandleSelectionNotifyEvent;
            Calc.ShowAll();
            //Calc.StateChanged += HandleStateChanged;
            HBox.PackStart(Calc, true, true, 0);
            VBox.PackEnd(HBox, true, true, 0);

            Calc.DaySelectedDoubleClick += HandleDaySelectedDoubleClick;

            VBox.ShowAll();
            this.Add(VBox);
        }
Beispiel #12
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget pr.wi
     Stetic.BinContainer.Attach(this);
     this.Name = "pr.wi";
     // Container child pr.wi.Gtk.Container+ContainerChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.calendar1 = new Gtk.Calendar();
     this.calendar1.CanFocus = true;
     this.calendar1.Name = "calendar1";
     this.calendar1.DisplayOptions = ((Gtk.CalendarDisplayOptions)(35));
     this.hbox1.Add(this.calendar1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.calendar1]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button1 = new Gtk.Button();
     this.button1.CanFocus = true;
     this.button1.Name = "button1";
     this.button1.UseUnderline = true;
     this.button1.Label = Mono.Unix.Catalog.GetString("button1");
     this.hbox1.Add(this.button1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.button1]));
     w2.Position = 1;
     w2.Expand = false;
     w2.Fill = false;
     this.Add(this.hbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
Beispiel #13
0
		public override void Initialize ()
		{
			Widget = new Gtk.Calendar ();
			Widget.DaySelected += CheckBetweenMinMax;
			Widget.Show ();
		}
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.DateEditDialog
     this.Name              = "HollyLibrary.DateEditDialog";
     this.Title             = "DateEditDialog";
     this.TypeHint          = ((Gdk.WindowTypeHint)(2));
     this.WindowPosition    = ((Gtk.WindowPosition)(4));
     this.BorderWidth       = ((uint)(1));
     this.Resizable         = false;
     this.AllowGrow         = false;
     this.Decorated         = false;
     this.DestroyWithParent = true;
     this.SkipPagerHint     = true;
     this.SkipTaskbarHint   = true;
     // Container child HollyLibrary.DateEditDialog.Gtk.Container+ContainerChild
     this.hbox1             = new Gtk.HBox();
     this.hbox1.Name        = "hbox1";
     this.hbox1.Spacing     = 6;
     this.hbox1.BorderWidth = ((uint)(3));
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.CCalendar                = new Gtk.Calendar();
     this.CCalendar.CanFocus       = true;
     this.CCalendar.Name           = "CCalendar";
     this.CCalendar.DisplayOptions = ((Gtk.CalendarDisplayOptions)(3));
     this.vbox2.Add(this.CCalendar);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.CCalendar]));
     w1.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox2             = new Gtk.HBox();
     this.hbox2.Name        = "hbox2";
     this.hbox2.Homogeneous = true;
     this.hbox2.Spacing     = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.BtnClear              = new Gtk.Button();
     this.BtnClear.CanFocus     = true;
     this.BtnClear.Name         = "BtnClear";
     this.BtnClear.UseUnderline = true;
     // Container child BtnClear.Gtk.Container+ContainerChild
     Gtk.Alignment w2 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w3 = new Gtk.HBox();
     w3.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w4 = new Gtk.Image();
     w4.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-clear", Gtk.IconSize.Menu, 16);
     w3.Add(w4);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w6 = new Gtk.Label();
     w6.LabelProp    = "Now";
     w6.UseUnderline = true;
     w3.Add(w6);
     w2.Add(w3);
     this.BtnClear.Add(w2);
     this.hbox2.Add(this.BtnClear);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.BtnClear]));
     w10.Position = 0;
     this.vbox2.Add(this.hbox2);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2]));
     w11.Position = 1;
     w11.Expand   = false;
     w11.Fill     = false;
     this.hbox1.Add(this.vbox2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2]));
     w12.Position = 0;
     w12.Expand   = false;
     w12.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.Clock          = new HollyLibrary.AnalogClock();
     this.Clock.Name     = "Clock";
     this.Clock.Datetime = new System.DateTime(0);
     this.vbox3.Add(this.Clock);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox3[this.Clock]));
     w13.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox3         = new Gtk.HBox();
     this.hbox3.Name    = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = "H:";
     this.hbox3.Add(this.label4);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox3[this.label4]));
     w14.Position = 0;
     w14.Expand   = false;
     w14.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.TxtHour          = new Gtk.SpinButton(0, 24, 1);
     this.TxtHour.CanFocus = true;
     this.TxtHour.Name     = "TxtHour";
     this.TxtHour.Adjustment.PageIncrement = 1;
     this.TxtHour.ClimbRate = 1;
     this.TxtHour.Numeric   = true;
     this.hbox3.Add(this.TxtHour);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox3[this.TxtHour]));
     w15.Position = 1;
     w15.Expand   = false;
     w15.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = "M:";
     this.hbox3.Add(this.label2);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox3[this.label2]));
     w16.Position = 2;
     w16.Expand   = false;
     w16.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.TxtMin          = new Gtk.SpinButton(0, 60, 1);
     this.TxtMin.CanFocus = true;
     this.TxtMin.Name     = "TxtMin";
     this.TxtMin.Adjustment.PageIncrement = 10;
     this.TxtMin.ClimbRate = 1;
     this.TxtMin.Numeric   = true;
     this.hbox3.Add(this.TxtMin);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox3[this.TxtMin]));
     w17.Position = 3;
     w17.Expand   = false;
     w17.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = "S:";
     this.hbox3.Add(this.label3);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox3[this.label3]));
     w18.Position = 4;
     w18.Expand   = false;
     w18.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.TxtSec          = new Gtk.SpinButton(0, 60, 1);
     this.TxtSec.CanFocus = true;
     this.TxtSec.Name     = "TxtSec";
     this.TxtSec.Adjustment.PageIncrement = 10;
     this.TxtSec.ClimbRate = 1;
     this.TxtSec.Numeric   = true;
     this.hbox3.Add(this.TxtSec);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox3[this.TxtSec]));
     w19.Position = 5;
     w19.Expand   = false;
     w19.Fill     = false;
     this.vbox3.Add(this.hbox3);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3]));
     w20.Position = 1;
     w20.Expand   = false;
     this.hbox1.Add(this.vbox3);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox3]));
     w21.Position = 1;
     w21.Expand   = false;
     w21.Fill     = false;
     this.Add(this.hbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 491;
     this.DefaultHeight = 263;
     this.Show();
     this.ButtonPressEvent                 += new Gtk.ButtonPressEventHandler(this.OnButtonPressEvent);
     this.CCalendar.ButtonPressEvent       += new Gtk.ButtonPressEventHandler(this.OnCalendar4ButtonPressEvent);
     this.CCalendar.DaySelected            += new System.EventHandler(this.OnCCalendarDaySelected);
     this.CCalendar.DaySelectedDoubleClick += new System.EventHandler(this.OnCCalendarDaySelectedDoubleClick);
     this.BtnClear.Clicked                 += new System.EventHandler(this.OnBtnClearClicked);
     this.TxtHour.ValueChanged             += new System.EventHandler(this.OnTxtHourValueChanged);
     this.TxtHour.ButtonPressEvent         += new Gtk.ButtonPressEventHandler(this.OnTxtHourButtonPressEvent);
     this.TxtMin.ValueChanged              += new System.EventHandler(this.OnTxtMinValueChanged);
     this.TxtMin.ButtonPressEvent          += new Gtk.ButtonPressEventHandler(this.OnTxtMinButtonPressEvent);
     this.TxtSec.ValueChanged              += new System.EventHandler(this.OnTxtSecValueChanged);
     this.TxtSec.ButtonPressEvent          += new Gtk.ButtonPressEventHandler(this.OnTxtSecButtonPressEvent);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ControlWrappers.BoundCalendar
     Stetic.BinContainer.Attach(this);
     this.Name = "ControlWrappers.BoundCalendar";
     // Container child ControlWrappers.BoundCalendar.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.calBound = new Gtk.Calendar();
     this.calBound.CanFocus = true;
     this.calBound.Name = "calBound";
     this.calBound.DisplayOptions = ((Gtk.CalendarDisplayOptions)(35));
     this.vbox1.Add(this.calBound);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.calBound]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.lblHour = new Gtk.Label();
     this.lblHour.Name = "lblHour";
     this.lblHour.LabelProp = Mono.Unix.Catalog.GetString("H:");
     this.hbox1.Add(this.lblHour);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.lblHour]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.sbHour = new Gtk.SpinButton(0, 23, 1);
     this.sbHour.CanFocus = true;
     this.sbHour.Name = "sbHour";
     this.sbHour.Adjustment.PageIncrement = 10;
     this.sbHour.ClimbRate = 1;
     this.sbHour.Numeric = true;
     this.hbox1.Add(this.sbHour);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.sbHour]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.lblMinute = new Gtk.Label();
     this.lblMinute.Name = "lblMinute";
     this.lblMinute.LabelProp = Mono.Unix.Catalog.GetString("M:");
     this.hbox1.Add(this.lblMinute);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.lblMinute]));
     w4.Position = 2;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.sbMinute = new Gtk.SpinButton(0, 59, 1);
     this.sbMinute.CanFocus = true;
     this.sbMinute.Name = "sbMinute";
     this.sbMinute.Adjustment.PageIncrement = 10;
     this.sbMinute.ClimbRate = 1;
     this.sbMinute.Numeric = true;
     this.hbox1.Add(this.sbMinute);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.sbMinute]));
     w5.Position = 3;
     w5.Expand = false;
     w5.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.cbNullDateTime = new Gtk.CheckButton();
     this.cbNullDateTime.CanFocus = true;
     this.cbNullDateTime.Name = "cbNullDateTime";
     this.cbNullDateTime.Label = "";
     this.cbNullDateTime.Active = true;
     this.cbNullDateTime.DrawIndicator = true;
     this.cbNullDateTime.UseUnderline = true;
     this.hbox1.Add(this.cbNullDateTime);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.cbNullDateTime]));
     w6.Position = 4;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
     this.calBound.DaySelected += new System.EventHandler(this.CalendarDaySelected);
     this.calBound.DaySelectedDoubleClick += new System.EventHandler(this.CalendarDaySelectedDoubleClick);
     this.sbHour.ValueChanged += new System.EventHandler(this.HourValueChanged);
     this.sbMinute.ValueChanged += new System.EventHandler(this.MinuteValueChanged);
     this.cbNullDateTime.Toggled += new System.EventHandler(this.NullDateTimeToggled);
 }
 public override void Initialize()
 {
     Widget              = new Gtk.Calendar();
     Widget.DaySelected += CheckBetweenMinMax;
     Widget.Show();
 }
Beispiel #17
0
		Gtk.Widget CalendarControls ()
		{
			var vbox = new Gtk.VBox { 
				Spacing = 5
			};

			calendar = new Gtk.Calendar
			{
				CanFocus = true,
				DisplayOptions = Gtk.CalendarDisplayOptions.ShowHeading | Gtk.CalendarDisplayOptions.ShowDayNames
			};
			
			calendar.DaySelected += delegate {
				OnDateChanged (EventArgs.Empty);
			};
			
			calendar.DaySelectedDoubleClick += delegate {
				OnDateChanged (EventArgs.Empty);
				Close ();
			};

			vbox.PackStart(calendar, false, false, 0);
			
			var hbox = new Gtk.HBox (true, 6);

			var todayButton = new Gtk.Button {
				CanFocus = true,
				Label = HasTime ? "Now" : "Today"
			};
			todayButton.Clicked += delegate {
				if (HasDate) {
					calendar.Date = DateTime.Now;
				}
				if (HasTime) {
					hourSpin.Value = DateTime.Now.Hour;
					minutesSpin.Value = DateTime.Now.Minute;
					secondsSpin.Value = DateTime.Now.Second;
					UpdateClock ();
				}
				OnDateChanged (EventArgs.Empty);
				Close ();
			};
			
			hbox.PackStart (todayButton, false, false, 0);

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

			return vbox;
		}
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.TaskForce.LocalProvider.TaskWidgets.EditTaskWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "MonoDevelop.TaskForce.LocalProvider.TaskWidgets.EditTaskWidget";
     // Container child MonoDevelop.TaskForce.LocalProvider.TaskWidgets.EditTaskWidget.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Name");
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.taskNameEntry = new Gtk.Entry();
     this.taskNameEntry.CanFocus = true;
     this.taskNameEntry.Name = "taskNameEntry";
     this.taskNameEntry.IsEditable = true;
     this.taskNameEntry.InvisibleChar = '●';
     this.hbox1.Add(this.taskNameEntry);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.taskNameEntry]));
     w2.Position = 1;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Description");
     this.hbox2.Add(this.label2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.label2]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.taskDescText = new Gtk.TextView();
     this.taskDescText.CanFocus = true;
     this.taskDescText.Name = "taskDescText";
     this.GtkScrolledWindow.Add(this.taskDescText);
     this.hbox2.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.GtkScrolledWindow]));
     w6.Position = 1;
     this.vbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Priority");
     this.hbox3.Add(this.label3);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox3[this.label3]));
     w8.Position = 0;
     w8.Expand = false;
     w8.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.prioritySpin = new Gtk.SpinButton(0, 100, 1);
     this.prioritySpin.CanFocus = true;
     this.prioritySpin.Name = "prioritySpin";
     this.prioritySpin.Adjustment.PageIncrement = 10;
     this.prioritySpin.ClimbRate = 1;
     this.prioritySpin.Numeric = true;
     this.hbox3.Add(this.prioritySpin);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.prioritySpin]));
     w9.Position = 1;
     w9.Expand = false;
     w9.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("label4");
     this.hbox3.Add(this.label4);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox3[this.label4]));
     w10.Position = 2;
     w10.Expand = false;
     w10.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.dueDateCal = new Gtk.Calendar();
     this.dueDateCal.CanFocus = true;
     this.dueDateCal.Name = "dueDateCal";
     this.dueDateCal.DisplayOptions = ((Gtk.CalendarDisplayOptions)(35));
     this.hbox3.Add(this.dueDateCal);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox3[this.dueDateCal]));
     w11.Position = 3;
     w11.Expand = false;
     w11.Fill = false;
     this.vbox1.Add(this.hbox3);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox3]));
     w12.Position = 2;
     w12.Expand = false;
     w12.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.commentWidget2 = new MonoDevelop.TaskForce.Gui.Components.CommentWidget2();
     this.commentWidget2.Events = ((Gdk.EventMask)(256));
     this.commentWidget2.Name = "commentWidget2";
     this.vbox1.Add(this.commentWidget2);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.commentWidget2]));
     w13.Position = 3;
     w13.Expand = false;
     w13.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox6 = new Gtk.HBox();
     this.hbox6.Name = "hbox6";
     this.hbox6.Spacing = 6;
     // Container child hbox6.Gtk.Box+BoxChild
     this.applyButton = new Gtk.Button();
     this.applyButton.CanFocus = true;
     this.applyButton.Name = "applyButton";
     this.applyButton.UseUnderline = true;
     // Container child applyButton.Gtk.Container+ContainerChild
     Gtk.Alignment w14 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w15 = new Gtk.HBox();
     w15.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w16 = new Gtk.Image();
     w16.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Menu, 16);
     w15.Add(w16);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w18 = new Gtk.Label();
     w18.LabelProp = Mono.Unix.Catalog.GetString("Apply");
     w18.UseUnderline = true;
     w15.Add(w18);
     w14.Add(w15);
     this.applyButton.Add(w14);
     this.hbox6.Add(this.applyButton);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox6[this.applyButton]));
     w22.Position = 0;
     w22.Expand = false;
     w22.Fill = false;
     // Container child hbox6.Gtk.Box+BoxChild
     this.button1 = new Gtk.Button();
     this.button1.CanFocus = true;
     this.button1.Name = "button1";
     this.button1.UseUnderline = true;
     // Container child button1.Gtk.Container+ContainerChild
     Gtk.Alignment w23 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w24 = new Gtk.HBox();
     w24.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w25 = new Gtk.Image();
     w25.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-revert-to-saved", Gtk.IconSize.Menu, 16);
     w24.Add(w25);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w27 = new Gtk.Label();
     w27.LabelProp = Mono.Unix.Catalog.GetString("Reset");
     w27.UseUnderline = true;
     w24.Add(w27);
     w23.Add(w24);
     this.button1.Add(w23);
     this.hbox6.Add(this.button1);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox6[this.button1]));
     w31.Position = 1;
     w31.Expand = false;
     w31.Fill = false;
     // Container child hbox6.Gtk.Box+BoxChild
     this.button2 = new Gtk.Button();
     this.button2.CanFocus = true;
     this.button2.Name = "button2";
     this.button2.UseUnderline = true;
     // Container child button2.Gtk.Container+ContainerChild
     Gtk.Alignment w32 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w33 = new Gtk.HBox();
     w33.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w34 = new Gtk.Image();
     w34.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
     w33.Add(w34);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w36 = new Gtk.Label();
     w36.LabelProp = Mono.Unix.Catalog.GetString("Cancel");
     w36.UseUnderline = true;
     w33.Add(w36);
     w32.Add(w33);
     this.button2.Add(w32);
     this.hbox6.Add(this.button2);
     Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.hbox6[this.button2]));
     w40.Position = 2;
     w40.Expand = false;
     w40.Fill = false;
     this.vbox1.Add(this.hbox6);
     Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox6]));
     w41.Position = 4;
     w41.Expand = false;
     w41.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
     this.applyButton.Clicked += new System.EventHandler(this.OnApplyButtonClicked);
     this.button1.Clicked += new System.EventHandler(this.OnResetButtonClicked);
 }
Beispiel #19
0
 void OnDaySelected(object sender, EventArgs args)
 {
     Gtk.Calendar cal = (Gtk.Calendar)sender;
     label.Text = cal.Month + 1 + "/" + cal.Day + "/" + cal.Year;
 }
Beispiel #20
0
        string InvokeNative(Gtk.Calendar calendar, uint year, uint month, uint day)
        {
            string __result = GLib.Marshaller.PtrToStringGFree(native_cb(calendar == null ? IntPtr.Zero : calendar.Handle, year, month, day, __data));

            return(__result);
        }
Beispiel #21
0
        public DatePicker(DateTime datetime, bool nodatebutton, bool selectrange)
            : this(datetime, nodatebutton)
        {
            SelectRange = selectrange;

            if (SelectRange)
            {
                Calc2 = new Gtk.Calendar();
                Calc2.DaySelectedDoubleClick += HandleDaySelectedDoubleClick;
                Gtk.Separator sep = new Gtk.Separator(Gtk.Orientation.Vertical);
                sep.WidthRequest = 20;
                HBox.PackStart(sep,true,true,0);
                HBox.PackEnd(Calc2,true,true,0);
            }
        }
Beispiel #22
0
        /// <summary>
        /// initialize the widegt
        /// </summary>
        private void init()
        {
            this.Expand = true;
            SetSizeRequest(400,200);
            NoDateButton = false;
            VBox = new Gtk.Box(Gtk.Orientation.Vertical,0);
            HBox = new Gtk.Box(Gtk.Orientation.Horizontal,0);

            Calc = new Gtk.Calendar();
            //Calc.DisplayOptions = Gtk.CalendarDisplayOptions.ShowDetails;
            //Calc.SelectionNotifyEvent += HandleSelectionNotifyEvent;
            Calc.ShowAll();
            //Calc.StateChanged += HandleStateChanged;
            HBox.PackStart(Calc,true,true,0);
            VBox.PackEnd(HBox,true,true,0);

            Calc.DaySelectedDoubleClick += HandleDaySelectedDoubleClick;

            VBox.ShowAll();
            this.Add(VBox);
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.DateEditDialog
     this.Name = "HollyLibrary.DateEditDialog";
     this.Title = "DateEditDialog";
     this.TypeHint = ((Gdk.WindowTypeHint)(2));
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth = ((uint)(1));
     this.Resizable = false;
     this.AllowGrow = false;
     this.Decorated = false;
     this.DestroyWithParent = true;
     this.SkipPagerHint = true;
     this.SkipTaskbarHint = true;
     // Container child HollyLibrary.DateEditDialog.Gtk.Container+ContainerChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     this.hbox1.BorderWidth = ((uint)(3));
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.CCalendar = new Gtk.Calendar();
     this.CCalendar.CanFocus = true;
     this.CCalendar.Name = "CCalendar";
     this.CCalendar.DisplayOptions = ((Gtk.CalendarDisplayOptions)(3));
     this.vbox2.Add(this.CCalendar);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.CCalendar]));
     w1.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Homogeneous = true;
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.BtnClear = new Gtk.Button();
     this.BtnClear.CanFocus = true;
     this.BtnClear.Name = "BtnClear";
     this.BtnClear.UseUnderline = true;
     // Container child BtnClear.Gtk.Container+ContainerChild
     Gtk.Alignment w2 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w3 = new Gtk.HBox();
     w3.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w4 = new Gtk.Image();
     w4.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-clear", Gtk.IconSize.Menu, 16);
     w3.Add(w4);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w6 = new Gtk.Label();
     w6.LabelProp = "Now";
     w6.UseUnderline = true;
     w3.Add(w6);
     w2.Add(w3);
     this.BtnClear.Add(w2);
     this.hbox2.Add(this.BtnClear);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.BtnClear]));
     w10.Position = 0;
     this.vbox2.Add(this.hbox2);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2]));
     w11.Position = 1;
     w11.Expand = false;
     w11.Fill = false;
     this.hbox1.Add(this.vbox2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2]));
     w12.Position = 0;
     w12.Expand = false;
     w12.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.Clock = new HollyLibrary.AnalogClock();
     this.Clock.Name = "Clock";
     this.Clock.Datetime = new System.DateTime(0);
     this.vbox3.Add(this.Clock);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox3[this.Clock]));
     w13.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.LabelProp = "H:";
     this.hbox3.Add(this.label4);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox3[this.label4]));
     w14.Position = 0;
     w14.Expand = false;
     w14.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.TxtHour = new Gtk.SpinButton(0, 24, 1);
     this.TxtHour.CanFocus = true;
     this.TxtHour.Name = "TxtHour";
     this.TxtHour.Adjustment.PageIncrement = 1;
     this.TxtHour.ClimbRate = 1;
     this.TxtHour.Numeric = true;
     this.hbox3.Add(this.TxtHour);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox3[this.TxtHour]));
     w15.Position = 1;
     w15.Expand = false;
     w15.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = "M:";
     this.hbox3.Add(this.label2);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox3[this.label2]));
     w16.Position = 2;
     w16.Expand = false;
     w16.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.TxtMin = new Gtk.SpinButton(0, 60, 1);
     this.TxtMin.CanFocus = true;
     this.TxtMin.Name = "TxtMin";
     this.TxtMin.Adjustment.PageIncrement = 10;
     this.TxtMin.ClimbRate = 1;
     this.TxtMin.Numeric = true;
     this.hbox3.Add(this.TxtMin);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox3[this.TxtMin]));
     w17.Position = 3;
     w17.Expand = false;
     w17.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = "S:";
     this.hbox3.Add(this.label3);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox3[this.label3]));
     w18.Position = 4;
     w18.Expand = false;
     w18.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.TxtSec = new Gtk.SpinButton(0, 60, 1);
     this.TxtSec.CanFocus = true;
     this.TxtSec.Name = "TxtSec";
     this.TxtSec.Adjustment.PageIncrement = 10;
     this.TxtSec.ClimbRate = 1;
     this.TxtSec.Numeric = true;
     this.hbox3.Add(this.TxtSec);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox3[this.TxtSec]));
     w19.Position = 5;
     w19.Expand = false;
     w19.Fill = false;
     this.vbox3.Add(this.hbox3);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3]));
     w20.Position = 1;
     w20.Expand = false;
     this.hbox1.Add(this.vbox3);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox3]));
     w21.Position = 1;
     w21.Expand = false;
     w21.Fill = false;
     this.Add(this.hbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 491;
     this.DefaultHeight = 263;
     this.Show();
     this.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnButtonPressEvent);
     this.CCalendar.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnCalendar4ButtonPressEvent);
     this.CCalendar.DaySelected += new System.EventHandler(this.OnCCalendarDaySelected);
     this.CCalendar.DaySelectedDoubleClick += new System.EventHandler(this.OnCCalendarDaySelectedDoubleClick);
     this.BtnClear.Clicked += new System.EventHandler(this.OnBtnClearClicked);
     this.TxtHour.ValueChanged += new System.EventHandler(this.OnTxtHourValueChanged);
     this.TxtHour.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnTxtHourButtonPressEvent);
     this.TxtMin.ValueChanged += new System.EventHandler(this.OnTxtMinValueChanged);
     this.TxtMin.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnTxtMinButtonPressEvent);
     this.TxtSec.ValueChanged += new System.EventHandler(this.OnTxtSecValueChanged);
     this.TxtSec.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnTxtSecButtonPressEvent);
 }
Beispiel #24
0
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.XFileAction = new Gtk.Action("XFileAction", Mono.Unix.Catalog.GetString("XFile"), null, null);
     this.XFileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.XFileAction, null);
     this.GimmeHelpAction = new Gtk.Action("GimmeHelpAction", Mono.Unix.Catalog.GetString("GimmeHelp"), null, null);
     this.GimmeHelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w1.Add(this.GimmeHelpAction, null);
     this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, null);
     this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About");
     w1.Add(this.AboutAction, null);
     this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("Quit"), null, null);
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit");
     w1.Add(this.QuitAction, null);
     this.SomeEditMenuAction = new Gtk.Action("SomeEditMenuAction", Mono.Unix.Catalog.GetString("SomeEditMenu"), null, null);
     this.SomeEditMenuAction.ShortLabel = Mono.Unix.Catalog.GetString("SomeEditMenu");
     w1.Add(this.SomeEditMenuAction, null);
     this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("New"), null, null);
     this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("New");
     w1.Add(this.NewAction, null);
     this.Action1 = new Gtk.Action("Action1", null, null, null);
     w1.Add(this.Action1, null);
     this.indexAction = new Gtk.Action("indexAction", null, Mono.Unix.Catalog.GetString("tooltipText"), "gtk-index");
     w1.Add(this.indexAction, null);
     this.cdromAction = new Gtk.Action("cdromAction", null, null, "gtk-cdrom");
     w1.Add(this.cdromAction, null);
     this.RadioInToolBarTest1Action = new Gtk.RadioAction("RadioInToolBarTest1Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest1"), null, null, 0);
     this.RadioInToolBarTest1Action.Group = new GLib.SList(System.IntPtr.Zero);
     this.RadioInToolBarTest1Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest1");
     w1.Add(this.RadioInToolBarTest1Action, null);
     this.RadioInToolBarTest2Action = new Gtk.RadioAction("RadioInToolBarTest2Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest2"), null, null, 0);
     this.RadioInToolBarTest2Action.Group = this.RadioInToolBarTest1Action.Group;
     this.RadioInToolBarTest2Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest2");
     w1.Add(this.RadioInToolBarTest2Action, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='XFileAction' action='XFileAction'><menuitem name='NewAction' action='NewAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='SomeEditMenuAction' action='SomeEditMenuAction'/><menu name='GimmeHelpAction' action='GimmeHelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='indexAction' action='indexAction'/><toolitem name='RadioInToolBarTest1Action' action='RadioInToolBarTest1Action'/><toolitem name='RadioInToolBarTest2Action' action='RadioInToolBarTest2Action'/></toolbar></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.Name = "toolbar1";
     this.toolbar1.ShowArrow = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.vbox1.Add(this.toolbar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook1 = new Gtk.Notebook();
     this.notebook1.CanFocus = true;
     this.notebook1.Name = "notebook1";
     this.notebook1.CurrentPage = 0;
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.treeview2 = new Gtk.TreeView();
     this.treeview2.CanFocus = true;
     this.treeview2.Name = "treeview2";
     this.GtkScrolledWindow.Add(this.treeview2);
     this.hbox1.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow]));
     w5.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.table1 = new Gtk.Table(((uint)(5)), ((uint)(3)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.btnTest1 = new Gtk.Button();
     this.btnTest1.CanFocus = true;
     this.btnTest1.Name = "btnTest1";
     this.btnTest1.UseUnderline = true;
     this.btnTest1.Label = Mono.Unix.Catalog.GetString("hey ya");
     this.table1.Add(this.btnTest1);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.btnTest1]));
     w6.LeftAttach = ((uint)(2));
     w6.RightAttach = ((uint)(3));
     w6.XOptions = ((Gtk.AttachOptions)(4));
     w6.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.btnWithImg = new Gtk.Button();
     this.btnWithImg.CanFocus = true;
     this.btnWithImg.Name = "btnWithImg";
     this.btnWithImg.UseUnderline = true;
     this.btnWithImg.Label = Mono.Unix.Catalog.GetString("IMG");
     this.table1.Add(this.btnWithImg);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.btnWithImg]));
     w7.TopAttach = ((uint)(3));
     w7.BottomAttach = ((uint)(4));
     w7.XOptions = ((Gtk.AttachOptions)(4));
     w7.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.cbeTest = Gtk.ComboBoxEntry.NewText();
     this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("First element"));
     this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Second element"));
     this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Third element"));
     this.cbeTest.Name = "cbeTest";
     this.table1.Add(this.cbeTest);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.cbeTest]));
     w8.TopAttach = ((uint)(1));
     w8.BottomAttach = ((uint)(2));
     w8.LeftAttach = ((uint)(2));
     w8.RightAttach = ((uint)(3));
     w8.XOptions = ((Gtk.AttachOptions)(4));
     w8.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.cbxTest = Gtk.ComboBox.NewText();
     this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("FirstItem"));
     this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("SecondItem"));
     this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("LastItem"));
     this.cbxTest.Name = "cbxTest";
     this.table1.Add(this.cbxTest);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.cbxTest]));
     w9.TopAttach = ((uint)(1));
     w9.BottomAttach = ((uint)(2));
     w9.LeftAttach = ((uint)(1));
     w9.RightAttach = ((uint)(2));
     w9.XOptions = ((Gtk.AttachOptions)(4));
     w9.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.checkbutton1 = new Gtk.CheckButton();
     this.checkbutton1.CanFocus = true;
     this.checkbutton1.Name = "checkbutton1";
     this.checkbutton1.Label = Mono.Unix.Catalog.GetString("checkbutton1");
     this.checkbutton1.DrawIndicator = true;
     this.checkbutton1.UseUnderline = true;
     this.table1.Add(this.checkbutton1);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.checkbutton1]));
     w10.TopAttach = ((uint)(2));
     w10.BottomAttach = ((uint)(3));
     w10.XOptions = ((Gtk.AttachOptions)(4));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.chkTest = new Gtk.CheckButton();
     this.chkTest.CanFocus = true;
     this.chkTest.Name = "chkTest";
     this.chkTest.Label = Mono.Unix.Catalog.GetString("checkbutton1");
     this.chkTest.DrawIndicator = true;
     this.chkTest.UseUnderline = true;
     this.table1.Add(this.chkTest);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.chkTest]));
     w11.TopAttach = ((uint)(1));
     w11.BottomAttach = ((uint)(2));
     w11.XOptions = ((Gtk.AttachOptions)(4));
     w11.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.lblTest1 = new Gtk.Label();
     this.lblTest1.Name = "lblTest1";
     this.lblTest1.LabelProp = Mono.Unix.Catalog.GetString("This is a test message\nin a label");
     this.table1.Add(this.lblTest1);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.lblTest1]));
     w12.XOptions = ((Gtk.AttachOptions)(4));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.maskedEntry = new Gtk.Entry();
     this.maskedEntry.CanFocus = true;
     this.maskedEntry.Name = "maskedEntry";
     this.maskedEntry.IsEditable = true;
     this.maskedEntry.InvisibleChar = '●';
     this.table1.Add(this.maskedEntry);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.maskedEntry]));
     w13.TopAttach = ((uint)(4));
     w13.BottomAttach = ((uint)(5));
     w13.LeftAttach = ((uint)(2));
     w13.RightAttach = ((uint)(3));
     w13.XOptions = ((Gtk.AttachOptions)(4));
     w13.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.radiobutton1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton1"));
     this.radiobutton1.CanFocus = true;
     this.radiobutton1.Name = "radiobutton1";
     this.radiobutton1.DrawIndicator = true;
     this.radiobutton1.UseUnderline = true;
     this.radiobutton1.Group = new GLib.SList(System.IntPtr.Zero);
     this.table1.Add(this.radiobutton1);
     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton1]));
     w14.TopAttach = ((uint)(3));
     w14.BottomAttach = ((uint)(4));
     w14.LeftAttach = ((uint)(1));
     w14.RightAttach = ((uint)(2));
     w14.XOptions = ((Gtk.AttachOptions)(4));
     w14.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.radiobutton2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton2"));
     this.radiobutton2.CanFocus = true;
     this.radiobutton2.Name = "radiobutton2";
     this.radiobutton2.DrawIndicator = true;
     this.radiobutton2.UseUnderline = true;
     this.radiobutton2.Group = this.radiobutton1.Group;
     this.table1.Add(this.radiobutton2);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton2]));
     w15.TopAttach = ((uint)(3));
     w15.BottomAttach = ((uint)(4));
     w15.LeftAttach = ((uint)(2));
     w15.RightAttach = ((uint)(3));
     w15.XOptions = ((Gtk.AttachOptions)(4));
     w15.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.radTest1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 0"));
     this.radTest1.CanFocus = true;
     this.radTest1.Name = "radTest1";
     this.radTest1.DrawIndicator = true;
     this.radTest1.UseUnderline = true;
     this.radTest1.Group = new GLib.SList(System.IntPtr.Zero);
     this.table1.Add(this.radTest1);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.radTest1]));
     w16.TopAttach = ((uint)(2));
     w16.BottomAttach = ((uint)(3));
     w16.LeftAttach = ((uint)(1));
     w16.RightAttach = ((uint)(2));
     w16.XOptions = ((Gtk.AttachOptions)(4));
     w16.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.radTest2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 1"));
     this.radTest2.CanFocus = true;
     this.radTest2.Name = "radTest2";
     this.radTest2.DrawIndicator = true;
     this.radTest2.UseUnderline = true;
     this.radTest2.Group = this.radTest1.Group;
     this.table1.Add(this.radTest2);
     Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.radTest2]));
     w17.TopAttach = ((uint)(2));
     w17.BottomAttach = ((uint)(3));
     w17.LeftAttach = ((uint)(2));
     w17.RightAttach = ((uint)(3));
     w17.XOptions = ((Gtk.AttachOptions)(4));
     w17.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.spinbuttonTest1 = new Gtk.SpinButton(0, 100, 1);
     this.spinbuttonTest1.CanFocus = true;
     this.spinbuttonTest1.Name = "spinbuttonTest1";
     this.spinbuttonTest1.Adjustment.PageIncrement = 10;
     this.spinbuttonTest1.ClimbRate = 1;
     this.spinbuttonTest1.Numeric = true;
     this.table1.Add(this.spinbuttonTest1);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.spinbuttonTest1]));
     w18.TopAttach = ((uint)(4));
     w18.BottomAttach = ((uint)(5));
     w18.XOptions = ((Gtk.AttachOptions)(4));
     w18.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.txtEntry = new Gtk.Entry();
     this.txtEntry.CanFocus = true;
     this.txtEntry.Name = "txtEntry";
     this.txtEntry.Text = Mono.Unix.Catalog.GetString("test text");
     this.txtEntry.IsEditable = true;
     this.txtEntry.InvisibleChar = '●';
     this.table1.Add(this.txtEntry);
     Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.txtEntry]));
     w19.LeftAttach = ((uint)(1));
     w19.RightAttach = ((uint)(2));
     w19.XOptions = ((Gtk.AttachOptions)(4));
     w19.YOptions = ((Gtk.AttachOptions)(4));
     this.hbox1.Add(this.table1);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox1[this.table1]));
     w20.Position = 1;
     w20.Expand = false;
     w20.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vscrollbar1 = new Gtk.VScrollbar(null);
     this.vscrollbar1.Name = "vscrollbar1";
     this.vscrollbar1.Adjustment.Upper = 100;
     this.vscrollbar1.Adjustment.PageIncrement = 10;
     this.vscrollbar1.Adjustment.PageSize = 10;
     this.vscrollbar1.Adjustment.StepIncrement = 1;
     this.hbox1.Add(this.vscrollbar1);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.vscrollbar1]));
     w21.Position = 2;
     w21.Expand = false;
     w21.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.imgTest1 = new Gtk.Image();
     this.imgTest1.Name = "imgTest1";
     this.hbox1.Add(this.imgTest1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest1]));
     w22.Position = 3;
     w22.Expand = false;
     w22.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.imgTest2 = new Gtk.Image();
     this.imgTest2.Name = "imgTest2";
     this.hbox1.Add(this.imgTest2);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest2]));
     w23.Position = 5;
     w23.Expand = false;
     w23.Fill = false;
     this.notebook1.Add(this.hbox1);
     // Notebook tab
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("page1");
     this.notebook1.SetTabLabel(this.hbox1, this.label1);
     this.label1.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.calendar1 = new Gtk.Calendar();
     this.calendar1.CanFocus = true;
     this.calendar1.Name = "calendar1";
     this.calendar1.DisplayOptions = ((Gtk.CalendarDisplayOptions)(3));
     this.notebook1.Add(this.calendar1);
     Gtk.Notebook.NotebookChild w25 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.calendar1]));
     w25.Position = 1;
     // Notebook tab
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("page2");
     this.notebook1.SetTabLabel(this.calendar1, this.label2);
     this.label2.ShowAll();
     this.vbox1.Add(this.notebook1);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1]));
     w26.Position = 2;
     w26.Expand = false;
     w26.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.progressbar1 = new Gtk.ProgressBar();
     this.progressbar1.Name = "progressbar1";
     this.vbox1.Add(this.progressbar1);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.progressbar1]));
     w27.Position = 3;
     w27.Expand = false;
     w27.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hscrollbar1 = new Gtk.HScrollbar(null);
     this.hscrollbar1.Name = "hscrollbar1";
     this.hscrollbar1.Adjustment.Upper = 100;
     this.hscrollbar1.Adjustment.PageIncrement = 10;
     this.hscrollbar1.Adjustment.PageSize = 10;
     this.hscrollbar1.Adjustment.StepIncrement = 1;
     this.hscrollbar1.Adjustment.Value = 9.28317766722556;
     this.vbox1.Add(this.hscrollbar1);
     Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hscrollbar1]));
     w28.Position = 4;
     w28.Expand = false;
     w28.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 19;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vscale1 = new Gtk.VScale(null);
     this.vscale1.CanFocus = true;
     this.vscale1.Name = "vscale1";
     this.vscale1.Adjustment.Upper = 100;
     this.vscale1.Adjustment.PageIncrement = 10;
     this.vscale1.Adjustment.StepIncrement = 1;
     this.vscale1.DrawValue = true;
     this.vscale1.Digits = 0;
     this.vscale1.ValuePos = ((Gtk.PositionType)(2));
     this.hpaned1.Add(this.vscale1);
     Gtk.Paned.PanedChild w29 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vscale1]));
     w29.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.GtkScrolledWindow2 = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
     this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
     this.nodeview1 = new Gtk.NodeView();
     this.nodeview1.CanFocus = true;
     this.nodeview1.Name = "nodeview1";
     this.GtkScrolledWindow2.Add(this.nodeview1);
     this.hpaned1.Add(this.GtkScrolledWindow2);
     this.hbox2.Add(this.hpaned1);
     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox2[this.hpaned1]));
     w32.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.GtkScrolledWindow1 = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.txtViewTest = new Gtk.TextView();
     this.txtViewTest.CanFocus = true;
     this.txtViewTest.Name = "txtViewTest";
     this.GtkScrolledWindow1.Add(this.txtViewTest);
     this.hbox2.Add(this.GtkScrolledWindow1);
     Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox2[this.GtkScrolledWindow1]));
     w34.Position = 1;
     // Container child hbox2.Gtk.Box+BoxChild
     this.frame1 = new Gtk.Frame();
     this.frame1.Name = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment.Name = "GtkAlignment";
     this.GtkAlignment.LeftPadding = ((uint)(12));
     this.frame1.Add(this.GtkAlignment);
     this.GtkLabel13 = new Gtk.Label();
     this.GtkLabel13.Name = "GtkLabel13";
     this.GtkLabel13.LabelProp = Mono.Unix.Catalog.GetString("<b>frame1</b>");
     this.GtkLabel13.UseMarkup = true;
     this.frame1.LabelWidget = this.GtkLabel13;
     this.hbox2.Add(this.frame1);
     Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox2[this.frame1]));
     w36.Position = 2;
     w36.Expand = false;
     w36.Fill = false;
     this.vbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
     w37.Position = 5;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar1 = new Gtk.Statusbar();
     this.statusbar1.Name = "statusbar1";
     this.statusbar1.Spacing = 6;
     this.vbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w38.Position = 7;
     w38.Expand = false;
     w38.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 757;
     this.DefaultHeight = 516;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
Beispiel #25
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.XFileAction            = new Gtk.Action("XFileAction", Mono.Unix.Catalog.GetString("XFile"), null, null);
     this.XFileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.XFileAction, null);
     this.GimmeHelpAction            = new Gtk.Action("GimmeHelpAction", Mono.Unix.Catalog.GetString("GimmeHelp"), null, null);
     this.GimmeHelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w1.Add(this.GimmeHelpAction, null);
     this.AboutAction            = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, null);
     this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About");
     w1.Add(this.AboutAction, null);
     this.QuitAction            = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("Quit"), null, null);
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit");
     w1.Add(this.QuitAction, null);
     this.SomeEditMenuAction            = new Gtk.Action("SomeEditMenuAction", Mono.Unix.Catalog.GetString("SomeEditMenu"), null, null);
     this.SomeEditMenuAction.ShortLabel = Mono.Unix.Catalog.GetString("SomeEditMenu");
     w1.Add(this.SomeEditMenuAction, null);
     this.NewAction            = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("New"), null, null);
     this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("New");
     w1.Add(this.NewAction, null);
     this.Action1 = new Gtk.Action("Action1", null, null, null);
     w1.Add(this.Action1, null);
     this.indexAction = new Gtk.Action("indexAction", null, Mono.Unix.Catalog.GetString("tooltipText"), "gtk-index");
     w1.Add(this.indexAction, null);
     this.cdromAction = new Gtk.Action("cdromAction", null, null, "gtk-cdrom");
     w1.Add(this.cdromAction, null);
     this.RadioInToolBarTest1Action            = new Gtk.RadioAction("RadioInToolBarTest1Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest1"), null, null, 0);
     this.RadioInToolBarTest1Action.Group      = new GLib.SList(System.IntPtr.Zero);
     this.RadioInToolBarTest1Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest1");
     w1.Add(this.RadioInToolBarTest1Action, null);
     this.RadioInToolBarTest2Action            = new Gtk.RadioAction("RadioInToolBarTest2Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest2"), null, null, 0);
     this.RadioInToolBarTest2Action.Group      = this.RadioInToolBarTest1Action.Group;
     this.RadioInToolBarTest2Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest2");
     w1.Add(this.RadioInToolBarTest2Action, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='XFileAction' action='XFileAction'><menuitem name='NewAction' action='NewAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='SomeEditMenuAction' action='SomeEditMenuAction'/><menu name='GimmeHelpAction' action='GimmeHelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>");
     this.menubar1      = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='indexAction' action='indexAction'/><toolitem name='RadioInToolBarTest1Action' action='RadioInToolBarTest1Action'/><toolitem name='RadioInToolBarTest2Action' action='RadioInToolBarTest2Action'/></toolbar></ui>");
     this.toolbar1              = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.Name         = "toolbar1";
     this.toolbar1.ShowArrow    = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.vbox1.Add(this.toolbar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook1             = new Gtk.Notebook();
     this.notebook1.CanFocus    = true;
     this.notebook1.Name        = "notebook1";
     this.notebook1.CurrentPage = 0;
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.GtkScrolledWindow            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name       = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.treeview2          = new Gtk.TreeView();
     this.treeview2.CanFocus = true;
     this.treeview2.Name     = "treeview2";
     this.GtkScrolledWindow.Add(this.treeview2);
     this.hbox1.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow]));
     w5.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.table1               = new Gtk.Table(((uint)(5)), ((uint)(3)), false);
     this.table1.Name          = "table1";
     this.table1.RowSpacing    = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.btnTest1              = new Gtk.Button();
     this.btnTest1.CanFocus     = true;
     this.btnTest1.Name         = "btnTest1";
     this.btnTest1.UseUnderline = true;
     this.btnTest1.Label        = Mono.Unix.Catalog.GetString("hey ya");
     this.table1.Add(this.btnTest1);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.btnTest1]));
     w6.LeftAttach  = ((uint)(2));
     w6.RightAttach = ((uint)(3));
     w6.XOptions    = ((Gtk.AttachOptions)(4));
     w6.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.btnWithImg              = new Gtk.Button();
     this.btnWithImg.CanFocus     = true;
     this.btnWithImg.Name         = "btnWithImg";
     this.btnWithImg.UseUnderline = true;
     this.btnWithImg.Label        = Mono.Unix.Catalog.GetString("IMG");
     this.table1.Add(this.btnWithImg);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.btnWithImg]));
     w7.TopAttach    = ((uint)(3));
     w7.BottomAttach = ((uint)(4));
     w7.XOptions     = ((Gtk.AttachOptions)(4));
     w7.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.cbeTest = Gtk.ComboBoxEntry.NewText();
     this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("First element"));
     this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Second element"));
     this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Third element"));
     this.cbeTest.Name = "cbeTest";
     this.table1.Add(this.cbeTest);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.cbeTest]));
     w8.TopAttach    = ((uint)(1));
     w8.BottomAttach = ((uint)(2));
     w8.LeftAttach   = ((uint)(2));
     w8.RightAttach  = ((uint)(3));
     w8.XOptions     = ((Gtk.AttachOptions)(4));
     w8.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.cbxTest = Gtk.ComboBox.NewText();
     this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("FirstItem"));
     this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("SecondItem"));
     this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("LastItem"));
     this.cbxTest.Name = "cbxTest";
     this.table1.Add(this.cbxTest);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.cbxTest]));
     w9.TopAttach    = ((uint)(1));
     w9.BottomAttach = ((uint)(2));
     w9.LeftAttach   = ((uint)(1));
     w9.RightAttach  = ((uint)(2));
     w9.XOptions     = ((Gtk.AttachOptions)(4));
     w9.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.checkbutton1               = new Gtk.CheckButton();
     this.checkbutton1.CanFocus      = true;
     this.checkbutton1.Name          = "checkbutton1";
     this.checkbutton1.Label         = Mono.Unix.Catalog.GetString("checkbutton1");
     this.checkbutton1.DrawIndicator = true;
     this.checkbutton1.UseUnderline  = true;
     this.table1.Add(this.checkbutton1);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.checkbutton1]));
     w10.TopAttach    = ((uint)(2));
     w10.BottomAttach = ((uint)(3));
     w10.XOptions     = ((Gtk.AttachOptions)(4));
     w10.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.chkTest               = new Gtk.CheckButton();
     this.chkTest.CanFocus      = true;
     this.chkTest.Name          = "chkTest";
     this.chkTest.Label         = Mono.Unix.Catalog.GetString("checkbutton1");
     this.chkTest.DrawIndicator = true;
     this.chkTest.UseUnderline  = true;
     this.table1.Add(this.chkTest);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.chkTest]));
     w11.TopAttach    = ((uint)(1));
     w11.BottomAttach = ((uint)(2));
     w11.XOptions     = ((Gtk.AttachOptions)(4));
     w11.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.lblTest1           = new Gtk.Label();
     this.lblTest1.Name      = "lblTest1";
     this.lblTest1.LabelProp = Mono.Unix.Catalog.GetString("This is a test message\nin a label");
     this.table1.Add(this.lblTest1);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.lblTest1]));
     w12.XOptions = ((Gtk.AttachOptions)(4));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.maskedEntry               = new Gtk.Entry();
     this.maskedEntry.CanFocus      = true;
     this.maskedEntry.Name          = "maskedEntry";
     this.maskedEntry.IsEditable    = true;
     this.maskedEntry.InvisibleChar = '●';
     this.table1.Add(this.maskedEntry);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.maskedEntry]));
     w13.TopAttach    = ((uint)(4));
     w13.BottomAttach = ((uint)(5));
     w13.LeftAttach   = ((uint)(2));
     w13.RightAttach  = ((uint)(3));
     w13.XOptions     = ((Gtk.AttachOptions)(4));
     w13.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.radiobutton1               = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton1"));
     this.radiobutton1.CanFocus      = true;
     this.radiobutton1.Name          = "radiobutton1";
     this.radiobutton1.DrawIndicator = true;
     this.radiobutton1.UseUnderline  = true;
     this.radiobutton1.Group         = new GLib.SList(System.IntPtr.Zero);
     this.table1.Add(this.radiobutton1);
     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton1]));
     w14.TopAttach    = ((uint)(3));
     w14.BottomAttach = ((uint)(4));
     w14.LeftAttach   = ((uint)(1));
     w14.RightAttach  = ((uint)(2));
     w14.XOptions     = ((Gtk.AttachOptions)(4));
     w14.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.radiobutton2               = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton2"));
     this.radiobutton2.CanFocus      = true;
     this.radiobutton2.Name          = "radiobutton2";
     this.radiobutton2.DrawIndicator = true;
     this.radiobutton2.UseUnderline  = true;
     this.radiobutton2.Group         = this.radiobutton1.Group;
     this.table1.Add(this.radiobutton2);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton2]));
     w15.TopAttach    = ((uint)(3));
     w15.BottomAttach = ((uint)(4));
     w15.LeftAttach   = ((uint)(2));
     w15.RightAttach  = ((uint)(3));
     w15.XOptions     = ((Gtk.AttachOptions)(4));
     w15.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.radTest1               = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 0"));
     this.radTest1.CanFocus      = true;
     this.radTest1.Name          = "radTest1";
     this.radTest1.DrawIndicator = true;
     this.radTest1.UseUnderline  = true;
     this.radTest1.Group         = new GLib.SList(System.IntPtr.Zero);
     this.table1.Add(this.radTest1);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.radTest1]));
     w16.TopAttach    = ((uint)(2));
     w16.BottomAttach = ((uint)(3));
     w16.LeftAttach   = ((uint)(1));
     w16.RightAttach  = ((uint)(2));
     w16.XOptions     = ((Gtk.AttachOptions)(4));
     w16.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.radTest2               = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 1"));
     this.radTest2.CanFocus      = true;
     this.radTest2.Name          = "radTest2";
     this.radTest2.DrawIndicator = true;
     this.radTest2.UseUnderline  = true;
     this.radTest2.Group         = this.radTest1.Group;
     this.table1.Add(this.radTest2);
     Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.radTest2]));
     w17.TopAttach    = ((uint)(2));
     w17.BottomAttach = ((uint)(3));
     w17.LeftAttach   = ((uint)(2));
     w17.RightAttach  = ((uint)(3));
     w17.XOptions     = ((Gtk.AttachOptions)(4));
     w17.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.spinbuttonTest1          = new Gtk.SpinButton(0, 100, 1);
     this.spinbuttonTest1.CanFocus = true;
     this.spinbuttonTest1.Name     = "spinbuttonTest1";
     this.spinbuttonTest1.Adjustment.PageIncrement = 10;
     this.spinbuttonTest1.ClimbRate = 1;
     this.spinbuttonTest1.Numeric   = true;
     this.table1.Add(this.spinbuttonTest1);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.spinbuttonTest1]));
     w18.TopAttach    = ((uint)(4));
     w18.BottomAttach = ((uint)(5));
     w18.XOptions     = ((Gtk.AttachOptions)(4));
     w18.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.txtEntry               = new Gtk.Entry();
     this.txtEntry.CanFocus      = true;
     this.txtEntry.Name          = "txtEntry";
     this.txtEntry.Text          = Mono.Unix.Catalog.GetString("test text");
     this.txtEntry.IsEditable    = true;
     this.txtEntry.InvisibleChar = '●';
     this.table1.Add(this.txtEntry);
     Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.txtEntry]));
     w19.LeftAttach  = ((uint)(1));
     w19.RightAttach = ((uint)(2));
     w19.XOptions    = ((Gtk.AttachOptions)(4));
     w19.YOptions    = ((Gtk.AttachOptions)(4));
     this.hbox1.Add(this.table1);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox1[this.table1]));
     w20.Position = 1;
     w20.Expand   = false;
     w20.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vscrollbar1                          = new Gtk.VScrollbar(null);
     this.vscrollbar1.Name                     = "vscrollbar1";
     this.vscrollbar1.Adjustment.Upper         = 100;
     this.vscrollbar1.Adjustment.PageIncrement = 10;
     this.vscrollbar1.Adjustment.PageSize      = 10;
     this.vscrollbar1.Adjustment.StepIncrement = 1;
     this.hbox1.Add(this.vscrollbar1);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.vscrollbar1]));
     w21.Position = 2;
     w21.Expand   = false;
     w21.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.imgTest1      = new Gtk.Image();
     this.imgTest1.Name = "imgTest1";
     this.hbox1.Add(this.imgTest1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest1]));
     w22.Position = 3;
     w22.Expand   = false;
     w22.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.imgTest2      = new Gtk.Image();
     this.imgTest2.Name = "imgTest2";
     this.hbox1.Add(this.imgTest2);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest2]));
     w23.Position = 5;
     w23.Expand   = false;
     w23.Fill     = false;
     this.notebook1.Add(this.hbox1);
     // Notebook tab
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("page1");
     this.notebook1.SetTabLabel(this.hbox1, this.label1);
     this.label1.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.calendar1                = new Gtk.Calendar();
     this.calendar1.CanFocus       = true;
     this.calendar1.Name           = "calendar1";
     this.calendar1.DisplayOptions = ((Gtk.CalendarDisplayOptions)(3));
     this.notebook1.Add(this.calendar1);
     Gtk.Notebook.NotebookChild w25 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.calendar1]));
     w25.Position = 1;
     // Notebook tab
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("page2");
     this.notebook1.SetTabLabel(this.calendar1, this.label2);
     this.label2.ShowAll();
     this.vbox1.Add(this.notebook1);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1]));
     w26.Position = 2;
     w26.Expand   = false;
     w26.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.progressbar1      = new Gtk.ProgressBar();
     this.progressbar1.Name = "progressbar1";
     this.vbox1.Add(this.progressbar1);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.progressbar1]));
     w27.Position = 3;
     w27.Expand   = false;
     w27.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hscrollbar1                          = new Gtk.HScrollbar(null);
     this.hscrollbar1.Name                     = "hscrollbar1";
     this.hscrollbar1.Adjustment.Upper         = 100;
     this.hscrollbar1.Adjustment.PageIncrement = 10;
     this.hscrollbar1.Adjustment.PageSize      = 10;
     this.hscrollbar1.Adjustment.StepIncrement = 1;
     this.hscrollbar1.Adjustment.Value         = 9.28317766722556;
     this.vbox1.Add(this.hscrollbar1);
     Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hscrollbar1]));
     w28.Position = 4;
     w28.Expand   = false;
     w28.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.hpaned1          = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name     = "hpaned1";
     this.hpaned1.Position = 19;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vscale1                          = new Gtk.VScale(null);
     this.vscale1.CanFocus                 = true;
     this.vscale1.Name                     = "vscale1";
     this.vscale1.Adjustment.Upper         = 100;
     this.vscale1.Adjustment.PageIncrement = 10;
     this.vscale1.Adjustment.StepIncrement = 1;
     this.vscale1.DrawValue                = true;
     this.vscale1.Digits                   = 0;
     this.vscale1.ValuePos                 = ((Gtk.PositionType)(2));
     this.hpaned1.Add(this.vscale1);
     Gtk.Paned.PanedChild w29 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vscale1]));
     w29.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.GtkScrolledWindow2            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow2.Name       = "GtkScrolledWindow2";
     this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
     this.nodeview1          = new Gtk.NodeView();
     this.nodeview1.CanFocus = true;
     this.nodeview1.Name     = "nodeview1";
     this.GtkScrolledWindow2.Add(this.nodeview1);
     this.hpaned1.Add(this.GtkScrolledWindow2);
     this.hbox2.Add(this.hpaned1);
     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox2[this.hpaned1]));
     w32.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.GtkScrolledWindow1            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name       = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.txtViewTest          = new Gtk.TextView();
     this.txtViewTest.CanFocus = true;
     this.txtViewTest.Name     = "txtViewTest";
     this.GtkScrolledWindow1.Add(this.txtViewTest);
     this.hbox2.Add(this.GtkScrolledWindow1);
     Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox2[this.GtkScrolledWindow1]));
     w34.Position = 1;
     // Container child hbox2.Gtk.Box+BoxChild
     this.frame1            = new Gtk.Frame();
     this.frame1.Name       = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment.Name        = "GtkAlignment";
     this.GtkAlignment.LeftPadding = ((uint)(12));
     this.frame1.Add(this.GtkAlignment);
     this.GtkLabel13           = new Gtk.Label();
     this.GtkLabel13.Name      = "GtkLabel13";
     this.GtkLabel13.LabelProp = Mono.Unix.Catalog.GetString("<b>frame1</b>");
     this.GtkLabel13.UseMarkup = true;
     this.frame1.LabelWidget   = this.GtkLabel13;
     this.hbox2.Add(this.frame1);
     Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox2[this.frame1]));
     w36.Position = 2;
     w36.Expand   = false;
     w36.Fill     = false;
     this.vbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
     w37.Position = 5;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar1         = new Gtk.Statusbar();
     this.statusbar1.Name    = "statusbar1";
     this.statusbar1.Spacing = 6;
     this.vbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w38.Position = 7;
     w38.Expand   = false;
     w38.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 757;
     this.DefaultHeight = 516;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }