protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.CleanupSummary
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.CleanupSummary";
     // Container child ocmgtk.CleanupSummary.Gtk.Container+ContainerChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     this.vbox3.BorderWidth = ((uint)(6));
     // Container child vbox3.Gtk.Box+BoxChild
     this.summaryText = new Gtk.Label();
     this.summaryText.Name = "summaryText";
     this.summaryText.Xalign = 0F;
     this.summaryText.LabelProp = Mono.Unix.Catalog.GetString("Database cleanup complete");
     this.vbox3.Add(this.summaryText);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox3[this.summaryText]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hseparator2 = new Gtk.HSeparator();
     this.hseparator2.Name = "hseparator2";
     this.vbox3.Add(this.hseparator2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox3[this.hseparator2]));
     w2.Position = 1;
     w2.Expand = false;
     w2.Fill = false;
     this.Add(this.vbox3);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
Example #2
0
		public void Fill (ExtensionNodeDescription node)
		{
			ExtensionNodeType ntype = node.GetNodeType ();
			labelName.Markup = "<small>Extension Node</small>\n<big><b>" + GLib.Markup.EscapeText (ntype.NodeName) + "</b></big>";
			
			if (!string.IsNullOrEmpty (ntype.Description))
				labelDesc.Text = ntype.Description;
			else
				labelDesc.Text = AddinManager.CurrentLocalizer.GetString ("No additional documentation");
			
			uint row = 0;
			foreach (var att in node.Attributes) {
				Gtk.Label lab = new Gtk.Label ();
				lab.Markup = "<b>" + GLib.Markup.EscapeText (att.Name) + ":</b>";
				lab.UseUnderline = false;
				lab.Xalign = 0;
				tableAtts.Attach (lab, 0, 1, row, row + 1);
				Gtk.Table.TableChild ct = (Gtk.Table.TableChild) tableAtts [lab];
				ct.XOptions = Gtk.AttachOptions.Fill;
				
				lab = new Gtk.Label (att.Value);
				lab.UseUnderline = false;
				lab.Xalign = 0;
				lab.Wrap = true;
				tableAtts.Attach (lab, 1, 2, row, row + 1);
				ct = (Gtk.Table.TableChild) tableAtts [lab];
				ct.XOptions = Gtk.AttachOptions.Fill;
				row++;
			}
			tableAtts.ShowAll ();
		}
		public ThreadProgressDialog (Thread thread, int total) {
			/*
			if (parent_window)
				this.TransientFor = parent_window;

			*/
			this.Title = thread.Name;
			this.thread = thread;
			
			HasSeparator = false;
			BorderWidth = 6;
			SetDefaultSize (300, -1);
			
			message_label = new Gtk.Label (String.Empty);
			VBox.PackStart (message_label, true, true, 12);
			
			progress_bar = new Gtk.ProgressBar ();
			VBox.PackStart (progress_bar, true, true, 6);

			retry_button = new Gtk.Button (Mono.Unix.Catalog.GetString ("Retry"));
			retry_button.Clicked += new EventHandler (HandleRetryClicked);
			skip_button = new Gtk.Button (Mono.Unix.Catalog.GetString ("Skip"));
			skip_button.Clicked += new EventHandler (HandleSkipClicked);

			ActionArea.Add (retry_button);
			ActionArea.Add (skip_button);

			button_label = Gtk.Stock.Cancel;
			button = (Gtk.Button) AddButton (button_label, (int)Gtk.ResponseType.Cancel);
			
			delay = new Delay (new GLib.IdleHandler (HandleUpdate));

			Response += HandleResponse;
			Destroyed += HandleDestroy;
		}
        void InitializeComponents()
        {
            // set up this actual dialog
            this.Modal = true;
            // FIXME: make this a resource in the resource file
            this.Title = String.Format (GettextCatalog.GetString ("{0} Code Group"), titlePrefix);

            // set up the dialog fields and add them
            templateExtensionsTextBox = new Gtk.Entry();
            templateExtensionsTextBox.ActivatesDefault = true;
            // FIXME: make this a resource in the resource file
            Gtk.Label label1 = new Gtk.Label("Extensions (; seperated)");

            label1.Xalign = 0;
            templateExtensionsTextBox.Text    = string.Join(";", codeTemplateGroup.ExtensionStrings);

            // FIXME: make the labels both part of the same sizing group so they have the same left and right rows.
            Gtk.HBox hBox1 = new Gtk.HBox(false, 6);
            hBox1.PackStart(label1, false, false, 6);
            hBox1.PackStart(templateExtensionsTextBox, false, false, 6);

            this.VBox.PackStart(hBox1, false, false, 6);

            // set up the buttons and add them
            this.DefaultResponse = Gtk.ResponseType.Ok;
            Gtk.Button cancelButton = new Gtk.Button(Gtk.Stock.Cancel);
            Gtk.Button okButton = new Gtk.Button(Gtk.Stock.Ok);
            okButton.Clicked += new EventHandler(AcceptEvent);
            cancelButton.Clicked += new EventHandler(CancelEvent);
            this.AddActionWidget (cancelButton, Gtk.ResponseType.Cancel);
            this.AddActionWidget (okButton, (int) Gtk.ResponseType.Ok);
        }
        private Gtk.Widget CreateInfoWidget(BasicNodeControl basicComponentControl)
        {
            //case 1: Component Panel
            ComponentControl componentControl = basicComponentControl as ComponentControl;
            if(componentControl != null) 
            {
                ComponentInfoPanel panel = new ComponentInfoPanel();
                panel.Component = componentControl;
                return panel;
            } 
            else 
            {
                //case 2: decision panel
                DecisionNodeControl decisionControl = basicComponentControl as DecisionNodeControl;
                if(decisionControl != null) 
                {
                    DecisionInfoPanel panel = new DecisionInfoPanel(m_applicationContext);
                    panel.DecisionControl = decisionControl;
                    return panel;
                }
            }

            //invalid
            Gtk.Label errorLabel = new Gtk.Label("Not implemented. Panels not supported for the given component control.");
            return errorLabel;
        }
Example #6
0
		public LabelBackend ()
		{
			Widget = new Gtk.Label ();
			Label.Show ();
			Label.Xalign = 0;
			Label.Yalign = 0.5f;
		}
        public DoubleInputView(DoubleInputModel model)
        {
            this.Build ();

            for (int i = 0; i < model.Count; ++i)
            {
                var input = new Gtk.Entry();
                var label = new Gtk.Label(model._labels[i] + ": ");

                //The index i was being "captured" by referance in the anonymous function.\
                //This makes a copy
                int j = i;
                input.Changed +=
                (object sender, EventArgs e) =>
                {
                    Double.TryParse((sender as Gtk.Entry).Text, out model._inputs[j]);
                    Console.WriteLine("we wrote: " + model._inputs[j] + " j: " + j);
                };
                MainView.Put(label, 10, 10 + i*40);
                MainView.Put(input, 120, 10 + i*40);
            }

            buttonCancel.Clicked += (o, args) => {model._inputs = null; this.Destroy();};
            buttonOk.Clicked += (o, args) => {this.Destroy();};
        }
Example #8
0
		public DiffWidget (VersionControlDocumentInfo info, bool viewOnly = false)
		{
			this.info = info;
			this.Build ();
			comparisonWidget = new ComparisonWidget (viewOnly);
			buttonNext = new DocumentToolButton (Gtk.Stock.GoUp, GettextCatalog.GetString ("Previous Change"));
			buttonPrev = new DocumentToolButton (Gtk.Stock.GoDown, GettextCatalog.GetString ("Next Change"));
			labelOverview = new Gtk.Label () { Xalign = 0 };
			buttonDiff = new Gtk.Button (GettextCatalog.GetString ("Unified Diff"));
			
			this.buttonNext.Clicked += (sender, args) => ComparisonWidget.GotoNext ();
			this.buttonPrev.Clicked += (sender, args) => ComparisonWidget.GotoPrev ();
			notebook1.Page = 0;
			vboxComparisonView.PackStart (comparisonWidget, true, true, 0);
			comparisonWidget.Show ();
			
			comparisonWidget.DiffChanged += delegate {
				labelOverview.Markup = LabelText;
				SetButtonSensitivity ();
			};
			comparisonWidget.SetVersionControlInfo (info);
			this.buttonDiff.Clicked += HandleButtonDiffhandleClicked;
			diffTextEditor = new global::Mono.TextEditor.MonoTextEditor (new Mono.TextEditor.TextDocument (), CommonTextEditorOptions.Instance);
			diffTextEditor.Document.MimeType = "text/x-diff";
			
			diffTextEditor.Options.ShowFoldMargin = false;
			diffTextEditor.Options.ShowIconMargin = false;
			diffTextEditor.Options.DrawIndentationMarkers = PropertyService.Get ("DrawIndentationMarkers", false);
			diffTextEditor.Document.ReadOnly = true;
			scrolledwindow1.Child = diffTextEditor;
			diffTextEditor.Show ();
			SetButtonSensitivity ();
		}
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget omvviewerlight.TexturePreview
     this.Name = "omvviewerlight.TexturePreview";
     this.Title = Mono.Unix.Catalog.GetString("TexturePreview");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child omvviewerlight.TexturePreview.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label_title = new Gtk.Label();
     this.label_title.Name = "label_title";
     this.vbox1.Add(this.label_title);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label_title]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.image = new Gtk.Image();
     this.image.Name = "image";
     this.vbox1.Add(this.image);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.image]));
     w2.Position = 1;
     w2.Expand = false;
     w2.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
 }
Example #10
0
 public LabelBackend()
 {
     Widget = new Gtk.Label ();
     Widget.Show ();
     Widget.Xalign = 0;
     Widget.Yalign = 0;
 }
Example #11
0
		public static Gtk.Label NewLabel ()
		{
			Gtk.Label label = new Gtk.Label ();
			label.SetAlignment (0.0f, 0.5f);
			label.Selectable = true;
			return label;
		}
 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();
 }
Example #13
0
        public ActionGroupEditor()
        {
            changedEvent = new ObjectWrapperEventHandler (OnActionChanged);

            Gtk.Fixed fx = new Gtk.Fixed ();
            table = new Gtk.Table (0, 0, false);
            table.RowSpacing = 8;
            table.ColumnSpacing = 8;
            table.BorderWidth = 12;

            Gtk.EventBox ebox = new Gtk.EventBox ();
            ebox.ModifyBg (Gtk.StateType.Normal, this.Style.Backgrounds [0]);
            headerLabel = new EditableLabel ();
            headerLabel.MarkupTemplate = "<b>$TEXT</b>";
            headerLabel.Changed += OnGroupNameChanged;
            Gtk.VBox vbox = new Gtk.VBox ();
            Gtk.Label grpLabel = new Gtk.Label ();
            grpLabel.Xalign = 0;
            grpLabel.Markup = "<small><i>Action Group</i></small>";
            //			vbox.PackStart (grpLabel, false, false, 0);
            vbox.PackStart (headerLabel, false, false, 3);
            vbox.BorderWidth = 12;
            ebox.Add (vbox);

            Gtk.VBox box = new Gtk.VBox ();
            box.Spacing = 6;
            box.PackStart (ebox, false, false, 0);
            box.PackStart (table, false, false, 0);

            fx.Put (box, 0, 0);
            Add (fx);
            ShowAll ();
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget PackageManager.Configuration
     Stetic.BinContainer.Attach(this);
     this.Name = "PackageManager.Configuration";
     // Container child PackageManager.Configuration.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label = new Gtk.Label();
     this.label.Name = "label";
     this.label.Xalign = 0F;
     this.label.LabelProp = Mono.Unix.Catalog.GetString("label1");
     this.vbox1.Add(this.label);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label]));
     w1.Position = 1;
     w1.Expand = false;
     w1.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.combobox = Gtk.ComboBox.NewText();
     this.combobox.Name = "combobox";
     this.vbox1.Add(this.combobox);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.combobox]));
     w2.Position = 2;
     w2.Expand = false;
     w2.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
Example #15
0
		public void Fill (Extension ext, ITreeNavigator nav)
		{
			labelName.Markup = "<small>Extension</small>\n<big><b>" + GLib.Markup.EscapeText (Util.GetDisplayName (ext)) + "</b></big>";
			object parent = ext.GetExtendedObject ();
			
			if (parent is ExtensionPoint) {
				ExtensionPoint ep = (ExtensionPoint) parent;
				string txt = "<small>Extension Point</small>\n<b>" + GLib.Markup.EscapeText (Util.GetDisplayName (ep)) + "</b>";
				if (!string.IsNullOrEmpty (ep.Description))
					txt += "\n" + GLib.Markup.EscapeText (ep.Description);
				Gtk.Label lab = new Gtk.Label ();
				lab.Xalign = lab.Yalign = 0;
				lab.Markup = txt;
				lab.WidthRequest = 400;
				lab.Wrap = true;
				Gtk.Image img = new Gtk.Image (ImageService.GetPixbuf ("md-extension-point", Gtk.IconSize.Menu));
				img.Yalign = 0;
				Gtk.HBox box = new Gtk.HBox (false, 6);
				box.PackStart (img, false, false, 0);
				box.PackStart (lab, true, true, 0);
				buttonExt.Add (box);
				buttonExt.ShowAll ();
				buttonExt.Clicked += delegate {
					if (nav.MoveToObject (ext)) {
						nav.MoveToParent (typeof(Solution));
						nav.Expanded = true;
						if (nav.MoveToObject (ep.ParentAddinDescription)) {
							nav.Expanded = true;
							if (nav.MoveToObject (ep))
								nav.Selected = true;
						}
					}
				};
			}
		}
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget fileparsersharp.ViewWindow
     this.Name = "fileparsersharp.ViewWindow";
     this.Title = "ViewWindow";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child fileparsersharp.ViewWindow.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.LabelProp = "ViewWindow";
     this.vbox2.Add(this.label1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1]));
     w1.Position = 1;
     w1.Expand = false;
     w1.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
 }
		public QueryWidget (PhotoQuery query, Db db, TagSelectionWidget selector)
		{
			tips.Enable ();

			this.query = query;
			query.Changed += HandleChanged;

			Gtk.HSeparator sep = new Gtk.HSeparator ();
			sep.Show ();
			this.PackStart (sep, false, false, 0);
			
			Gtk.HBox hbox = new Gtk.HBox ();
			hbox.Show ();
			this.PackStart (hbox, false, false, 0);
			
			label = new Gtk.Label (Catalog.GetString ("Find: "));
			label.Show ();
			label.Ypad = 9;
			hbox.PackStart (label, false, false, 0);

			untagged = new Gtk.Label (Catalog.GetString ("Untagged photos"));
			untagged.Visible = false;
			hbox.PackStart (untagged, false, false, 0);

			comma_label = new Gtk.Label (", ");
			comma_label.Visible = false;
			hbox.PackStart (comma_label, false, false, 0);

			rollfilter = new Gtk.Label (Catalog.GetString ("Import roll"));	
			rollfilter.Visible = false;
			hbox.PackStart (rollfilter, false, false, 0);

			logic_widget = new LogicWidget (query, db.Tags, selector);
			logic_widget.Show ();
			hbox.PackStart (logic_widget, true, true, 0);

			warning_box = new Gtk.HBox ();
			warning_box.PackStart (new Gtk.Label (System.String.Empty));
			
			Gtk.Image warning_image = new Gtk.Image ("gtk-info", Gtk.IconSize.Button);
			warning_image.Show ();
			warning_box.PackStart (warning_image, false, false, 0);
			
			clear_button = new Gtk.Button ();
			clear_button.Add (new Gtk.Image ("gtk-close", Gtk.IconSize.Button));
			clear_button.Clicked += HandleClearButtonClicked;
			clear_button.Relief = Gtk.ReliefStyle.None;
			hbox.PackEnd (clear_button, false, false, 0);
			tips.SetTip (clear_button, Catalog.GetString("Clear search"), null);

			Gtk.Label warning = new Gtk.Label (Catalog.GetString ("No matching photos found"));
			warning_box.PackStart (warning, false, false, 0);
			warning_box.ShowAll ();
			warning_box.Spacing = 6;
			warning_box.Visible = false;

			hbox.PackEnd (warning_box, false, false, 0);
			
			warning_box.Visible = false;
		}
 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();
 }
Example #19
0
 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));
     this.Resizable = false;
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.fixed4 = new Gtk.Fixed();
     this.fixed4.Name = "fixed4";
     this.fixed4.HasWindow = false;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.comboboxentry1 = Gtk.ComboBoxEntry.NewText();
     this.comboboxentry1.WidthRequest = 450;
     this.comboboxentry1.Name = "comboboxentry1";
     this.fixed4.Add(this.comboboxentry1);
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.togglebutton2 = new Gtk.ToggleButton();
     this.togglebutton2.WidthRequest = 50;
     this.togglebutton2.CanFocus = true;
     this.togglebutton2.Name = "togglebutton2";
     this.togglebutton2.UseUnderline = true;
     this.togglebutton2.Label = Mono.Unix.Catalog.GetString("On");
     this.fixed4.Add(this.togglebutton2);
     Gtk.Fixed.FixedChild w2 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.togglebutton2]));
     w2.X = 450;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.label1 = new Gtk.Label();
     this.label1.WidthRequest = 100;
     this.label1.HeightRequest = 28;
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("00:11:22");
     this.fixed4.Add(this.label1);
     Gtk.Fixed.FixedChild w3 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label1]));
     w3.X = 500;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.WidthRequest = 600;
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.textview2 = new Gtk.TextView();
     this.textview2.CanFocus = true;
     this.textview2.Name = "textview2";
     this.GtkScrolledWindow.Add(this.textview2);
     this.fixed4.Add(this.GtkScrolledWindow);
     Gtk.Fixed.FixedChild w5 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.GtkScrolledWindow]));
     w5.Y = 32;
     this.Add(this.fixed4);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 602;
     this.DefaultHeight = 178;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.togglebutton2.Toggled += new System.EventHandler(this.togglebutton2_onClick);
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Upnp.GtkClient.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.WidthRequest = 0;
     this.HeightRequest = 0;
     this.Name = "Mono.Upnp.GtkClient.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Mono.Upnp");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     // Container child Mono.Upnp.GtkClient.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned = new Gtk.HPaned();
     this.hpaned.CanFocus = true;
     this.hpaned.Name = "hpaned";
     this.hpaned.Position = 354;
     this.hpaned.BorderWidth = ((uint)(5));
     // Container child hpaned.Gtk.Paned+PanedChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.list = new Gtk.TreeView();
     this.list.CanFocus = true;
     this.list.Name = "list";
     this.GtkScrolledWindow.Add(this.list);
     this.hpaned.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w3 = ((Gtk.Paned.PanedChild)(this.hpaned[this.GtkScrolledWindow]));
     w3.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.infoBox = new Gtk.VBox();
     this.infoBox.Name = "infoBox";
     this.infoBox.Spacing = 6;
     // Container child infoBox.Gtk.Box+BoxChild
     this.infoFiller = new Gtk.Label();
     this.infoFiller.Name = "infoFiller";
     this.infoFiller.LabelProp = Mono.Unix.Catalog.GetString("Select a device or service");
     this.infoBox.Add(this.infoFiller);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.infoBox[this.infoFiller]));
     w4.Position = 0;
     w4.Fill = false;
     this.hpaned.Add(this.infoBox);
     this.vbox1.Add(this.hpaned);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned]));
     w6.Position = 0;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 1077;
     this.DefaultHeight = 527;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget DirectoryHistory.UI.HistoryDialog
     this.Name = "DirectoryHistory.UI.HistoryDialog";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth = 640;
     this.DefaultHeight = 480;
     // Internal child DirectoryHistory.UI.HistoryDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.entriesVbox = new Gtk.VBox();
     this.entriesVbox.Name = "entriesVbox";
     this.entriesVbox.Spacing = 6;
     // Container child entriesVbox.Gtk.Box+BoxChild
     this.label = new Gtk.Label();
     this.label.Name = "label";
     this.label.LabelProp = Mono.Unix.Catalog.GetString("label1");
     this.entriesVbox.Add(this.label);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.entriesVbox[this.label]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child entriesVbox.Gtk.Box+BoxChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     this.entriesVbox.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.entriesVbox[this.scrolledwindow1]));
     w3.Position = 1;
     w1.Add(this.entriesVbox);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.entriesVbox]));
     w4.Position = 0;
     // Internal child DirectoryHistory.UI.HistoryDialog.ActionArea
     Gtk.HButtonBox w5 = this.ActionArea;
     w5.Name = "dialog1_ActionArea";
     w5.Spacing = 10;
     w5.BorderWidth = ((uint)(5));
     w5.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 w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonOk]));
     w6.Expand = false;
     w6.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
 }
		public GtkSocketViewContent(GtkPlugOpenedFile openFile)
		{
			this.openFile = openFile;
			this.openFile.ViewContent = this;
			label = new Gtk.Label("Initializing...");
			label.ParentSet += this.OnLabelParentChanged;
			label.ShowAll();
		}
Example #23
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Bot.DialogError
     this.Name = "Bot.DialogError";
     this.Title = Mono.Unix.Catalog.GetString("Error");
     this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-error", Gtk.IconSize.Menu, 16);
     this.TypeHint = ((Gdk.WindowTypeHint)(1));
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.AllowShrink = true;
     this.HasSeparator = false;
     // Internal child Bot.DialogError.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.hbox4 = new Gtk.HBox();
     this.hbox4.Name = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.label9 = new Gtk.Label();
     this.label9.Name = "label9";
     this.label9.LabelProp = Mono.Unix.Catalog.GetString("Error al Connectarse");
     this.hbox4.Add(this.label9);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox4[this.label9]));
     w2.Position = 1;
     w2.Expand = false;
     w2.Fill = false;
     w1.Add(this.hbox4);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.hbox4]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Internal child Bot.DialogError.ActionArea
     Gtk.HButtonBox w4 = this.ActionArea;
     w4.Name = "dialog1_ActionArea";
     w4.Spacing = 6;
     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.DefaultWidth = 264;
     this.DefaultHeight = 141;
     this.Show();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ControlWrappers.BoundTime
     Stetic.BinContainer.Attach(this);
     this.Name = "ControlWrappers.BoundTime";
     // Container child ControlWrappers.BoundTime.Gtk.Container+ContainerChild
     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 w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.lblHour]));
     w1.Position = 0;
     w1.Expand = false;
     w1.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 w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.sbHour]));
     w2.Position = 1;
     w2.Expand = false;
     w2.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 w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.lblMinute]));
     w3.Position = 2;
     w3.Expand = false;
     w3.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 w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.sbMinute]));
     w4.Position = 3;
     w4.Expand = false;
     w4.Fill = false;
     this.Add(this.hbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
Example #25
0
 public LabelBackend()
 {
     Widget = new Gtk.Label ();
     Label.Show ();
     Label.Xalign = 0;
     Label.Yalign = 0.5f;
     Label.Realized += HandleStyleUpdate;
     Label.StyleSet += HandleStyleUpdate;
 }
  public ValidationErrorsDialog (String ErrorMessage, Gtk.Window parent)
 {
     this.Build ();
     Gtk.Label label = new Gtk.Label (ErrorMessage);
     vbox3.PackEnd (label);
     vbox3.ShowAll ();
     this.Modal = true;
     this.TransientFor = parent;
 }
Example #27
0
        public CrashDialog(Gtk.Window parent, Exception e)
            : base(null, parent, Gtk.DialogFlags.Modal)
        {
            SetDefaultSize(640, 480);
            Title = "Smuxi - " + _("Oops, I did it again...");

            Gtk.HBox hbox = new Gtk.HBox();

            Gtk.Image image = new Gtk.Image(Gtk.Stock.DialogError, Gtk.IconSize.Dialog);
            hbox.PackStart(image, false, false, 2);

            Gtk.VBox label_vbox = new Gtk.VBox();
            Gtk.Label label1 = new Gtk.Label();
            Gtk.Label label2 = new Gtk.Label();
            label1.Markup = String.Format(
                "<b>{0}</b>",
                GLib.Markup.EscapeText(
                    _("Smuxi crashed because an unhandled exception was thrown!")
                )
            );
            label2.Markup = GLib.Markup.EscapeText(
                _("Here is the stacktrace, please report this bug!")
            );
            label_vbox.PackStart(label1, false, false, 0);
            label_vbox.PackStart(new Gtk.Fixed(), true, true, 0);
            label_vbox.PackStart(label2, false, false, 0);
            hbox.PackStart(label_vbox, true, true, 0);

            Gtk.VBox vbox = new Gtk.VBox();
            vbox.PackStart(hbox, false, false, 2);

            Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow();
            sw.ShadowType = Gtk.ShadowType.In;
            Gtk.TextView tv = new Gtk.TextView();
            tv.Editable = false;
            tv.CursorVisible = false;
            sw.Add(tv);
            vbox.PackStart(sw, true, true, 2);

            // add to the dialog
            VBox.PackStart(vbox, true, true, 2);
            AddButton(_("_Report Bug"), -1);
            AddButton(Gtk.Stock.Quit, 0);

            string message = String.Empty;
            if (e.InnerException != null) {
                message = "Inner-Exception Type:\n"+e.InnerException.GetType()+"\n\n"+
                          "Inner-Exception Message:\n"+e.InnerException.Message+"\n\n"+
                          "Inner-Exception StackTrace:\n"+e.InnerException.StackTrace+"\n";
            }
            message += "Exception Type:\n"+e.GetType()+"\n\n"+
                       "Exception Message:\n"+e.Message+"\n\n"+
                       "Exception StackTrace:\n"+e.StackTrace;
            tv.Buffer.Text = message;

            ShowAll();
        }
 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();
 }
Example #29
0
        public void CustomBuild()
        {
            this.vboxWindow = new Gtk.VBox ();
            this.vboxWindow.Name = "vboxWindow";

            this.evntboxTitleBar = new Gtk.EventBox ();
            this.evntboxTitleBar.Name = "evntboxTitleBar";
            this.evntboxTitleBar.Visible = false;
            this.evntboxTitleBar.ChildVisible = false;
            this.evntboxTitleBar.Sensitive = false;
            this.vboxWindow.PackStart(this.evntboxTitleBar, false, false, 0);

            this.vboxClient = new Gtk.VBox ();
            this.vboxClient.Name = "vboxClient";
            this.vboxWindow.PackStart(this.vboxClient, true, true, 0);

            this.hboxTitleBar = new Gtk.HBox ();
            this.hboxTitleBar.Name = "hboxTitleBar";
            this.evntboxTitleBar.Add (this.hboxTitleBar);

            this.labelCaption = new Gtk.Label ();
            this.labelCaption.Name = "labelCaption";
            this.labelCaption.Xalign = 0f;
            this.labelCaption.LabelProp = Mono.Unix.Catalog.GetString ("Title");
            this.labelCaption.SingleLineMode = true;
            this.hboxTitleBar.PackStart (this.labelCaption, true, true, 0);

            this.btnMinimize = new Gtk.Button ();
            this.btnMinimize.Name = "btnMinimize";
            this.btnMinimize.WidthRequest = 22;
            this.btnMinimize.HeightRequest = 22;
            this.btnMinimize.CanFocus = false;
            this.hboxTitleBar.PackStart (this.btnMinimize, false, false, 0);

            this.btnMaximize = new Gtk.Button ();
            this.btnMaximize.Name = "btnMaximize";
            this.btnMaximize.WidthRequest = 22;
            this.btnMaximize.HeightRequest = 22;
            this.btnMaximize.CanFocus = false;
            this.hboxTitleBar.PackStart (this.btnMaximize, false, false, 0);

            this.btnClose = new Gtk.Button ();
            this.btnClose.Name = "btnClose";
            this.btnClose.WidthRequest = 22;
            this.btnClose.HeightRequest = 22;
            this.btnClose.CanFocus = false;
            this.hboxTitleBar.PackStart (this.btnClose, false, false, 0);

            this.btnMinimize.Image = new Gtk.Image(Assembly.GetExecutingAssembly(), ThemeHelper.minimizeBtnId);
            this.btnMinimize.SetAlignment(0.5f, 0.5f);
            this.btnMaximize.Image = new Gtk.Image(Assembly.GetExecutingAssembly(), ThemeHelper.maximizeBtnId);
            this.btnMaximize.SetAlignment(0.5f, 0.5f);
            this.btnClose.Image = new Gtk.Image(Assembly.GetExecutingAssembly(), ThemeHelper.closeBtnId);
            this.btnClose.SetAlignment(0.5f, 0.5f);
        }
        public void createGui()
        {
            basedir_section=new Section("cuesheets-basedir","CueSheet Music Directory:",20);
            source_page.Add (basedir_section);

            string dir=_source.getCueSheetDir();
            Gtk.Label lbl=new Gtk.Label("CueSheet Music Directory:");
            Gtk.FileChooserButton btn=new Gtk.FileChooserButton("CueSheet Music Directory:",Gtk.FileChooserAction.SelectFolder);
            if (dir!=null) {
                btn.SelectFilename (dir);
            }
            Gtk.HBox box=new Gtk.HBox();
            box.Add (lbl);
            box.Add (btn);
            box.ShowAll ();
            btn.CurrentFolderChanged+=delegate(object sender,EventArgs args) {
                string dir1=btn.Filename;
                Hyena.Log.Information ("Folder changed to = "+dir1);
            };
            btn.FileSet+=delegate(object sender,EventArgs args) {
                string dir1=btn.Filename;
                Hyena.Log.Information ("Base directory changed to = "+dir1);
                _source.setCueSheetDir(dir1);
            };

            Console.WriteLine (_source);

            Gtk.VBox vb=new Gtk.VBox();
            vb.PackStart (box,false,false,0);

            Gtk.Image icn_about=new Gtk.Image(Gtk.Stock.About,Gtk.IconSize.Button);
            Gtk.Button about=new Gtk.Button(icn_about);
            about.Clicked+=new EventHandler(handleAbout);
            Gtk.HBox hb=new Gtk.HBox();
            Gtk.Label _about=new Gtk.Label("About the CueSheet extension");
            hb.PackEnd (about,false,false,0);
            hb.PackEnd (_about,false,false,5);
            vb.PackStart (hb,false,false,0);
            Gtk.HBox hb1=new Gtk.HBox();
            Gtk.Label _info=new Gtk.Label("How to use the Cuesheet extension (opens browser)");
            Gtk.Image icn_info=new Gtk.Image(Gtk.Stock.Info,Gtk.IconSize.Button);
            Gtk.Button btn_info=new Gtk.Button(icn_info);
            btn_info.Clicked+=new EventHandler(handleInfo);
            hb1.PackEnd(btn_info,false,false,0);
            hb1.PackEnd(_info,false,false,5);
            vb.PackStart (hb1,false,false,0);

            Gtk.HBox hbX=new Gtk.HBox();
            vb.PackEnd (hbX,true,true,0);

            vb.ShowAll ();

            source_page.DisplayWidget = vb;
        }
Example #31
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.FolderChooserDialog
     this.Name            = "HollyLibrary.FolderChooserDialog";
     this.Title           = "FolderChooserDialog";
     this.WindowPosition  = ((Gtk.WindowPosition)(4));
     this.BorderWidth     = ((uint)(2));
     this.Decorated       = false;
     this.SkipPagerHint   = true;
     this.SkipTaskbarHint = true;
     this.FocusOnMap      = false;
     // Container child HollyLibrary.FolderChooserDialog.Gtk.Container+ContainerChild
     this.vbox1             = new Gtk.VBox();
     this.vbox1.Name        = "vbox1";
     this.vbox1.Spacing     = 6;
     this.vbox1.BorderWidth = ((uint)(4));
     // Container child vbox1.Gtk.Box+BoxChild
     this.GtkScrolledWindow             = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name        = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType  = ((Gtk.ShadowType)(1));
     this.GtkScrolledWindow.BorderWidth = ((uint)(2));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.FolderTree                     = new HollyLibrary.HTreeView();
     this.FolderTree.CanFocus            = true;
     this.FolderTree.Name                = "FolderTree";
     this.FolderTree.HeadersClickable    = true;
     this.FolderTree.OwnerDraw           = false;
     this.FolderTree.ItemHeight          = 0;
     this.FolderTree.NodeIconVisible     = true;
     this.FolderTree.IsCheckBoxTree      = false;
     this.FolderTree.IsDragAndDropEnable = false;
     this.FolderTree.Editable            = false;
     this.GtkScrolledWindow.Add(this.FolderTree);
     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.hseparator1      = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.vbox1.Add(this.hseparator1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.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.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.Xalign    = 0F;
     this.label1.LabelProp = "Add new folder:";
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w4.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.TxtNewFolder               = new Gtk.Entry();
     this.TxtNewFolder.CanFocus      = true;
     this.TxtNewFolder.Name          = "TxtNewFolder";
     this.TxtNewFolder.IsEditable    = true;
     this.TxtNewFolder.InvisibleChar = '●';
     this.hbox1.Add(this.TxtNewFolder);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.TxtNewFolder]));
     w5.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.BtnNewFolder              = new Gtk.Button();
     this.BtnNewFolder.CanFocus     = true;
     this.BtnNewFolder.Name         = "BtnNewFolder";
     this.BtnNewFolder.UseStock     = true;
     this.BtnNewFolder.UseUnderline = true;
     this.BtnNewFolder.Label        = "gtk-add";
     this.hbox1.Add(this.BtnNewFolder);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.BtnNewFolder]));
     w6.Position = 2;
     w6.Expand   = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w7.Position = 2;
     w7.Expand   = false;
     w7.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 355;
     this.DefaultHeight = 271;
     this.Hide();
     this.ButtonPressEvent              += new Gtk.ButtonPressEventHandler(this.OnButtonPressEvent);
     this.FolderTree.ButtonPressEvent   += new Gtk.ButtonPressEventHandler(this.OnFolderTreeButtonPressEvent);
     this.FolderTree.CursorChanged      += new System.EventHandler(this.OnFolderTreeCursorChanged);
     this.FolderTree.RowActivated       += new Gtk.RowActivatedHandler(this.OnFolderTreeRowActivated);
     this.FolderTree.BeforeNodeExpand   += new HollyLibrary.NodeEventHandler(this.OnFolderTreeBeforeNodeExpand);
     this.TxtNewFolder.KeyReleaseEvent  += new Gtk.KeyReleaseEventHandler(this.OnTxtNewFolderKeyReleaseEvent);
     this.BtnNewFolder.Clicked          += new System.EventHandler(this.OnBtnNewFolderClicked);
     this.BtnNewFolder.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnBtnNewFolderButtonPressEvent);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.SendWaypointsDialog
     this.WidthRequest   = 400;
     this.Name           = "ocmgtk.SendWaypointsDialog";
     this.Title          = Mono.Unix.Catalog.GetString("Sending Caches...");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Modal          = true;
     this.BorderWidth    = ((uint)(6));
     this.Resizable      = false;
     this.AllowGrow      = false;
     // Internal child ocmgtk.SendWaypointsDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     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("<big><b>Sending Caches To GPS</b></big>");
     this.label1.UseMarkup = true;
     this.vbox2.Add(this.label1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.writeProgress      = new Gtk.ProgressBar();
     this.writeProgress.Name = "writeProgress";
     this.writeProgress.Text = "0%";
     this.vbox2.Add(this.writeProgress);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.writeProgress]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.infoLabel           = new Gtk.Label();
     this.infoLabel.Name      = "infoLabel";
     this.infoLabel.Xalign    = 0F;
     this.infoLabel.LabelProp = Mono.Unix.Catalog.GetString("<i>Initializing</i>");
     this.infoLabel.UseMarkup = true;
     this.vbox2.Add(this.infoLabel);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.infoLabel]));
     w4.Position = 2;
     w4.Expand   = false;
     w4.Fill     = false;
     w1.Add(this.vbox2);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
     w5.Position = 0;
     w5.Expand   = false;
     w5.Fill     = false;
     w5.Padding  = ((uint)(6));
     // Internal child ocmgtk.SendWaypointsDialog.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.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 w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonCancel]));
     w7.Expand = false;
     w7.Fill   = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.closeButton              = new Gtk.Button();
     this.closeButton.CanFocus     = true;
     this.closeButton.Name         = "closeButton";
     this.closeButton.UseUnderline = true;
     this.closeButton.Label        = Mono.Unix.Catalog.GetString("Close");
     this.AddActionWidget(this.closeButton, 0);
     Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.closeButton]));
     w8.Position = 1;
     w8.Expand   = false;
     w8.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 412;
     this.DefaultHeight = 181;
     this.closeButton.Hide();
     this.Show();
     this.DeleteEvent          += new Gtk.DeleteEventHandler(this.OnDelete);
     this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClick);
     this.closeButton.Clicked  += new System.EventHandler(this.OnCloseClick);
 }
Example #33
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Flickr.UploadConfig
     Stetic.BinContainer.Attach(this);
     this.Name = "Flickr.UploadConfig";
     // Container child Flickr.UploadConfig.Gtk.Container+ContainerChild
     this.vbox3             = new Gtk.VBox();
     this.vbox3.Name        = "vbox3";
     this.vbox3.Spacing     = 6;
     this.vbox3.BorderWidth = ((uint)(5));
     // Container child vbox3.Gtk.Box+BoxChild
     this.vbox4         = new Gtk.VBox();
     this.vbox4.Name    = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.frame3            = new Gtk.Frame();
     this.frame3.Name       = "frame3";
     this.frame3.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame3.Gtk.Container+ContainerChild
     this.GtkAlignment2             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment2.Name        = "GtkAlignment2";
     this.GtkAlignment2.LeftPadding = ((uint)(12));
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     this.vbox6         = new Gtk.VBox();
     this.vbox6.Name    = "vbox6";
     this.vbox6.Spacing = 6;
     // Container child vbox6.Gtk.Box+BoxChild
     this.private_radio               = new Gtk.RadioButton(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Private"));
     this.private_radio.CanFocus      = true;
     this.private_radio.Name          = "private_radio";
     this.private_radio.Active        = true;
     this.private_radio.DrawIndicator = true;
     this.private_radio.UseUnderline  = true;
     this.private_radio.Group         = new GLib.SList(System.IntPtr.Zero);
     this.vbox6.Add(this.private_radio);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox6[this.private_radio]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.alignment4             = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.alignment4.Name        = "alignment4";
     this.alignment4.LeftPadding = ((uint)(24));
     // Container child alignment4.Gtk.Container+ContainerChild
     this.vbox7         = new Gtk.VBox();
     this.vbox7.Name    = "vbox7";
     this.vbox7.Spacing = 6;
     // Container child vbox7.Gtk.Box+BoxChild
     this.friends_chk               = new Gtk.CheckButton();
     this.friends_chk.CanFocus      = true;
     this.friends_chk.Name          = "friends_chk";
     this.friends_chk.Label         = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Visible to friends");
     this.friends_chk.DrawIndicator = true;
     this.friends_chk.UseUnderline  = true;
     this.vbox7.Add(this.friends_chk);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox7[this.friends_chk]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child vbox7.Gtk.Box+BoxChild
     this.family_chk               = new Gtk.CheckButton();
     this.family_chk.CanFocus      = true;
     this.family_chk.Name          = "family_chk";
     this.family_chk.Label         = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Visible to family");
     this.family_chk.DrawIndicator = true;
     this.family_chk.UseUnderline  = true;
     this.vbox7.Add(this.family_chk);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox7[this.family_chk]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     this.alignment4.Add(this.vbox7);
     this.vbox6.Add(this.alignment4);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox6[this.alignment4]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.public_radio               = new Gtk.RadioButton(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Public"));
     this.public_radio.CanFocus      = true;
     this.public_radio.Name          = "public_radio";
     this.public_radio.DrawIndicator = true;
     this.public_radio.UseUnderline  = true;
     this.public_radio.Group         = this.private_radio.Group;
     this.vbox6.Add(this.public_radio);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox6[this.public_radio]));
     w6.Position = 2;
     w6.Expand   = false;
     w6.Fill     = false;
     this.GtkAlignment2.Add(this.vbox6);
     this.frame3.Add(this.GtkAlignment2);
     this.GtkLabel5           = new Gtk.Label();
     this.GtkLabel5.Name      = "GtkLabel5";
     this.GtkLabel5.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("<b>Viewing permissions</b>");
     this.GtkLabel5.UseMarkup = true;
     this.frame3.LabelWidget  = this.GtkLabel5;
     this.vbox4.Add(this.frame3);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3]));
     w9.Position = 0;
     w9.Expand   = false;
     w9.Fill     = false;
     this.vbox3.Add(this.vbox4);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox3[this.vbox4]));
     w10.Position = 0;
     w10.Expand   = false;
     w10.Fill     = false;
     // Container child vbox3.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));
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     this.alignment1             = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.alignment1.Name        = "alignment1";
     this.alignment1.LeftPadding = ((uint)(12));
     // Container child alignment1.Gtk.Container+ContainerChild
     this.vbox5         = new Gtk.VBox();
     this.vbox5.Name    = "vbox5";
     this.vbox5.Spacing = 6;
     // Container child vbox5.Gtk.Box+BoxChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.Xalign    = 0F;
     this.label1.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Default tags to use on images posted with Do. Seperate tags with a space; for multiple word tags use quotes. ex.) concert \"Mars Volta\" Omar");
     this.label1.Wrap      = true;
     this.vbox5.Add(this.label1);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox5[this.label1]));
     w11.Position = 0;
     w11.Expand   = false;
     w11.Fill     = false;
     // Container child vbox5.Gtk.Box+BoxChild
     this.GtkScrolledWindow                  = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name             = "GtkScrolledWindow";
     this.GtkScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(2));
     this.GtkScrolledWindow.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.tags_text            = new Gtk.TextView();
     this.tags_text.CanFocus   = true;
     this.tags_text.Name       = "tags_text";
     this.tags_text.AcceptsTab = false;
     this.tags_text.WrapMode   = ((Gtk.WrapMode)(2));
     this.GtkScrolledWindow.Add(this.tags_text);
     this.vbox5.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox5[this.GtkScrolledWindow]));
     w13.Position = 1;
     this.alignment1.Add(this.vbox5);
     this.GtkAlignment.Add(this.alignment1);
     this.frame1.Add(this.GtkAlignment);
     this.GtkLabel4           = new Gtk.Label();
     this.GtkLabel4.Name      = "GtkLabel4";
     this.GtkLabel4.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("<b>Tags</b>");
     this.GtkLabel4.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel4;
     this.vbox3.Add(this.frame1);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.frame1]));
     w17.Position = 1;
     this.Add(this.vbox3);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.private_radio.Toggled += new System.EventHandler(this.OnPrivateRadioToggled);
     this.friends_chk.Clicked   += new System.EventHandler(this.OnFriendsChkClicked);
     this.family_chk.Clicked    += new System.EventHandler(this.OnFamilyChkClicked);
     this.public_radio.Toggled  += new System.EventHandler(this.OnPublicRadioToggled);
 }
 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);
 }
        void Update(CommandInfo cmdInfo)
        {
            lastCmdInfo = cmdInfo;

            Gtk.Widget child = Child;
            if (child == null)
            {
                return;
            }

            updating = true;

            Gtk.Label accel_label = null;
            Gtk.Label label       = null;

            if (!(child is Gtk.HBox))
            {
                child       = new Gtk.HBox(false, 0);
                accel_label = new Gtk.Label("");
                accel_label.UseUnderline = false;
                accel_label.Xalign       = 1.0f;
                accel_label.Show();

                label = new Gtk.Label("");
                label.UseUnderline = true;
                label.Xalign       = 0.0f;
                label.Show();

                ((Gtk.Box)child).PackStart(label);
                ((Gtk.Box)child).PackStart(accel_label);
                child.Show();

                this.Remove(Child);
                this.Add(child);
            }
            else
            {
                accel_label = (Gtk.Label)((Gtk.Box)child).Children[1];
                label       = (Gtk.Label)((Gtk.Box)child).Children[0];
            }

            if (cmdInfo.AccelKey != null)
            {
                accel_label.Text = "    " + KeyBindingManager.BindingToDisplayLabel(cmdInfo.AccelKey, true);
            }
            else
            {
                accel_label.Text = String.Empty;
            }

            if (cmdInfo.UseMarkup)
            {
                label.Markup    = overrideLabel ?? cmdInfo.Text;
                label.UseMarkup = true;
            }
            else
            {
                label.Text      = overrideLabel ?? cmdInfo.Text;
                label.UseMarkup = false;
            }

            label.UseUnderline = true;

            Sensitive    = cmdInfo.Enabled;
            Visible      = cmdInfo.Visible && (disabledVisible || cmdInfo.Enabled);
            Active       = cmdInfo.Checked;
            Inconsistent = cmdInfo.CheckedInconsistent;

            updating = false;
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Monoplayer.windows.MainWindow
     Gtk.UIManager   w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name           = "Monoplayer.windows.MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Monoplayer");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child Monoplayer.windows.MainWindow.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.menus_box         = new Gtk.VBox();
     this.menus_box.Name    = "menus_box";
     this.menus_box.Spacing = 6;
     this.vbox1.Add(this.menus_box);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menus_box]));
     w3.Position = 0;
     // Container child vbox1.Gtk.Box+BoxChild
     this.centro         = new Gtk.VBox();
     this.centro.Name    = "centro";
     this.centro.Spacing = 6;
     this.vbox1.Add(this.centro);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.centro]));
     w4.Position = 1;
     w4.Padding  = ((uint)(5));
     // Container child vbox1.Gtk.Box+BoxChild
     this.table1               = new Gtk.Table(((uint)(1)), ((uint)(4)), false);
     this.table1.Name          = "table1";
     this.table1.RowSpacing    = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.hseparator2      = new Gtk.HSeparator();
     this.hseparator2.Name = "hseparator2";
     this.table1.Add(this.hseparator2);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.hseparator2]));
     w5.RightAttach = ((uint)(4));
     w5.XOptions    = ((Gtk.AttachOptions)(7));
     w5.YOptions    = ((Gtk.AttachOptions)(4));
     this.vbox1.Add(this.table1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.table1]));
     w6.Position = 2;
     w6.Expand   = false;
     w6.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1             = new Gtk.HBox();
     this.hbox1.Name        = "hbox1";
     this.hbox1.Spacing     = 6;
     this.hbox1.BorderWidth = ((uint)(2));
     // Container child hbox1.Gtk.Box+BoxChild
     this.frame3            = new Gtk.Frame();
     this.frame3.Name       = "frame3";
     this.frame3.ShadowType = ((Gtk.ShadowType)(1));
     // Container child frame3.Gtk.Container+ContainerChild
     this.label1 = new Gtk.Label();
     this.label1.WidthRequest = 150;
     this.label1.Name         = "label1";
     this.label1.LabelProp    = "";
     this.frame3.Add(this.label1);
     this.hbox1.Add(this.frame3);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame3]));
     w8.Position = 0;
     w8.Expand   = false;
     w8.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.frame4            = new Gtk.Frame();
     this.frame4.Name       = "frame4";
     this.frame4.ShadowType = ((Gtk.ShadowType)(1));
     // Container child frame4.Gtk.Container+ContainerChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.progress      = new Gtk.ProgressBar();
     this.progress.Name = "progress";
     this.hbox2.Add(this.progress);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.progress]));
     w9.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.time = new Gtk.Label();
     this.time.WidthRequest = 100;
     this.time.Name         = "time";
     this.time.LabelProp    = Mono.Unix.Catalog.GetString("00:00 / 00:00");
     this.hbox2.Add(this.time);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.time]));
     w10.Position = 1;
     w10.Expand   = false;
     w10.Fill     = false;
     this.frame4.Add(this.hbox2);
     this.hbox1.Add(this.frame4);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame4]));
     w12.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.frame5            = new Gtk.Frame();
     this.frame5.Name       = "frame5";
     this.frame5.ShadowType = ((Gtk.ShadowType)(1));
     // Container child frame5.Gtk.Container+ContainerChild
     this.label3 = new Gtk.Label();
     this.label3.WidthRequest = 150;
     this.label3.Name         = "label3";
     this.label3.LabelProp    = "";
     this.frame5.Add(this.label3);
     this.hbox1.Add(this.frame5);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame5]));
     w14.Position = 2;
     w14.Expand   = false;
     w14.Fill     = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w15.Position = 3;
     w15.Expand   = false;
     w15.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 628;
     this.DefaultHeight = 219;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
 Gtk.Widget CreateLabel(NotebookTab tab)
 {
     Gtk.Label label = new Gtk.Label(tab.Label);
     label.Show();
     return(label);
 }
Example #38
0
        public FeedbackDialog(int x, int y) : base(Gtk.WindowType.Toplevel)
        {
            SetDefaultSize(350, 200);
            if (x == -1 && y == -1)
            {
                int ww, wh;
                IdeApp.Workbench.RootWindow.GdkWindow.GetSize(out ww, out wh);
                IdeApp.Workbench.RootWindow.GdkWindow.GetOrigin(out x, out y);
                x = ww / 2 - 350 / 2;
                y = wh / 2 - 200 / 2;
                Move(x, y);
            }
            else
            {
                Move(x - 350, y - 200);
            }

            mainFrame = new Gtk.Frame();

            mainBox                = new Gtk.VBox();
            mainBox.BorderWidth    = 12;
            mainBox.Spacing        = 6;
            headerBox              = new Gtk.HBox();
            mailEntry              = new EntryWithEmptyMessage();
            mailEntry.EmptyMessage = GettextCatalog.GetString("email address");
            Decorated              = false;
            mainFrame.ShadowType   = Gtk.ShadowType.Out;

            // Header

            headerBox.Spacing = 6;
            mailLabel         = new Gtk.Label();
            headerBox.PackStart(mailLabel, false, false, 0);
            Gtk.Button changeButton = new Gtk.Button("(Change)");
            changeButton.Relief = Gtk.ReliefStyle.None;
            headerBox.PackStart(changeButton, false, false, 0);
            changeButton.Clicked += HandleChangeButtonClicked;
            mainBox.PackStart(headerBox, false, false, 0);
            mainBox.PackStart(mailEntry, false, false, 0);
            mailWarningLabel        = new Gtk.Label(GettextCatalog.GetString("Please enter a valid e-mail address"));
            mailWarningLabel.Xalign = 0;
            mainBox.PackStart(mailWarningLabel, false, false, 0);

            // Body

            textEntry = new TextViewWithEmptyMessage();
            textEntry.EmptyMessage = GettextCatalog.GetString(
                "Tell us how we can make {0} better.",
                BrandingService.SuiteName
                );
            textEntry.AcceptsTab   = false;
            textEntry.WrapMode     = Gtk.WrapMode.Word;
            textEntry.WidthRequest = 300;
            var sw = new Gtk.ScrolledWindow();

            sw.ShadowType       = Gtk.ShadowType.In;
            sw.VscrollbarPolicy = Gtk.PolicyType.Automatic;
            sw.HscrollbarPolicy = Gtk.PolicyType.Never;
            sw.Add(textEntry);
            mainBox.PackStart(sw, true, true, 0);
            bodyWarningLabel        = new Gtk.Label(GettextCatalog.GetString("Please enter some feedback"));
            bodyWarningLabel.Xalign = 0;
            mainBox.PackStart(bodyWarningLabel, false, false, 0);

            // Bottom

            Gtk.HBox  bottomBox  = new Gtk.HBox(false, 6);
            Gtk.Label countLabel = new Gtk.Label();
            countLabel.Xalign = 0;
            bottomBox.PackStart(countLabel, false, false, 0);

            Gtk.Button sendButton = new Gtk.Button(GettextCatalog.GetString("Send Feedback"));
            sendButton.Clicked += HandleSendButtonClicked;
            bottomBox.PackEnd(sendButton, false, false, 0);
            mainBox.PackStart(bottomBox, false, false, 0);

            // Init

            mainBox.ShowAll();

            mailWarningLabel.Hide();
            bodyWarningLabel.Hide();

            string mail = FeedbackService.ReporterEMail;

            if (string.IsNullOrEmpty(mail))
            {
                mail = AuthorInformation.Default.Email;
            }

            if (string.IsNullOrEmpty(mail))
            {
                headerBox.Hide();
                mailEntry.GrabFocus();
            }
            else
            {
                mailEntry.Text = mail;
                mailEntry.Hide();
                mailLabel.Text = GettextCatalog.GetString("From: {0}", mail);
                textEntry.GrabFocus();
            }
            if (FeedbackService.FeedbacksSent > 0)
            {
                countLabel.Text = GettextCatalog.GetString("Your feedbacks: {0}", FeedbackService.FeedbacksSent);
            }
            else
            {
                countLabel.Hide();
            }

            mainFrame.Show();
            mainFrame.Add(mainBox);
            Add(mainFrame);
        }
Example #39
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.ImportDirectoryDialog
     this.WidthRequest   = 500;
     this.Name           = "ocmgtk.ImportDirectoryDialog";
     this.Title          = Mono.Unix.Catalog.GetString("Import Directory");
     this.TypeHint       = ((Gdk.WindowTypeHint)(1));
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Modal          = true;
     this.BorderWidth    = ((uint)(6));
     this.Resizable      = false;
     this.AllowGrow      = false;
     // Internal child ocmgtk.ImportDirectoryDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.table1               = new Gtk.Table(((uint)(1)), ((uint)(2)), false);
     this.table1.Name          = "table1";
     this.table1.RowSpacing    = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.dirChooser            = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Select A Folder"), ((Gtk.FileChooserAction)(2)));
     this.dirChooser.Name       = "dirChooser";
     this.dirChooser.ShowHidden = true;
     this.table1.Add(this.dirChooser);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.dirChooser]));
     w2.LeftAttach  = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Directory:");
     this.table1.Add(this.label1);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label1]));
     w3.XOptions = ((Gtk.AttachOptions)(4));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     w1.Add(this.table1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.table1]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child dialog1_VBox.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.GtkAlignment2             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment2.Name        = "GtkAlignment2";
     this.GtkAlignment2.LeftPadding = ((uint)(12));
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.deleteCheck               = new Gtk.CheckButton();
     this.deleteCheck.CanFocus      = true;
     this.deleteCheck.Name          = "deleteCheck";
     this.deleteCheck.Label         = Mono.Unix.Catalog.GetString("Delete files on completion");
     this.deleteCheck.DrawIndicator = true;
     this.deleteCheck.UseUnderline  = true;
     this.vbox2.Add(this.deleteCheck);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.deleteCheck]));
     w5.Position = 0;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.statusCheck               = new Gtk.CheckButton();
     this.statusCheck.CanFocus      = true;
     this.statusCheck.Name          = "statusCheck";
     this.statusCheck.Label         = Mono.Unix.Catalog.GetString("Do not overwrite existing found status in database");
     this.statusCheck.DrawIndicator = true;
     this.statusCheck.UseUnderline  = true;
     this.vbox2.Add(this.statusCheck);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.statusCheck]));
     w6.Position = 1;
     w6.Expand   = false;
     w6.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.oldLogsCheck               = new Gtk.CheckButton();
     this.oldLogsCheck.CanFocus      = true;
     this.oldLogsCheck.Name          = "oldLogsCheck";
     this.oldLogsCheck.Label         = Mono.Unix.Catalog.GetString("Purge old cache logs");
     this.oldLogsCheck.DrawIndicator = true;
     this.oldLogsCheck.UseUnderline  = true;
     this.vbox2.Add(this.oldLogsCheck);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.oldLogsCheck]));
     w7.Position = 2;
     w7.Expand   = false;
     w7.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.gsakFieldsCheck               = new Gtk.CheckButton();
     this.gsakFieldsCheck.CanFocus      = true;
     this.gsakFieldsCheck.Name          = "gsakFieldsCheck";
     this.gsakFieldsCheck.Label         = Mono.Unix.Catalog.GetString("Ignore GSAK/OCM extra fields in GPX file");
     this.gsakFieldsCheck.DrawIndicator = true;
     this.gsakFieldsCheck.UseUnderline  = true;
     this.vbox2.Add(this.gsakFieldsCheck);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox2[this.gsakFieldsCheck]));
     w8.Position = 3;
     w8.Expand   = false;
     w8.Fill     = false;
     // 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.addToListCheck               = new Gtk.CheckButton();
     this.addToListCheck.CanFocus      = true;
     this.addToListCheck.Name          = "addToListCheck";
     this.addToListCheck.Label         = Mono.Unix.Catalog.GetString("Add to bookmark list:");
     this.addToListCheck.DrawIndicator = true;
     this.addToListCheck.UseUnderline  = true;
     this.hbox1.Add(this.addToListCheck);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox1[this.addToListCheck]));
     w9.Position = 0;
     w9.Expand   = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.bmCombo           = Gtk.ComboBox.NewText();
     this.bmCombo.Sensitive = false;
     this.bmCombo.Name      = "bmCombo";
     this.hbox1.Add(this.bmCombo);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox1[this.bmCombo]));
     w10.Position = 1;
     w10.Expand   = false;
     w10.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.addBmrkButton           = new Gtk.Button();
     this.addBmrkButton.Sensitive = false;
     this.addBmrkButton.CanFocus  = true;
     this.addBmrkButton.Name      = "addBmrkButton";
     // Container child addBmrkButton.Gtk.Container+ContainerChild
     this.image20           = new Gtk.Image();
     this.image20.Sensitive = false;
     this.image20.Name      = "image20";
     this.image20.Pixbuf    = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16);
     this.addBmrkButton.Add(this.image20);
     this.addBmrkButton.Label = null;
     this.hbox1.Add(this.addBmrkButton);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.addBmrkButton]));
     w12.Position = 2;
     w12.Expand   = false;
     w12.Fill     = false;
     this.vbox2.Add(this.hbox1);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
     w13.Position = 4;
     w13.Expand   = false;
     w13.Fill     = false;
     this.GtkAlignment2.Add(this.vbox2);
     this.frame1.Add(this.GtkAlignment2);
     this.GtkLabel7           = new Gtk.Label();
     this.GtkLabel7.Name      = "GtkLabel7";
     this.GtkLabel7.LabelProp = Mono.Unix.Catalog.GetString("<b>Options</b>");
     this.GtkLabel7.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel7;
     w1.Add(this.frame1);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w1[this.frame1]));
     w16.Position = 1;
     w16.Expand   = false;
     w16.Fill     = false;
     // Internal child ocmgtk.ImportDirectoryDialog.ActionArea
     Gtk.HButtonBox w17 = this.ActionArea;
     w17.Name        = "dialog1_ActionArea";
     w17.Spacing     = 10;
     w17.BorderWidth = ((uint)(5));
     w17.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 w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w17[this.buttonCancel]));
     w18.Expand = false;
     w18.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 w19 = ((Gtk.ButtonBox.ButtonBoxChild)(w17[this.buttonOk]));
     w19.Position = 1;
     w19.Expand   = false;
     w19.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 512;
     this.DefaultHeight = 281;
     this.Show();
     this.addToListCheck.Toggled += new System.EventHandler(this.OnBmrkToggle);
     this.addBmrkButton.Clicked  += new System.EventHandler(this.OnAddClicked);
 }
Example #40
0
 public Gtk.Widget CreateFeatureEditor(SolutionFolder parentCombine, SolutionItem entry)
 {
     Gtk.Label label = new Gtk.Label(GettextCatalog.GetString("A new local Git Repository for the solution will be created"));
     label.Show();
     return(label);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.GarminUSBWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.GarminUSBWidget";
     // Container child ocmgtk.GarminUSBWidget.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.table1               = new Gtk.Table(((uint)(3)), ((uint)(2)), false);
     this.table1.Name          = "table1";
     this.table1.RowSpacing    = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.descMode = Gtk.ComboBox.NewText();
     this.descMode.AppendText(Mono.Unix.Catalog.GetString("Cache Name"));
     this.descMode.AppendText(Mono.Unix.Catalog.GetString("Cache Code/Size/Hint"));
     this.descMode.AppendText(Mono.Unix.Catalog.GetString("Cache Code/Size/Type"));
     this.descMode.Name   = "descMode";
     this.descMode.Active = 0;
     this.table1.Add(this.descMode);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.descMode]));
     w1.TopAttach    = ((uint)(2));
     w1.BottomAttach = ((uint)(3));
     w1.LeftAttach   = ((uint)(1));
     w1.RightAttach  = ((uint)(2));
     w1.XOptions     = ((Gtk.AttachOptions)(4));
     w1.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.Xalign    = 0F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Waypoint Name Format:");
     this.table1.Add(this.label1);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label1]));
     w2.TopAttach    = ((uint)(1));
     w2.BottomAttach = ((uint)(2));
     w2.XOptions     = ((Gtk.AttachOptions)(4));
     w2.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.Xalign    = 0F;
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Waypoint Description Format:");
     this.table1.Add(this.label2);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label2]));
     w3.TopAttach    = ((uint)(2));
     w3.BottomAttach = ((uint)(3));
     w3.XOptions     = ((Gtk.AttachOptions)(4));
     w3.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.limitCheck               = new Gtk.CheckButton();
     this.limitCheck.CanFocus      = true;
     this.limitCheck.Name          = "limitCheck";
     this.limitCheck.Label         = Mono.Unix.Catalog.GetString("Limit Number of Geocaches");
     this.limitCheck.Active        = true;
     this.limitCheck.DrawIndicator = true;
     this.limitCheck.UseUnderline  = true;
     this.table1.Add(this.limitCheck);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.limitCheck]));
     w4.XOptions = ((Gtk.AttachOptions)(4));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.limitEntry               = new Gtk.Entry();
     this.limitEntry.CanFocus      = true;
     this.limitEntry.Name          = "limitEntry";
     this.limitEntry.Text          = "500";
     this.limitEntry.IsEditable    = true;
     this.limitEntry.InvisibleChar = '•';
     this.table1.Add(this.limitEntry);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.limitEntry]));
     w5.LeftAttach  = ((uint)(1));
     w5.RightAttach = ((uint)(2));
     w5.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.nameMode = Gtk.ComboBox.NewText();
     this.nameMode.AppendText(Mono.Unix.Catalog.GetString("Cache Code"));
     this.nameMode.AppendText(Mono.Unix.Catalog.GetString("Cache Name"));
     this.nameMode.Name   = "nameMode";
     this.nameMode.Active = 0;
     this.table1.Add(this.nameMode);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.nameMode]));
     w6.TopAttach    = ((uint)(1));
     w6.BottomAttach = ((uint)(2));
     w6.LeftAttach   = ((uint)(1));
     w6.RightAttach  = ((uint)(2));
     w6.XOptions     = ((Gtk.AttachOptions)(4));
     w6.YOptions     = ((Gtk.AttachOptions)(4));
     this.vbox2.Add(this.table1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.table1]));
     w7.Position = 0;
     w7.Expand   = false;
     w7.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.image2        = new Gtk.Image();
     this.image2.Name   = "image2";
     this.image2.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-warning", Gtk.IconSize.Menu, 16);
     this.hbox2.Add(this.image2);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox2[this.image2]));
     w8.Position = 0;
     w8.Expand   = false;
     w8.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.hotPlugButton          = new Gtk.Button();
     this.hotPlugButton.CanFocus = true;
     this.hotPlugButton.Name     = "hotPlugButton";
     this.hotPlugButton.Relief   = ((Gtk.ReliefStyle)(2));
     // Container child hotPlugButton.Gtk.Container+ContainerChild
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("<b>Important:</b>  You may need to configure non-root access to\nUSB to allow OCM to write to your Garmin Device. See:\n<span fgcolor=\"blue\">http://www.gpsbabel.org/os/Linux_Hotplug.html</span>");
     this.label4.UseMarkup = true;
     this.hotPlugButton.Add(this.label4);
     this.hotPlugButton.Label = null;
     this.hbox2.Add(this.hotPlugButton);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.hotPlugButton]));
     w10.Position = 1;
     w10.Expand   = false;
     w10.Fill     = false;
     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.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
     this.limitCheck.Toggled    += new System.EventHandler(this.OnLimitToggle);
     this.hotPlugButton.Clicked += new System.EventHandler(this.OnHotplugClick);
 }
Example #42
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.DescriptionWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.DescriptionWidget";
     // Container child ocmgtk.DescriptionWidget.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.hintButton        = new Gtk.Button();
     this.hintButton.Name   = "hintButton";
     this.hintButton.Relief = ((Gtk.ReliefStyle)(2));
     // Container child hintButton.Gtk.Container+ContainerChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.Xalign    = 0F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("<span fgcolor=\"blue\">Hint</span>");
     this.label1.UseMarkup = true;
     this.hintButton.Add(this.label1);
     this.hintButton.Label = null;
     this.vbox2.Add(this.hintButton);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.hintButton]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.tbugExpander          = new Gtk.Expander(null);
     this.tbugExpander.CanFocus = true;
     this.tbugExpander.Name     = "tbugExpander";
     // Container child tbugExpander.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
     this.tbugView          = new Gtk.TreeView();
     this.tbugView.CanFocus = true;
     this.tbugView.Name     = "tbugView";
     this.scrolledwindow1.Add(this.tbugView);
     this.tbugExpander.Add(this.scrolledwindow1);
     this.GtkLabel2                = new Gtk.Label();
     this.GtkLabel2.Name           = "GtkLabel2";
     this.GtkLabel2.Xalign         = 0F;
     this.GtkLabel2.LabelProp      = Mono.Unix.Catalog.GetString("<b>Trackables</b>");
     this.GtkLabel2.UseMarkup      = true;
     this.GtkLabel2.UseUnderline   = true;
     this.tbugExpander.LabelWidget = this.GtkLabel2;
     this.vbox2.Add(this.tbugExpander);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.tbugExpander]));
     w5.Position = 1;
     w5.Expand   = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.descAlign      = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.descAlign.Name = "descAlign";
     this.vbox2.Add(this.descAlign);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.descAlign]));
     w6.Position = 2;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
     this.hintButton.Clicked += new System.EventHandler(this.onHintClick);
 }
Example #43
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget sermon2.AboutDialog
     this.Name           = "sermon2.AboutDialog";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.HasSeparator   = false;
     // Internal child sermon2.AboutDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.notebook1             = new Gtk.Notebook();
     this.notebook1.CanFocus    = true;
     this.notebook1.Name        = "notebook1";
     this.notebook1.CurrentPage = 2;
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("sermon2 by <b>Daniel Otte</b> ([email protected]) under GPLv3+");
     this.label2.UseMarkup = true;
     this.vbox2.Add(this.label2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.image7        = new Gtk.Image();
     this.image7.Name   = "image7";
     this.image7.Pixbuf = Gdk.Pixbuf.LoadFromResource("logo_small.png");
     this.vbox2.Add(this.image7);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.image7]));
     w3.Position = 1;
     this.notebook1.Add(this.vbox2);
     // Notebook tab
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("about:");
     this.notebook1.SetTabLabel(this.vbox2, this.label1);
     this.label1.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.vbox4         = new Gtk.VBox();
     this.vbox4.Name    = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.label6           = new Gtk.Label();
     this.label6.Name      = "label6";
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("sermon2 is freely available under the GPLv3 license or later");
     this.vbox4.Add(this.label6);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox4[this.label6]));
     w5.Position = 0;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child vbox4.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.textview1             = new Gtk.TextView();
     this.textview1.Buffer.Text = "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<http://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<http://www.gnu.org/philosophy/why-not-lgpl.html>.\n";
     this.textview1.CanFocus    = true;
     this.textview1.Name        = "textview1";
     this.textview1.Editable    = false;
     this.GtkScrolledWindow.Add(this.textview1);
     this.vbox4.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox4[this.GtkScrolledWindow]));
     w7.Position = 1;
     // Container child vbox4.Gtk.Box+BoxChild
     this.image9        = new Gtk.Image();
     this.image9.Name   = "image9";
     this.image9.Pixbuf = Gdk.Pixbuf.LoadFromResource("gplv3-127x51.png");
     this.vbox4.Add(this.image9);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox4[this.image9]));
     w8.Position = 2;
     w8.Expand   = false;
     w8.Fill     = false;
     this.notebook1.Add(this.vbox4);
     Gtk.Notebook.NotebookChild w9 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox4]));
     w9.Position = 1;
     // Notebook tab
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("about:license");
     this.notebook1.SetTabLabel(this.vbox4, this.label3);
     this.label3.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.label5           = new Gtk.Label();
     this.label5.Name      = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("visit the Labor: http://www.das-labor.org");
     this.vbox3.Add(this.label5);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox3[this.label5]));
     w10.Position = 0;
     w10.Expand   = false;
     w10.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.image8        = new Gtk.Image();
     this.image8.Name   = "image8";
     this.image8.Pixbuf = Gdk.Pixbuf.LoadFromResource("Labor.png");
     this.vbox3.Add(this.image8);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox3[this.image8]));
     w11.Position = 1;
     w11.Expand   = false;
     w11.Fill     = false;
     this.notebook1.Add(this.vbox3);
     Gtk.Notebook.NotebookChild w12 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox3]));
     w12.Position = 2;
     // Notebook tab
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("about:Labor");
     this.notebook1.SetTabLabel(this.vbox3, this.label4);
     this.label4.ShowAll();
     w1.Add(this.notebook1);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[this.notebook1]));
     w13.Position = 0;
     // Internal child sermon2.AboutDialog.ActionArea
     Gtk.HButtonBox w14 = this.ActionArea;
     w14.Name        = "dialog1_ActionArea";
     w14.Spacing     = 6;
     w14.BorderWidth = ((uint)(5));
     w14.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 w15 = ((Gtk.ButtonBox.ButtonBoxChild)(w14[this.buttonOk]));
     w15.Expand = false;
     w15.Fill   = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 481;
     this.DefaultHeight = 499;
     this.Show();
     this.buttonOk.Released += new System.EventHandler(this.OnButtonOkReleased);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Upnp.GtkClient.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.WidthRequest   = 0;
     this.HeightRequest  = 0;
     this.Name           = "Mono.Upnp.GtkClient.MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Mono.Upnp");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     // Container child Mono.Upnp.GtkClient.MainWindow.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned             = new Gtk.HPaned();
     this.hpaned.CanFocus    = true;
     this.hpaned.Name        = "hpaned";
     this.hpaned.Position    = 354;
     this.hpaned.BorderWidth = ((uint)(5));
     // Container child hpaned.Gtk.Paned+PanedChild
     this.GtkScrolledWindow            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name       = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.list          = new Gtk.TreeView();
     this.list.CanFocus = true;
     this.list.Name     = "list";
     this.GtkScrolledWindow.Add(this.list);
     this.hpaned.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w3 = ((Gtk.Paned.PanedChild)(this.hpaned[this.GtkScrolledWindow]));
     w3.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.infoBox         = new Gtk.VBox();
     this.infoBox.Name    = "infoBox";
     this.infoBox.Spacing = 6;
     // Container child infoBox.Gtk.Box+BoxChild
     this.infoFiller           = new Gtk.Label();
     this.infoFiller.Name      = "infoFiller";
     this.infoFiller.LabelProp = Mono.Unix.Catalog.GetString("Select a device or service");
     this.infoBox.Add(this.infoFiller);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.infoBox[this.infoFiller]));
     w4.Position = 0;
     w4.Fill     = false;
     this.hpaned.Add(this.infoBox);
     this.vbox1.Add(this.hpaned);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned]));
     w6.Position = 0;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 1077;
     this.DefaultHeight = 527;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
Example #45
0
        private void Build()
        {
            // ----------------------TAMANHO------------------------

            SetGeometryHints(
                this, new Gdk.Geometry()
            {
                MinWidth = 300, MinHeight = 300
            }, Gdk.WindowHints.MinSize);

            // ----------------------EVENTOS------------------------

            DeleteEvent += (o, args) => OnClose();

            // ------------------INICIALIZACION---------------------

            // Labels.
            var SectionTitle = new Gtk.Label("<b>EXERCISES</b>");

            SectionTitle.UseMarkup = true;

            // Tree.
            Exercises = new Gtk.TreeView();
            // Tree Colum.
            var NameRender = new Gtk.CellRendererText();

            NameRender.Editable = true;
            NameRender.Edited  += NameRenderEdit;
            var MetersRender = new Gtk.CellRendererText();

            MetersRender.Editable = true;
            MetersRender.Edited  += MetersRenderEdit;
            var MinutesRender = new Gtk.CellRendererText();

            MinutesRender.Editable = true;
            MinutesRender.Edited  += MinutesRenderEdit;
            var DateRender = new Gtk.CellRendererText();

            // Tree Model.
            ExeModel = new Gtk.ListStore(typeof(string), typeof(string), typeof(string), typeof(string));
            Exercises.ButtonPressEvent += new Gtk.ButtonPressEventHandler(OnRight);

            // Boxes Creation.
            var TreeScroll = new Gtk.ScrolledWindow();
            var TreeSpace  = new Gtk.HBox(false, 5);

            // -------------------COMPOSICION------------------------

            // Tree.
            Exercises.Model = ExeModel;
            // Tree Columns Append.
            Exercises.AppendColumn("Name", NameRender, "text", 0);
            Exercises.AppendColumn("Meters", MetersRender, "text", 1);
            Exercises.AppendColumn("Minutes", MinutesRender, "text", 2);
            Exercises.AppendColumn("Date", DateRender, "text", 3);

            // Fill Boxes.
            TreeScroll.Add(Exercises);
            TreeSpace.Add(TreeScroll);

            ViewBox.Add(SectionTitle);
            ViewBox.Add(TreeSpace);

            Add(ViewBox);
            BuildAddView();
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget mperfmon.Preferences
     this.Name           = "mperfmon.Preferences";
     this.Title          = Mono.Unix.Catalog.GetString("Mono Perf Monitor preferences");
     this.TypeHint       = ((Gdk.WindowTypeHint)(1));
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.HasSeparator   = false;
     // Internal child mperfmon.Preferences.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.table1               = new Gtk.Table(((uint)(3)), ((uint)(2)), false);
     this.table1.Name          = "table1";
     this.table1.RowSpacing    = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     this.table1.BorderWidth   = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Update interval (seconds):");
     this.table1.Add(this.label1);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label1]));
     w2.XOptions = ((Gtk.AttachOptions)(4));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.update_interval          = new Gtk.SpinButton(0.2, 60, 0.2);
     this.update_interval.CanFocus = true;
     this.update_interval.Name     = "update_interval";
     this.update_interval.Adjustment.PageIncrement = 1;
     this.update_interval.Adjustment.PageSize      = 1;
     this.update_interval.ClimbRate   = 1;
     this.update_interval.Digits      = ((uint)(1));
     this.update_interval.Numeric     = true;
     this.update_interval.SnapToTicks = true;
     this.update_interval.Value       = 1;
     this.table1.Add(this.update_interval);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.update_interval]));
     w3.LeftAttach  = ((uint)(1));
     w3.RightAttach = ((uint)(2));
     w3.XOptions    = ((Gtk.AttachOptions)(4));
     w3.YOptions    = ((Gtk.AttachOptions)(4));
     w1.Add(this.table1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.table1]));
     w4.Position = 0;
     // Internal child mperfmon.Preferences.ActionArea
     Gtk.HButtonBox w5 = this.ActionArea;
     w5.Name        = "dialog1_ActionArea";
     w5.Spacing     = 6;
     w5.BorderWidth = ((uint)(5));
     w5.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 w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonCancel]));
     w6.Expand = false;
     w6.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 w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonOk]));
     w7.Position = 1;
     w7.Expand   = false;
     w7.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 290;
     this.DefaultHeight = 248;
     this.Show();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget mperfmon.NewCounter
     this.Name           = "mperfmon.NewCounter";
     this.Title          = Mono.Unix.Catalog.GetString("Add performance counter");
     this.TypeHint       = ((Gdk.WindowTypeHint)(1));
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.HasSeparator   = false;
     // Internal child mperfmon.NewCounter.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.table2               = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.table2.Name          = "table2";
     this.table2.RowSpacing    = ((uint)(6));
     this.table2.ColumnSpacing = ((uint)(6));
     // Container child table2.Gtk.Table+TableChild
     this.frame1            = new Gtk.Frame();
     this.frame1.Name       = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment3             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment3.Name        = "GtkAlignment3";
     this.GtkAlignment3.LeftPadding = ((uint)(12));
     // Container child GtkAlignment3.Gtk.Container+ContainerChild
     this.GtkScrolledWindow            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name       = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.counters                  = new Gtk.TreeView();
     this.counters.CanFocus         = true;
     this.counters.Name             = "counters";
     this.counters.HeadersClickable = true;
     this.GtkScrolledWindow.Add(this.counters);
     this.GtkAlignment3.Add(this.GtkScrolledWindow);
     this.frame1.Add(this.GtkAlignment3);
     this.GtkLabel3           = new Gtk.Label();
     this.GtkLabel3.Name      = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("<b>Counters:</b>");
     this.GtkLabel3.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel3;
     this.table2.Add(this.frame1);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table2[this.frame1]));
     w5.TopAttach    = ((uint)(1));
     w5.BottomAttach = ((uint)(2));
     // Container child table2.Gtk.Table+TableChild
     this.frame2            = new Gtk.Frame();
     this.frame2.Name       = "frame2";
     this.frame2.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame2.Gtk.Container+ContainerChild
     this.GtkAlignment2             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment2.Name        = "GtkAlignment2";
     this.GtkAlignment2.LeftPadding = ((uint)(12));
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     this.GtkScrolledWindow1            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name       = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.instances                  = new Gtk.TreeView();
     this.instances.CanFocus         = true;
     this.instances.Name             = "instances";
     this.instances.HeadersClickable = true;
     this.GtkScrolledWindow1.Add(this.instances);
     this.GtkAlignment2.Add(this.GtkScrolledWindow1);
     this.frame2.Add(this.GtkAlignment2);
     this.GtkLabel2           = new Gtk.Label();
     this.GtkLabel2.Name      = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>Instances:</b>");
     this.GtkLabel2.UseMarkup = true;
     this.frame2.LabelWidget  = this.GtkLabel2;
     this.table2.Add(this.frame2);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table2[this.frame2]));
     w9.TopAttach    = ((uint)(1));
     w9.BottomAttach = ((uint)(2));
     w9.LeftAttach   = ((uint)(1));
     w9.RightAttach  = ((uint)(2));
     // Container child table2.Gtk.Table+TableChild
     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("Category");
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w10.Position = 0;
     w10.Expand   = false;
     w10.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.categories        = Gtk.ComboBox.NewText();
     this.categories.Name   = "categories";
     this.categories.Active = 0;
     this.hbox1.Add(this.categories);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.categories]));
     w11.Position = 1;
     w11.Expand   = false;
     w11.Fill     = false;
     this.table2.Add(this.hbox1);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table2[this.hbox1]));
     w12.RightAttach = ((uint)(2));
     w12.XOptions    = ((Gtk.AttachOptions)(0));
     w12.YOptions    = ((Gtk.AttachOptions)(4));
     w1.Add(this.table2);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[this.table2]));
     w13.Position = 0;
     w13.Padding  = ((uint)(6));
     // Internal child mperfmon.NewCounter.ActionArea
     Gtk.HButtonBox w14 = this.ActionArea;
     w14.Name        = "dialog1_ActionArea";
     w14.Spacing     = 6;
     w14.BorderWidth = ((uint)(5));
     w14.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 w15 = ((Gtk.ButtonBox.ButtonBoxChild)(w14[this.buttonCancel]));
     w15.Expand = false;
     w15.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 w16 = ((Gtk.ButtonBox.ButtonBoxChild)(w14[this.buttonOk]));
     w16.Position = 1;
     w16.Expand   = false;
     w16.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 565;
     this.DefaultHeight = 359;
     this.Show();
     this.categories.Changed    += new System.EventHandler(this.OnCategorySelected);
     this.counters.RowActivated += new Gtk.RowActivatedHandler(this.OnCounterRow);
 }
        void EnsureLayoutCreated(TextEditor editor)
        {
            if (editor.ColorStyle != null && gc == null)
            {
                bool isError = errors.Any(e => e.IsError);

                string typeString = isError ? "error" : "warning";

                gc            = new Gdk.GC(editor.GdkWindow);
                gc.RgbFgColor = editor.ColorStyle.GetChunkStyle("bubble." + typeString + ".text").Color;

                gcSelected            = new Gdk.GC(editor.GdkWindow);
                gcSelected.RgbFgColor = editor.ColorStyle.Selection.Color;

                gcLight            = new Gdk.GC(editor.GdkWindow);
                gcLight.RgbFgColor = new Gdk.Color(255, 255, 255);


                colorMatrix[0, 0, 0, 0, 0] = Mono.TextEditor.Highlighting.Style.ToCairoColor(editor.ColorStyle.GetChunkStyle("bubble." + typeString + ".light.color1").Color);
                colorMatrix[0, 1, 0, 0, 0] = Mono.TextEditor.Highlighting.Style.ToCairoColor(editor.ColorStyle.GetChunkStyle("bubble." + typeString + ".light.color2").Color);

                colorMatrix[0, 0, 1, 0, 0] = Mono.TextEditor.Highlighting.Style.ToCairoColor(editor.ColorStyle.GetChunkStyle("bubble." + typeString + ".dark.color1").Color);
                colorMatrix[0, 1, 1, 0, 0] = Mono.TextEditor.Highlighting.Style.ToCairoColor(editor.ColorStyle.GetChunkStyle("bubble." + typeString + ".dark.color2").Color);

                colorMatrix[0, 0, 2, 0, 0] = Mono.TextEditor.Highlighting.Style.ToCairoColor(editor.ColorStyle.GetChunkStyle("bubble." + typeString + ".line.top").Color);
                colorMatrix[0, 1, 2, 0, 0] = Mono.TextEditor.Highlighting.Style.ToCairoColor(editor.ColorStyle.GetChunkStyle("bubble." + typeString + ".line.bottom").Color);

                colorMatrix[1, 0, 0, 0, 0] = Mono.TextEditor.Highlighting.Style.ToCairoColor(editor.ColorStyle.GetChunkStyle("bubble.inactive." + typeString + ".light.color1").Color);
                colorMatrix[1, 1, 0, 0, 0] = Mono.TextEditor.Highlighting.Style.ToCairoColor(editor.ColorStyle.GetChunkStyle("bubble.inactive." + typeString + ".light.color2").Color);

                colorMatrix[1, 0, 1, 0, 0] = Mono.TextEditor.Highlighting.Style.ToCairoColor(editor.ColorStyle.GetChunkStyle("bubble.inactive." + typeString + ".dark.color1").Color);
                colorMatrix[1, 1, 1, 0, 0] = Mono.TextEditor.Highlighting.Style.ToCairoColor(editor.ColorStyle.GetChunkStyle("bubble.inactive." + typeString + ".dark.color2").Color);

                colorMatrix[1, 0, 2, 0, 0] = Mono.TextEditor.Highlighting.Style.ToCairoColor(editor.ColorStyle.GetChunkStyle("bubble.inactive." + typeString + ".line.top").Color);
                colorMatrix[1, 1, 2, 0, 0] = Mono.TextEditor.Highlighting.Style.ToCairoColor(editor.ColorStyle.GetChunkStyle("bubble.inactive." + typeString + ".line.bottom").Color);

                double factor = 1.03;
                for (int i = 0; i < 2; i++)
                {
                    for (int j = 0; j < 2; j++)
                    {
                        for (int k = 0; k < 3; k++)
                        {
                            HslColor color = colorMatrix[i, j, k, 0, 0];
                            color.L *= factor;
                            colorMatrix[i, j, k, 1, 0] = color;
                        }
                    }
                }
                var selectionColor = Style.ToCairoColor(editor.ColorStyle.Selection.BackgroundColor);
                for (int i = 0; i < 2; i++)
                {
                    for (int j = 0; j < 2; j++)
                    {
                        for (int k = 0; k < 3; k++)
                        {
                            for (int l = 0; l < 2; l++)
                            {
                                var color = colorMatrix[i, j, k, l, 0];
                                colorMatrix[i, j, k, l, 1] = new Cairo.Color((color.R + selectionColor.R * 1.5) / 2.5, (color.G + selectionColor.G * 1.5) / 2.5, (color.B + selectionColor.B * 1.5) / 2.5);
                            }
                        }
                    }
                }
            }

            if (layouts != null)
            {
                return;
            }

            layouts         = new List <LayoutDescriptor> ();
            fontDescription = Pango.FontDescription.FromString(editor.Options.FontName);
            var label = new Gtk.Label("");

            fontDescription.Family = label.Style.FontDescription.Family;
            label.Destroy();
            fontDescription.Size = (int)(fontDescription.Size * 0.9f * editor.Options.Zoom);
            foreach (ErrorText errorText in errors)
            {
                Pango.Layout layout = new Pango.Layout(editor.PangoContext);
                layout.FontDescription = fontDescription;
                layout.SetText(errorText.ErrorMessage);

                KeyValuePair <int, int> textSize;
                if (!textWidthDictionary.TryGetValue(errorText.ErrorMessage, out textSize))
                {
                    int w, h;
                    layout.GetPixelSize(out w, out h);
                    textSize = new KeyValuePair <int, int> (w, h);
                    textWidthDictionary[errorText.ErrorMessage] = textSize;
                }
                layouts.Add(new LayoutDescriptor(layout, textSize.Key, textSize.Value));
            }

            if (errorCountLayout == null && errors.Count > 1)
            {
                errorCountLayout = new Pango.Layout(editor.PangoContext);
                errorCountLayout.FontDescription = fontDescription;
                errorCountLayout.SetText(errors.Count.ToString());
            }
        }
        void Update(CommandInfo cmdInfo)
        {
            lastCmdInfo = cmdInfo;
            if (isArray && !isArrayItem)
            {
                this.Visible = false;
                Gtk.Menu menu = (Gtk.Menu)Parent;

                if (itemArray != null)
                {
                    foreach (Gtk.MenuItem item in itemArray)
                    {
                        menu.Remove(item);
                    }
                }

                itemArray = new ArrayList();
                int i = Array.IndexOf(menu.Children, this);

                if (cmdInfo.ArrayInfo != null)
                {
                    foreach (CommandInfo info in cmdInfo.ArrayInfo)
                    {
                        Gtk.MenuItem item;
                        if (info.IsArraySeparator)
                        {
                            item = new Gtk.SeparatorMenuItem();
                            item.Show();
                        }
                        else
                        {
                            item = CommandEntry.CreateMenuItem(commandManager, commandId, false);
                            ICommandMenuItem mi = (ICommandMenuItem)item;
                            mi.SetUpdateInfo(info, initialTarget);
                        }
                        menu.Insert(item, ++i);
                        itemArray.Add(item);
                    }
                }
            }
            else
            {
                Gtk.Widget child = Child;
                if (child == null)
                {
                    return;
                }

                Gtk.Label accel_label = null;
                Gtk.Label label       = null;

                if (!(child is Gtk.HBox))
                {
                    child       = new Gtk.HBox(false, 0);
                    accel_label = new Gtk.Label("");
                    accel_label.UseUnderline = false;
                    accel_label.Xalign       = 1.0f;
                    accel_label.Show();

                    label = new Gtk.Label("");
                    label.UseUnderline = true;
                    label.Xalign       = 0.0f;
                    label.Show();

                    ((Gtk.Box)child).PackStart(label);
                    ((Gtk.Box)child).PackStart(accel_label);
                    child.Show();

                    this.Remove(Child);
                    this.Add(child);
                }
                else
                {
                    accel_label = (Gtk.Label)((Gtk.Box)child).Children[1];
                    label       = (Gtk.Label)((Gtk.Box)child).Children[0];
                }

                if (cmdInfo.AccelKey != null)
                {
                    accel_label.Text = "    " + KeyBindingManager.BindingToDisplayLabel(cmdInfo.AccelKey, true);
                }
                else
                {
                    accel_label.Text = String.Empty;
                }

                if (cmdInfo.UseMarkup)
                {
                    label.Markup    = overrideLabel ?? cmdInfo.Text;
                    label.UseMarkup = true;
                }
                else
                {
                    label.Text      = overrideLabel ?? cmdInfo.Text;
                    label.UseMarkup = false;
                }

                if (!string.IsNullOrEmpty(cmdInfo.Description) && label.TooltipText != cmdInfo.Description)
                {
                    label.TooltipText = cmdInfo.Description;
                }
                label.UseUnderline = true;

                this.Sensitive = cmdInfo.Enabled;
                this.Visible   = cmdInfo.Visible && (disabledVisible || cmdInfo.Enabled);

                if (!cmdInfo.Icon.IsNull && cmdInfo.Icon != lastIcon)
                {
                    Image    = new Gtk.Image(cmdInfo.Icon, Gtk.IconSize.Menu);
                    lastIcon = cmdInfo.Icon;
                }

                if (cmdInfo is CommandInfoSet)
                {
                    CommandInfoSet ciset = (CommandInfoSet)cmdInfo;
                    Gtk.Menu       smenu = new Gtk.Menu();
                    Submenu = smenu;
                    foreach (CommandInfo info in ciset.CommandInfos)
                    {
                        Gtk.MenuItem item;
                        if (info.IsArraySeparator)
                        {
                            item = new Gtk.SeparatorMenuItem();
                            item.Show();
                        }
                        else
                        {
                            item = CommandEntry.CreateMenuItem(commandManager, commandId, false);
                            ICommandMenuItem mi = (ICommandMenuItem)item;
                            mi.SetUpdateInfo(info, initialTarget);
                        }
                        smenu.Add(item);
                    }
                }
            }
        }
Example #50
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Upnp.GtkClient.ServiceAnnouncementInfo
     Stetic.BinContainer.Attach(this);
     this.Name = "Mono.Upnp.GtkClient.ServiceAnnouncementInfo";
     // Container child Mono.Upnp.GtkClient.ServiceAnnouncementInfo.Gtk.Container+ContainerChild
     this.table1               = new Gtk.Table(((uint)(3)), ((uint)(2)), false);
     this.table1.Name          = "table1";
     this.table1.RowSpacing    = ((uint)(10));
     this.table1.ColumnSpacing = ((uint)(10));
     this.table1.BorderWidth   = ((uint)(10));
     // Container child table1.Gtk.Table+TableChild
     this.deviceUdn            = new Gtk.Label();
     this.deviceUdn.Name       = "deviceUdn";
     this.deviceUdn.Xalign     = 0F;
     this.deviceUdn.LabelProp  = "deviceUdn";
     this.deviceUdn.Selectable = true;
     this.table1.Add(this.deviceUdn);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.deviceUdn]));
     w1.TopAttach    = ((uint)(1));
     w1.BottomAttach = ((uint)(2));
     w1.LeftAttach   = ((uint)(1));
     w1.RightAttach  = ((uint)(2));
     w1.XOptions     = ((Gtk.AttachOptions)(4));
     w1.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.Xalign    = 1F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("<b>Service Type</b>");
     this.label1.UseMarkup = true;
     this.table1.Add(this.label1);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label1]));
     w2.XOptions = ((Gtk.AttachOptions)(4));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.Xalign    = 1F;
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("<b>Device UDN</b>");
     this.label2.UseMarkup = true;
     this.table1.Add(this.label2);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label2]));
     w3.TopAttach    = ((uint)(1));
     w3.BottomAttach = ((uint)(2));
     w3.XOptions     = ((Gtk.AttachOptions)(4));
     w3.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.Xalign    = 1F;
     this.label3.Yalign    = 0F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("<b>Locations</b>");
     this.label3.UseMarkup = true;
     this.table1.Add(this.label3);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
     w4.TopAttach    = ((uint)(2));
     w4.BottomAttach = ((uint)(3));
     w4.XOptions     = ((Gtk.AttachOptions)(4));
     w4.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.locationBox         = new Gtk.VBox();
     this.locationBox.Name    = "locationBox";
     this.locationBox.Spacing = 6;
     this.table1.Add(this.locationBox);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.locationBox]));
     w5.TopAttach    = ((uint)(2));
     w5.BottomAttach = ((uint)(3));
     w5.LeftAttach   = ((uint)(1));
     w5.RightAttach  = ((uint)(2));
     w5.XOptions     = ((Gtk.AttachOptions)(4));
     w5.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.serviceType            = new Gtk.Label();
     this.serviceType.Name       = "serviceType";
     this.serviceType.Xalign     = 0F;
     this.serviceType.LabelProp  = "serviceType";
     this.serviceType.Selectable = true;
     this.table1.Add(this.serviceType);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.serviceType]));
     w6.LeftAttach  = ((uint)(1));
     w6.RightAttach = ((uint)(2));
     w6.XOptions    = ((Gtk.AttachOptions)(4));
     w6.YOptions    = ((Gtk.AttachOptions)(4));
     this.Add(this.table1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
 }
Example #51
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget OpenGridServices.Manager.ConnectToGridServerDialog
     this.Events         = ((Gdk.EventMask)(256));
     this.Name           = "OpenGridServices.Manager.ConnectToGridServerDialog";
     this.Title          = Mono.Unix.Catalog.GetString("Connect to Grid server");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.HasSeparator   = false;
     // Internal child OpenGridServices.Manager.ConnectToGridServerDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Events      = ((Gdk.EventMask)(256));
     w1.Name        = "dialog_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog_VBox.Gtk.Box+BoxChild
     this.vbox2      = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     // Container child vbox2.Gtk.Box+BoxChild
     this.vbox3      = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox1      = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.Xalign    = 1F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Grid server URL: ");
     this.label1.Justify   = ((Gtk.Justification)(1));
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w2.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.entry1               = new Gtk.Entry();
     this.entry1.CanFocus      = true;
     this.entry1.Name          = "entry1";
     this.entry1.Text          = Mono.Unix.Catalog.GetString("http://gridserver:8001");
     this.entry1.IsEditable    = true;
     this.entry1.MaxLength     = 255;
     this.entry1.InvisibleChar = '•';
     this.hbox1.Add(this.entry1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.entry1]));
     w3.Position = 1;
     this.vbox3.Add(this.hbox1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox1]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox2      = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     // Container child hbox2.Gtk.Box+BoxChild
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.Xalign    = 1F;
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Username:"******"entry2";
     this.entry2.IsEditable    = true;
     this.entry2.InvisibleChar = '•';
     this.hbox2.Add(this.entry2);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.entry2]));
     w6.Position = 1;
     this.vbox3.Add(this.hbox2);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox2]));
     w7.Position = 1;
     w7.Expand   = false;
     w7.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox3      = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     // Container child hbox3.Gtk.Box+BoxChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.Xalign    = 1F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Password:"******"entry3";
     this.entry3.IsEditable    = true;
     this.entry3.InvisibleChar = '•';
     this.hbox3.Add(this.entry3);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.entry3]));
     w9.Position = 1;
     this.vbox3.Add(this.hbox3);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3]));
     w10.Position = 2;
     w10.Expand   = false;
     w10.Fill     = false;
     this.vbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.vbox3]));
     w11.Position = 2;
     w11.Expand   = false;
     w11.Fill     = false;
     w1.Add(this.vbox2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
     w12.Position = 0;
     // Internal child OpenGridServices.Manager.ConnectToGridServerDialog.ActionArea
     Gtk.HButtonBox w13 = this.ActionArea;
     w13.Events      = ((Gdk.EventMask)(256));
     w13.Name        = "OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea";
     w13.Spacing     = 6;
     w13.BorderWidth = ((uint)(5));
     w13.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.button2              = new Gtk.Button();
     this.button2.CanDefault   = true;
     this.button2.CanFocus     = true;
     this.button2.Name         = "button2";
     this.button2.UseUnderline = true;
     // Container child button2.Gtk.Container+ContainerChild
     Gtk.Alignment w14 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w14.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w15 = new Gtk.HBox();
     w15.Name    = "GtkHBox";
     w15.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w16 = new Gtk.Image();
     w16.Name   = "image1";
     w16.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-apply", 16, 0);
     w15.Add(w16);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w18 = new Gtk.Label();
     w18.Name         = "GtkLabel";
     w18.LabelProp    = Mono.Unix.Catalog.GetString("Connect");
     w18.UseUnderline = true;
     w15.Add(w18);
     w14.Add(w15);
     this.button2.Add(w14);
     this.AddActionWidget(this.button2, -5);
     Gtk.ButtonBox.ButtonBoxChild w22 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.button2]));
     w22.Expand = false;
     w22.Fill   = false;
     // Container child OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.button8              = new Gtk.Button();
     this.button8.CanDefault   = true;
     this.button8.CanFocus     = true;
     this.button8.Name         = "button8";
     this.button8.UseUnderline = true;
     // Container child button8.Gtk.Container+ContainerChild
     Gtk.Alignment w23 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w23.Name = "GtkAlignment1";
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     Gtk.HBox w24 = new Gtk.HBox();
     w24.Name    = "GtkHBox1";
     w24.Spacing = 2;
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Image w25 = new Gtk.Image();
     w25.Name   = "image2";
     w25.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0);
     w24.Add(w25);
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Label w27 = new Gtk.Label();
     w27.Name         = "GtkLabel1";
     w27.LabelProp    = Mono.Unix.Catalog.GetString("Cancel");
     w27.UseUnderline = true;
     w24.Add(w27);
     w23.Add(w24);
     this.button8.Add(w23);
     this.AddActionWidget(this.button8, -6);
     Gtk.ButtonBox.ButtonBoxChild w31 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.button8]));
     w31.Position = 1;
     w31.Expand   = false;
     w31.Fill     = false;
     if (this.Child != null)
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 476;
     this.DefaultHeight = 137;
     this.Show();
     this.Response += new Gtk.ResponseHandler(this.OnResponse);
 }
        void AddCreatePackageSection(Gtk.VBox vbox, string label, PackagingProject parentProject, bool showCheck)
        {
            Gtk.VBox   vboxNewPacks;
            Gtk.Widget hbox;
            if (showCheck)
            {
                Gtk.CheckButton check = new Gtk.CheckButton(label);
                check.Show();
                vbox.PackStart(check, false, false, 0);

                AddBox(vbox, out hbox, out vboxNewPacks);
                check.Toggled += delegate
                {
                    hbox.Visible = check.Active;
                    if (!check.Active)
                    {
                        DisableChecks(hbox);
                    }
                };
            }
            else
            {
                Gtk.Label lab = new Gtk.Label(label);
                lab.Show();
                vbox.PackStart(lab, false, false, 0);
                AddBox(vbox, out hbox, out vboxNewPacks);
                hbox.Show();
            }

            ICollection builders;

            if (creatingPackProject)
            {
                builders = DeployService.GetPackageBuilders();
            }
            else
            {
                builders = DeployService.GetSupportedPackageBuilders(entry);
            }

            foreach (PackageBuilder pb in builders)
            {
                if (creatingPackProject)
                {
                    pb.SetSolutionItem(parentFolder.ParentSolution.RootFolder);
                    // Add all compatible projects
                    foreach (SolutionItem e in parentFolder.ParentSolution.GetAllSolutionItems())
                    {
                        if (pb.CanBuild(e))
                        {
                            pb.AddEntry(e);
                        }
                    }
                }
                else
                {
                    pb.SetSolutionItem(parentFolder, new SolutionItem [] { entry });
                }

                PackageBuilder[] defp = pb.CreateDefaultBuilders();
                if (defp.Length == 0)
                {
                    continue;
                }
                if (defp.Length == 1)
                {
                    AddPackageBuilder(vboxNewPacks, parentProject, defp[0]);
                }
                else
                {
                    Gtk.CheckButton checkBuilder = new Gtk.CheckButton(pb.Description);
                    checkBuilder.Show();
                    vboxNewPacks.PackStart(checkBuilder, false, false, 0);
                    Gtk.VBox   vboxDefPacks;
                    Gtk.Widget thbox;
                    AddBox(vboxNewPacks, out thbox, out vboxDefPacks);
                    checkBuilder.Toggled += delegate
                    {
                        thbox.Visible = checkBuilder.Active;
                        if (!checkBuilder.Active)
                        {
                            DisableChecks(thbox);
                        }
                    };
                    foreach (PackageBuilder dp in defp)
                    {
                        AddPackageBuilder(vboxDefPacks, parentProject, dp);
                    }
                }
            }
        }
Example #53
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.LoggingDialog
     this.Name           = "ocmgtk.LoggingDialog";
     this.Title          = Mono.Unix.Catalog.GetString("Log Cache...");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Internal child ocmgtk.LoggingDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.hbox1             = new Gtk.HBox();
     this.hbox1.Name        = "hbox1";
     this.hbox1.Spacing     = 6;
     this.hbox1.BorderWidth = ((uint)(6));
     // Container child hbox1.Gtk.Box+BoxChild
     this.image35        = new Gtk.Image();
     this.image35.Name   = "image35";
     this.image35.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.Button, 20);
     this.hbox1.Add(this.image35);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.image35]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1            = new Gtk.Label();
     this.label1.Name       = "label1";
     this.label1.Xalign     = 0F;
     this.label1.LabelProp  = Mono.Unix.Catalog.GetString("After completing your log online, click \"Close\" to return to OCM. To use offline logging, goto <b>Cache → Log to Field Notes File </b>");
     this.label1.UseMarkup  = true;
     this.label1.Wrap       = true;
     this.label1.WidthChars = 100;
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w3.Position = 1;
     w1.Add(this.hbox1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.hbox1]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.scrolledWindow            = new Gtk.ScrolledWindow();
     this.scrolledWindow.CanFocus   = true;
     this.scrolledWindow.Name       = "scrolledWindow";
     this.scrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     w1.Add(this.scrolledWindow);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.scrolledWindow]));
     w5.Position = 1;
     // Container child dialog1_VBox.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.hbox2.Add(this.label2);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.label2]));
     w6.Position = 0;
     w6.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.loadProgressBar = new Gtk.ProgressBar();
     this.loadProgressBar.WidthRequest = 150;
     this.loadProgressBar.Name         = "loadProgressBar";
     this.hbox2.Add(this.loadProgressBar);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.loadProgressBar]));
     w7.Position = 1;
     w7.Expand   = false;
     w1.Add(this.hbox2);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.hbox2]));
     w8.Position = 2;
     w8.Expand   = false;
     w8.Fill     = false;
     // Internal child ocmgtk.LoggingDialog.ActionArea
     Gtk.HButtonBox w9 = this.ActionArea;
     w9.Name        = "dialog1_ActionArea";
     w9.Spacing     = 10;
     w9.BorderWidth = ((uint)(5));
     w9.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonClose              = new Gtk.Button();
     this.buttonClose.CanDefault   = true;
     this.buttonClose.CanFocus     = true;
     this.buttonClose.Name         = "buttonClose";
     this.buttonClose.UseStock     = true;
     this.buttonClose.UseUnderline = true;
     this.buttonClose.Label        = "gtk-close";
     this.AddActionWidget(this.buttonClose, -7);
     Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonClose]));
     w10.Expand = false;
     w10.Fill   = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 750;
     this.DefaultHeight = 485;
     this.Show();
     this.buttonClose.Clicked += new System.EventHandler(this.OnCloseClicked);
 }
Example #54
0
            public void draw2D(Gdk.Drawable da)
            {
                if (SrcPos == null)
                {
                    return;
                }

                int width, height;

                da.GetSize(out width, out height);

                double dx, dy;

                dx     = 20;
                dy     = 20;
                width  = width - 2 * (int)dy;
                height = height - 2 * (int)dx;

                double maxX, minX, maxY, minY;

                maxX = -999; maxY = -999;
                minX = 999; minY = 999;
                for (int i = 0; i < this.numDet; i++)
                {
                    if (maxX < this.DetPos[i, 0])
                    {
                        maxX = this.DetPos[i, 0];
                    }
                    if (maxY < this.DetPos[i, 1])
                    {
                        maxY = this.DetPos[i, 1];
                    }
                    if (minX > this.DetPos[i, 0])
                    {
                        minX = this.DetPos[i, 0];
                    }
                    if (minY > this.DetPos[i, 1])
                    {
                        minY = this.DetPos[i, 1];
                    }
                }


                for (int i = 0; i < this.numSrc; i++)
                {
                    if (maxX < this.SrcPos[i, 0])
                    {
                        maxX = this.SrcPos[i, 0];
                    }
                    if (maxY < this.SrcPos[i, 1])
                    {
                        maxY = this.SrcPos[i, 1];
                    }
                    if (minX > this.SrcPos[i, 0])
                    {
                        minX = this.SrcPos[i, 0];
                    }
                    if (minY > this.SrcPos[i, 1])
                    {
                        minY = this.SrcPos[i, 1];
                    }
                }


                ROIdrawPos = new double[ROIs.Count, 2];
                for (int i = 0; i < ROIs.Count; i++)
                {
                    ROIdrawPos[i, 0] = minX - .15 * (maxX - minX);
                    ROIdrawPos[i, 1] = minY - .25 * (i + 1) * (maxY - minY);
                }
                if (ROIs.Count > 0)
                {
                    minY = minY - (ROIs.Count + 1) * .25 * (maxY - minY);
                    minX = minX - .15 * (maxX - minX);
                }

                double rangeX = maxX - minX;
                double rangeY = maxY - minY;

                Gdk.GC gc = new Gdk.GC(da);

                gc.RgbBgColor = new Gdk.Color(0, 0, 0);
                gc.RgbFgColor = new Gdk.Color(0, 0, 0);
                Rectangle rarea = new Rectangle();

                rarea.Height = height + 2 * (int)dy;
                rarea.Width  = width + 2 * (int)dx;
                da.DrawRectangle(gc, true, rarea);

                gc.RgbBgColor = new Gdk.Color(0, 0, 0);
                gc.RgbFgColor = new Gdk.Color(255, 255, 255);
                rarea         = new Rectangle();
                rarea.Height  = height - 2 + 2 * (int)dx;;
                rarea.Width   = width - 2 + 2 * (int)dx;;
                rarea.X       = 1;
                rarea.Y       = 1;

                da.DrawRectangle(gc, true, rarea);

                int sz = 10;

                if (this.measlistAct == null)
                {
                    this.measlistAct = new bool[this.ChannelMap.Length];
                    for (int i = 0; i < this.ChannelMap.Length; i++)
                    {
                        this.measlistAct[i] = false;
                    }
                    this.measlistAct[0] = true;
                }


                gc.RgbFgColor = new Gdk.Color(0, 0, 0);
                gc.SetLineAttributes(3, LineStyle.Solid, CapStyle.Projecting, JoinStyle.Round);
                for (int i = 0; i < this.numChannels; i++)
                {
                    if (this.ChannelMap[i].datasubtype.Equals(this.ChannelMap[0].datasubtype))
                    {
                        if (this.measlistAct[i])
                        {
                            gc.RgbFgColor = colormap[i]; //new Gdk.Color (0, 0, 0);
                        }
                        else
                        {
                            gc.RgbFgColor = new Gdk.Color(230, 230, 230);
                        }
                        int si = this.ChannelMap[i].sourceindex;
                        int di = this.ChannelMap[i].detectorindex;

                        double x1 = (this.DetPos[di, 0] - minX) / rangeX * width;
                        double y1 = height - ((this.DetPos[di, 1] - minY) / rangeY * height) + dy;
                        double x2 = (this.SrcPos[si, 0] - minX) / rangeX * width;
                        double y2 = height - ((this.SrcPos[si, 1] - minY) / rangeY * height) + dy;
                        da.DrawLine(gc, (int)x1, (int)y1, (int)x2, (int)y2);
                        //pts[cnt]=new Gdk.Point((int)x,(int)y);
                    }
                }


                gc.RgbFgColor = new Gdk.Color(0, 255, 0);
                gc.SetLineAttributes(3, LineStyle.Solid, CapStyle.Round, JoinStyle.Round);
                //  Gdk.Point[] pts = new Gdk.Point[this.numdet+this.numsrc];
                for (int i = 0; i < this.numDet; i++)
                {
                    double x = (this.DetPos[i, 0] - minX) / rangeX * width - sz / 2;
                    double y = height - ((this.DetPos[i, 1] - minY) / rangeY * height) - sz / 2 + dy;
                    da.DrawArc(gc, true, (int)x, (int)y, sz, sz, 0, 360 * 64);
                    //pts[cnt]=new Gdk.Point((int)x,(int)y);
                }
                gc.RgbFgColor = new Gdk.Color(0, 0, 0);
                for (int i = 0; i < this.numDet; i++)
                {
                    double x = (this.DetPos[i, 0] - minX) / rangeX * width - sz / 2;
                    double y = height - ((this.DetPos[i, 1] - minY) / rangeY * height) - sz / 2 + dy;

                    Gtk.Label lab = new Gtk.Label();
                    lab.Text = string.Format("D{0}", i + 1);
                    da.DrawLayout(gc, (int)x, (int)y, lab.Layout);
                }


                gc.RgbBgColor = new Gdk.Color(0, 255, 0);
                gc.RgbFgColor = new Gdk.Color(255, 0, 0);
                gc.SetLineAttributes(3, LineStyle.Solid, CapStyle.Round, JoinStyle.Round);
                for (int i = 0; i < this.numSrc; i++)
                {
                    double x = (this.SrcPos[i, 0] - minX) / rangeX * width - sz / 2;
                    double y = height - ((this.SrcPos[i, 1] - minY) / rangeY * height) - sz / 2 + dy;
                    da.DrawArc(gc, true, (int)x, (int)y, sz, sz, 0, 360 * 64);
                }

                gc.RgbFgColor = new Gdk.Color(0, 0, 0);
                for (int i = 0; i < this.numSrc; i++)
                {
                    double x = (this.SrcPos[i, 0] - minX) / rangeX * width - sz / 2;
                    double y = height - ((this.SrcPos[i, 1] - minY) / rangeY * height) - sz / 2 + dy;

                    Gtk.Label lab = new Gtk.Label();
                    lab.Text = string.Format("S{0}", i + 1);
                    da.DrawLayout(gc, (int)x, (int)y, lab.Layout);
                }

                gc.RgbFgColor = new Gdk.Color(255, 0, 255);
                for (int i = 0; i < ROIs.Count; i++)
                {
                    double x = (ROIdrawPos[i, 0] - minX) / rangeX * width + sz / 2;
                    double y = height - ((ROIdrawPos[i, 1] - minY) / rangeY * height) + dy;
                    da.DrawArc(gc, true, (int)x, (int)y, sz, sz, 0, 360 * 64);
                }

                gc.RgbFgColor = new Gdk.Color(0, 0, 0);
                for (int i = 0; i < ROIs.Count; i++)
                {
                    double    x   = (ROIdrawPos[i, 0] - minX) / rangeX * width + sz;
                    double    y   = height - ((ROIdrawPos[i, 1] - minY) / rangeY * height) + dy;
                    Gtk.Label lab = new Gtk.Label();
                    lab.Text = ROIs[i].name;
                    da.DrawLayout(gc, (int)(x), (int)y, lab.Layout);
                }

                Gtk.Label lab2 = new Gtk.Label();
                lab2.Text = "L";
                da.DrawLayout(gc, (int)(width - 5), (int)(height - 5), lab2.Layout);



                return;
            }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget sermon2.TaggerDataConf
     Stetic.BinContainer.Attach(this);
     this.Name = "sermon2.TaggerDataConf";
     // Container child sermon2.TaggerDataConf.Gtk.Container+ContainerChild
     this.frame1             = new Gtk.Frame();
     this.frame1.Name        = "frame1";
     this.frame1.ShadowType  = ((Gtk.ShadowType)(1));
     this.frame1.BorderWidth = ((uint)(3));
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment.Name        = "GtkAlignment";
     this.GtkAlignment.LeftPadding = ((uint)(12));
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.table1               = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.table1.Name          = "table1";
     this.table1.RowSpacing    = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     this.table1.BorderWidth   = ((uint)(3));
     // Container child table1.Gtk.Table+TableChild
     this.backgroundCheckButton               = new Gtk.CheckButton();
     this.backgroundCheckButton.CanFocus      = true;
     this.backgroundCheckButton.Name          = "backgroundCheckButton";
     this.backgroundCheckButton.Label         = Mono.Unix.Catalog.GetString("background");
     this.backgroundCheckButton.DrawIndicator = true;
     this.backgroundCheckButton.UseUnderline  = true;
     this.table1.Add(this.backgroundCheckButton);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.backgroundCheckButton]));
     w1.TopAttach    = ((uint)(1));
     w1.BottomAttach = ((uint)(2));
     w1.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.backgroundColorButton          = new Gtk.ColorButton();
     this.backgroundColorButton.CanFocus = true;
     this.backgroundColorButton.Events   = ((Gdk.EventMask)(784));
     this.backgroundColorButton.Name     = "backgroundColorButton";
     this.backgroundColorButton.Title    = Mono.Unix.Catalog.GetString("#000000");
     this.table1.Add(this.backgroundColorButton);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.backgroundColorButton]));
     w2.TopAttach    = ((uint)(1));
     w2.BottomAttach = ((uint)(2));
     w2.LeftAttach   = ((uint)(1));
     w2.RightAttach  = ((uint)(2));
     w2.XOptions     = ((Gtk.AttachOptions)(4));
     w2.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.foregroundCheckButton               = new Gtk.CheckButton();
     this.foregroundCheckButton.CanFocus      = true;
     this.foregroundCheckButton.Name          = "foregroundCheckButton";
     this.foregroundCheckButton.Label         = Mono.Unix.Catalog.GetString("foreground");
     this.foregroundCheckButton.DrawIndicator = true;
     this.foregroundCheckButton.UseUnderline  = true;
     this.table1.Add(this.foregroundCheckButton);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.foregroundCheckButton]));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.foregroundColorButton          = new Gtk.ColorButton();
     this.foregroundColorButton.CanFocus = true;
     this.foregroundColorButton.Events   = ((Gdk.EventMask)(784));
     this.foregroundColorButton.Name     = "foregroundColorButton";
     this.table1.Add(this.foregroundColorButton);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.foregroundColorButton]));
     w4.LeftAttach  = ((uint)(1));
     w4.RightAttach = ((uint)(2));
     w4.XOptions    = ((Gtk.AttachOptions)(4));
     w4.YOptions    = ((Gtk.AttachOptions)(4));
     this.vbox3.Add(this.table1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.table1]));
     w5.Position = 0;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.remButton              = new Gtk.Button();
     this.remButton.CanFocus     = true;
     this.remButton.Name         = "remButton";
     this.remButton.UseUnderline = true;
     this.remButton.BorderWidth  = ((uint)(3));
     // Container child remButton.Gtk.Container+ContainerChild
     Gtk.Alignment w6 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w7 = new Gtk.HBox();
     w7.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w8 = new Gtk.Image();
     w8.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-remove", Gtk.IconSize.Menu, 16);
     w7.Add(w8);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w10 = new Gtk.Label();
     w10.LabelProp    = Mono.Unix.Catalog.GetString("remove");
     w10.UseUnderline = true;
     w7.Add(w10);
     w6.Add(w7);
     this.remButton.Add(w6);
     this.vbox3.Add(this.remButton);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.remButton]));
     w14.Position = 1;
     w14.Expand   = false;
     w14.Fill     = false;
     this.GtkAlignment.Add(this.vbox3);
     this.frame1.Add(this.GtkAlignment);
     this.dataLabel           = new Gtk.Label();
     this.dataLabel.Name      = "dataLabel";
     this.dataLabel.LabelProp = Mono.Unix.Catalog.GetString("<b>data tagger</b>");
     this.dataLabel.UseMarkup = true;
     this.frame1.LabelWidget  = this.dataLabel;
     this.Add(this.frame1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.foregroundColorButton.ColorSet += new System.EventHandler(this.OnForegroundColorButtonColorSet);
     this.foregroundCheckButton.Released += new System.EventHandler(this.OnForegroundCheckButtonReleased);
     this.backgroundColorButton.ColorSet += new System.EventHandler(this.OnBackgroundColorButtonColorSet);
     this.backgroundCheckButton.Released += new System.EventHandler(this.OnBackgroundCheckButtonReleased);
     this.remButton.Released             += new System.EventHandler(this.OnRemButtonReleased);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.Database.Designer.CreateDatabaseDialog
     this.Name            = "MonoDevelop.Database.Designer.CreateDatabaseDialog";
     this.Title           = Mono.Unix.Catalog.GetString("Create Database");
     this.TypeHint        = ((Gdk.WindowTypeHint)(1));
     this.WindowPosition  = ((Gtk.WindowPosition)(1));
     this.SkipTaskbarHint = true;
     this.HasSeparator    = false;
     // Internal child MonoDevelop.Database.Designer.CreateDatabaseDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.table               = new Gtk.Table(((uint)(3)), ((uint)(3)), false);
     this.table.Name          = "table";
     this.table.RowSpacing    = ((uint)(6));
     this.table.ColumnSpacing = ((uint)(6));
     this.table.BorderWidth   = ((uint)(6));
     // Container child table.Gtk.Table+TableChild
     this.buttonNew              = new Gtk.Button();
     this.buttonNew.CanFocus     = true;
     this.buttonNew.Name         = "buttonNew";
     this.buttonNew.UseStock     = true;
     this.buttonNew.UseUnderline = true;
     this.buttonNew.Label        = "gtk-new";
     this.table.Add(this.buttonNew);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table[this.buttonNew]));
     w2.LeftAttach  = ((uint)(2));
     w2.RightAttach = ((uint)(3));
     w2.XOptions    = ((Gtk.AttachOptions)(4));
     w2.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table.Gtk.Table+TableChild
     this.buttonSelect              = new Gtk.Button();
     this.buttonSelect.Sensitive    = false;
     this.buttonSelect.CanFocus     = true;
     this.buttonSelect.Name         = "buttonSelect";
     this.buttonSelect.UseStock     = true;
     this.buttonSelect.UseUnderline = true;
     this.buttonSelect.Label        = "gtk-save-as";
     this.table.Add(this.buttonSelect);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table[this.buttonSelect]));
     w3.TopAttach    = ((uint)(2));
     w3.BottomAttach = ((uint)(3));
     w3.LeftAttach   = ((uint)(2));
     w3.RightAttach  = ((uint)(3));
     w3.XOptions     = ((Gtk.AttachOptions)(4));
     w3.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table.Gtk.Table+TableChild
     this.comboConnections      = new MonoDevelop.Database.Components.DatabaseConnectionContextComboBox();
     this.comboConnections.Name = "comboConnections";
     this.table.Add(this.comboConnections);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table[this.comboConnections]));
     w4.LeftAttach  = ((uint)(1));
     w4.RightAttach = ((uint)(2));
     w4.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table.Gtk.Table+TableChild
     this.entryDatabase               = new Gtk.Entry();
     this.entryDatabase.CanFocus      = true;
     this.entryDatabase.Name          = "entryDatabase";
     this.entryDatabase.IsEditable    = true;
     this.entryDatabase.InvisibleChar = '●';
     this.table.Add(this.entryDatabase);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table[this.entryDatabase]));
     w5.TopAttach    = ((uint)(2));
     w5.BottomAttach = ((uint)(3));
     w5.LeftAttach   = ((uint)(1));
     w5.RightAttach  = ((uint)(2));
     w5.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table.Gtk.Table+TableChild
     this.entryName               = new Gtk.Entry();
     this.entryName.CanFocus      = true;
     this.entryName.Name          = "entryName";
     this.entryName.IsEditable    = true;
     this.entryName.InvisibleChar = '●';
     this.table.Add(this.entryName);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table[this.entryName]));
     w6.TopAttach    = ((uint)(1));
     w6.BottomAttach = ((uint)(2));
     w6.LeftAttach   = ((uint)(1));
     w6.RightAttach  = ((uint)(3));
     w6.XOptions     = ((Gtk.AttachOptions)(4));
     w6.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table.Gtk.Table+TableChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.Xalign    = 0F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Name");
     this.table.Add(this.label1);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table[this.label1]));
     w7.TopAttach    = ((uint)(1));
     w7.BottomAttach = ((uint)(2));
     w7.XOptions     = ((Gtk.AttachOptions)(4));
     w7.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table.Gtk.Table+TableChild
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.Xalign    = 0F;
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Database");
     this.table.Add(this.label2);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table[this.label2]));
     w8.TopAttach    = ((uint)(2));
     w8.BottomAttach = ((uint)(3));
     w8.XOptions     = ((Gtk.AttachOptions)(4));
     w8.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table.Gtk.Table+TableChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.Xalign    = 0F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Base Settings");
     this.table.Add(this.label3);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table[this.label3]));
     w9.XOptions = ((Gtk.AttachOptions)(4));
     w9.YOptions = ((Gtk.AttachOptions)(4));
     w1.Add(this.table);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w1[this.table]));
     w10.Position = 0;
     w10.Expand   = false;
     w10.Fill     = false;
     // Internal child MonoDevelop.Database.Designer.CreateDatabaseDialog.ActionArea
     Gtk.HButtonBox w11 = this.ActionArea;
     w11.Name        = "dialog1_ActionArea";
     w11.Spacing     = 6;
     w11.BorderWidth = ((uint)(5));
     w11.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 w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.buttonCancel]));
     w12.Expand = false;
     w12.Fill   = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk              = new Gtk.Button();
     this.buttonOk.Sensitive    = false;
     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 w13 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.buttonOk]));
     w13.Position = 1;
     w13.Expand   = false;
     w13.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 420;
     this.DefaultHeight = 191;
     this.Show();
     this.entryName.Changed        += new System.EventHandler(this.NameChanged);
     this.entryDatabase.Changed    += new System.EventHandler(this.DatabaseNameChanged);
     this.comboConnections.Changed += new System.EventHandler(this.ConnectionChanged);
     this.buttonSelect.Clicked     += new System.EventHandler(this.SaveAsClicked);
     this.buttonNew.Clicked        += new System.EventHandler(this.NewClicked);
     this.buttonCancel.Clicked     += new System.EventHandler(this.CancelClicked);
     this.buttonOk.Clicked         += new System.EventHandler(this.OkClicked);
 }
Example #57
0
            public void draw1020(Gdk.Drawable da)
            {
                if (!this.isregistered)
                {
                    draw(da);
                    return;
                }

                double headcirc = 0;

                double[,] lsrcpos = project1020(this.SrcPos3D, this.numSrc, out headcirc);
                double[,] ldetpos = project1020(this.DetPos3D, this.numDet, out headcirc);

                int width, height;

                da.GetSize(out width, out height);

                double dx, dy;

                dx     = 10;
                dy     = 10;
                width  = width - 20;
                height = height - 20;

                double maxX = headcirc * 1.2;
                double minX = -1 * headcirc * 1.2;
                double maxY = headcirc * 1.2;
                double minY = -1 * headcirc * 1.2;


                ROIdrawPos = new double[ROIs.Count, 2];
                for (int i = 0; i < ROIs.Count; i++)
                {
                    ROIdrawPos[i, 0] = minX - .1 * headcirc;
                    ROIdrawPos[i, 1] = minY - .2 * (i) * headcirc;
                }
                if (ROIs.Count > 0)
                {
                    minY = minY - (ROIs.Count) * .2 * headcirc;
                    minX = minX - .1 * headcirc;
                }

                double rangeX = maxX - minX;
                double rangeY = maxY - minY;

                Gdk.GC gc = new Gdk.GC(da);

                gc.RgbBgColor = new Gdk.Color(0, 0, 0);
                gc.RgbFgColor = new Gdk.Color(0, 0, 0);
                Rectangle rarea = new Rectangle();

                rarea.Height = height + 20;
                rarea.Width  = width + 20;
                da.DrawRectangle(gc, true, rarea);

                gc.RgbBgColor = new Gdk.Color(0, 0, 0);
                gc.RgbFgColor = new Gdk.Color(255, 255, 255);
                rarea         = new Rectangle();
                rarea.Height  = height + 18;
                rarea.Width   = width + 18;
                rarea.X       = 1;
                rarea.Y       = 1;

                da.DrawRectangle(gc, true, rarea);

                int sz = 10;

                if (this.measlistAct == null)
                {
                    this.measlistAct = new bool[this.ChannelMap.Length];
                    for (int i = 0; i < this.ChannelMap.Length; i++)
                    {
                        this.measlistAct[i] = false;
                    }
                    this.measlistAct[0] = true;
                }


                gc.RgbFgColor = new Gdk.Color(0, 0, 0);
                gc.SetLineAttributes(3, LineStyle.Solid, CapStyle.Projecting, JoinStyle.Round);
                for (int i = 0; i < this.numChannels; i++)
                {
                    if (this.ChannelMap[i].datasubtype.Equals(this.ChannelMap[0].datasubtype))
                    {
                        if (this.measlistAct[i])
                        {
                            gc.RgbFgColor = colormap[i]; //new Gdk.Color (0, 0, 0);
                        }
                        else
                        {
                            gc.RgbFgColor = new Gdk.Color(230, 230, 230);
                        }
                        int si = this.ChannelMap[i].sourceindex;
                        int di = this.ChannelMap[i].detectorindex;

                        double x1 = (ldetpos[di, 0] - minX) / rangeX * width + dx;
                        double y1 = (ldetpos[di, 1] - minY) / rangeY * height + dy;
                        double x2 = (lsrcpos[si, 0] - minX) / rangeX * width + dx;
                        double y2 = (lsrcpos[si, 1] - minY) / rangeY * height + dy;
                        da.DrawLine(gc, (int)x1, (int)y1, (int)x2, (int)y2);
                        //pts[cnt]=new Gdk.Point((int)x,(int)y);
                    }
                }


                gc.RgbFgColor = new Gdk.Color(0, 255, 0);
                gc.SetLineAttributes(3, LineStyle.Solid, CapStyle.Round, JoinStyle.Round);
                //  Gdk.Point[] pts = new Gdk.Point[this.numdet+this.numsrc];
                for (int i = 0; i < this.numDet; i++)
                {
                    double x = (ldetpos[i, 0] - minX) / rangeX * width + dx - sz / 2;
                    double y = (ldetpos[i, 1] - minY) / rangeY * height + dy - sz / 2;
                    da.DrawArc(gc, true, (int)x, (int)y, sz, sz, 0, 360 * 64);
                    //pts[cnt]=new Gdk.Point((int)x,(int)y);
                }
                gc.RgbFgColor = new Gdk.Color(0, 0, 0);
                for (int i = 0; i < this.numDet; i++)
                {
                    double x = (ldetpos[i, 0] - minX) / rangeX * width + dx - sz / 2;
                    double y = (ldetpos[i, 1] - minY) / rangeY * height + dy - sz / 2;

                    Gtk.Label lab = new Gtk.Label();
                    lab.Text = string.Format("D{0}", i + 1);
                    da.DrawLayout(gc, (int)x, (int)y, lab.Layout);
                }


                gc.RgbBgColor = new Gdk.Color(0, 255, 0);
                gc.RgbFgColor = new Gdk.Color(255, 0, 0);
                gc.SetLineAttributes(3, LineStyle.Solid, CapStyle.Round, JoinStyle.Round);
                for (int i = 0; i < this.numSrc; i++)
                {
                    double x = (lsrcpos[i, 0] - minX) / rangeX * width + dx - sz / 2;
                    double y = (lsrcpos[i, 1] - minY) / rangeY * height + dy - sz / 2;
                    da.DrawArc(gc, true, (int)x, (int)y, sz, sz, 0, 360 * 64);
                }


                gc.RgbFgColor = new Gdk.Color(0, 0, 0);
                for (int i = 0; i < this.numSrc; i++)
                {
                    double x = (lsrcpos[i, 0] - minX) / rangeX * width + dx - sz / 2;
                    double y = (lsrcpos[i, 1] - minY) / rangeY * height + dy - sz / 2;

                    Gtk.Label lab = new Gtk.Label();
                    lab.Text = string.Format("S{0}", i + 1);
                    da.DrawLayout(gc, (int)x, (int)y, lab.Layout);
                }

                gc.RgbBgColor = new Gdk.Color(0, 0, 0);
                gc.RgbFgColor = new Gdk.Color(0, 0, 0);
                double xx = (0) / rangeX * width + dx;
                double yy = (0) / rangeY * height + dy;

                da.DrawArc(gc, false, (int)xx, (int)yy, (int)(width), (int)(height), 0, 360 * 64);



                gc.RgbFgColor = new Gdk.Color(255, 0, 255);
                for (int i = 0; i < ROIs.Count; i++)
                {
                    double x = (ROIdrawPos[i, 0] - minX) / rangeX * width + sz / 2;
                    double y = height - ((ROIdrawPos[i, 1] - minY) / rangeY * height) + dy;
                    da.DrawArc(gc, true, (int)x, (int)y, sz, sz, 0, 360 * 64);
                }

                gc.RgbFgColor = new Gdk.Color(0, 0, 0);
                for (int i = 0; i < ROIs.Count; i++)
                {
                    double    x   = (ROIdrawPos[i, 0] - minX) / rangeX * width + sz;
                    double    y   = height - ((ROIdrawPos[i, 1] - minY) / rangeY * height) + dy;
                    Gtk.Label lab = new Gtk.Label();
                    lab.Text = ROIs[i].name;
                    da.DrawLayout(gc, (int)(x), (int)y, lab.Layout);
                }

                Gtk.Label lab2 = new Gtk.Label();
                lab2.Text = "R";
                da.DrawLayout(gc, (int)(width - 5), (int)(height - 5), lab2.Layout);
            }
Example #58
0
        public DocumentationDialog(Documentation _doc)
        {
            documentation = _doc;

            Gtk.Label nameLabel = new Gtk.Label("<b>" + documentation.Name + "</b>");
            nameLabel.Wrap         = true;
            nameLabel.UseUnderline = false;
            nameLabel.UseMarkup    = true;
            nameLabel.Xalign       = 0.5f;
            VBox.PackStart(nameLabel, false, false, 10);

            string desc = documentation.Description;

            if (desc == null)
            {
                desc = "";
            }

            var subidEntries = documentation.Keys;

            Gtk.Label descLabel = new Gtk.Label(desc);
            descLabel.Wrap         = true;
            descLabel.UseUnderline = false;
            descLabel.Xalign       = 0;
            VBox.PackStart(descLabel, false, false, 0);


            // Display X and Y (TODO: just display all unrecognized fields?)
            AddGenericField("Y");
            AddGenericField("X");

            // Create SubID table
            if (subidEntries.Count > 0)
            {
                Gtk.Label valuesLabel = new Gtk.Label("\nValues:");
                valuesLabel.UseUnderline = false;
                valuesLabel.Xalign       = 0;
                VBox.Add(valuesLabel);

                Gtk.Table subidTable = new Gtk.Table(2, (uint)subidEntries.Count * 2, false);

                uint subidX = 0;
                uint subidY = 0;

                foreach (string key in subidEntries)
                {
                    string value = documentation.GetField(key);

                    Gtk.Label l1 = new Gtk.Label(key);
                    l1.UseUnderline = false;
                    l1.Xalign       = 0;
                    l1.Yalign       = 0;

                    Gtk.Label l2 = new Gtk.Label(value);
                    l2.UseUnderline = false;
                    l2.Wrap         = true;
                    l2.Xalign       = 0;
                    l2.Yalign       = 0;

                    subidTable.Attach(l1, subidX + 0, subidX + 1, subidY, subidY + 1, Gtk.AttachOptions.Fill, Gtk.AttachOptions.Fill, 4, 0);
                    subidTable.Attach(l2, subidX + 2, subidX + 3, subidY, subidY + 1);

                    subidY++;
                    subidTable.Attach(new Gtk.HSeparator(), subidX + 0, subidX + 3, subidY, subidY + 1, Gtk.AttachOptions.Fill, 0, 0, 0);
                    subidY++;
                }
                subidTable.Attach(new Gtk.VSeparator(), subidX + 1, subidX + 2, 0, subidTable.NRows, 0, Gtk.AttachOptions.Fill, 4, 0);

                Gtk.ScrolledWindow scrolledWindow = new Gtk.ScrolledWindow();
                scrolledWindow.AddWithViewport(subidTable);
                scrolledWindow.ShadowType = Gtk.ShadowType.EtchedIn;
                scrolledWindow.SetPolicy(Gtk.PolicyType.Automatic, Gtk.PolicyType.Automatic);
                subidTable.ShowAll();

                // Determine width/height to request on scrolledWindow
                Gtk.Requisition subidTableRequest = subidTable.SizeRequest();
                int             width             = Math.Min(subidTableRequest.Width + 20, 700);
                width = Math.Max(width, 400);
                int height = Math.Min(subidTableRequest.Height + 5, 400);
                height = Math.Max(height, 200);
                scrolledWindow.SetSizeRequest(width, height);

                VBox.PackStart(scrolledWindow, true, true, 0);
            }

            AddActionWidget(new Gtk.Button("gtk-ok"), 0);
            //SetSizeRequest(500, 500);

            ShowAll();
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget mperfmon.AddSet
     this.Name = "mperfmon.AddSet";
     this.Title = Mono.Unix.Catalog.GetString("Add a counter set");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.HasSeparator = false;
     // Internal child mperfmon.AddSet.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.table1 = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.counterset = Gtk.ComboBox.NewText();
     this.counterset.Name = "counterset";
     this.table1.Add(this.counterset);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.counterset]));
     w2.LeftAttach = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.XOptions = ((Gtk.AttachOptions)(4));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.instances = new Gtk.TreeView();
     this.instances.CanFocus = true;
     this.instances.Name = "instances";
     this.instances.HeadersClickable = true;
     this.GtkScrolledWindow.Add(this.instances);
     this.table1.Add(this.GtkScrolledWindow);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow]));
     w4.TopAttach = ((uint)(1));
     w4.BottomAttach = ((uint)(2));
     w4.RightAttach = ((uint)(2));
     // Container child table1.Gtk.Table+TableChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Counter set:");
     this.table1.Add(this.label1);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.label1]));
     w5.XOptions = ((Gtk.AttachOptions)(4));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     w1.Add(this.table1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w1[this.table1]));
     w6.Position = 0;
     // Internal child mperfmon.AddSet.ActionArea
     Gtk.HButtonBox w7 = this.ActionArea;
     w7.Name = "dialog1_ActionArea";
     w7.Spacing = 6;
     w7.BorderWidth = ((uint)(5));
     w7.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 w8 = ((Gtk.ButtonBox.ButtonBoxChild)(w7[this.buttonCancel]));
     w8.Expand = false;
     w8.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 w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w7[this.buttonOk]));
     w9.Position = 1;
     w9.Expand = false;
     w9.Fill = false;
     if ((this.Child != null))
     {
     this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.counterset.Changed += new System.EventHandler(this.OnSetSelected);
 }
Example #60
0
 public MenuItemBackend(Gtk.MenuItem item)
 {
     this.item = item;
     label     = (Gtk.Label)item.Child;
     item.ShowAll();
 }