Exemple #1
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.HTMLEditorWidget
     Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this);
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.UIManager.InsertActionGroup(w2, 0);
     this.Name = "ocmgtk.HTMLEditorWidget";
     // Container child ocmgtk.HTMLEditorWidget.Gtk.Container+ContainerChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.editorWindow            = new Gtk.ScrolledWindow();
     this.editorWindow.CanFocus   = true;
     this.editorWindow.Name       = "editorWindow";
     this.editorWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child editorWindow.Gtk.Container+ContainerChild
     this.editor          = new Gtk.TextView();
     this.editor.CanFocus = true;
     this.editor.Name     = "editor";
     this.editor.WrapMode = ((Gtk.WrapMode)(2));
     this.editorWindow.Add(this.editor);
     this.vbox3.Add(this.editorWindow);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.editorWindow]));
     w4.Position = 0;
     this.Add(this.vbox3);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     w1.SetUiManager(UIManager);
     this.Hide();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget Monodoc.Editor.OpenDocDialog
     this.Name           = "Monodoc.Editor.OpenDocDialog";
     this.Title          = Mono.Unix.Catalog.GetString("File to Open");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.HasSeparator   = false;
     // Internal child Monodoc.Editor.OpenDocDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.openFileDialog      = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(0)));
     this.openFileDialog.Name = "openFileDialog";
     w1.Add(this.openFileDialog);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.openFileDialog]));
     w2.Position = 0;
     // Internal child Monodoc.Editor.OpenDocDialog.ActionArea
     Gtk.HButtonBox w3 = this.ActionArea;
     w3.Name        = "dialog1_ActionArea";
     w3.Spacing     = 6;
     w3.BorderWidth = ((uint)(5));
     w3.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel              = new Gtk.Button();
     this.buttonCancel.CanDefault   = true;
     this.buttonCancel.CanFocus     = true;
     this.buttonCancel.Name         = "buttonCancel";
     this.buttonCancel.UseStock     = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label        = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonCancel]));
     w4.Expand = false;
     w4.Fill   = false;
     // 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-open";
     w3.Add(this.buttonOk);
     Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 629;
     this.DefaultHeight = 448;
     this.Show();
     this.openFileDialog.FileActivated += new System.EventHandler(this.OnOpenFileDialogFileActivated);
     this.buttonCancel.Clicked         += new System.EventHandler(this.OnButtonCancelClicked);
     this.buttonOk.Clicked             += new System.EventHandler(this.OnButtonOkClicked);
 }
Exemple #3
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.HColorPickerDialog
     this.Name           = "HollyLibrary.HColorPickerDialog";
     this.Title          = "Pick a color";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Resizable      = false;
     this.AllowGrow      = false;
     this.HasSeparator   = false;
     // Internal child HollyLibrary.HColorPickerDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.Picker        = new HollyLibrary.HColorPickerWidget();
     this.Picker.Events = ((Gdk.EventMask)(256));
     this.Picker.Name   = "Picker";
     w1.Add(this.Picker);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.Picker]));
     w2.Position = 0;
     // Internal child HollyLibrary.HColorPickerDialog.ActionArea
     Gtk.HButtonBox w3 = this.ActionArea;
     w3.Name        = "dialog1_ActionArea";
     w3.Spacing     = 6;
     w3.BorderWidth = ((uint)(5));
     w3.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel              = new Gtk.Button();
     this.buttonCancel.CanDefault   = true;
     this.buttonCancel.CanFocus     = true;
     this.buttonCancel.Name         = "buttonCancel";
     this.buttonCancel.UseStock     = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label        = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonCancel]));
     w4.Expand = false;
     w4.Fill   = false;
     // 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 w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 591;
     this.DefaultHeight = 394;
     this.Show();
 }
Exemple #4
0
        public VirtualListView()
        {
            this.Build();
            LineLayout = GetLayout();
            int width, height;

            LineLayout.SetMarkup("XYZ");
            LineLayout.GetPixelSize(out width, out height);
            ConstantHeight = height;
            CurrentRow     = 0;
            SelectedRow    = 0;
            SelectionMode  = false;
            DocumentEnd    = true;

            mColumnControl = new ColumnControl();
            vbox1.Add(mColumnControl);

            Gtk.Box.BoxChild boxChild = ((Gtk.Box.BoxChild)(this.vbox1[mColumnControl]));
            boxChild.Position = 0;
            boxChild.Expand   = false;
            boxChild.Fill     = false;
            mColumnControl.Show();

            mColumnControl.ColumnChanged += (o, e) =>
            {
                drawingarea.QueueDraw();
            };
        }
Exemple #5
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Jeton.LabCtrlScreen
     Stetic.BinContainer.Attach(this);
     this.Name = "Jeton.LabCtrlScreen";
     // Container child Jeton.LabCtrlScreen.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.image273        = new Gtk.Image();
     this.image273.Name   = "image273";
     this.image273.Pixbuf = Gdk.Pixbuf.LoadFromResource("LaborLogo.png");
     this.vbox1.Add(this.image273);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.image273]));
     w1.Position = 0;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("<b>Labor Control Panel</b>\n\nIst noch nicht fertig...\n\n");
     this.label3.UseMarkup = true;
     this.label3.Justify   = ((Gtk.Justification)(2));
     this.vbox1.Add(this.label3);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.label3]));
     w2.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
 }
Exemple #6
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.OCMSplash
     this.WidthRequest   = 744;
     this.HeightRequest  = 600;
     this.Name           = "ocmgtk.OCMSplash";
     this.Title          = Mono.Unix.Catalog.GetString("OCMSplash");
     this.TypeHint       = ((Gdk.WindowTypeHint)(4));
     this.WindowPosition = ((Gtk.WindowPosition)(3));
     this.Resizable      = false;
     this.AllowGrow      = false;
     this.Decorated      = false;
     // Container child ocmgtk.OCMSplash.Gtk.Container+ContainerChild
     this.splashVBox         = new Gtk.VBox();
     this.splashVBox.Name    = "splashVBox";
     this.splashVBox.Spacing = 6;
     // Container child splashVBox.Gtk.Box+BoxChild
     this.labelAlignment             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.labelAlignment.Name        = "labelAlignment";
     this.labelAlignment.LeftPadding = ((uint)(120));
     this.labelAlignment.TopPadding  = ((uint)(430));
     // Container child labelAlignment.Gtk.Container+ContainerChild
     this.versionLabel           = new Gtk.Label();
     this.versionLabel.Name      = "versionLabel";
     this.versionLabel.Xalign    = 0F;
     this.versionLabel.Yalign    = 0F;
     this.versionLabel.LabelProp = "<b><big>Version XXX</big></b>\n<small>Copyright (c) Kyle Campbell 2010-2011</small>";
     this.versionLabel.UseMarkup = true;
     this.labelAlignment.Add(this.versionLabel);
     this.splashVBox.Add(this.labelAlignment);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.splashVBox[this.labelAlignment]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child splashVBox.Gtk.Box+BoxChild
     this.progressAlign              = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.progressAlign.Name         = "progressAlign";
     this.progressAlign.LeftPadding  = ((uint)(120));
     this.progressAlign.RightPadding = ((uint)(400));
     // Container child progressAlign.Gtk.Container+ContainerChild
     this.loadProgress = new Gtk.ProgressBar();
     this.loadProgress.WidthRequest  = 100;
     this.loadProgress.HeightRequest = 10;
     this.loadProgress.Name          = "loadProgress";
     this.progressAlign.Add(this.loadProgress);
     this.splashVBox.Add(this.progressAlign);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.splashVBox[this.progressAlign]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     this.Add(this.splashVBox);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 786;
     this.DefaultHeight = 627;
     this.Show();
 }
Exemple #7
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.MapWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.MapWidget";
     // Container child ocmgtk.MapWidget.Gtk.Container+ContainerChild
     this.mapVBox         = new Gtk.VBox();
     this.mapVBox.Name    = "mapVBox";
     this.mapVBox.Spacing = 6;
     // Container child mapVBox.Gtk.Box+BoxChild
     this.mapScroll            = new Gtk.ScrolledWindow();
     this.mapScroll.CanFocus   = true;
     this.mapScroll.Name       = "mapScroll";
     this.mapScroll.ShadowType = ((Gtk.ShadowType)(1));
     this.mapVBox.Add(this.mapScroll);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.mapVBox[this.mapScroll]));
     w1.Position = 0;
     // Container child mapVBox.Gtk.Box+BoxChild
     this.mapProgress = new Gtk.ProgressBar();
     this.mapProgress.HeightRequest = 10;
     this.mapProgress.Name          = "mapProgress";
     this.mapVBox.Add(this.mapProgress);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.mapVBox[this.mapProgress]));
     w2.Position = 1;
     w2.Expand   = false;
     w2.Fill     = false;
     this.Add(this.mapVBox);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.mapProgress.Hide();
     this.Hide();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.CleanUpPage1
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.CleanUpPage1";
     // Container child ocmgtk.CleanUpPage1.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label2            = new Gtk.Label();
     this.label2.Name       = "label2";
     this.label2.Ypad       = 15;
     this.label2.Xalign     = 0F;
     this.label2.LabelProp  = Mono.Unix.Catalog.GetString("This assistant will help guide you through cleaning up your OCM database.\n\nBy reducing the number of logs per cache and compacting your database, you can greatly reduce the size of you OCM database which will improve performance. ");
     this.label2.Wrap       = true;
     this.label2.WidthChars = 80;
     this.vbox1.Add(this.label2);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label2]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
 }
Exemple #9
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Upnp.GtkClient.RawXmlInfo
     Stetic.BinContainer.Attach(this);
     this.Name = "Mono.Upnp.GtkClient.RawXmlInfo";
     // Container child Mono.Upnp.GtkClient.RawXmlInfo.Gtk.Container+ContainerChild
     this.scrolledwindow1            = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus   = true;
     this.scrolledwindow1.Name       = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w1 = new Gtk.Viewport();
     w1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.raw          = new Gtk.TextView();
     this.raw.CanFocus = true;
     this.raw.Name     = "raw";
     this.raw.Editable = false;
     this.vbox1.Add(this.raw);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.raw]));
     w2.Position = 0;
     w1.Add(this.vbox1);
     this.scrolledwindow1.Add(w1);
     this.Add(this.scrolledwindow1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
 }
Exemple #10
0
        internal void InsertAfter(Gtk.Widget context)
        {
            int position;

            Gtk.PackType type;

            if (context == box)
            {
                position = 0;
                type     = Gtk.PackType.End;
            }
            else
            {
                Gtk.Box.BoxChild bc = (Gtk.Box.BoxChild)ContextChildProps(context);
                position = bc.Position;
                type     = bc.PackType;
            }

            Placeholder ph = CreatePlaceholder();

            if (type == Gtk.PackType.Start)
            {
                box.PackStart(ph);
                box.ReorderChild(ph, position + 1);
            }
            else
            {
                box.PackEnd(ph);
                box.ReorderChild(ph, position);
            }
            NotifyChildAdded(ph);
        }
Exemple #11
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget CBinding.AddPathDialog
     this.Name  = "CBinding.AddPathDialog";
     this.Title = Mono.Unix.Catalog.GetString("Add Path");
     this.Modal = true;
     // Internal child CBinding.AddPathDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.Spacing     = 6;
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.file_chooser_widget            = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(0)));
     this.file_chooser_widget.Name       = "file_chooser_widget";
     this.file_chooser_widget.ShowHidden = true;
     w1.Add(this.file_chooser_widget);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.file_chooser_widget]));
     w2.Position = 0;
     // Internal child CBinding.AddPathDialog.ActionArea
     Gtk.HButtonBox w3 = this.ActionArea;
     w3.Name        = "dialog1_ActionArea";
     w3.Spacing     = 6;
     w3.BorderWidth = ((uint)(5));
     w3.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel              = new Gtk.Button();
     this.buttonCancel.CanDefault   = true;
     this.buttonCancel.CanFocus     = true;
     this.buttonCancel.Name         = "buttonCancel";
     this.buttonCancel.UseStock     = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label        = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonCancel]));
     w4.Expand = false;
     w4.Fill   = false;
     // 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 w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 649;
     this.DefaultHeight = 436;
     this.Show();
     this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelButtonClick);
     this.buttonOk.Clicked     += new System.EventHandler(this.OnOkButtonClick);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.Name           = "MainWindow";
     this.Title          = "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.button1              = new Gtk.Button();
     this.button1.CanFocus     = true;
     this.button1.Name         = "button1";
     this.button1.UseUnderline = true;
     this.button1.Label        = "button1";
     this.vbox1.Add(this.button1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.button1]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.gtkcontrol1      = new HollyLibrary.GtkControl();
     this.gtkcontrol1.Name = "gtkcontrol1";
     this.vbox1.Add(this.gtkcontrol1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.gtkcontrol1]));
     w2.Position = 1;
     // Container child vbox1.Gtk.Box+BoxChild
     this.button2              = new Gtk.Button();
     this.button2.CanFocus     = true;
     this.button2.Name         = "button2";
     this.button2.UseUnderline = true;
     this.button2.Label        = "button2";
     this.vbox1.Add(this.button2);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.button2]));
     w3.Position = 2;
     w3.Expand   = false;
     w3.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 577;
     this.DefaultHeight = 400;
     this.Show();
     this.DeleteEvent                  += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.gtkcontrol1.KeyUp            += new HollyLibrary.GcKeyUp(this.OnGtkcontrol1KeyUp);
     this.gtkcontrol1.KeyDown          += new HollyLibrary.GcKeyDown(this.OnGtkcontrol1KeyDown);
     this.gtkcontrol1.KeyPressed       += new HollyLibrary.GcKeyPressed(this.OnGtkcontrol1KeyPressed);
     this.gtkcontrol1.MouseMove        += new HollyLibrary.GcMouseMove(this.OnGtkcontrol1MouseMove);
     this.gtkcontrol1.MouseUp          += new HollyLibrary.GcMouseUp(this.OnGtkcontrol1MouseUp);
     this.gtkcontrol1.MouseDown        += new HollyLibrary.GcMouseDown(this.OnGtkcontrol1MouseDown);
     this.gtkcontrol1.MouseClick       += new HollyLibrary.GcMouseClick(this.OnGtkcontrol1MouseClick);
     this.gtkcontrol1.MouseDoubleClick += new HollyLibrary.GcMouseDoubleClick(this.OnGtkcontrol1MouseDoubleClick);
     this.gtkcontrol1.MouseWheel       += new HollyLibrary.GcMouseWheel(this.OnGtkcontrol1MouseWheel);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.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.datatreeview1          = new Gtk.DataBindings.DataTreeView();
     this.datatreeview1.CanFocus = true;
     this.datatreeview1.Name     = "datatreeview1";
     this.datatreeview1.CursorPointsEveryType       = false;
     this.datatreeview1.InheritedDataSource         = false;
     this.datatreeview1.InheritedBoundaryDataSource = false;
     this.datatreeview1.ColumnMappings = "{ColorClass}; Color[Color]<<cairocolor; Name[Name]; Date[Date]<>date; Time[Time]<<time; Ip[Ip]<<ip; Money[Money]<<currency";
     this.GtkScrolledWindow.Add(this.datatreeview1);
     this.vbox1.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
     w2.Position = 0;
     // Container child vbox1.Gtk.Box+BoxChild
     this.dateentry2                = new Gtk.DataBindings.DateEntry();
     this.dateentry2.Name           = "dateentry2";
     this.dateentry2.HasDropDown    = false;
     this.dateentry2.HasClearButton = false;
     this.dateentry2.HasCalculator  = false;
     this.dateentry2.Editable       = true;
     this.vbox1.Add(this.dateentry2);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.dateentry2]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     this.hbox1.Add(this.vbox1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox1]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     this.Add(this.hbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 967;
     this.DefaultHeight = 348;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
Exemple #14
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.CoordinateWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.CoordinateWidget";
     // Container child ocmgtk.CoordinateWidget.Gtk.Container+ContainerChild
     this.hbox5         = new Gtk.HBox();
     this.hbox5.Name    = "hbox5";
     this.hbox5.Spacing = 6;
     // Container child hbox5.Gtk.Box+BoxChild
     this.directionCombo = Gtk.ComboBox.NewText();
     this.directionCombo.WidthRequest = 50;
     this.directionCombo.Name         = "directionCombo";
     this.hbox5.Add(this.directionCombo);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox5[this.directionCombo]));
     w1.Position = 0;
     w1.Expand   = false;
     // Container child hbox5.Gtk.Box+BoxChild
     this.degreeEntry               = new Gtk.Entry();
     this.degreeEntry.CanFocus      = true;
     this.degreeEntry.Name          = "degreeEntry";
     this.degreeEntry.Text          = "000";
     this.degreeEntry.IsEditable    = true;
     this.degreeEntry.WidthChars    = 3;
     this.degreeEntry.MaxLength     = 3;
     this.degreeEntry.InvisibleChar = '•';
     this.hbox5.Add(this.degreeEntry);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox5[this.degreeEntry]));
     w2.Position = 1;
     w2.Expand   = false;
     // Container child hbox5.Gtk.Box+BoxChild
     this.label9           = new Gtk.Label();
     this.label9.Name      = "label9";
     this.label9.LabelProp = Mono.Unix.Catalog.GetString("°");
     this.hbox5.Add(this.label9);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox5[this.label9]));
     w3.Position = 2;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child hbox5.Gtk.Box+BoxChild
     this.minuteEntry               = new Gtk.Entry();
     this.minuteEntry.CanFocus      = true;
     this.minuteEntry.Name          = "minuteEntry";
     this.minuteEntry.Text          = "0.000";
     this.minuteEntry.IsEditable    = true;
     this.minuteEntry.InvisibleChar = '•';
     this.hbox5.Add(this.minuteEntry);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox5[this.minuteEntry]));
     w4.Position = 3;
     this.Add(this.hbox5);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
 }
Exemple #15
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.ImageDialog
     this.Name           = "ocmgtk.ImageDialog";
     this.Title          = Mono.Unix.Catalog.GetString("Image");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Internal child ocmgtk.ImageDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.scrolledwindow1            = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus   = true;
     this.scrolledwindow1.Name       = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w2 = new Gtk.Viewport();
     w2.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.image      = new Gtk.Image();
     this.image.Name = "image";
     w2.Add(this.image);
     this.scrolledwindow1.Add(w2);
     w1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.scrolledwindow1]));
     w5.Position = 0;
     // Internal child ocmgtk.ImageDialog.ActionArea
     Gtk.HButtonBox w6 = this.ActionArea;
     w6.Name        = "dialog1_ActionArea";
     w6.Spacing     = 10;
     w6.BorderWidth = ((uint)(5));
     w6.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-close";
     this.AddActionWidget(this.buttonOk, -7);
     Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonOk]));
     w7.Expand = false;
     w7.Fill   = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.buttonOk.Clicked += new System.EventHandler(this.OnCloseClick);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Pinta.ProgressDialog
     this.Name           = "Pinta.ProgressDialog";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Internal child Pinta.ProgressDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.label           = new Gtk.Label();
     this.label.Name      = "label";
     this.label.LabelProp = "label2";
     w1.Add(this.label);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.label]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.progress_bar      = new Gtk.ProgressBar();
     this.progress_bar.Name = "progress_bar";
     w1.Add(this.progress_bar);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.progress_bar]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     // Internal child Pinta.ProgressDialog.ActionArea
     Gtk.HButtonBox w4 = this.ActionArea;
     w4.Name        = "dialog1_ActionArea";
     w4.Spacing     = 10;
     w4.BorderWidth = ((uint)(5));
     w4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel              = new Gtk.Button();
     this.buttonCancel.CanDefault   = true;
     this.buttonCancel.CanFocus     = true;
     this.buttonCancel.Name         = "buttonCancel";
     this.buttonCancel.UseStock     = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label        = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonCancel]));
     w5.Expand = false;
     w5.Fill   = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 400;
     this.DefaultHeight = 114;
     this.Hide();
 }
Exemple #17
0
        public static void AddTo(Gtk.Container container, Gtk.Widget w, bool fill = true, uint padding = 0)
        {
            container.Add(w);

            Gtk.Box.BoxChild bc = container[w] as Gtk.Box.BoxChild;
            if (bc != null)
            {
                bc.Expand  = fill;
                bc.Fill    = fill;
                bc.Padding = padding;
            }
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.ChangeHistory
     this.Name           = "ocmgtk.ChangeHistory";
     this.Title          = Mono.Unix.Catalog.GetString("Change History...");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth   = 500;
     this.DefaultHeight  = 400;
     // Internal child ocmgtk.ChangeHistory.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.scrolledwindow1            = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus   = true;
     this.scrolledwindow1.Name       = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.textView          = new Gtk.TextView();
     this.textView.CanFocus = true;
     this.textView.Name     = "textView";
     this.textView.Editable = false;
     this.scrolledwindow1.Add(this.textView);
     w1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.scrolledwindow1]));
     w3.Position = 0;
     // Internal child ocmgtk.ChangeHistory.ActionArea
     Gtk.HButtonBox w4 = this.ActionArea;
     w4.Name        = "dialog1_ActionArea";
     w4.Spacing     = 10;
     w4.BorderWidth = ((uint)(5));
     w4.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 w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonOk]));
     w5.Expand = false;
     w5.Fill   = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.buttonOk.HasDefault = true;
     this.Show();
     this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked);
 }
        public FilterTextBox(Xwt.Drawing.Image background)
        {
            var hbox1 = new global::Gtk.HBox();

            hbox1.Spacing = 6;

            entry.CanFocus      = true;
            entry.IsEditable    = true;
            entry.InvisibleChar = '●';
            hbox1.Add(entry);
            Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(hbox1[entry]));
            w1.Position = 0;

            CSImageButton button1 = new CSImageButton();

            button1.Image = background;

            button1.CanFocus     = true;
            button1.WidthRequest = 20;
            hbox1.Add(button1);
            Box.BoxChild w2 = ((Box.BoxChild)(hbox1[button1]));
            w2.Position = 1;
            w2.Expand   = false;
            w2.Fill     = false;

            EventBox space = new EventBox();

            space.WidthRequest = 20;
            hbox1.Add(space);
            Box.BoxChild w3 = ((Box.BoxChild)(hbox1[space]));
            w3.Position = 2;
            w3.Expand   = false;
            w3.Fill     = false;

            this.Add(hbox1);

            if (this.Child != null)
            {
                this.Child.ShowAll();
            }

            entry.TextInserted += (o, s) => OnTextChangedHandle();
            entry.TextDeleted  += (o, s) => OnTextChangedHandle();

            button1.ButtonPressEvent += button1_ButtonPressEvent;

            entry.FocusInEvent  += FilterTextBox_FocusInEvent;
            entry.FocusOutEvent += FilterTextBox_FocusOutEvent;

            SetShowInfo(DefaultInfo);
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.HBaseComboBox
     Stetic.BinContainer.Attach(this);
     this.Name = "HollyLibrary.HBaseComboBox";
     // Container child HollyLibrary.HBaseComboBox.Gtk.Container+ContainerChild
     this.hbox3      = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     // Container child hbox3.Gtk.Box+BoxChild
     this.hbox4             = new Gtk.HBox();
     this.hbox4.Name        = "hbox4";
     this.hbox4.Spacing     = 2;
     this.hbox4.BorderWidth = ((uint)(5));
     // Container child hbox4.Gtk.Box+BoxChild
     this.entry               = new Gtk.Entry();
     this.entry.CanFocus      = true;
     this.entry.Name          = "entry";
     this.entry.IsEditable    = true;
     this.entry.HasFrame      = false;
     this.entry.InvisibleChar = '●';
     this.hbox4.Add(this.entry);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox4[this.entry]));
     w1.Position = 0;
     this.hbox3.Add(this.hbox4);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox3[this.hbox4]));
     w2.Position = 0;
     // Container child hbox3.Gtk.Box+BoxChild
     this.popupButton = new Gtk.Button();
     this.popupButton.WidthRequest = 30;
     this.popupButton.CanFocus     = true;
     this.popupButton.Name         = "popupButton";
     // Container child popupButton.Gtk.Container+ContainerChild
     this.arrow1      = new Gtk.Arrow(((Gtk.ArrowType)(1)), ((Gtk.ShadowType)(2)));
     this.arrow1.Name = "arrow1";
     this.popupButton.Add(this.arrow1);
     this.popupButton.Label = null;
     this.hbox3.Add(this.popupButton);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox3[this.popupButton]));
     w4.Position = 1;
     w4.Expand   = false;
     this.Add(this.hbox3);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.entry.FocusInEvent  += new Gtk.FocusInEventHandler(this.OnEntryFocusInEvent);
     this.entry.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnEntryFocusOutEvent);
 }
 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);
 }
Exemple #22
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Pinta.Gui.Widgets.ComboBoxWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "Pinta.Gui.Widgets.ComboBoxWidget";
     // Container child Pinta.Gui.Widgets.ComboBoxWidget.Gtk.Container+ContainerChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label           = new Gtk.Label();
     this.label.Name      = "label";
     this.label.LabelProp = Mono.Unix.Catalog.GetString("label");
     this.hbox1.Add(this.label);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.hseparator1      = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.hbox1.Add(this.hseparator1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.hseparator1]));
     w2.Position = 1;
     this.vbox2.Add(this.hbox1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.combobox      = Gtk.ComboBox.NewText();
     this.combobox.Name = "combobox";
     this.vbox2.Add(this.combobox);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.combobox]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.WebBrowser
     this.WidthRequest   = 800;
     this.HeightRequest  = 500;
     this.Name           = "ocmgtk.WebBrowser";
     this.Title          = Mono.Unix.Catalog.GetString("WebBrowser");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child ocmgtk.WebBrowser.Gtk.Container+ContainerChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.browserScroll            = new Gtk.ScrolledWindow();
     this.browserScroll.CanFocus   = true;
     this.browserScroll.Name       = "browserScroll";
     this.browserScroll.ShadowType = ((Gtk.ShadowType)(1));
     this.vbox2.Add(this.browserScroll);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.browserScroll]));
     w1.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.browserStatus         = new Gtk.Statusbar();
     this.browserStatus.Name    = "browserStatus";
     this.browserStatus.Spacing = 6;
     // Container child browserStatus.Gtk.Box+BoxChild
     this.browserProgress = new Gtk.ProgressBar();
     this.browserProgress.WidthRequest = 150;
     this.browserProgress.Name         = "browserProgress";
     this.browserStatus.Add(this.browserProgress);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.browserStatus[this.browserProgress]));
     w2.Position = 2;
     w2.Expand   = false;
     w2.Fill     = false;
     this.vbox2.Add(this.browserStatus);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.browserStatus]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 812;
     this.DefaultHeight = 627;
     this.Show();
 }
        //creating gui elements
        //most of this is copied straight out of the generated code from the designer
        protected virtual void Build()
        {
            this.Name = "EmbeddedWidget";

            // Container child VideoAggregator.EmbeddedWidget.Gtk.Container+ContainerChild
            this.containerVbox         = new Gtk.VBox();
            this.containerVbox.Name    = "containerVbox";
            this.containerVbox.Spacing = 6;

            // Container child vbox.Gtk.Box+BoxChild
            this.scrolledwindow            = new Gtk.ScrolledWindow();
            this.scrolledwindow.CanFocus   = true;
            this.scrolledwindow.Name       = "scrolledwindow";
            this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(1));

            global::Gtk.Viewport w1 = new global::Gtk.Viewport();
            w1.ShadowType = ((global::Gtk.ShadowType)(0));

            this.showContainer         = new global::Gtk.VBox();
            this.showContainer.Name    = "showContainer";
            this.showContainer.Spacing = 6;


            this.loadMoreButton = new Gtk.Button();
            this.loadMoreButton.Hide();
            this.loadMoreButton.CanFocus     = true;
            this.loadMoreButton.Name         = "loadMoreButton";
            this.loadMoreButton.UseUnderline = true;
            this.loadMoreButton.Label        = global::Mono.Unix.Catalog.GetString("Load More");
            this.loadMoreButton.Clicked     += new global::System.EventHandler(this.OnLoadMoreClicked);
            this.showContainer.PackEnd(this.loadMoreButton);
            Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.showContainer [this.loadMoreButton]));
            w2.Position = 1;
            w2.Expand   = false;
            w2.Fill     = false;
            w1.Add(this.showContainer);
            this.scrolledwindow.Add(w1);
            this.containerVbox.PackEnd(this.scrolledwindow);
            Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.containerVbox [this.scrolledwindow]));
            w3.Position = 0;

            this.Add(this.containerVbox);
            if ((this.Child != null))
            {
                this.Child.ShowAll();
            }
            this.Hide();
        }
Exemple #25
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.FontChooserDialog
     this.Name           = "HollyLibrary.FontChooserDialog";
     this.Title          = "FontChooserDialog";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth    = ((uint)(1));
     this.Decorated      = false;
     // Container child HollyLibrary.FontChooserDialog.Gtk.Container+ContainerChild
     this.vbox1      = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     // Container child vbox1.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.TvFonts                     = new HollyLibrary.HSimpleList();
     this.TvFonts.CanFocus            = true;
     this.TvFonts.Name                = "TvFonts";
     this.TvFonts.HeadersClickable    = true;
     this.TvFonts.SelectedIndex       = 0;
     this.TvFonts.ItemHeight          = 0;
     this.TvFonts.OwnerDraw           = true;
     this.TvFonts.IsEditable          = false;
     this.TvFonts.IsDragAndDropEnable = false;
     this.TvFonts.IsCheckBoxList      = false;
     this.GtkScrolledWindow.Add(this.TvFonts);
     this.vbox1.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
     w2.Position = 0;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 228;
     this.DefaultHeight = 173;
     this.Show();
     this.ButtonPressEvent             += new Gtk.ButtonPressEventHandler(this.OnButtonPressEvent);
     this.TvFonts.RowActivated         += new Gtk.RowActivatedHandler(this.OnTvFontsRowActivated);
     this.TvFonts.ButtonPressEvent     += new Gtk.ButtonPressEventHandler(this.OnTvFontsButtonPressEvent);
     this.TvFonts.DrawItem             += new HollyLibrary.DrawItemEventHandler(this.OnTvFontsDrawItem);
     this.TvFonts.MeasureItem          += new HollyLibrary.MeasureItemEventHandler(this.OnTvFontsMeasureItem);
     this.TvFonts.SelectedIndexChanged += new System.EventHandler(this.OnTvFontsSelectedIndexChanged);
 }
Exemple #26
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.CleanupConfirmPage
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.CleanupConfirmPage";
     // Container child ocmgtk.CleanupConfirmPage.Gtk.Container+ContainerChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.Xalign    = 0F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("The following items will be cleaned up:");
     this.vbox2.Add(this.label1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hseparator1      = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.vbox2.Add(this.hseparator1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.hseparator1]));
     w2.Position = 1;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.cleanupPreview           = new Gtk.Label();
     this.cleanupPreview.Name      = "cleanupPreview";
     this.cleanupPreview.Xalign    = 0F;
     this.cleanupPreview.LabelProp = "<preview text>";
     this.vbox2.Add(this.cleanupPreview);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.cleanupPreview]));
     w3.Position = 2;
     w3.Expand   = false;
     w3.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
 }
Exemple #27
0
        public BrowseFile(Box parent, string file, bool browse_file)
        {
            this.browse_file = browse_file;
            filename         = new Entry();
            browse           = new Button(Catalog.GetString("Browse..."));
            Filename         = file;

            browse.Clicked += new EventHandler(OnBrowse);

            parent.Add(filename);
            parent.Add(browse);

            Gtk.Box.BoxChild box = (Gtk.Box.BoxChild)parent[browse];
            box.Expand = false;
            box.Fill   = false;

            parent.ShowAll();
        }
        public VirtualListView()
        {
            this.Build();
            LineLayout = GetLayout();
            int width, height;

            LineLayout.SetMarkup("XYZ");
            LineLayout.GetPixelSize(out width, out height);
            ConstantHeight = height;
            CurrentRow     = 0;
            SelectedRow    = 0;
            SelectionMode  = false;
            DocumentEnd    = true;

            mColumnControl = new ColumnControl(this);
            vbox1.Add(mColumnControl);

            Gtk.Box.BoxChild boxChild = ((Gtk.Box.BoxChild)(this.vbox1[mColumnControl]));
            boxChild.Position = 0;
            boxChild.Expand   = false;
            boxChild.Fill     = false;
            mColumnControl.Show();

            mColumnControl.ColumnChanged += (o, e) =>
            {
                drawingarea.QueueDraw();
            };
            var bc = (Box.BoxChild)vbox1[findwidget];

            bc.Position  = 0;
            Find.Visible = false;

            Find.Escaped += (o, e) =>
            {
                FindBoxInvisible();
            };

            Find.CurrentChanged += (o, e) =>
            {
                SelectionMode = false; // as a workaround to avoid selection with CTRL+F3
            };

            drawingarea.ButtonPressEvent += drawingarea_ButtonPressEvent;
        }
Exemple #29
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.SetupAssistantPage1
     Stetic.BinContainer.Attach(this);
     this.WidthRequest  = 300;
     this.HeightRequest = 0;
     this.Name          = "ocmgtk.SetupAssistantPage1";
     // Container child ocmgtk.SetupAssistantPage1.Gtk.Container+ContainerChild
     this.vbox2             = new Gtk.VBox();
     this.vbox2.Name        = "vbox2";
     this.vbox2.Spacing     = 6;
     this.vbox2.BorderWidth = ((uint)(6));
     // Container child vbox2.Gtk.Box+BoxChild
     this.label3            = new Gtk.Label();
     this.label3.Name       = "label3";
     this.label3.LabelProp  = Mono.Unix.Catalog.GetString("Welcome to OCM! This assistant will guide you through setting up OCM for first time use. You will need to know your home coordinates from your GPS, plus some information from your preferred caching website. \n\nFor Geocaching.com and Terracaching users, you will need a premium account to use all of the features of OCM. If you don't have an account, click on the button below to sign up to Geocaching.com");
     this.label3.Wrap       = true;
     this.label3.WidthChars = 60;
     this.vbox2.Add(this.label3);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.label3]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child vbox2.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("Sign Up for an Account...");
     this.vbox2.Add(this.button1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.button1]));
     w2.PackType = ((Gtk.PackType)(1));
     w2.Position = 1;
     w2.Expand   = false;
     w2.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
     this.button1.Clicked += new System.EventHandler(this.OnButton1Activated);
 }
Exemple #30
0
        protected override void ChildContentsChanged(Container child)
        {
            Gtk.Widget widget = child.Wrapped;

            if (widget != null && AutoSize[widget])
            {
                Gtk.Box.BoxChild bc     = box[widget] as Gtk.Box.BoxChild;
                bool             newExp = (ContainerOrientation == Gtk.Orientation.Horizontal) ? ChildHExpandable(widget) : ChildVExpandable(widget);
                if (newExp != bc.Expand)
                {
                    bc.Expand = newExp;
                }
                if (newExp != bc.Fill)
                {
                    bc.Fill = newExp;
                }
            }
            base.ChildContentsChanged(child);
        }