Beispiel #1
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;
						}
					}
				};
			}
		}
        private void OnViewBoxes()
        {
            var dlg = new Gtk.Dialog( "Boxes", this, Gtk.DialogFlags.Modal );

            var hbBox1 = new Gtk.HBox( false, 5 );
            hbBox1.Add( new Gtk.Label( "This is hbox 1" ) );
            var hbBox2 = new Gtk.HBox( false, 5 );
            hbBox2.Add( new Gtk.Label( "This is hbox 2" ) );
            var hbBox3 = new Gtk.HBox( false, 5 );
            hbBox3.Add( new Gtk.Label( "This is hbox 3" ) );

            dlg.VBox.PackStart( hbBox1, true, true, 5 );
            dlg.VBox.PackStart( hbBox2, true, true, 5 );
            dlg.VBox.PackStart( hbBox3, true, true, 5 );

            dlg.SetGeometryHints(
                dlg,
                new Gdk.Geometry() {
                    MinHeight = 200,
                    MinWidth = 320
                },
                Gdk.WindowHints.MinSize
            );

            dlg.AddButton( "Ok", Gtk.ResponseType.Ok );
            dlg.ShowAll();
            dlg.Run();
            dlg.Destroy();
        }
		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;
		}
Beispiel #4
0
 private void Build()
 {
     global::Stetic.Gui.Initialize(this);
     // Widget Client.Forms.ConfigFile
     this.Name = "Client.Forms.ConfigFile";
     this.Title = "ConfigFile";
     this.WindowPosition = ((global::Gtk.WindowPosition)(4));
     Gtk.VBox vbox1 = new global::Gtk.VBox();
     vbox1.Name = "vbox1";
     vbox1.Spacing = 6;
     Gtk.HBox hbox1 = new Gtk.HBox();
     hbox1.Name = "hbox";
     Gtk.ScrolledWindow GtkScrolledWindow = new global::Gtk.ScrolledWindow();
     GtkScrolledWindow.Name = "GtkScrolledWindow";
     GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
     textview1 = new Gtk.TextView();
     vbox1.Add(GtkScrolledWindow);
     GtkScrolledWindow.Add(textview1);
     vbox1.Add(hbox1);
     global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(vbox1[hbox1]));
     w6.Position = 2;
     w6.Expand = false;
     w6.Fill = false;
     button3 = new Gtk.Button();
     button3.Name = "button3";
     button3.UseUnderline = true;
     button3.Label = "Save";
     //button3.SetSizeRequest(220, 20);
     button3.Clicked += new EventHandler(button1_Click);
     hbox1.Add(button3);
     global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(hbox1[this.button3]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     button4 = new Gtk.Button();
     button4.UseUnderline = true;
     button4.Name = "button4";
     //button4.SetSizeRequest(200, 20);
     button4.Label = "Check syntax";
     button4.Clicked += new EventHandler(button2_Click);
     hbox1.Add(button4);
     global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(hbox1[this.button4]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     this.label = new Gtk.Label();
     label.Name = "label";
     label.Text = "L 0 C 0";
     hbox1.Add(label);
     textview1.MoveCursor += new Gtk.MoveCursorHandler(cursor);
     this.Add(vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Icon = Gdk.Pixbuf.LoadFromResource("Client.Resources.pigeon_clip_art_hight.ico");
     this.DefaultWidth = 680;
     this.DefaultHeight = 480;
     this.Show();
 }
		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);
		}
 public ImageButton(string stock, string label)
 {
     Gtk.HBox hbox1 = new Gtk.HBox(false,0);
     hbox1.PackStart(new Gtk.Image(stock, Gtk.IconSize.Button), false, true, 0);
     hbox1.PackStart(new Gtk.Label(label), true, true, 0);
     this.Add(hbox1);
 }
Beispiel #7
0
        public EngineManagerDialog(EngineManager engineManager)
        {
            Trace.Call(engineManager);

            if (engineManager == null) {
                throw new ArgumentNullException("engineManager");
            }

            _EngineManager = engineManager;

            Modal = true;
            Title = "Smuxi - " + _("Engine Manager");
            SetPosition(Gtk.WindowPosition.CenterAlways);

            Gtk.HBox connect_hbox = new Gtk.HBox();
            Gtk.Image connect_image = new Gtk.Image(
                new Gdk.Pixbuf(null, "connect-button.svg", 22, 22));
            connect_hbox.Add(connect_image);
            connect_hbox.Add(new Gtk.Label(_("_Connect")));
            AddActionWidget(new Gtk.Button(connect_hbox), 1);

            AddActionWidget(new Gtk.Button(Gtk.Stock.New), 3);

            Gtk.Button edit_button = new Gtk.Button(Gtk.Stock.Edit);
            _EditButton = edit_button;
            AddActionWidget(edit_button, 2);

            _DeleteButton = new Gtk.Button(Gtk.Stock.Delete);
            AddActionWidget(_DeleteButton, 4);
            AddActionWidget(new Gtk.Button(Gtk.Stock.Quit), 5);
            Response += new Gtk.ResponseHandler(_OnResponse);

            Gtk.VBox vbox = new Gtk.VBox();
            Gtk.Label label = new Gtk.Label("<b>" +
                                            _("Select which Smuxi engine you want to connect to") +
                                            "</b>");
            label.UseMarkup = true;
            vbox.PackStart(label, false, false, 5);

            Gtk.HBox hbox = new Gtk.HBox();
            hbox.PackStart(new Gtk.Label(_("Engine:")), false, false, 5);

            _ListStore = new Gtk.ListStore(typeof(string));
            _ComboBox = new Gtk.ComboBox();
            Gtk.CellRendererText cell = new Gtk.CellRendererText();
            _ComboBox.PackStart(cell, false);
            _ComboBox.AddAttribute(cell, "text", 0);
            _ComboBox.Changed += new EventHandler(_OnComboBoxChanged);
            _ComboBox.Model = _ListStore;
            _InitEngineList();

            hbox.PackStart(_ComboBox, true, true, 10);

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

            VBox.Add(vbox);

            ShowAll();
        }
Beispiel #8
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();
 }
Beispiel #10
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();
 }
Beispiel #12
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;
        }
Beispiel #14
0
        Gtk.HBox AutoSized(int spacing, params Gtk.Widget[] widgets)
        {
            var box = new Gtk.HBox();

            box.Spacing = spacing;
            foreach (var widget in widgets)
            {
                box.PackStart(widget, false, true, 0);
            }
            return(box);
        }
        private void BuildFileNameGroup(Gtk.HBox hbFileName)
        {
            this.btOpen     = new Gtk.Button(Gtk.Stock.Open);
            this.edFileName = new Gtk.Entry();

            this.edFileName.IsEditable = false;
            this.btOpen.Clicked       += (sender, e) => this.OnOpen();

            hbFileName.PackStart(this.edFileName, true, true, 5);
            hbFileName.PackStart(this.btOpen, false, false, 5);
        }
        public PreferenceView()
        {
            vbox1 = new Gtk.VBox()
            {
                Spacing = 6
            };
            table1 = new Gtk.Table(3, 2, true)
            {
                RowSpacing = 6, ColumnSpacing = 6
            };
            entPassword = new Gtk.Entry()
            {
                CanFocus      = true,
                IsEditable    = true,
                Visibility    = false,
                InvisibleChar = '●'
            };
            table1.Attach(entPassword, 1, 2, 2, 3);
            entUrl = new Gtk.Entry()
            {
                CanFocus = true, IsEditable = true
            };
            table1.Attach(entUrl, 1, 2, 0, 1);
            entUser = new Gtk.Entry()
            {
                CanFocus = true, IsEditable = true
            };
            table1.Attach(entUser, 1, 2, 1, 2);
            lblPassword = new Gtk.Label("Password:"******"Ampache Server Name:");
            table1.Attach(lblUrl, 0, 1, 0, 1);
            lblUser = new Gtk.Label("User Name:");
            table1.Attach(lblUser, 0, 1, 1, 2);
            vbox1.PackStart(table1, true, false, 0);

            hbox1            = new Gtk.HBox();
            btnSave          = new Gtk.Button();
            btnSave.Label    = "Save";
            btnSave.Clicked += Save_OnClicked;
            hbox1.PackStart(btnSave, false, false, 0);
            btnClear          = new Gtk.Button();
            btnClear.Label    = "Clear";
            btnClear.Clicked += Clean_OnClicked;
            hbox1.PackStart(btnClear, true, false, 0);
            vbox1.PackStart(hbox1, false, false, 0);
            this.Add(vbox1);
            ShowAll();

            entUrl.Text      = AmpacheSource.AmpacheRootAddress.Get(AmpacheSource.AmpacheRootAddress.DefaultValue);
            entUser.Text     = AmpacheSource.UserName.Get(AmpacheSource.UserName.DefaultValue);
            entPassword.Text = AmpacheSource.UserPassword.Get(AmpacheSource.UserPassword.DefaultValue);
        }
Beispiel #17
0
        public void do_init()
        {
            this.Title = "Subdivision Test";

            MainCanvas a = new MainCanvas();

            Gtk.Box box = new Gtk.HBox(true, 0);
            box.Add(a);
            this.Add(box);
            this.Resize(500, 500);
            this.ShowAll();
        }
 protected MultipleObjectViewer(IBroadcaster hub, string caption)
     : base(false, 0)
 {
     _hub = hub;
     // --- first line: caption and buttons
     Gtk.HBox hbxFirstLine = new Gtk.HBox(false, 2);
     // Caption label
     Gtk.Alignment labelAlign = new Gtk.Alignment(0F, 0F, 1F, 1F);
     labelAlign.Add(new Gtk.Label(caption));
     hbxFirstLine.PackStart(labelAlign, false, false, 0);
     hbxFirstLine.PackStart(new Gtk.Label(String.Empty), true, true, 0);
     // "Add" button
     Gtk.Image image = new Gtk.Image();
     image.Stock = Gtk.Stock.Add;
     _btnAdd = new Gtk.Button();
     _btnAdd.Add(image);
     _btnAdd.Relief = Gtk.ReliefStyle.None;
     _btnAdd.Clicked += new EventHandler(OnAddButtonClicked);
     _btnAdd.Sensitive = false;
     hbxFirstLine.PackStart(_btnAdd, false, false, 0);
     // "Edit" button
     image = new Gtk.Image();
     image.Stock = Gtk.Stock.JumpTo;
     _btnEdit = new Gtk.Button();
     _btnEdit.Add(image);
     _btnEdit.Relief = Gtk.ReliefStyle.None;
     _btnEdit.Clicked += new EventHandler(OnEditButtonClicked);
     _btnEdit.Sensitive = false;
     hbxFirstLine.PackStart(_btnEdit, false, false, 0);
     // "Delete" button
     image = new Gtk.Image();
     image.Stock = Gtk.Stock.Remove;
     _btnDelete = new Gtk.Button();
     _btnDelete.Add(image);
     _btnDelete.Relief = Gtk.ReliefStyle.None;
     _btnDelete.Clicked += new EventHandler(OnDeleteButtonClicked);
     _btnDelete.Sensitive = false;
     hbxFirstLine.PackStart(_btnDelete, false, false, 0);
     base.PackStart(hbxFirstLine, false, false, 0);
     // --- second line: element list
     _store = new Gtk.TreeStore(typeof(string));
     _tvList = new Gtk.TreeView();
     _tvList.HeadersVisible = false;
     _tvList.AppendColumn("", new Gtk.CellRendererText(), "text", 0);
     _tvList.Model = _store;
     _tvList.FocusInEvent += new Gtk.FocusInEventHandler(EnableButtons);
     _tvList.ButtonPressEvent += new Gtk.ButtonPressEventHandler(ListClickedHandler);
     Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow();
     sw.ShadowType = Gtk.ShadowType.In;
     sw.Add(_tvList);
     base.PackStart(sw, true, true, 0);
     sw.Show();
 }
Beispiel #19
0
 public static Gtk.Widget CreateCellRenderer(ICollection<CellView> views)
 {
     if (views.Count == 1) {
         Gtk.HBox box = new Gtk.HBox ();
         foreach (var v in views)
             box.PackStart (CreateCellRenderer (v), false, false, 0);
         box.ShowAll ();
         return box;
     }
     else
         return CreateCellRenderer (views.First ());
 }
Beispiel #20
0
        Gtk.Widget CalendarControls()
        {
            var vbox = new Gtk.VBox {
                Spacing = 5
            };

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

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

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

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

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

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

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

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

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

            return(vbox);
        }
        private void Build()
        {
            var hbFileName = new Gtk.HBox(false, 5);

            this.BuildFormatCombo();
            this.BuildFileNameGroup(hbFileName);

            this.VBox.PackStart(this.cbFormat, true, true, 5);
            this.VBox.PackStart(hbFileName, true, true, 5);
            this.AddButton(Gtk.Stock.Close, Gtk.ResponseType.Close);

            this.Modal = true;
        }
        private void Build()
        {
            var hbFileName = new Gtk.HBox( false, 5 );

            this.BuildFormatCombo();
            this.BuildFileNameGroup( hbFileName );

            this.VBox.PackStart( this.cbFormat, true, true, 5 );
            this.VBox.PackStart( hbFileName, true, true, 5 );
            this.AddButton( Gtk.Stock.Close, Gtk.ResponseType.Close );

            this.Modal = true;
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget Admin.TestWindow
     this.Name = "Admin.TestWindow";
     this.Title = Mono.Unix.Catalog.GetString("TestWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child Admin.TestWindow.Gtk.Container+ContainerChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Click to test the GtkResponsiveHelper");
     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;
     w1.Padding = ((uint)(5));
     // Container child vbox1.Gtk.Box+BoxChild
     this.button4 = new Gtk.Button();
     this.button4.CanFocus = true;
     this.button4.Name = "button4";
     this.button4.UseUnderline = true;
     this.button4.Label = Mono.Unix.Catalog.GetString("Start in ConcurrencyMode.Modal");
     this.vbox1.Add(this.button4);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.button4]));
     w2.Position = 1;
     w2.Expand = false;
     w2.Fill = false;
     this.hbox1.Add(this.vbox1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox1]));
     w3.Position = 0;
     w3.Fill = false;
     this.Add(this.hbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 351;
     this.DefaultHeight = 92;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.button4.Clicked += new System.EventHandler(this.OnClicked);
 }
        protected AbstractEditView()
        {
            saveButton   = new Gtk.Button("Speichern");
            cancelButton = new Gtk.Button("Zurücksetzen");

            saveButton.Clicked   += delegate { OnSave(); };
            cancelButton.Clicked += OnCancel;

            var buttonBox = new Gtk.HBox();

            buttonBox.PackStart(saveButton, false, true, 5);
            buttonBox.PackStart(cancelButton, false, true, 2);
            this.PackEnd(buttonBox, false, false, 5);
        }
Beispiel #25
0
        public InternalMenuButton()
            : base()
        {
            Gtk.HBox box = new Gtk.HBox();
            box.Spacing = 6;
            Add(box);

            image = new Gtk.Image();
            box.PackStart(image, false, false, 0);
            label = new Gtk.Label();
            box.PackStart(label, false, false, 0);
            ArrowType  = Gtk.ArrowType.Down;
            base.Label = null;
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.HBaseComboBox
     Stetic.BinContainer.Attach(this);
     this.Name = "HollyLibrary.HBaseComboBox";
     // Container child HollyLibrary.HBaseComboBox.Gtk.Container+ContainerChild
     this.hbox3      = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     // Container child hbox3.Gtk.Box+BoxChild
     this.hbox4             = new Gtk.HBox();
     this.hbox4.Name        = "hbox4";
     this.hbox4.Spacing     = 2;
     this.hbox4.BorderWidth = ((uint)(5));
     // Container child hbox4.Gtk.Box+BoxChild
     this.entry               = new Gtk.Entry();
     this.entry.CanFocus      = true;
     this.entry.Name          = "entry";
     this.entry.IsEditable    = true;
     this.entry.HasFrame      = false;
     this.entry.InvisibleChar = '●';
     this.hbox4.Add(this.entry);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox4[this.entry]));
     w1.Position = 0;
     this.hbox3.Add(this.hbox4);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox3[this.hbox4]));
     w2.Position = 0;
     // Container child hbox3.Gtk.Box+BoxChild
     this.popupButton = new Gtk.Button();
     this.popupButton.WidthRequest = 30;
     this.popupButton.CanFocus     = true;
     this.popupButton.Name         = "popupButton";
     // Container child popupButton.Gtk.Container+ContainerChild
     this.arrow1      = new Gtk.Arrow(((Gtk.ArrowType)(1)), ((Gtk.ShadowType)(2)));
     this.arrow1.Name = "arrow1";
     this.popupButton.Add(this.arrow1);
     this.popupButton.Label = null;
     this.hbox3.Add(this.popupButton);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox3[this.popupButton]));
     w4.Position = 1;
     w4.Expand   = false;
     this.Add(this.hbox3);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.entry.FocusInEvent  += new Gtk.FocusInEventHandler(this.OnEntryFocusInEvent);
     this.entry.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnEntryFocusOutEvent);
 }
Beispiel #27
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Wakame.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.FileAction1 = new Gtk.Action("FileAction1", Mono.Unix.Catalog.GetString("_File"), null, null);
     this.FileAction1.ShortLabel = Mono.Unix.Catalog.GetString("_File");
     w1.Add(this.FileAction1, "<Alt><Mod2>f");
     this.ImportAction = new Gtk.Action("ImportAction", Mono.Unix.Catalog.GetString("Import"), null, null);
     this.ImportAction.ShortLabel = Mono.Unix.Catalog.GetString("Import");
     w1.Add(this.ImportAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "Wakame.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child Wakame.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction1' action='FileAction1'><menuitem name='ImportAction' action='ImportAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w3.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 629;
     this.DefaultHeight = 485;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.ImportAction.Activated += new System.EventHandler(this.OnOpen);
 }
Beispiel #28
0
        public ScrollableHandler()
        {
            Control = new Gtk.ScrolledWindow();
            vp      = new Gtk.Viewport();
            hbox    = new Gtk.HBox();
            vbox    = new Gtk.VBox();
            vbox.PackStart(hbox, true, true, 0);
            vp.Add(vbox);

            // autosize the scrolled window to the size of the content
            Control.Add(vp);
            vp.ShadowType = Gtk.ShadowType.None;
            this.Border   = BorderType.Bezel;
        }
Beispiel #29
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Pinta.Gui.Widgets.ComboBoxWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "Pinta.Gui.Widgets.ComboBoxWidget";
     // Container child Pinta.Gui.Widgets.ComboBoxWidget.Gtk.Container+ContainerChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label           = new Gtk.Label();
     this.label.Name      = "label";
     this.label.LabelProp = Mono.Unix.Catalog.GetString("label");
     this.hbox1.Add(this.label);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.hseparator1      = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.hbox1.Add(this.hseparator1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.hseparator1]));
     w2.Position = 1;
     this.vbox2.Add(this.hbox1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.combobox      = Gtk.ComboBox.NewText();
     this.combobox.Name = "combobox";
     this.vbox2.Add(this.combobox);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.combobox]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
 }
Beispiel #30
0
        ///<summary>
        ///Insertion d'une vue dans une zone de la vue principale
        ///</summary>
        public void NewView(string viewName)
        {
            string key = "none";

            //Récupération du controleur de la vue
            IController controller = GetController(viewName);

            //Commande d'initialisation de l'interface graphique.
            //Permet d'instancier l'interface graphique de la vue à partir du controleur
            controller.ExecuteCommand("New", "");

            //Récupération de l'interface graphique de la vue
            IView view = controller.View;

            if (view == null)
            {
                throw new ArgumentNullException("L'interface graphique de la vue n'a pas pu être créée.");
            }

            //Debug
            Console.WriteLine("Appel commande NewView : " + view.Caption + " dans " + view.Destination);

            //Récupération du control de la vue
            Gtk.HBox hbox = view.VisualComponent;
            if (hbox == null)
            {
                throw new ArgumentNullException("La vue n'expose pas son interface graphique.");
            }

            //positionnement dans le Notebook principal
            if (view.Destination.Equals("default"))
            {
                viewGui.NotebookViews.AppendPage(hbox, new Gtk.Label(view.Caption));
                key = (viewGui.NotebookViews.NPages - 1).ToString();
                view.Initialize();
                hbox.ShowAll();
            }

            //positionnement latéral gauche
            if (view.Destination.Equals("left"))
            {
                key = "left";
                viewGui.HpanedMain.Pack1(hbox, true, false);
                hbox.ShowAll();
            }

            //Ajout dans la liste des controleurs
            viewGui.Controller.RegisterController(key, controller);
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.HBaseComboBox
     Stetic.BinContainer.Attach(this);
     this.Name = "HollyLibrary.HBaseComboBox";
     // Container child HollyLibrary.HBaseComboBox.Gtk.Container+ContainerChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     // Container child hbox3.Gtk.Box+BoxChild
     this.hbox4 = new Gtk.HBox();
     this.hbox4.Name = "hbox4";
     this.hbox4.Spacing = 2;
     this.hbox4.BorderWidth = ((uint)(5));
     // Container child hbox4.Gtk.Box+BoxChild
     this.entry = new Gtk.Entry();
     this.entry.CanFocus = true;
     this.entry.Name = "entry";
     this.entry.IsEditable = true;
     this.entry.HasFrame = false;
     this.entry.InvisibleChar = '●';
     this.hbox4.Add(this.entry);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox4[this.entry]));
     w1.Position = 0;
     this.hbox3.Add(this.hbox4);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox3[this.hbox4]));
     w2.Position = 0;
     // Container child hbox3.Gtk.Box+BoxChild
     this.popupButton = new Gtk.Button();
     this.popupButton.WidthRequest = 30;
     this.popupButton.CanFocus = true;
     this.popupButton.Name = "popupButton";
     // Container child popupButton.Gtk.Container+ContainerChild
     this.arrow1 = new Gtk.Arrow(((Gtk.ArrowType)(1)), ((Gtk.ShadowType)(2)));
     this.arrow1.Name = "arrow1";
     this.popupButton.Add(this.arrow1);
     this.popupButton.Label = null;
     this.hbox3.Add(this.popupButton);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox3[this.popupButton]));
     w4.Position = 1;
     w4.Expand = false;
     this.Add(this.hbox3);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.entry.FocusInEvent += new Gtk.FocusInEventHandler(this.OnEntryFocusInEvent);
     this.entry.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnEntryFocusOutEvent);
 }
        private void AddSection(Gtk.VBox vbox, string text)
        {
            var hbox = new Gtk.HBox();

            var sectionLabel = new Gtk.Label
            {
                Text      = $"<b>{GettextCatalog.GetString(text)}</b>",
                UseMarkup = true,
                Xalign    = 0
            };

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

            vbox.PackStart(hbox, false, false, 0);
        }
Beispiel #33
0
        private void BuildUI()
        {
            Gtk.HBox hbox = new Gtk.HBox(false, 3);
            Add(hbox);

            d_removeButton = new Gtk.Button();
            d_removeButton.Add(new Gtk.Image(Gtk.Stock.Remove, Gtk.IconSize.Menu));
            hbox.PackStart(d_removeButton, false, false, 0);

            d_addButton = new Gtk.Button();
            d_addButton.Add(new Gtk.Image(Gtk.Stock.Add, Gtk.IconSize.Menu));
            hbox.PackStart(d_addButton, false, false, 0);

            hbox.ShowAll();
        }
		// Drag function for automatic sources, called from DragBegin
		public static void Drag (Gtk.Widget source, Gdk.DragContext ctx, WidgetDropCallback dropCallback, string label)
		{
			Gtk.Frame fr = new Gtk.Frame ();
			fr.ShadowType = Gtk.ShadowType.Out;
			Gtk.HBox box = new Gtk.HBox ();
			box.Spacing = 3;
			box.BorderWidth = 3;
			box.PackStart (new Gtk.Image (widgetIcon), false, false, 0);
			Gtk.Label lab = new Gtk.Label (label);
			lab.Xalign = 0;
			box.PackStart (lab, true, true, 0);
			fr.Add (box);
			fr.ShowAll ();
			Drag (source, ctx, dropCallback, fr);
		}
Beispiel #35
0
 // Drag function for automatic sources, called from DragBegin
 public static void Drag(Gtk.Widget source, Gdk.DragContext ctx, WidgetDropCallback dropCallback, string label)
 {
     Gtk.Frame fr = new Gtk.Frame();
     fr.ShadowType = Gtk.ShadowType.Out;
     Gtk.HBox box = new Gtk.HBox();
     box.Spacing     = 3;
     box.BorderWidth = 3;
     box.PackStart(new Gtk.Image(widgetIcon), false, false, 0);
     Gtk.Label lab = new Gtk.Label(label);
     lab.Xalign = 0;
     box.PackStart(lab, true, true, 0);
     fr.Add(box);
     fr.ShowAll();
     Drag(source, ctx, dropCallback, fr);
 }
Beispiel #36
0
        public DropDownBox()
        {
            Gtk.HBox hbox = new Gtk.HBox();

            label              = new Gtk.Label();
            label.Xalign       = 0;
            label.WidthRequest = 125;
            label.Ellipsize    = Pango.EllipsizeMode.End;

            hbox.PackStart(label, true, true, 3);

            hbox.PackEnd(new Gtk.Arrow(Gtk.ArrowType.Down, Gtk.ShadowType.None), false, false, 1);
            hbox.PackEnd(new Gtk.VSeparator(), false, false, 1);
            Child = hbox;
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Pinta.Gui.Widgets.ComboBoxWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "Pinta.Gui.Widgets.ComboBoxWidget";
     // Container child Pinta.Gui.Widgets.ComboBoxWidget.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label = new Gtk.Label();
     this.label.Name = "label";
     this.label.LabelProp = Mono.Unix.Catalog.GetString("label");
     this.hbox1.Add(this.label);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.hseparator1 = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.hbox1.Add(this.hseparator1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.hseparator1]));
     w2.Position = 1;
     this.vbox2.Add(this.hbox1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.combobox = Gtk.ComboBox.NewText();
     this.combobox.Name = "combobox";
     this.vbox2.Add(this.combobox);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.combobox]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
Beispiel #38
0
        void Build()
        {
            Spacing = 6;

            //var heading = new Gtk.Label("<b>Rhino Options</b>");
            //heading.UseMarkup = true;
            //heading.Xalign = 0;



            pluginTypeCombo = new Gtk.ComboBox(typeEntries);

            launcherCombo = new Gtk.ComboBox(currentLauncherEntries);

            customLauncherEntry          = new Gtk.Entry();
            customLauncherEntry.Changed += (sender, e) => SetBundleVersionLabel();

            var optionsBox = new Gtk.HBox();

            autodetectedTypeLabel = new Gtk.Label();

            bundleInformationLabel = new Gtk.Label();

            // layout

            //PackStart(heading, false, false, 0);


            var table = new Gtk.Table(4, 2, false);

            table.RowSpacing    = 6;
            table.ColumnSpacing = 6;

            AddRow(table, 0, "Plugin Type:", AutoSized(6, pluginTypeCombo, autodetectedTypeLabel));
            AddRow(table, 1, "Launcher:", AutoSized(6, launcherCombo));
            AddRow(table, 2, "", customLauncherEntry); // add browse button?
            AddRow(table, 3, "", AutoSized(0, bundleInformationLabel));

            // indent
            optionsBox.PackStart(new Gtk.Label {
                WidthRequest = 18
            }, false, false, 0);
            optionsBox.PackStart(table, true, true, 0);

            PackStart(optionsBox, true, true, 0);

            ShowAll();
        }
        public override Gtk.Widget CreatePanelWidget ()
        {
            Gtk.VBox box = new Gtk.VBox ();
            box.Spacing = 6;

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

            Gtk.Label label = CreateLabel ("Android studio executable location:");

            labelBox.PackStart (label, false, false, 0);

            entry = new FileEntry ();
            entry.Path = AddInPreferences.AndroidStudioLocation;


            Gtk.HBox sdkVersions = new Gtk.HBox ();
            Gtk.Label minSdkLabel = CreateLabel ("Min SDK version:");
            MinSdkEntry = new Gtk.Entry (AddInPreferences.MinSdkVersion);
            Gtk.Label targetSdkLabel = CreateLabel ("Target/Compile SDK version:");
            TargetSdkEntry = new Gtk.Entry (AddInPreferences.CompileSdkVersion);


            sdkVersions.PackStart (minSdkLabel, false, false, 0);
            sdkVersions.PackStart (MinSdkEntry, true, false, 0);
            sdkVersions.PackStart (targetSdkLabel, false, false, 0);
            sdkVersions.PackStart (TargetSdkEntry, true, false, 0);


            Gtk.HBox otherVersions = new Gtk.HBox ();
            Gtk.Label supportVersionLabel = CreateLabel ("Support library versions:");
            SupportVersionEntry = new Gtk.Entry (AddInPreferences.SupportVersion);
            Gtk.Label buildToolsVersionLabel = CreateLabel ("Build tools version:");
            BuildToolsVersionEntry = new Gtk.Entry (AddInPreferences.BuildToolsVersion);


            otherVersions.PackStart (supportVersionLabel, false, false, 0);
            otherVersions.PackStart (SupportVersionEntry, true, false, 0);
            otherVersions.PackStart (buildToolsVersionLabel, false, false, 0);
            otherVersions.PackStart (BuildToolsVersionEntry, true, false, 0);

            box.PackStart (labelBox, false, false, 0);
            box.PackStart (entry, false, false, 0);
            box.PackStart (sdkVersions, false, false, 0);
            box.PackStart (otherVersions, false, false, 0);
            box.ShowAll ();
            return box;

        }
Beispiel #40
0
        private void OnPreferencesServiceInstallWidgetAdapters(object o, EventArgs args)
        {
            if (pref_section == null)
            {
                return;
            }

            Gtk.HBox description_box = new Gtk.HBox();
            Banshee.MediaProfiles.Gui.ProfileComboBoxConfigurable chooser
                = new Banshee.MediaProfiles.Gui.ProfileComboBoxConfigurable(ServiceManager.MediaProfileManager,
                                                                            "cd-importing", description_box);

            pref_section["import-profile"].DisplayWidget      = chooser;
            pref_section["import-profile"].MnemonicWidget     = chooser.Combo;
            pref_section["import-profile-desc"].DisplayWidget = description_box;
        }
Beispiel #41
0
        public static Gtk.Button MakeImageButton(Gtk.Image image, string label)
        {
            Gtk.HBox box = new Gtk.HBox(false, 2);
            box.PackStart(image, false, false, 0);
            box.PackEnd(new Gtk.Label(label), false, false, 0);
            box.ShowAll();

            Gtk.Button button = new Gtk.Button();

            Gtk.Alignment align = new Gtk.Alignment(0.5f, 0.5f, 0.0f, 0.0f);
            align.Add(box);
            align.Show();

            button.Add(align);
            return(button);
        }
Beispiel #42
0
		public static Gtk.Button MakeImageButton (Gtk.Image image, string label)
		{
			Gtk.HBox box = new Gtk.HBox (false, 2);
			box.PackStart (image, false, false, 0);
			box.PackEnd (new Gtk.Label (label), false, false, 0);
			box.ShowAll ();

			Gtk.Button button = new Gtk.Button ();

			Gtk.Alignment align = new Gtk.Alignment (0.5f, 0.5f, 0.0f, 0.0f);
			align.Add (box);
			align.Show ();

			button.Add (align);
			return button;
		}			
        void AddBox(Gtk.VBox parent, out Gtk.Widget box, out Gtk.VBox vbox)
        {
            Gtk.HBox  hbox = new Gtk.HBox();
            Gtk.Label sep  = new Gtk.Label("");
            sep.WidthRequest = 24;
            sep.Show();
            hbox.PackStart(sep, false, false, 0);

            vbox         = new Gtk.VBox();
            vbox.Spacing = 6;
            vbox.Show();
            hbox.PackStart(vbox, true, true, 0);

            parent.PackStart(hbox, false, false, 0);
            box = hbox;
        }
Beispiel #44
0
        private void BuildSaveAsFrame()
        {
            var exSaveAsExpand = new Gtk.Expander("Save as...");
            var hbSaveAs       = new Gtk.HBox(false, 5);

            exSaveAsExpand.Expanded = false;
            this.BuildFormatCombo();
            this.btSaveAs          = new Gtk.Button(Gtk.Stock.SaveAs);
            this.btSaveAs.Clicked += (sender, e) => this.OnSaveAs();

            hbSaveAs.PackStart(this.cbOutputFormat, true, true, 5);
            hbSaveAs.PackStart(this.btSaveAs, false, false, 5);

            exSaveAsExpand.Add(hbSaveAs);
            this.vbPage1.PackStart(exSaveAsExpand, true, true, 5);
        }
        void Initialize(ActionGroupDesignerFrontend frontend, Wrapper.ActionGroupCollection actionGroups, bool singleGroupMode)
        {
            this.frontend        = frontend;
            this.singleGroupMode = singleGroupMode;
            IconSize             = Gtk.IconSize.SmallToolbar;
            Orientation          = Gtk.Orientation.Horizontal;
            ToolbarStyle         = Gtk.ToolbarStyle.BothHoriz;

            combo = Gtk.ComboBox.NewText();

            if (!singleGroupMode)
            {
                combo.Changed += OnActiveChanged;

                Gtk.ToolItem comboItem = new Gtk.ToolItem();
                Gtk.HBox     cbox      = new Gtk.HBox();
                cbox.PackStart(new Gtk.Label(Catalog.GetString("Action Group:") + " "), false, false, 3);
                cbox.PackStart(combo, true, true, 3);
                comboItem.Add(cbox);
                comboItem.ShowAll();
                Insert(comboItem, -1);
                internalButtons.Add(comboItem);

                addButton          = new Gtk.ToolButton(Gtk.Stock.Add);
                addButton.Clicked += OnAddGroup;
                Insert(addButton, -1);
                internalButtons.Add(addButton);

                removeButton          = new Gtk.ToolButton(Gtk.Stock.Remove);
                removeButton.Clicked += OnRemoveGroup;
                Insert(removeButton, -1);
                internalButtons.Add(removeButton);

                ActionGroups = actionGroups;

                if (actionGroups != null && actionGroups.Count > 0)
                {
                    combo.Active = 0;
                }
            }
            else
            {
                UpdateActionCommands(null);
            }

            ShowAll();
        }
Beispiel #46
0
        /// <summary>
        /// Calcula la vista que mostrará la lista de ejercicios (<see cref="ExerciseTreeView"></see>).
        /// </summary>
        /// <returns>La vista en la que se muestra una lista de los ejercicios (<see cref="ExerciseTreeView"></see>).</returns>
        private Gtk.VBox ExercisesListView()
        {
            var ViewBox = new Gtk.VBox(false, 5);

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

            // Tree.
            ExercisesTreeview = new Gtk.TreeView();
            ExercisesTreeview.HeightRequest = 150;

            // Tree model.
            ExercisesTreeview.Model =
                new Gtk.ListStore(typeof(string), typeof(string), typeof(string));

            // Tree events
            ExercisesTreeview.ButtonPressEvent += new Gtk.ButtonPressEventHandler(OnRightExercise);

            // Tree columns.
            var DistRender = new Gtk.CellRendererText();

            DistRender.Editable = true;
            DistRender.Edited  += ExercisesDistEdit;

            var MinsRender = new Gtk.CellRendererText();

            MinsRender.Editable = true;
            MinsRender.Edited  += ExercisesMinsEdit;

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

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

            // Tree Columns Append.
            ExercisesTreeview.AppendColumn("Dist", DistRender, "text", 0);
            ExercisesTreeview.AppendColumn("Mins", MinsRender, "text", 1);
            ExercisesTreeview.AppendColumn("Date", new Gtk.CellRendererText(), "text", 2);

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

            ViewBox.Add(TreeSpace);

            return(ViewBox);
        }
        public override Gtk.Widget CreatePanelWidget()
        {
            var vbox = new Gtk.VBox ();
            var hbox = new Gtk.HBox ();
            var label = new Gtk.Label (GettextCatalog.GetString ("DNX Output Verbosity:"));
            label.Xalign = 0;
            hbox.PackStart (label, false, false, 5);

            logLevelsComboBox = Gtk.ComboBox.NewText ();
            hbox.PackStart (logLevelsComboBox, true, true, 5);

            AddLogLevelsToComboBox ();

            vbox.PackStart (hbox, false, false, 0);
            vbox.ShowAll ();
            return vbox;
        }
Beispiel #48
0
 public static Gtk.Widget CreateCellRenderer(ICollection <CellView> views)
 {
     if (views.Count == 1)
     {
         Gtk.HBox box = new Gtk.HBox();
         foreach (var v in views)
         {
             box.PackStart(CreateCellRenderer(v), false, false, 0);
         }
         box.ShowAll();
         return(box);
     }
     else
     {
         return(CreateCellRenderer(views.First()));
     }
 }
        public override Gtk.Widget CreatePanelWidget()
        {
            var vbox = new Gtk.VBox ();
            var hbox = new Gtk.HBox ();
            var label = new Gtk.Label (GettextCatalog.GetString ("DNX Runtime Version:"));
            label.Xalign = 0;
            hbox.PackStart (label, false, false, 5);

            dnxRuntimeVersionComboBox = Gtk.ComboBox.NewText ();
            hbox.PackStart (dnxRuntimeVersionComboBox, true, true, 5);

            PopulateOptionsPanel ();

            vbox.PackStart (hbox);
            vbox.ShowAll ();
            return vbox;
        }
        private static void AddCheckProperty(Gtk.VBox vbox, string labelText, Gtk.CheckButton checkButton, ConfigurationProperty <bool> property)
        {
            var hbox = new Gtk.HBox();

            checkButton.Active = property.Value;
            hbox.PackStart(checkButton, false, false, 0);

            var label = new Gtk.Label
            {
                Text   = GettextCatalog.GetString(labelText),
                Xalign = 0
            };

            hbox.PackStart(label, true, true, 0);

            vbox.PackStart(hbox, false, false, 0);
        }
Beispiel #51
0
        void ConstructContents()
        {
            if (button.Child != null)
            {
                button.Remove(button.Child);
            }

            if (useUnderline)
            {
                labelWidget = new Gtk.Label(label);
                labelWidget.MnemonicWidget = button;
            }
            else
            {
                labelWidget = Gtk.Label.New(label);
            }

            Gtk.Image imageWidget  = (Gtk.Image)Registry.NewInstance("Gtk.Image", proj);
            Image     imageWrapper = (Image)Widget.Lookup(imageWidget);

            imageWrapper.Unselectable = true;
            if (type != ButtonType.StockItem)
            {
                imageWrapper.Pixbuf = imageInfo;
            }

            Gtk.HBox box = new Gtk.HBox(false, 2);
            box.PackStart(imageWidget, false, false, 0);
            box.PackEnd(labelWidget, false, false, 0);

            Gtk.Alignment alignment = new Gtk.Alignment(button.Xalign, button.Yalign, 0.0f, 0.0f);
            alignment.Add(box);

            ObjectWrapper buttonWrapper = ObjectWrapper.Lookup(this);
            Widget        wrapper       = (Widget)ObjectWrapper.Create(proj, labelWidget, buttonWrapper);

            wrapper.Unselectable = true;
            wrapper = (Widget)ObjectWrapper.Create(proj, box, buttonWrapper);
            wrapper.Unselectable = true;
            wrapper = (Widget)ObjectWrapper.Create(proj, alignment, buttonWrapper);
            wrapper.Unselectable = true;

            alignment.ShowAll();
            button.Add(alignment);
        }
Beispiel #52
0
        public FilePickerHandler()
        {
            Control = new Gtk.EventBox();
            action  = FileAction.OpenFile;

            filebutton = new Gtk.FileChooserButton("", Gtk.FileChooserAction.Open);

            // Save is not a valid option for FileChooserButton, therefore
            // we need to create our own, or use the ThemedFilePickerHandler
            savebox   = new Gtk.HBox();
            saveentry = new Gtk.Entry();
            savebox.PackStart(saveentry, true, true, 0);
            savebutton       = new Gtk.Button();
            savebutton.Label = "Browse";
            savebox.PackStart(savebutton, false, true, 1);

            Control.Child = filebutton;
        }
        public override Gtk.Widget CreatePanelWidget()
        {
            var vbox  = new Gtk.VBox();
            var hbox  = new Gtk.HBox();
            var label = new Gtk.Label(GettextCatalog.GetString("DNX Output Verbosity:"));

            label.Xalign = 0;
            hbox.PackStart(label, false, false, 5);

            logLevelsComboBox = Gtk.ComboBox.NewText();
            hbox.PackStart(logLevelsComboBox, true, true, 5);

            AddLogLevelsToComboBox();

            vbox.PackStart(hbox, false, false, 0);
            vbox.ShowAll();
            return(vbox);
        }
Beispiel #54
0
        private void BuildActionbar()
        {
            this.lblTitle = new Gtk.Label();
            this.lblCorrect = new Gtk.Label();
            this.lblNumber = new Gtk.Label();
            this.hbxChkContainer = new Gtk.HBox( false, 5 );

            this.cbQuestionNumber = Gtk.ComboBox.NewText();
            this.cbQuestionNumber.Changed += (sender, e) => this.OnQuestionNumberChanged();
            this.lblTitle.Text = this.Document.Title + ':';
            this.lblCorrect.Text = "";
            this.lblNumber.Text = this.Document.CountQuestions.ToString();

            this.hbxChkContainer.PackStart( this.cbQuestionNumber, false, false, 5 );
            this.hbxChkContainer.PackEnd( this.lblNumber, false, false, 5 );
            this.hbxChkContainer.PackEnd( this.lblCorrect, false, false, 5 );
            this.hbxChkContainer.PackEnd( this.lblTitle, false, false, 5 );
        }
Beispiel #55
0
        public override Gtk.Widget CreatePanelWidget()
        {
            var vbox  = new Gtk.VBox();
            var hbox  = new Gtk.HBox();
            var label = new Gtk.Label(GettextCatalog.GetString("DNX Runtime Version:"));

            label.Xalign = 0;
            hbox.PackStart(label, false, false, 5);

            dnxRuntimeVersionComboBox = Gtk.ComboBox.NewText();
            hbox.PackStart(dnxRuntimeVersionComboBox, true, true, 5);

            PopulateOptionsPanel();

            vbox.PackStart(hbox);
            vbox.ShowAll();
            return(vbox);
        }
 void ShowErrorMessage()
 {
     DBusBackgroundWorker.Request();
     DBusBackgroundWorker.InvokeGtkThread(() => {
         using (var dialog = new Gtk.Dialog()) {
             dialog.BorderWidth  = 6;
             dialog.Resizable    = false;
             dialog.HasSeparator = false;
             var message         = "<span weight=\"bold\"size=\"larger\">"
                                   + "Could not register KeebuntuAppMenu with Unity panel service."
                                   + "</span>\n\n"
                                   + "This plugin only works with Ubuntu Unity desktop."
                                   + " If you do not use Unity, you should uninstall the KeebuntuAppMenu plugin."
                                   + "\n";
             var label              = new Gtk.Label(message);
             label.UseMarkup        = true;
             label.Wrap             = true;
             label.Yalign           = 0;
             var icon               = new Gtk.Image(Gtk.Stock.DialogError, Gtk.IconSize.Dialog);
             icon.Yalign            = 0;
             var contentBox         = new Gtk.HBox();
             contentBox.Spacing     = 12;
             contentBox.BorderWidth = 6;
             contentBox.PackStart(icon);
             contentBox.PackEnd(label);
             dialog.VBox.PackStart(contentBox);
             dialog.AddButton("Don't show this again", Gtk.ResponseType.Accept);
             dialog.AddButton("OK", Gtk.ResponseType.Ok);
             dialog.DefaultResponse = Gtk.ResponseType.Ok;
             dialog.Response       += (o, args) => {
                 dialog.Destroy();
                 if (args.ResponseId == Gtk.ResponseType.Accept)
                 {
                     pluginHost.CustomConfig.SetBool(keebuntuAppMenuWarningSeenId, true);
                 }
             };
             dialog.ShowAll();
             dialog.KeepAbove = true;
             dialog.Run();
         }
     }).Wait();
     DBusBackgroundWorker.Release();
 }
		void Initialize (ActionGroupDesignerFrontend frontend, Wrapper.ActionGroupCollection actionGroups, bool singleGroupMode)
		{
			this.frontend = frontend;
			this.singleGroupMode = singleGroupMode;
			IconSize = Gtk.IconSize.SmallToolbar;
			Orientation = Gtk.Orientation.Horizontal;
			ToolbarStyle = Gtk.ToolbarStyle.BothHoriz;
			
			combo = Gtk.ComboBox.NewText ();
			
			if (!singleGroupMode) {
				combo.Changed += OnActiveChanged;

				Gtk.ToolItem comboItem = new Gtk.ToolItem ();
				Gtk.HBox cbox = new Gtk.HBox ();
				cbox.PackStart (new Gtk.Label (Catalog.GetString ("Action Group:") + " "), false, false, 3);
				cbox.PackStart (combo, true, true, 3);
				comboItem.Add (cbox);
				comboItem.ShowAll ();
				Insert (comboItem, -1);
				internalButtons.Add (comboItem);
				
				addButton = new Gtk.ToolButton (Gtk.Stock.Add);
				addButton.Clicked += OnAddGroup;
				Insert (addButton, -1);
				internalButtons.Add (addButton);
				
				removeButton = new Gtk.ToolButton (Gtk.Stock.Remove);
				removeButton.Clicked += OnRemoveGroup;
				Insert (removeButton, -1);
				internalButtons.Add (removeButton);
				
				ActionGroups = actionGroups;
				
				if (actionGroups != null && actionGroups.Count > 0)
					combo.Active = 0;
			} else {
				UpdateActionCommands (null);
			}

			ShowAll ();
		}
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.HRegExEntry
     Stetic.BinContainer.Attach(this);
     this.Name = "HollyLibrary.HRegExEntry";
     // Container child HollyLibrary.HRegExEntry.Gtk.Container+ContainerChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     this.hbox1.BorderWidth = ((uint)(5));
     // Container child hbox1.Gtk.Box+BoxChild
     this.TextBox = new Gtk.Entry();
     this.TextBox.CanFocus = true;
     this.TextBox.Name = "TextBox";
     this.TextBox.IsEditable = true;
     this.TextBox.HasFrame = false;
     this.TextBox.InvisibleChar = '●';
     this.hbox1.Add(this.TextBox);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.TextBox]));
     w1.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.EbErrorImage = new Gtk.EventBox();
     this.EbErrorImage.Name = "EbErrorImage";
     this.EbErrorImage.VisibleWindow = false;
     // Container child EbErrorImage.Gtk.Container+ContainerChild
     this.ErrorImage = new Gtk.Image();
     this.ErrorImage.Name = "ErrorImage";
     this.EbErrorImage.Add(this.ErrorImage);
     this.hbox1.Add(this.EbErrorImage);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.EbErrorImage]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     this.Add(this.hbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.TextBox.Changed += new System.EventHandler(this.OnTextBoxChanged);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.DateWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.DateWidget";
     // Container child ocmgtk.DateWidget.Gtk.Container+ContainerChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.dateField = new Gtk.Entry();
     this.dateField.CanFocus = true;
     this.dateField.Name = "dateField";
     this.dateField.IsEditable = true;
     this.dateField.InvisibleChar = '•';
     this.hbox1.Add(this.dateField);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.dateField]));
     w1.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.calButton = new Gtk.Button();
     this.calButton.CanFocus = true;
     this.calButton.Name = "calButton";
     // Container child calButton.Gtk.Container+ContainerChild
     this.image2 = new Gtk.Image();
     this.image2.Name = "image2";
     this.image2.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_calendar", Gtk.IconSize.Menu, 16);
     this.calButton.Add(this.image2);
     this.calButton.Label = null;
     this.hbox1.Add(this.calButton);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.calButton]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     this.Add(this.hbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
     this.calButton.Clicked += new System.EventHandler(this.OnCallClicked);
 }
        public PreferenceView()
        {
            vbox1 = new Gtk.VBox () { Spacing = 6 };
            table1 = new Gtk.Table (3, 2, true) { RowSpacing = 6, ColumnSpacing = 6 };
            entPassword = new Gtk.Entry () {
                CanFocus = true,
                IsEditable = true,
                Visibility = false,
                InvisibleChar = '●'
            };
            table1.Attach (entPassword, 1, 2, 2, 3);
            entUrl = new Gtk.Entry () { CanFocus = true, IsEditable = true };
            table1.Attach (entUrl, 1, 2, 0, 1);
            entUser = new Gtk.Entry () { CanFocus = true, IsEditable = true };
            table1.Attach (entUser, 1, 2, 1, 2);
            lblPassword = new Gtk.Label ("Password:"******"Ampache Server Name:");
            table1.Attach (lblUrl, 0, 1, 0 ,1);
            lblUser = new Gtk.Label ("User Name:");
            table1.Attach (lblUser, 0, 1, 1, 2);
            vbox1.PackStart (table1, true, false, 0);

            hbox1 = new Gtk.HBox ();
            btnSave = new Gtk.Button ();
            btnSave.Label = "Save";
            btnSave.Clicked += Save_OnClicked;
            hbox1.PackStart (btnSave, false, false, 0);
            btnClear = new Gtk.Button ();
            btnClear.Label = "Clear";
            btnClear.Clicked += Clean_OnClicked;
            hbox1.PackStart (btnClear, true, false, 0);
            vbox1.PackStart (hbox1, false, false, 0);
            this.Add (vbox1);
            ShowAll ();

            entUrl.Text = AmpacheSource.AmpacheRootAddress.Get(AmpacheSource.AmpacheRootAddress.DefaultValue);
            entUser.Text = AmpacheSource.UserName.Get(AmpacheSource.UserName.DefaultValue);
            entPassword.Text = AmpacheSource.UserPassword.Get(AmpacheSource.UserPassword.DefaultValue);
        }