protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ControlWrappers.BoundTextView
     Stetic.BinContainer.Attach(this);
     this.Name = "ControlWrappers.BoundTextView";
     // Container child ControlWrappers.BoundTextView.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.tvBound = new Gtk.TextView();
     this.tvBound.CanFocus = true;
     this.tvBound.Name = "tvBound";
     this.scrolledwindow1.Add(this.tvBound);
     this.Add(this.scrolledwindow1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
     this.tvBound.PasteClipboard += new System.EventHandler(this.PasteClipboardOccurred);
     this.tvBound.InsertAtCursor += new Gtk.InsertAtCursorHandler(this.InsertAtCursorOccurred);
     this.tvBound.CutClipboard += new System.EventHandler(this.CutClipboardOccurred);
     this.tvBound.DeleteFromCursor += new Gtk.DeleteFromCursorHandler(this.DeleteFromCursorOccurred);
     this.tvBound.Backspace += new System.EventHandler(this.BackspaceOccurred);
     this.tvBound.KeyReleaseEvent += new Gtk.KeyReleaseEventHandler(this.KeyReleaseEventOccurred);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.ComboListWindow
     this.Name = "HollyLibrary.ComboListWindow";
     this.Title = "ComboListWindow";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Decorated = false;
     // Container child HollyLibrary.ComboListWindow.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.TvList = new HollyLibrary.HSimpleList();
     this.TvList.CanFocus = true;
     this.TvList.Name = "TvList";
     this.TvList.HeadersClickable = true;
     this.TvList.SelectedIndex = 0;
     this.TvList.ItemHeight = 20;
     this.TvList.OwnerDraw = false;
     this.TvList.IsEditable = false;
     this.TvList.IsDragAndDropEnable = false;
     this.TvList.IsCheckBoxList = false;
     this.GtkScrolledWindow.Add(this.TvList);
     this.Add(this.GtkScrolledWindow);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 264;
     this.DefaultHeight = 242;
     this.Show();
     this.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnButtonPressEvent);
     this.TvList.RowActivated += new Gtk.RowActivatedHandler(this.OnTvListRowActivated);
 }
		public FileScout()
		{
			string path = IdeApp.ProjectOperations.ProjectsDefaultPath;

			if (Directory.Exists(path))
			{
				fb.CurrentDir = path;
			}

			fb.DirectoryChangedEvent += new DirectoryChangedEventHandler (OnDirChanged);
			filelister.RowActivated += new Gtk.RowActivatedHandler (FileSelected);
			IdeApp.Workspace.FirstWorkspaceItemOpened += OnCombineOpened;
			IdeApp.Workspace.LastWorkspaceItemClosed += OnCombineClosed;

			Gtk.ScrolledWindow listsw = new Gtk.ScrolledWindow ();
			listsw.Add (filelister);
			
			fontChanger = new PadFontChanger (listsw, delegate (Pango.FontDescription desc) {
				filelister.SetCustomFont (desc);
				fb.SetCustomFont (desc);
			}, delegate () {
				filelister.ColumnsAutosize ();
				fb.ColumnsAutosize ();
			});
			
			this.Pack1 (fb, true, true);
			this.Pack2 (listsw, true, true);

			fb.SelectFirst ();
			
			OnDirChanged (fb.CurrentDir);
			this.ShowAll ();
		}
		public DisassemblyView ()
		{
			UntitledName = GettextCatalog.GetString ("Disassembly");
			sw = new Gtk.ScrolledWindow ();
			editor = new Mono.TextEditor.TextEditor ();
			editor.Document.ReadOnly = true;
			
			TextEditorOptions options = new TextEditorOptions ();
			options.CopyFrom (TextEditorOptions.DefaultOptions);
			options.ShowEolMarkers = false;
			options.ShowInvalidLines = false;
			options.ShowLineNumberMargin = false;
			editor.Options = options;
			
			sw.Add (editor);
			sw.HscrollbarPolicy = Gtk.PolicyType.Automatic;
			sw.VscrollbarPolicy = Gtk.PolicyType.Automatic;
			sw.ShowAll ();
			sw.Vadjustment.ValueChanged += OnScrollEditor;
			sw.VScrollbar.ButtonPressEvent += OnPress;
			sw.VScrollbar.ButtonReleaseEvent += OnRelease;
			sw.VScrollbar.Events |= Gdk.EventMask.ButtonPressMask | Gdk.EventMask.ButtonReleaseMask;
			sw.ShadowType = Gtk.ShadowType.In;
			
			sw.Sensitive = false;
			
			currentDebugLineMarker = new CurrentDebugLineTextMarker (editor);
			DebuggingService.StoppedEvent += OnStop;
		}
Beispiel #5
0
		public DisassemblyView ()
		{
			ContentName = GettextCatalog.GetString ("Disassembly");
			sw = new Gtk.ScrolledWindow ();
			editor = new TextEditor ();
			editor.Document.ReadOnly = true;
			
			editor.Options = new CommonTextEditorOptions {
				ShowLineNumberMargin = false,
			};
			
			sw.Add (editor);
			sw.HscrollbarPolicy = Gtk.PolicyType.Automatic;
			sw.VscrollbarPolicy = Gtk.PolicyType.Automatic;
			sw.ShowAll ();
			sw.Vadjustment.ValueChanged += OnScrollEditor;
			sw.VScrollbar.ButtonPressEvent += OnPress;
			sw.VScrollbar.ButtonReleaseEvent += OnRelease;
			sw.VScrollbar.Events |= Gdk.EventMask.ButtonPressMask | Gdk.EventMask.ButtonReleaseMask;
			sw.ShadowType = Gtk.ShadowType.In;
			
			sw.Sensitive = false;
			
			currentDebugLineMarker = new CurrentDebugLineTextMarker (editor);
			DebuggingService.StoppedEvent += OnStop;
		}
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget OpenVP.GtkGui.BrowsableEditor
     Stetic.BinContainer.Attach(this);
     this.Name = "OpenVP.GtkGui.BrowsableEditor";
     // Container child OpenVP.GtkGui.BrowsableEditor.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.SheetPane = new Gtk.ScrolledWindow();
     this.SheetPane.CanFocus = true;
     this.SheetPane.Name = "SheetPane";
     this.vbox2.Add(this.SheetPane);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.SheetPane]));
     w1.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbuttonbox2 = new Gtk.HButtonBox();
     this.hbuttonbox2.Name = "hbuttonbox2";
     this.hbuttonbox2.Homogeneous = true;
     this.hbuttonbox2.Spacing = 6;
     this.hbuttonbox2.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.RevertButton = new Gtk.Button();
     this.RevertButton.Sensitive = false;
     this.RevertButton.CanFocus = true;
     this.RevertButton.Name = "RevertButton";
     this.RevertButton.UseStock = true;
     this.RevertButton.UseUnderline = true;
     this.RevertButton.Label = "gtk-revert-to-saved";
     this.hbuttonbox2.Add(this.RevertButton);
     Gtk.ButtonBox.ButtonBoxChild w2 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.RevertButton]));
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.ApplyButton = new Gtk.Button();
     this.ApplyButton.Sensitive = false;
     this.ApplyButton.CanFocus = true;
     this.ApplyButton.Name = "ApplyButton";
     this.ApplyButton.UseStock = true;
     this.ApplyButton.UseUnderline = true;
     this.ApplyButton.Label = "gtk-apply";
     this.hbuttonbox2.Add(this.ApplyButton);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.ApplyButton]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     this.vbox2.Add(this.hbuttonbox2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbuttonbox2]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.RevertButton.Clicked += new System.EventHandler(this.OnRevertButtonClicked);
     this.ApplyButton.Clicked += new System.EventHandler(this.OnApplyButtonClicked);
 }
Beispiel #7
0
        public WindowView(Main _view, Controller.Window _ctl)
        {
            View = _view;
            Window = _ctl;
            Homogeneous = false;
            Spacing = 0;
            BorderWidth = 0;
            var topLevelBox = new Gtk.VBox();
            topLevelBox.Homogeneous = false;
            topLevelBox.Spacing = 0;
            topLevelBox.BorderWidth = 0;
            textView = new WindowTextView(Window);
            scroll = new Gtk.ScrolledWindow {
                HscrollbarPolicy = Gtk.PolicyType.Automatic,
                VscrollbarPolicy = Gtk.PolicyType.Automatic
            };
            scroll.Add(textView);
            Window.CursorMovedByCommand.Add(i =>
            {
                textView.ScrollToIter(i.GtkIter, 0, false, 0, 0);
            });
            topLevelBox.PackStart(scroll, true, true, 0);
            status = new Gtk.Statusbar();
            status.HasResizeGrip = false;
            status.Push(StatusbarMode, Window.CurrentMode.GetName());
            Window.CurrentMode.Event.Changed += m =>
            {
                status.Pop(StatusbarMode);
                status.Push(StatusbarMode, Window.CurrentMode.GetName());
            };
            Window.Model.Changed += m =>
            {
                textView.Buffer = m;
            };
            topLevelBox.PackStart(status, false, false, 0);

            // Wrap the topLevelBox with borders on the left and right
            var hlBox = new Gtk.DrawingArea();
            NormalColor = hlBox.Style.Background(Gtk.StateType.Normal);
            hlBox.WidthRequest = 10;
            var borderBox = new Gtk.HBox();
            borderBox.Homogeneous = false;
            borderBox.Spacing = 0;
            borderBox.BorderWidth = 0;
            borderBox.PackStart(hlBox, false, false, 0);
            borderBox.PackStart(topLevelBox, true, true, 0);

            textView.FocusInEvent += (object o, Gtk.FocusInEventArgs args) =>
            {
                Window.Controller.FocusedWindow.Value = Window;
                hlBox.ModifyBg(Gtk.StateType.Normal, HighlightColor);
            };

            textView.FocusOutEvent += (object o, Gtk.FocusOutEventArgs args) =>
            {
                hlBox.ModifyBg(Gtk.StateType.Normal, NormalColor);
            };

            Add(borderBox);
        }
        private void Build()
        {
            var swScroll = new Gtk.ScrolledWindow();

            // Drawing area
            this.drawingArea = new Gtk.DrawingArea();
            this.drawingArea.ExposeEvent += (o, args)  => this.OnExposeDrawingArea();

            // Layout
            swScroll.AddWithViewport( this.drawingArea );
            this.VBox.PackStart( swScroll, true, true, 5 );
            this.AddButton( Gtk.Stock.Close, Gtk.ResponseType.Close );

            // Polish
            this.WindowPosition = Gtk.WindowPosition.CenterOnParent;
            this.Resize( 320, 200 );
            this.SetGeometryHints(
                this,
                new Gdk.Geometry() {
                    MinWidth = 320,
                    MinHeight = 200
                },
                Gdk.WindowHints.MinSize
            );
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="Trilogic.CompareWindow"/> class.
        /// </summary>
        /// <param name="parent">The parent window.</param>
        /// <param name="compareName">Compare name.</param>
        /// <param name="fileSide">File side.</param>
        /// <param name="databaseSide">Database side.</param>
        public CompareWindow(MainWindow parent, string compareName, SchemaData fileSide, SchemaData databaseSide)
            : base(Gtk.WindowType.Toplevel)
        {
            this.Build();
            this.parent = parent;

            this.docLocal = new TextDocument();
            this.docDB = new TextDocument();

            this.editorLocal = new TextEditor(this.docLocal);
            this.editorDB = new TextEditor(this.docDB);

            Gtk.ScrolledWindow scrollLocal = new Gtk.ScrolledWindow();
            Gtk.ScrolledWindow scrollDB = new Gtk.ScrolledWindow();
            scrollLocal.Add(this.editorLocal);
            scrollDB.Add(this.editorDB);

            this.hbox1.Add(scrollDB);
            this.hbox1.Add(scrollLocal);

            Gtk.Box.BoxChild childLocal = (Gtk.Box.BoxChild)this.hbox1[scrollLocal];
            childLocal.Position = 2;

            Gtk.Box.BoxChild childDB = (Gtk.Box.BoxChild)this.hbox1[scrollDB];
            childDB.Position = 0;

            this.ShowAll();

            this.Title += " - " + compareName;

            this.fileSide = fileSide;
            this.databaseSide = databaseSide;

            this.ShowSchema();
        }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Upnp.GtkClient.RawXmlInfo
     Stetic.BinContainer.Attach(this);
     this.Name = "Mono.Upnp.GtkClient.RawXmlInfo";
     // Container child Mono.Upnp.GtkClient.RawXmlInfo.Gtk.Container+ContainerChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w1 = new Gtk.Viewport();
     w1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.raw = new Gtk.TextView();
     this.raw.CanFocus = true;
     this.raw.Name = "raw";
     this.raw.Editable = false;
     this.vbox1.Add(this.raw);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.raw]));
     w2.Position = 0;
     w1.Add(this.vbox1);
     this.scrolledwindow1.Add(w1);
     this.Add(this.scrolledwindow1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
Beispiel #11
0
		public override Gtk.Widget GetVisualizerWidget (ObjectValue val)
		{
			var ops = DebuggingService.DebuggerSession.EvaluationOptions.Clone ();
			string file = Path.GetTempFileName ();
			Gdk.Pixbuf pixbuf;

			ops.AllowTargetInvoke = true;

			try {
				var pix = (RawValue) val.GetRawValue (ops);
				pix.CallMethod ("Save", file, "png");
				pixbuf = new Gdk.Pixbuf (file);
			} finally {
				File.Delete (file);
			}

			var sc = new Gtk.ScrolledWindow ();
			sc.ShadowType = Gtk.ShadowType.In;
			sc.HscrollbarPolicy = Gtk.PolicyType.Automatic;
			sc.VscrollbarPolicy = Gtk.PolicyType.Automatic;
			var image = new Gtk.Image (pixbuf);
			sc.AddWithViewport (image);
			sc.ShowAll ();
			return sc;
		}
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.HTMLEditorWidget
     Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this);
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.UIManager.InsertActionGroup(w2, 0);
     this.Name = "ocmgtk.HTMLEditorWidget";
     // Container child ocmgtk.HTMLEditorWidget.Gtk.Container+ContainerChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.editorWindow = new Gtk.ScrolledWindow();
     this.editorWindow.CanFocus = true;
     this.editorWindow.Name = "editorWindow";
     this.editorWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child editorWindow.Gtk.Container+ContainerChild
     this.editor = new Gtk.TextView();
     this.editor.CanFocus = true;
     this.editor.Name = "editor";
     this.editor.WrapMode = ((Gtk.WrapMode)(2));
     this.editorWindow.Add(this.editor);
     this.vbox3.Add(this.editorWindow);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.editorWindow]));
     w4.Position = 0;
     this.Add(this.vbox3);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     w1.SetUiManager(UIManager);
     this.Hide();
 }
Beispiel #13
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);
 }
Beispiel #14
0
        public ChatView(ChatModel chat)
        {
            Trace.Call(chat);

            _ChatModel = chat;

            MessageTextView tv = new MessageTextView();
            _EndMark = tv.Buffer.CreateMark("end", tv.Buffer.EndIter, false);
            tv.ShowTimestamps = true;
            tv.ShowMarkerline = true;
            tv.Editable = false;
            tv.CursorVisible = true;
            tv.WrapMode = Gtk.WrapMode.Char;
            tv.MessageAdded += OnMessageTextViewMessageAdded;
            tv.MessageHighlighted += OnMessageTextViewMessageHighlighted;
            tv.PopulatePopup += OnMessageTextViewPopulatePopup;
            _OutputMessageTextView = tv;

            Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow();
            //sw.HscrollbarPolicy = Gtk.PolicyType.Never;
            sw.HscrollbarPolicy = Gtk.PolicyType.Automatic;
            sw.VscrollbarPolicy = Gtk.PolicyType.Always;
            sw.ShadowType = Gtk.ShadowType.In;
            sw.Add(_OutputMessageTextView);
            _OutputScrolledWindow = sw;

            // popup menu
            _TabMenu = new Gtk.Menu();

            Gtk.ImageMenuItem close_item = new Gtk.ImageMenuItem(Gtk.Stock.Close, null);
            close_item.Activated += new EventHandler(OnTabMenuCloseActivated);
            _TabMenu.Append(close_item);
            _TabMenu.ShowAll();

            //FocusChild = _OutputTextView;
            //CanFocus = false;

            _TabLabel = new Gtk.Label();

            TabImage = DefaultTabImage;
            _TabHBox = new Gtk.HBox();
            _TabHBox.PackEnd(new Gtk.Fixed(), true, true, 0);
            _TabHBox.PackEnd(_TabLabel, false, false, 0);
            _TabHBox.PackStart(TabImage, false, false, 2);
            _TabHBox.ShowAll();

            _TabEventBox = new Gtk.EventBox();
            _TabEventBox.VisibleWindow = false;
            _TabEventBox.ButtonPressEvent += new Gtk.ButtonPressEventHandler(OnTabButtonPress);
            _TabEventBox.Add(_TabHBox);
            _TabEventBox.ShowAll();

            _ThemeSettings = new ThemeSettings();

            // OPT-TODO: this should use a TaskStack instead of TaskQueue
            _LastSeenHighlightQueue = new TaskQueue("LastSeenHighlightQueue("+ID+")");
            _LastSeenHighlightQueue.AbortedEvent += OnLastSeenHighlightQueueAbortedEvent;
            _LastSeenHighlightQueue.ExceptionEvent += OnLastSeenHighlightQueueExceptionEvent;
        }
        public override void Initialize(IPadWindow window)
        {
            base.Initialize(window);

            // Call ctors
            inputEditor = new TextEditor() { Name = "input", Events = Gdk.EventMask.AllEventsMask, HeightRequest = 80 };
            editor = new TextEditor() { Name = "output", Events = Gdk.EventMask.AllEventsMask };
            vpaned = new Gtk.VPaned();
            var scr1 = new Gtk.ScrolledWindow();
            var scr2 = new Gtk.ScrolledWindow();

            // Init layout
            scr1.ShadowType = Gtk.ShadowType.In;
            scr1.Child = inputEditor;
            vpaned.Add1(scr1);
            scr1.ShowAll();
            inputEditor.ShowAll();

            scr2.ShadowType = Gtk.ShadowType.In;
            scr2.Child = editor;
            vpaned.Add2(scr2);
            scr2.ShowAll();
            editor.ShowAll();

            vpaned.ShowAll();

            // Init editors
            var o = editor.Options;
            inputEditor.Options = o;
            o.ShowLineNumberMargin = false;
            o.ShowFoldMargin = false;
            o.ShowIconMargin = false;

            editor.Document.ReadOnly = true;
            inputEditor.Text = PropertyService.Get(lastInputStringPropId, string.Empty);
            editor.Text = string.Empty;
            editor.Document.SyntaxMode = new Highlighting.DSyntaxMode();
            inputEditor.Document.SyntaxMode = new Highlighting.DSyntaxMode();
            editor.Document.MimeType = Formatting.DCodeFormatter.MimeType;
            inputEditor.Document.MimeType = Formatting.DCodeFormatter.MimeType;

            // Init toolbar
            var tb = window.GetToolbar(Gtk.PositionType.Top);

            executeButton = new Gtk.Button();
            executeButton.Image = new Gtk.Image(Gtk.Stock.Execute, Gtk.IconSize.Menu);
            executeButton.TooltipText = "Evaluates the expression typed in the upper input editor.";
            executeButton.Clicked += Execute;
            tb.Add(executeButton);

            abortButton = new Gtk.Button();
            abortButton.Sensitive = false;
            abortButton.Image = new Gtk.Image(Gtk.Stock.Stop, Gtk.IconSize.Menu);
            abortButton.TooltipText = "Stops the evaluation.";
            abortButton.Clicked += (object sender, EventArgs e) => AbortExecution();
            tb.Add(abortButton);

            tb.ShowAll();
        }
 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();
 }
Beispiel #18
0
        public WindowView(Main _view, Controller.Window _ctl)
        {
            View = _view;
            Window = _ctl;
            Homogeneous = false;
            Spacing = 0;
            BorderWidth = 0;
            var topLevelBox = new Gtk.VBox();
            topLevelBox.Homogeneous = false;
            topLevelBox.Spacing = 0;
            topLevelBox.BorderWidth = 0;
            textView = new WindowTextView(Window);
            scroll = new Gtk.ScrolledWindow {
                HscrollbarPolicy = Gtk.PolicyType.Automatic,
                VscrollbarPolicy = Gtk.PolicyType.Automatic
            };
            scroll.Add(textView);
            Window.CursorMovedByCommand.Add(i =>
            {
                textView.ScrollToIter(i.GtkIter, 0, false, 0, 0);
            });
            topLevelBox.PackStart(scroll, true, true, 0);

            status = new MultiStatusbar();
            status.Add(StatusbarItem.Create(100, () => Window.CurrentMode.GetName(), Window.CurrentMode.Changed));
            status.Add(StatusbarItem.Create(50, Window.Model.Value.HasUnsavedChanges, b => b ? "" : "Saved"));
            status.AddLast(StatusbarItem.Create(400, Window.Model.Value.File.ProjectRelativeFullName()));
            topLevelBox.PackStart(status, false, false, 0);

            Window.Model.Changed += m =>
            {
                textView.Buffer = m;
            };

            // Wrap the topLevelBox with borders on the left and right
            var hlBox = new Gtk.DrawingArea();
            NormalColor = hlBox.Style.Background(Gtk.StateType.Normal);
            hlBox.WidthRequest = 10;
            var borderBox = new Gtk.HBox();
            borderBox.Homogeneous = false;
            borderBox.Spacing = 0;
            borderBox.BorderWidth = 0;
            borderBox.PackStart(hlBox, false, false, 0);
            borderBox.PackStart(topLevelBox, true, true, 0);

            textView.FocusInEvent += (object o, Gtk.FocusInEventArgs args) =>
            {
                Window.Controller.Windows.Current = Window;
                hlBox.ModifyBg(Gtk.StateType.Normal, HighlightColor);
            };

            textView.FocusOutEvent += (object o, Gtk.FocusOutEventArgs args) =>
            {
                hlBox.ModifyBg(Gtk.StateType.Normal, NormalColor);
            };

            Add(borderBox);
        }
 public TableViewBackend()
 {
     var sw = new Gtk.ScrolledWindow ();
     sw.ShadowType = Gtk.ShadowType.In;
     sw.Child = new CustomTreeView (this);
     sw.Child.Show ();
     sw.Show ();
     base.Widget = sw;
 }
Beispiel #20
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();
        }
		public InfoDialog (Gtk.Window parent) : base (Catalog.GetString ("Metadata Browser"),
											    parent,
											    Gtk.DialogFlags.NoSeparator | Gtk.DialogFlags.DestroyWithParent)
		{
			info_display = new InfoDisplay ();
			SetDefaultSize (400, 400);
			Gtk.ScrolledWindow scrolled = new Gtk.ScrolledWindow ();
			VBox.PackStart (scrolled);
			scrolled.Add (info_display);
		}
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ControlWrappers.CronValueEditor
     Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this);
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.selectAllAction = new Gtk.Action("selectAllAction", null, null, "gtk-select-all");
     w2.Add(this.selectAllAction, null);
     this.clearAction = new Gtk.Action("clearAction", null, null, "gtk-clear");
     w2.Add(this.clearAction, null);
     this.UIManager.InsertActionGroup(w2, 0);
     this.Name = "ControlWrappers.CronValueEditor";
     // Container child ControlWrappers.CronValueEditor.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     this.tvList = new Gtk.TreeView();
     this.tvList.CanFocus = true;
     this.tvList.Name = "tvList";
     this.tvList.EnableSearch = false;
     this.tvList.HeadersVisible = false;
     this.scrolledwindow2.Add(this.tvList);
     this.vbox2.Add(this.scrolledwindow2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow2]));
     w4.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='selectAllAction' action='selectAllAction'/><toolitem name='clearAction' action='clearAction'/></toolbar></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.Name = "toolbar1";
     this.toolbar1.ShowArrow = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar1.IconSize = ((Gtk.IconSize)(3));
     this.vbox2.Add(this.toolbar1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     w1.SetUiManager(UIManager);
     this.Hide();
     this.selectAllAction.Activated += new System.EventHandler(this.SelectAllActivated);
     this.clearAction.Activated += new System.EventHandler(this.ClearActivated);
     this.tvList.CursorChanged += new System.EventHandler(this.TreeListCursorChanged);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.ImageDialog
     this.Name = "ocmgtk.ImageDialog";
     this.Title = Mono.Unix.Catalog.GetString("Image");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Internal child ocmgtk.ImageDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w2 = new Gtk.Viewport();
     w2.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.image = new Gtk.Image();
     this.image.Name = "image";
     w2.Add(this.image);
     this.scrolledwindow1.Add(w2);
     w1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.scrolledwindow1]));
     w5.Position = 0;
     // Internal child ocmgtk.ImageDialog.ActionArea
     Gtk.HButtonBox w6 = this.ActionArea;
     w6.Name = "dialog1_ActionArea";
     w6.Spacing = 10;
     w6.BorderWidth = ((uint)(5));
     w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-close";
     this.AddActionWidget(this.buttonOk, -7);
     Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonOk]));
     w7.Expand = false;
     w7.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.buttonOk.Clicked += new System.EventHandler(this.OnCloseClick);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.ChangeHistory
     this.Name = "ocmgtk.ChangeHistory";
     this.Title = Mono.Unix.Catalog.GetString("Change History...");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth = 500;
     this.DefaultHeight = 400;
     // Internal child ocmgtk.ChangeHistory.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.textView = new Gtk.TextView();
     this.textView.CanFocus = true;
     this.textView.Name = "textView";
     this.textView.Editable = false;
     this.scrolledwindow1.Add(this.textView);
     w1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.scrolledwindow1]));
     w3.Position = 0;
     // Internal child ocmgtk.ChangeHistory.ActionArea
     Gtk.HButtonBox w4 = this.ActionArea;
     w4.Name = "dialog1_ActionArea";
     w4.Spacing = 10;
     w4.BorderWidth = ((uint)(5));
     w4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonOk]));
     w5.Expand = false;
     w5.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.buttonOk.HasDefault = true;
     this.Show();
     this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoHotDraw.Samples.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Figures"), null, null);
     this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Figures");
     w1.Add(this.FiguresAction, null);
     this.AddAnalogClockAction = new Gtk.Action("AddAnalogClockAction", Mono.Unix.Catalog.GetString("Add Analog Clock"), null, null);
     this.AddAnalogClockAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Analog Clock");
     w1.Add(this.AddAnalogClockAction, null);
     this.AddDigitalClockAction = new Gtk.Action("AddDigitalClockAction", Mono.Unix.Catalog.GetString("Add Digital Clock"), null, null);
     this.AddDigitalClockAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Digital Clock");
     w1.Add(this.AddDigitalClockAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MonoHotDraw.Samples.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MonoHotDraw.Samples.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='FiguresAction' action='FiguresAction'><menuitem name='AddAnalogClockAction' action='AddAnalogClockAction'/><menuitem name='AddDigitalClockAction' action='AddDigitalClockAction'/></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.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     this.vbox1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.scrolledwindow1]));
     w3.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.AddAnalogClockAction.Activated += new System.EventHandler(this.OnAddAnalogClockActionActivated);
     this.AddDigitalClockAction.Activated += new System.EventHandler(this.OnAddDigitalClockActionActivated);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget omvviewerlight.About
     this.Name = "omvviewerlight.About";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.HasSeparator = false;
     // Internal child omvviewerlight.About.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.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 = "\t\t\t\t\t   omvviewer-light\n\nCopyright (C) 2008-2009 Robin Cornelius <*****@*****.**>\n\nContributions from\n\nKhyota\nTechwolf\nDzontaz\nCarjay\nRoslyn\n\nFor help and support please\n\n1) File a bug on jira.byteme.org.uk with a full description of any\nproblem you may have any stack traces, screen shots etc that may help\n\n2) If possible please try to contact us via IRC on EFnet #omvviewer, but \nnote that although there are a hand full of people on that channel, they \nare not always at the keyboard so a response may be a few hours etc.\n\n3) Email me if 2) is not possible. But please file a JIRA first!\n\nThis program is licenced under the GNU General Public Licence V2 or at \nyour choice any later version.\n\n\t\t    GNU GENERAL PUBLIC LICENSE\n\t\t       Version 2, June 1991\n\n Copyright (C) 1989, 1991 Free Software Foundation, Inc.,\n 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n\t\t\t    Preamble\n\n  The licenses for most software are designed to take away your\nfreedom to share and change it.  By contrast, the GNU General Public\nLicense is intended to guarantee your freedom to share and change free\nsoftware--to make sure the software is free for all its users.  This\nGeneral Public License applies to most of the Free Software\nFoundation's software and to any other program whose authors commit to\nusing it.  (Some other Free Software Foundation software is covered by\nthe GNU Lesser General Public License instead.)  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\nthis service if you wish), that you receive source code or can get it\nif you want it, that you can change the software or use pieces of it\nin new free programs; and that you know you can do these things.\n\n  To protect your rights, we need to make restrictions that forbid\nanyone to deny you these rights or to ask you to surrender the rights.\nThese restrictions translate to certain responsibilities for you if you\ndistribute copies of the software, or if you modify it.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must give the recipients all the rights that\nyou have.  You must make sure that they, too, receive or can get the\nsource code.  And you must show them these terms so they know their\nrights.\n\n  We protect your rights with two steps: (1) copyright the software, and\n(2) offer you this license which gives you legal permission to copy,\ndistribute and/or modify the software.\n\n  Also, for each author's protection and ours, we want to make certain\nthat everyone understands that there is no warranty for this free\nsoftware.  If the software is modified by someone else and passed on, we\nwant its recipients to know that what they have is not the original, so\nthat any problems introduced by others will not reflect on the original\nauthors' reputations.\n\n  Finally, any free program is threatened constantly by software\npatents.  We wish to avoid the danger that redistributors of a free\nprogram will individually obtain patent licenses, in effect making the\nprogram proprietary.  To prevent this, we have made it clear that any\npatent must be licensed for everyone's free use or not licensed at all.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n\t\t    GNU GENERAL PUBLIC LICENSE\n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n  0. This License applies to any program or other work which contains\na notice placed by the copyright holder saying it may be distributed\nunder the terms of this General Public License.  The \"Program\", below,\nrefers to any such program or work, and a \"work based on the Program\"\nmeans either the Program or any derivative work under copyright law:\nthat is to say, a work containing the Program or a portion of it,\neither verbatim or with modifications and/or translated into another\nlanguage.  (Hereinafter, translation is included without limitation in\nthe term \"modification\".)  Each licensee is addressed as \"you\".\n\nActivities other than copying, distribution and modification are not\ncovered by this License; they are outside its scope.  The act of\nrunning the Program is not restricted, and the output from the Program\nis covered only if its contents constitute a work based on the\nProgram (independent of having been made by running the Program).\nWhether that is true depends on what the Program does.\n\n  1. You may copy and distribute verbatim copies of the Program's\nsource code as you receive it, in any medium, provided that you\nconspicuously and appropriately publish on each copy an appropriate\ncopyright notice and disclaimer of warranty; keep intact all the\nnotices that refer to this License and to the absence of any warranty;\nand give any other recipients of the Program a copy of this License\nalong with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and\nyou may at your option offer warranty protection in exchange for a fee.\n\n  2. You may modify your copy or copies of the Program or any portion\nof it, thus forming a work based on the Program, and copy and\ndistribute such modifications or work under the terms of Section 1\nabove, provided that you also meet all of these conditions:\n\n    a) You must cause the modified files to carry prominent notices\n    stating that you changed the files and the date of any change.\n\n    b) You must cause any work that you distribute or publish, that in\n    whole or in part contains or is derived from the Program or any\n    part thereof, to be licensed as a whole at no charge to all third\n    parties under the terms of this License.\n\n    c) If the modified program normally reads commands interactively\n    when run, you must cause it, when started running for such\n    interactive use in the most ordinary way, to print or display an\n    announcement including an appropriate copyright notice and a\n    notice that there is no warranty (or else, saying that you provide\n    a warranty) and that users may redistribute the program under\n    these conditions, and telling the user how to view a copy of this\n    License.  (Exception: if the Program itself is interactive but\n    does not normally print such an announcement, your work based on\n    the Program is not required to print an announcement.)\n\nThese requirements apply to the modified work as a whole.  If\nidentifiable sections of that work are not derived from the Program,\nand can be reasonably considered independent and separate works in\nthemselves, then this License, and its terms, do not apply to those\nsections when you distribute them as separate works.  But when you\ndistribute the same sections as part of a whole which is a work based\non the Program, the distribution of the whole must be on the terms of\nthis License, whose permissions for other licensees extend to the\nentire whole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest\nyour rights to work written entirely by you; rather, the intent is to\nexercise the right to control the distribution of derivative or\ncollective works based on the Program.\n\nIn addition, mere aggregation of another work not based on the Program\nwith the Program (or with a work based on the Program) on a volume of\na storage or distribution medium does not bring the other work under\nthe scope of this License.\n\n  3. You may copy and distribute the Program (or a work based on it,\nunder Section 2) in object code or executable form under the terms of\nSections 1 and 2 above provided that you also do one of the following:\n\n    a) Accompany it with the complete corresponding machine-readable\n    source code, which must be distributed under the terms of Sections\n    1 and 2 above on a medium customarily used for software interchange; or,\n\n    b) Accompany it with a written offer, valid for at least three\n    years, to give any third party, for a charge no more than your\n    cost of physically performing source distribution, a complete\n    machine-readable copy of the corresponding source code, to be\n    distributed under the terms of Sections 1 and 2 above on a medium\n    customarily used for software interchange; or,\n\n    c) Accompany it with the information you received as to the offer\n    to distribute corresponding source code.  (This alternative is\n    allowed only for noncommercial distribution and only if you\n    received the program in object code or executable form with such\n    an offer, in accord with Subsection b above.)\n\nThe source code for a work means the preferred form of the work for\nmaking modifications to it.  For an executable work, complete source\ncode means all the source code for all modules it contains, plus any\nassociated interface definition files, plus the scripts used to\ncontrol compilation and installation of the executable.  However, as a\nspecial exception, the source code distributed need not include\nanything that is normally distributed (in either source or binary\nform) with the major components (compiler, kernel, and so on) of the\noperating system on which the executable runs, unless that component\nitself accompanies the executable.\n\nIf distribution of executable or object code is made by offering\naccess to copy from a designated place, then offering equivalent\naccess to copy the source code from the same place counts as\ndistribution of the source code, even though third parties are not\ncompelled to copy the source along with the object code.\n\n  4. You may not copy, modify, sublicense, or distribute the Program\nexcept as expressly provided under this License.  Any attempt\notherwise to copy, modify, sublicense or distribute the Program is\nvoid, and will automatically terminate your rights under this License.\nHowever, parties who have received copies, or rights, from you under\nthis License will not have their licenses terminated so long as such\nparties remain in full compliance.\n\n  5. You are not required to accept this License, since you have not\nsigned it.  However, nothing else grants you permission to modify or\ndistribute the Program or its derivative works.  These actions are\nprohibited by law if you do not accept this License.  Therefore, by\nmodifying or distributing the Program (or any work based on the\nProgram), you indicate your acceptance of this License to do so, and\nall its terms and conditions for copying, distributing or modifying\nthe Program or works based on it.\n\n  6. Each time you redistribute the Program (or any work based on the\nProgram), the recipient automatically receives a license from the\noriginal licensor to copy, distribute or modify the Program subject to\nthese terms and conditions.  You may not impose any further\nrestrictions on the recipients' exercise of the rights granted herein.\nYou are not responsible for enforcing compliance by third parties to\nthis License.\n\n  7. If, as a consequence of a court judgment or allegation of patent\ninfringement or for any other reason (not limited to patent issues),\nconditions 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\ndistribute so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you\nmay not distribute the Program at all.  For example, if a patent\nlicense would not permit royalty-free redistribution of the Program by\nall those who receive copies directly or indirectly through you, then\nthe only way you could satisfy both it and this License would be to\nrefrain entirely from distribution of the Program.\n\nIf any portion of this section is held invalid or unenforceable under\nany particular circumstance, the balance of the section is intended to\napply and the section as a whole is intended to apply in other\ncircumstances.\n\nIt is not the purpose of this section to induce you to infringe any\npatents or other property right claims or to contest validity of any\nsuch claims; this section has the sole purpose of protecting the\nintegrity of the free software distribution system, which is\nimplemented by public license practices.  Many people have made\ngenerous contributions to the wide range of software distributed\nthrough that system in reliance on consistent application of that\nsystem; it is up to the author/donor to decide if he or she is willing\nto distribute software through any other system and a licensee cannot\nimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed to\nbe a consequence of the rest of this License.\n\n  8. If the distribution and/or use of the Program is restricted in\ncertain countries either by patents or by copyrighted interfaces, the\noriginal copyright holder who places the Program under this License\nmay add an explicit geographical distribution limitation excluding\nthose countries, so that distribution is permitted only in or among\ncountries not thus excluded.  In such case, this License incorporates\nthe limitation as if written in the body of this License.\n\n  9. The Free Software Foundation may publish revised and/or new versions\nof the 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\nEach version is given a distinguishing version number.  If the Program\nspecifies a version number of this License which applies to it and \"any\nlater version\", you have the option of following the terms and conditions\neither of that version or of any later version published by the Free\nSoftware Foundation.  If the Program does not specify a version number of\nthis License, you may choose any version ever published by the Free Software\nFoundation.\n\n  10. If you wish to incorporate parts of the Program into other free\nprograms whose distribution conditions are different, write to the author\nto ask for permission.  For software which is copyrighted by the Free\nSoftware Foundation, write to the Free Software Foundation; we sometimes\nmake exceptions for this.  Our decision will be guided by the two goals\nof preserving the free status of all derivatives of our free software and\nof promoting the sharing and reuse of software generally.\n\n\t\t\t    NO WARRANTY\n\n  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\nFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN\nOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\nPROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\nOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS\nTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE\nPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\nREPAIR OR CORRECTION.\n\n  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\nREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\nINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\nOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\nTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\nYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\nPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGES.\n";
     this.textview1.CanFocus = true;
     this.textview1.Name = "textview1";
     this.textview1.WrapMode = ((Gtk.WrapMode)(3));
     this.GtkScrolledWindow.Add(this.textview1);
     w1.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.GtkScrolledWindow]));
     w3.Position = 0;
     // Internal child omvviewerlight.About.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 = 511;
     this.DefaultHeight = 452;
     this.Show();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Adroit.Gui.ContextView
     Stetic.BinContainer.Attach(this);
     this.Name = "Adroit.Gui.ContextView";
     // Container child Adroit.Gui.ContextView.Gtk.Container+ContainerChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 186;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w1 = new Gtk.Viewport();
     w1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.treeview1 = new Gtk.TreeView();
     this.treeview1.CanFocus = true;
     this.treeview1.Name = "treeview1";
     w1.Add(this.treeview1);
     this.scrolledwindow1.Add(w1);
     this.hpaned1.Add(this.scrolledwindow1);
     Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.scrolledwindow1]));
     w4.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     Gtk.Viewport w5 = new Gtk.Viewport();
     w5.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport1.Gtk.Container+ContainerChild
     this.treeview2 = new Gtk.TreeView();
     this.treeview2.CanFocus = true;
     this.treeview2.Name = "treeview2";
     w5.Add(this.treeview2);
     this.scrolledwindow2.Add(w5);
     this.hpaned1.Add(this.scrolledwindow2);
     this.Add(this.hpaned1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
Beispiel #28
0
		public TextEditorDialog ()
		{
			Gtk.ScrolledWindow sc = new Gtk.ScrolledWindow ();
			sc.HscrollbarPolicy = Gtk.PolicyType.Automatic;
			sc.VscrollbarPolicy = Gtk.PolicyType.Automatic;
			sc.ShadowType = Gtk.ShadowType.In;
			sc.BorderWidth = 6;
			
			textview = new Gtk.TextView ();
			sc.Add (textview);
			
			dialog = new Gtk.Dialog ();
			dialog.AddButton (Gtk.Stock.Cancel, Gtk.ResponseType.Cancel);
			dialog.AddButton (Gtk.Stock.Ok, Gtk.ResponseType.Ok);
			dialog.VBox.Add (sc);
		}
Beispiel #29
0
		public LogWindow() : base("Log Model")
		{
			this.Move(0,0);

			this.SetSizeRequest(600, 500);

			Gtk.TreeView treeviewLog = new Gtk.TreeView();

			Gtk.TreeViewColumn idColumn = new Gtk.TreeViewColumn ();
			idColumn.Title = "Id";

			Gtk.TreeViewColumn typeColumn = new Gtk.TreeViewColumn ();
			typeColumn.Title = "Type";

			Gtk.TreeViewColumn descriptionColumn = new Gtk.TreeViewColumn ();
			descriptionColumn.Title = "Description";

			logListStore = new Gtk.ListStore (typeof (string), typeof (string), typeof (string));

			treeviewLog.AppendColumn(idColumn);
			treeviewLog.AppendColumn(typeColumn);
			treeviewLog.AppendColumn(descriptionColumn);

			treeviewLog.Model = logListStore;




			Gtk.CellRendererText idCell = new Gtk.CellRendererText ();
			idColumn.PackStart(idCell, true);

			Gtk.CellRendererText typeCell = new Gtk.CellRendererText ();
			typeColumn.PackStart(typeCell, true);

			Gtk.CellRendererText descriptionCell = new Gtk.CellRendererText ();
			descriptionColumn.PackStart(descriptionCell, true);

			idColumn.AddAttribute(idCell, "text", 0);
			typeColumn.AddAttribute(typeCell, "text", 1);
			descriptionColumn.AddAttribute(descriptionCell, "text", 2);

			Gtk.ScrolledWindow scWindow = new Gtk.ScrolledWindow();
			scWindow.Add(treeviewLog);

			this.Add(scWindow);

		}
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.WebBrowser
     this.WidthRequest = 800;
     this.HeightRequest = 500;
     this.Name = "ocmgtk.WebBrowser";
     this.Title = Mono.Unix.Catalog.GetString("WebBrowser");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child ocmgtk.WebBrowser.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.browserScroll = new Gtk.ScrolledWindow();
     this.browserScroll.CanFocus = true;
     this.browserScroll.Name = "browserScroll";
     this.browserScroll.ShadowType = ((Gtk.ShadowType)(1));
     this.vbox2.Add(this.browserScroll);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.browserScroll]));
     w1.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.browserStatus = new Gtk.Statusbar();
     this.browserStatus.Name = "browserStatus";
     this.browserStatus.Spacing = 6;
     // Container child browserStatus.Gtk.Box+BoxChild
     this.browserProgress = new Gtk.ProgressBar();
     this.browserProgress.WidthRequest = 150;
     this.browserProgress.Name = "browserProgress";
     this.browserStatus.Add(this.browserProgress);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.browserStatus[this.browserProgress]));
     w2.Position = 2;
     w2.Expand = false;
     w2.Fill = false;
     this.vbox2.Add(this.browserStatus);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.browserStatus]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 812;
     this.DefaultHeight = 627;
     this.Show();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget Mono.Addins.Gui.AddinInfoDialog
     this.Name          = "Mono.Addins.Gui.AddinInfoDialog";
     this.Title         = Mono.Unix.Catalog.GetString("MonoDevelop Package");
     this.TypeHint      = ((Gdk.WindowTypeHint)(1));
     this.DefaultWidth  = 550;
     this.DefaultHeight = 400;
     // Internal child Mono.Addins.Gui.AddinInfoDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog-vbox12";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog-vbox12.Gtk.Box+BoxChild
     this.hbox81             = new Gtk.HBox();
     this.hbox81.Name        = "hbox81";
     this.hbox81.Spacing     = 12;
     this.hbox81.BorderWidth = ((uint)(12));
     // Container child hbox81.Gtk.Box+BoxChild
     this.vbox94      = new Gtk.VBox();
     this.vbox94.Name = "vbox94";
     // Container child vbox94.Gtk.Box+BoxChild
     this.packageImage      = new Gtk.Image();
     this.packageImage.Name = "packageImage";
     this.vbox94.Add(this.packageImage);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox94[this.packageImage]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     this.hbox81.Add(this.vbox94);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox81[this.vbox94]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child hbox81.Gtk.Box+BoxChild
     this.scrolledwindow22                  = new Gtk.ScrolledWindow();
     this.scrolledwindow22.CanFocus         = true;
     this.scrolledwindow22.Name             = "scrolledwindow22";
     this.scrolledwindow22.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow22.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     // Container child scrolledwindow22.Gtk.Container+ContainerChild
     Gtk.Viewport w4 = new Gtk.Viewport();
     w4.Name       = "viewport4";
     w4.ShadowType = ((Gtk.ShadowType)(0));
     // Container child viewport4.Gtk.Container+ContainerChild
     this.infoLabel = new Gtk.Label();
     this.infoLabel.WidthRequest = 420;
     this.infoLabel.Name         = "infoLabel";
     this.infoLabel.Xpad         = 6;
     this.infoLabel.Ypad         = 6;
     this.infoLabel.Xalign       = 0F;
     this.infoLabel.Yalign       = 0F;
     this.infoLabel.LabelProp    = "aa a a a a a a a a aa a a a a aaa a a a a a a a a aa a a a a aaa a a a a a a a a aa a a a a a";
     this.infoLabel.Wrap         = true;
     w4.Add(this.infoLabel);
     this.scrolledwindow22.Add(w4);
     this.hbox81.Add(this.scrolledwindow22);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox81[this.scrolledwindow22]));
     w7.Position = 1;
     w1.Add(this.hbox81);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.hbox81]));
     w8.Position = 0;
     // Internal child Mono.Addins.Gui.AddinInfoDialog.ActionArea
     Gtk.HButtonBox w9 = this.ActionArea;
     w9.Name        = "dialog-action_area12";
     w9.Spacing     = 10;
     w9.BorderWidth = ((uint)(5));
     w9.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog-action_area12.Gtk.ButtonBox+ButtonBoxChild
     this.closebutton3              = new Gtk.Button();
     this.closebutton3.CanDefault   = true;
     this.closebutton3.CanFocus     = true;
     this.closebutton3.Name         = "closebutton3";
     this.closebutton3.UseStock     = true;
     this.closebutton3.UseUnderline = true;
     this.closebutton3.Label        = "gtk-close";
     this.AddActionWidget(this.closebutton3, -7);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget OpenVP.GtkGui.BrowsableEditor
     Stetic.BinContainer.Attach(this);
     this.Name = "OpenVP.GtkGui.BrowsableEditor";
     // Container child OpenVP.GtkGui.BrowsableEditor.Gtk.Container+ContainerChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.SheetPane          = new Gtk.ScrolledWindow();
     this.SheetPane.CanFocus = true;
     this.SheetPane.Name     = "SheetPane";
     this.vbox2.Add(this.SheetPane);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.SheetPane]));
     w1.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbuttonbox2             = new Gtk.HButtonBox();
     this.hbuttonbox2.Name        = "hbuttonbox2";
     this.hbuttonbox2.Homogeneous = true;
     this.hbuttonbox2.Spacing     = 6;
     this.hbuttonbox2.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.RevertButton              = new Gtk.Button();
     this.RevertButton.Sensitive    = false;
     this.RevertButton.CanFocus     = true;
     this.RevertButton.Name         = "RevertButton";
     this.RevertButton.UseStock     = true;
     this.RevertButton.UseUnderline = true;
     this.RevertButton.Label        = "gtk-revert-to-saved";
     this.hbuttonbox2.Add(this.RevertButton);
     Gtk.ButtonBox.ButtonBoxChild w2 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.RevertButton]));
     w2.Expand = false;
     w2.Fill   = false;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.ApplyButton              = new Gtk.Button();
     this.ApplyButton.Sensitive    = false;
     this.ApplyButton.CanFocus     = true;
     this.ApplyButton.Name         = "ApplyButton";
     this.ApplyButton.UseStock     = true;
     this.ApplyButton.UseUnderline = true;
     this.ApplyButton.Label        = "gtk-apply";
     this.hbuttonbox2.Add(this.ApplyButton);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.ApplyButton]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     this.vbox2.Add(this.hbuttonbox2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbuttonbox2]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.RevertButton.Clicked += new System.EventHandler(this.OnRevertButtonClicked);
     this.ApplyButton.Clicked  += new System.EventHandler(this.OnApplyButtonClicked);
 }
Beispiel #33
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Monsoon.CreateTorrentDialog
     this.Name           = "Monsoon.CreateTorrentDialog";
     this.Title          = Mono.Unix.Catalog.GetString("Create a torrent");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Internal child Monsoon.CreateTorrentDialog.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.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.vbox5         = new Gtk.VBox();
     this.vbox5.Name    = "vbox5";
     this.vbox5.Spacing = 6;
     // Container child vbox5.Gtk.Box+BoxChild
     this.selectFileHbox         = new Gtk.HBox();
     this.selectFileHbox.Name    = "selectFileHbox";
     this.selectFileHbox.Spacing = 6;
     // Container child selectFileHbox.Gtk.Box+BoxChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Path:");
     this.selectFileHbox.Add(this.label1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.selectFileHbox[this.label1]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     this.vbox5.Add(this.selectFileHbox);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox5[this.selectFileHbox]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox5.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.fileRadioButton               = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Single File"));
     this.fileRadioButton.CanFocus      = true;
     this.fileRadioButton.Name          = "fileRadioButton";
     this.fileRadioButton.Active        = true;
     this.fileRadioButton.DrawIndicator = true;
     this.fileRadioButton.UseUnderline  = true;
     this.fileRadioButton.Group         = new GLib.SList(System.IntPtr.Zero);
     this.table1.Add(this.fileRadioButton);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.fileRadioButton]));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.folderRadioButton               = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Folder"));
     this.folderRadioButton.CanFocus      = true;
     this.folderRadioButton.Name          = "folderRadioButton";
     this.folderRadioButton.DrawIndicator = true;
     this.folderRadioButton.UseUnderline  = true;
     this.folderRadioButton.Group         = this.fileRadioButton.Group;
     this.table1.Add(this.folderRadioButton);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.folderRadioButton]));
     w5.LeftAttach  = ((uint)(1));
     w5.RightAttach = ((uint)(2));
     w5.YOptions    = ((Gtk.AttachOptions)(4));
     this.vbox5.Add(this.table1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox5[this.table1]));
     w6.Position = 1;
     w6.Expand   = false;
     w6.Fill     = false;
     this.GtkAlignment2.Add(this.vbox5);
     this.frame1.Add(this.GtkAlignment2);
     this.GtkLabel2           = new Gtk.Label();
     this.GtkLabel2.Name      = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>Select source</b>");
     this.GtkLabel2.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel2;
     this.vbox2.Add(this.frame1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame1]));
     w9.Position = 0;
     w9.Expand   = false;
     w9.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.frame2            = new Gtk.Frame();
     this.frame2.Name       = "frame2";
     this.frame2.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame2.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.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.trackerEntry               = new Gtk.Entry();
     this.trackerEntry.CanFocus      = true;
     this.trackerEntry.Name          = "trackerEntry";
     this.trackerEntry.IsEditable    = true;
     this.trackerEntry.InvisibleChar = '●';
     this.vbox3.Add(this.trackerEntry);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox3[this.trackerEntry]));
     w10.Position = 0;
     w10.Expand   = false;
     w10.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.scrolledwindow1            = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus   = true;
     this.scrolledwindow1.Name       = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.trackerTreeView          = new Gtk.TreeView();
     this.trackerTreeView.CanFocus = true;
     this.trackerTreeView.Name     = "trackerTreeView";
     this.scrolledwindow1.Add(this.trackerTreeView);
     this.vbox3.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox3[this.scrolledwindow1]));
     w12.Position = 1;
     this.hbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3]));
     w13.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox4         = new Gtk.VBox();
     this.vbox4.Name    = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.addTrackerButton              = new Gtk.Button();
     this.addTrackerButton.Sensitive    = false;
     this.addTrackerButton.CanFocus     = true;
     this.addTrackerButton.Name         = "addTrackerButton";
     this.addTrackerButton.UseUnderline = true;
     // Container child addTrackerButton.Gtk.Container+ContainerChild
     Gtk.Alignment w14 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w15 = new Gtk.HBox();
     w15.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w16 = new Gtk.Image();
     w16.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16);
     w15.Add(w16);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w18 = new Gtk.Label();
     w18.LabelProp    = Mono.Unix.Catalog.GetString("Add");
     w18.UseUnderline = true;
     w15.Add(w18);
     w14.Add(w15);
     this.addTrackerButton.Add(w14);
     this.vbox4.Add(this.addTrackerButton);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox4[this.addTrackerButton]));
     w22.Position = 0;
     w22.Expand   = false;
     w22.Fill     = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.removeTrackerButton              = new Gtk.Button();
     this.removeTrackerButton.Sensitive    = false;
     this.removeTrackerButton.CanFocus     = true;
     this.removeTrackerButton.Name         = "removeTrackerButton";
     this.removeTrackerButton.UseUnderline = true;
     // Container child removeTrackerButton.Gtk.Container+ContainerChild
     Gtk.Alignment w23 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     Gtk.HBox w24 = new Gtk.HBox();
     w24.Spacing = 2;
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Image w25 = new Gtk.Image();
     w25.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-remove", Gtk.IconSize.Menu, 16);
     w24.Add(w25);
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Label w27 = new Gtk.Label();
     w27.LabelProp    = Mono.Unix.Catalog.GetString("Remove");
     w27.UseUnderline = true;
     w24.Add(w27);
     w23.Add(w24);
     this.removeTrackerButton.Add(w23);
     this.vbox4.Add(this.removeTrackerButton);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox4[this.removeTrackerButton]));
     w31.Position = 1;
     w31.Expand   = false;
     w31.Fill     = false;
     this.hbox2.Add(this.vbox4);
     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox4]));
     w32.Position = 1;
     w32.Expand   = false;
     w32.Fill     = false;
     this.GtkAlignment3.Add(this.hbox2);
     this.frame2.Add(this.GtkAlignment3);
     this.GtkLabel5           = new Gtk.Label();
     this.GtkLabel5.Name      = "GtkLabel5";
     this.GtkLabel5.LabelProp = Mono.Unix.Catalog.GetString("<b>Set a tracker</b>");
     this.GtkLabel5.UseMarkup = true;
     this.frame2.LabelWidget  = this.GtkLabel5;
     this.vbox2.Add(this.frame2);
     Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame2]));
     w35.Position = 1;
     // Container child vbox2.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.GtkAlignment4             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment4.Name        = "GtkAlignment4";
     this.GtkAlignment4.LeftPadding = ((uint)(12));
     // Container child GtkAlignment4.Gtk.Container+ContainerChild
     this.vbox6         = new Gtk.VBox();
     this.vbox6.Name    = "vbox6";
     this.vbox6.Spacing = 6;
     // Container child vbox6.Gtk.Box+BoxChild
     this.hbox4         = new Gtk.HBox();
     this.hbox4.Name    = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Comment:");
     this.hbox4.Add(this.label3);
     Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox4[this.label3]));
     w36.Position = 0;
     w36.Expand   = false;
     w36.Fill     = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.commentEntry               = new Gtk.Entry();
     this.commentEntry.CanFocus      = true;
     this.commentEntry.Name          = "commentEntry";
     this.commentEntry.IsEditable    = true;
     this.commentEntry.InvisibleChar = '●';
     this.hbox4.Add(this.commentEntry);
     Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.hbox4[this.commentEntry]));
     w37.Position = 1;
     this.vbox6.Add(this.hbox4);
     Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox4]));
     w38.Position = 0;
     w38.Expand   = false;
     w38.Fill     = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.hbox5         = new Gtk.HBox();
     this.hbox5.Name    = "hbox5";
     this.hbox5.Spacing = 6;
     // Container child hbox5.Gtk.Box+BoxChild
     this.startSeedingCheckBox               = new Gtk.CheckButton();
     this.startSeedingCheckBox.CanFocus      = true;
     this.startSeedingCheckBox.Name          = "startSeedingCheckBox";
     this.startSeedingCheckBox.Label         = Mono.Unix.Catalog.GetString("Start seeding");
     this.startSeedingCheckBox.Active        = true;
     this.startSeedingCheckBox.DrawIndicator = true;
     this.startSeedingCheckBox.UseUnderline  = true;
     this.hbox5.Add(this.startSeedingCheckBox);
     Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.hbox5[this.startSeedingCheckBox]));
     w39.Position = 0;
     this.vbox6.Add(this.hbox5);
     Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox5]));
     w40.Position = 1;
     w40.Expand   = false;
     w40.Fill     = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.hbox6         = new Gtk.HBox();
     this.hbox6.Name    = "hbox6";
     this.hbox6.Spacing = 6;
     // Container child hbox6.Gtk.Box+BoxChild
     this.hiddenFilesCheckBox               = new Gtk.CheckButton();
     this.hiddenFilesCheckBox.CanFocus      = true;
     this.hiddenFilesCheckBox.Name          = "hiddenFilesCheckBox";
     this.hiddenFilesCheckBox.Label         = Mono.Unix.Catalog.GetString("Ignore hidden files");
     this.hiddenFilesCheckBox.Active        = true;
     this.hiddenFilesCheckBox.DrawIndicator = true;
     this.hiddenFilesCheckBox.UseUnderline  = true;
     this.hbox6.Add(this.hiddenFilesCheckBox);
     Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.hbox6[this.hiddenFilesCheckBox]));
     w41.Position = 0;
     this.vbox6.Add(this.hbox6);
     Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox6]));
     w42.Position = 2;
     w42.Expand   = false;
     w42.Fill     = false;
     this.GtkAlignment4.Add(this.vbox6);
     this.frame3.Add(this.GtkAlignment4);
     this.GtkLabel8           = new Gtk.Label();
     this.GtkLabel8.Name      = "GtkLabel8";
     this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>Miscellaneous</b>");
     this.GtkLabel8.UseMarkup = true;
     this.frame3.LabelWidget  = this.GtkLabel8;
     this.vbox2.Add(this.frame3);
     Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame3]));
     w45.Position = 2;
     w45.Expand   = false;
     w45.Fill     = false;
     w1.Add(this.vbox2);
     Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
     w46.Position = 0;
     // Internal child Monsoon.CreateTorrentDialog.ActionArea
     Gtk.HButtonBox w47 = this.ActionArea;
     w47.Name        = "GtkDialog_ActionArea";
     w47.Spacing     = 6;
     w47.BorderWidth = ((uint)(5));
     w47.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child GtkDialog_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 w48 = ((Gtk.ButtonBox.ButtonBoxChild)(w47[this.buttonCancel]));
     w48.Expand = false;
     w48.Fill   = false;
     // Container child GtkDialog_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 w49 = ((Gtk.ButtonBox.ButtonBoxChild)(w47[this.buttonOk]));
     w49.Position = 1;
     w49.Expand   = false;
     w49.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 403;
     this.DefaultHeight = 438;
     this.Show();
     this.folderRadioButton.Toggled   += new System.EventHandler(this.OnFolderRadioButtonToggled);
     this.fileRadioButton.Toggled     += new System.EventHandler(this.OnFileRadioButtonToggled);
     this.trackerEntry.Changed        += new System.EventHandler(this.OnTrackerEntryChanged);
     this.addTrackerButton.Clicked    += new System.EventHandler(this.OnAddTrackerButtonClicked);
     this.removeTrackerButton.Clicked += new System.EventHandler(this.OnRemoveTrackerButtonClicked);
     this.buttonOk.Clicked            += new System.EventHandler(this.OnCreateButtonClicked);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget test.MainWin
     this.Name           = "test.MainWin";
     this.Title          = Mono.Unix.Catalog.GetString("MainWin");
     this.WindowPosition = ((Gtk.WindowPosition)(3));
     // Container child test.MainWin.Gtk.Container+ContainerChild
     this.notebook1             = new Gtk.Notebook();
     this.notebook1.CanFocus    = true;
     this.notebook1.Name        = "notebook1";
     this.notebook1.CurrentPage = 2;
     this.notebook1.Scrollable  = true;
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.vpaned1          = new Gtk.VPaned();
     this.vpaned1.CanFocus = true;
     this.vpaned1.Name     = "vpaned1";
     this.vpaned1.Position = 42;
     // Container child vpaned1.Gtk.Paned+PanedChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     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("<b>HTreeView</b>");
     this.label2.UseMarkup = true;
     this.vbox2.Add(this.label2);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.BtnTreeViewDemo              = new Gtk.Button();
     this.BtnTreeViewDemo.CanFocus     = true;
     this.BtnTreeViewDemo.Name         = "BtnTreeViewDemo";
     this.BtnTreeViewDemo.UseUnderline = true;
     this.BtnTreeViewDemo.Label        = Mono.Unix.Catalog.GetString("Start demo");
     this.vbox2.Add(this.BtnTreeViewDemo);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.BtnTreeViewDemo]));
     w2.Position = 1;
     w2.Expand   = false;
     w2.Fill     = false;
     this.vbox1.Add(this.vbox2);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbox2]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     this.vpaned1.Add(this.vbox1);
     Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.vbox1]));
     w4.Resize = false;
     // Container child vpaned1.Gtk.Paned+PanedChild
     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.textview1             = new Gtk.TextView();
     this.textview1.Buffer.Text = "using System;\nusing HollyLibrary;\nusing Gtk;\n\nnamespace test\n{\n\t\n\tpublic class TreeView : Window\n\t{\n\t\t//the tree widget\n\t\tHTreeView tree       = new HTreeView();\n\t\t//buttons\n\t\tButton BtnAddNode    = new Button(\"Add node\");\n\t\tButton BtnRemoveNode = new Button(\"Remove node\");\n\t\tButton BtnEditNode   = new Button(\"Edit node\");\n\t\t//checkboxes\n\t\tCheckButton ChkNodeIconVisible = new CheckButton(\"Node icon is visible\");\n\t\tCheckButton ChkCheckBoxTree    = new CheckButton(\"Tree is checkbox tree\");\n\t\tCheckButton ChkEditableTree    = new CheckButton(\"Tree is editable\");\n\t\t\n\t\tpublic TreeView() : base( WindowType.Toplevel )\n\t\t{\n\t\t\tthis.Title          = \"HTreeView demo\";\n\t\t\tthis.WindowPosition = Gtk.WindowPosition.CenterAlways;\n\t\t\tthis.Resize( 320, 240 );\n\t\t\t//\n\t\t\tinitGui();\n\t\t\t//button events\n\t\t\tBtnAddNode.Clicked         += OnBtnAddClicked;\n\t\t\tBtnEditNode.Clicked        += OnBtnEditClicked;\n\t\t\tBtnRemoveNode.Clicked      += OnBtnRemoveClicked;\n\t\t\t//checkbox events\n\t\t\tChkCheckBoxTree.Toggled    += OnCheckBoxChecked;\n\t\t\tChkEditableTree.Toggled    += OnEditableChecked;\n\t\t\tChkNodeIconVisible.Toggled += OnNodeIconChecked;\n\t\t\t//make the tree to show icons by default\n\t\t\tChkNodeIconVisible.Active   = true;\n\t\t\t\n\t\t}\n\t\t\n\t\tprivate void OnBtnAddClicked( object sender, EventArgs args )\n\t\t{\n\t\t\t//make a icon from a stock image\n\t\t\tGdk.Pixbuf icon = GraphUtil.pixbufFromStock(\"gtk-yes\", IconSize.Button );\n\t\t\t//create the new node\n\t\t\tHTreeNode node  = new HTreeNode( \"new node!\", icon );\n\t\t\t//check if there is a node selected\n\t\t\tHTreeNode selected_node = tree.SelectedNode;\n\t\t\t//if no node is selected, add the new node directly to the base\n\t\t\tif( selected_node == null )\n\t\t\t\ttree.Nodes.Add( node );\n\t\t\telse\n\t\t\t\tselected_node.Nodes.Add( node );\n\t\t}\n\t\t\n\t\tprivate void OnBtnEditClicked( object sender, EventArgs args )\n\t\t{\n\t\t\t//change the text/icon to the selected node\n\t\t\tHTreeNode node = tree.SelectedNode;\n\t\t\tif( node != null )\n\t\t\t{\n\t\t\t\tnode.Text = \"new and shiny modified value!\";\n\t\t\t\tnode.Icon = GraphUtil.pixbufFromStock(\"gtk-add\", IconSize.Button );\n\t\t\t}\n\t\t}\n\t\t\n\t\tprivate void OnBtnRemoveClicked( object sender, EventArgs args )\n\t\t{\n\t\t\t//remove the selected node\n\t\t\tHTreeNode node = tree.SelectedNode;\n\t\t\tif( node != null )\n\t\t\t{\n\t\t\t\tif( node.ParentNode == null )\n\t\t\t\t\ttree.Nodes.Remove( node );\n\t\t\t\telse\n\t\t\t\t\tnode.ParentNode.Nodes.Remove( node );\n\t\t\t}\n\t\t}\n\t\t\n\t\tprivate void OnCheckBoxChecked( object sender, EventArgs args )\n\t\t{\n\t\t\ttree.IsCheckBoxTree = ChkCheckBoxTree.Active;\n\t\t}\n\t\t\n\t\tprivate void OnEditableChecked( object sender, EventArgs args )\n\t\t{\n\t\t\ttree.Editable = ChkEditableTree.Active;\n\t\t}\n\t\t\n\t\tprivate void OnNodeIconChecked( object sender, EventArgs args )\n\t\t{\n\t\t\ttree.NodeIconVisible = ChkNodeIconVisible.Active;\n\t\t}\n\t\t\n\t\tprivate void initGui()\n\t\t{\n\t\t\t//create the layout\n\t\t\tVBox layout = new VBox();\n\t\t\t//add the treeview\n\t\t\tScrolledWindow swTree = new ScrolledWindow();\n\t\t\tswTree.AddWithViewport( tree );\n\t\t\tlayout.PackStart( swTree );\n\t\t\t//add the add/edit/remove buttons\n\t\t\tHBox hbox = new HBox();\n\t\t\thbox.PackStart  ( BtnAddNode    );\n\t\t\thbox.PackStart  ( BtnEditNode   );\n\t\t\thbox.PackStart  ( BtnRemoveNode );\n\t\t\tlayout.PackStart( hbox, false, true, 0 );\n\t\t\t//add the checkboxes\n\t\t\thbox      = new HBox();\n\t\t\thbox.PackStart  ( ChkNodeIconVisible );\n\t\t\thbox.PackStart  ( ChkCheckBoxTree    );\n\t\t\thbox.PackStart  ( ChkEditableTree    );\n\t\t\tlayout.PackStart( hbox, false, true, 0 );\n\t\t\t//add layout\n\t\t\tthis.Add( layout );\n\t\t}\n\t\t\n\t}\n}\n";
     this.textview1.CanFocus    = true;
     this.textview1.Name        = "textview1";
     this.textview1.Editable    = false;
     this.GtkScrolledWindow.Add(this.textview1);
     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>Code</b>");
     this.GtkLabel3.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel3;
     this.vpaned1.Add(this.frame1);
     this.notebook1.Add(this.vpaned1);
     // Notebook tab
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("HTreeView");
     this.notebook1.SetTabLabel(this.vpaned1, this.label1);
     this.label1.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.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("<b>HSimpleList</b>");
     this.label4.UseMarkup = true;
     this.vbox3.Add(this.label4);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox3[this.label4]));
     w10.Position = 0;
     w10.Expand   = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.BtnSimpleListDemo              = new Gtk.Button();
     this.BtnSimpleListDemo.CanFocus     = true;
     this.BtnSimpleListDemo.Name         = "BtnSimpleListDemo";
     this.BtnSimpleListDemo.UseUnderline = true;
     this.BtnSimpleListDemo.Label        = Mono.Unix.Catalog.GetString("Start demo");
     this.vbox3.Add(this.BtnSimpleListDemo);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox3[this.BtnSimpleListDemo]));
     w11.Position = 1;
     w11.Expand   = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.frame2            = new Gtk.Frame();
     this.frame2.Name       = "frame2";
     this.frame2.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame2.Gtk.Container+ContainerChild
     this.GtkAlignment4             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment4.Name        = "GtkAlignment4";
     this.GtkAlignment4.LeftPadding = ((uint)(12));
     // Container child GtkAlignment4.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.textview2             = new Gtk.TextView();
     this.textview2.Buffer.Text = "using Gtk;\nusing System;\nusing System.Drawing;\nusing System.Drawing.Drawing2D;\nusing HollyLibrary;\n\nnamespace test\n{\n\t\n\tpublic class SimpleList : Window\n\t{\n\t\t//the list widget\n\t\tHSimpleList list = new HSimpleList();\n\t\t//buttons\n\t\tButton BtnAdd    = new Button(\"Add item\");\n\t\tButton BtnRemove = new Button(\"Remove item\");\n\t\tButton BtnEdit   = new Button(\"Edit item\");\n\t\tButton BtnSort   = new Button(\"Sort\");\n\t\t//checkboxes\n\t\tCheckButton ChkOwnerDrawned   = new CheckButton(\"List is ownerdrawed\");\n\t\tCheckButton ChkIsCheckBoxList = new CheckButton(\"Checkbox list\");\n\t\t\n\t\tpublic SimpleList() : base( WindowType.Toplevel )\n\t\t{\n\t\t\tthis.Title          = \"HSimpleList demo\";\n\t\t\tthis.WindowPosition = Gtk.WindowPosition.CenterAlways;\n\t\t\tthis.Resize( 320, 240 );\n\t\t\t//\n\t\t\tinitGui();\n\t\t\t//button events\n\t\t\tBtnAdd.Clicked          += OnBtnAddClicked;\n\t\t\tBtnEdit.Clicked         += OnBtnEditClicked;\n\t\t\tBtnRemove.Clicked       += OnBtnRemoveClicked;\n\t\t\tBtnSort.Clicked         += OnBtnSortClicked;\n\t\t\t//checkbox events\n\t\t\tChkOwnerDrawned.Toggled   += OnOwnerDrawnedChecked;\n\t\t\tChkIsCheckBoxList.Toggled += OnIsCheckBoxListChecked;\n\t\t\t//ownerdrawned event\n\t\t\tlist.DrawItem           += OnItemDraw;\n\t\t}\n\t\t\n\t\tprivate void OnBtnSortClicked( object sender, EventArgs args )\n\t\t{\n\t\t\tlist.Sort();\n\t\t}\n\t\t\n\t\tprivate void OnBtnAddClicked( object sender, EventArgs args )\n\t\t{\n\t\t\t//add a list item\n\t\t\tlist.Items.Add(\"new item !\");\n\t\t}\n\t\t\n\t\tprivate void OnBtnEditClicked( object sender, EventArgs args )\n\t\t{\n\t\t\t//change the current selected item's text\n\t\t\tif( list.SelectedIndex != -1 )\n\t\t\t{\n\t\t\t\tlist.Items[ list.SelectedIndex ] = \"i'm modified\";\n\t\t\t}\n\t\t}\n\t\t\n\t\tprivate void OnBtnRemoveClicked( object sender, EventArgs args )\n\t\t{\n\t\t\t//remove the selected item\n\t\t\tif( list.SelectedIndex != -1 )\n\t\t\t\tlist.Items.RemoveAt( list.SelectedIndex );\n\t\t\t\n\t\t}\n\t\t\n\t\tprivate void OnOwnerDrawnedChecked( object sender, EventArgs args )\n\t\t{\n\t\t\tlist.OwnerDraw      = ChkOwnerDrawned.Active;\n\t\t}\n\t\t\n\t\tprivate void OnIsCheckBoxListChecked( object sender, EventArgs args )\n\t\t{\n\t\t\tlist.IsCheckBoxList = ChkIsCheckBoxList.Active;\n\t\t}\n\t\t\n\t\tprivate void OnItemDraw( object sender, DrawItemEventArgs args )\n\t\t{\n\t\t\tString text      = list.Items[ args.ItemIndex ].ToString();\n\t\t\t//take font from style\n\t\t\tFont font        = new Font( Style.FontDesc.Family , Style.FontDesc.Size / 1000, FontStyle.Bold );\n\t\t\t\n\t\t\t// take color from style\n\t\t\tColor c          = Color.Blue;\n\t\t\tif( args.ItemIndex % 2 == 0 ) c = Color.Red;\n\t\t\t\n\t\t\tBrush b          = new SolidBrush( c );\n\t\t\t//set quality to HighSpeed\n\t\t\targs.Graphics.CompositingQuality = CompositingQuality.HighSpeed;\n\t\t\targs.Graphics.DrawString( text, font, b, args.CellArea.X, args.CellArea.Y );\n\t\t\targs.Graphics.Dispose();\n\t\t}\n\t\t\n\t\tprivate void initGui()\n\t\t{\n\t\t\t//create the layout\n\t\t\tVBox layout       = new VBox();\n\t\t\t//add the list\n\t\t\tScrolledWindow sw = new ScrolledWindow();\n\t\t\tsw.AddWithViewport( list );\n\t\t\tlayout.PackStart  ( sw   );\n\t\t\t//add the add/edit/remove buttons\n\t\t\tHBox hbox = new HBox();\n\t\t\thbox.PackStart  ( BtnAdd    );\n\t\t\thbox.PackStart  ( BtnEdit   );\n\t\t\thbox.PackStart  ( BtnRemove );\n\t\t\thbox.PackStart  ( BtnSort   );\n\t\t\tlayout.PackStart( hbox, false, true, 0 );\n\t\t\t//add the checkboxes\n\t\t\thbox = new HBox();\n\t\t\thbox.PackStart( ChkOwnerDrawned  , true, true, 0 );\n\t\t\thbox.PackStart( ChkIsCheckBoxList, true, true, 0 );\n\t\t\t//\n\t\t\tlayout.PackStart( hbox, false, true, 0 );\n\t\t\t//add layout\n\t\t\tthis.Add( layout );\n\t\t}\n\t\t\n\t}\n}\n";
     this.textview2.CanFocus    = true;
     this.textview2.Name        = "textview2";
     this.textview2.Editable    = false;
     this.GtkScrolledWindow1.Add(this.textview2);
     this.GtkAlignment4.Add(this.GtkScrolledWindow1);
     this.frame2.Add(this.GtkAlignment4);
     this.GtkLabel4           = new Gtk.Label();
     this.GtkLabel4.Name      = "GtkLabel4";
     this.GtkLabel4.LabelProp = Mono.Unix.Catalog.GetString("<b>Code</b>");
     this.GtkLabel4.UseMarkup = true;
     this.frame2.LabelWidget  = this.GtkLabel4;
     this.vbox3.Add(this.frame2);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox3[this.frame2]));
     w15.Position = 2;
     this.notebook1.Add(this.vbox3);
     Gtk.Notebook.NotebookChild w16 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox3]));
     w16.Position = 1;
     // Notebook tab
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("HSimpleList");
     this.notebook1.SetTabLabel(this.vbox3, this.label3);
     this.label3.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("<b>HSimpleComboBox</b>");
     this.label6.UseMarkup = true;
     this.vbox4.Add(this.label6);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox4[this.label6]));
     w17.Position = 0;
     w17.Expand   = false;
     w17.Fill     = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.BtnStartComboDemo              = new Gtk.Button();
     this.BtnStartComboDemo.CanFocus     = true;
     this.BtnStartComboDemo.Name         = "BtnStartComboDemo";
     this.BtnStartComboDemo.UseUnderline = true;
     this.BtnStartComboDemo.Label        = Mono.Unix.Catalog.GetString("Start demo");
     this.vbox4.Add(this.BtnStartComboDemo);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox4[this.BtnStartComboDemo]));
     w18.Position = 1;
     w18.Expand   = false;
     w18.Fill     = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.GtkScrolledWindow2            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow2.Name       = "GtkScrolledWindow2";
     this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
     this.textview3             = new Gtk.TextView();
     this.textview3.Buffer.Text = "using Gtk;\nusing System;\nusing System.Drawing;\nusing System.Drawing.Drawing2D;\nusing HollyLibrary;\n\nnamespace test\n{\n\t\n\tpublic class SimpleComboBox : Window\n\t{\n\t\t//the list widget\n\t\tHSimpleComboBox cmb = new HSimpleComboBox();\n\t\t//buttons\n\t\tButton BtnAdd    = new Button(\"Add item\");\n\t\tButton BtnRemove = new Button(\"Remove last item\");\n\t\tButton BtnEdit   = new Button(\"Edit last item\");\n\t\t//checkboxes\n\t\tCheckButton ChkOwnerDrawned = new CheckButton(\"Popup list is ownerdrawed\");\n\t\tCheckButton ChkEditable     = new CheckButton(\"Editable combo\");\n\t\t\n\t\tpublic SimpleComboBox() : base( WindowType.Toplevel )\n\t\t{\n\t\t\tthis.Title          = \"SimpleComboBox demo\";\n\t\t\tthis.WindowPosition = Gtk.WindowPosition.CenterAlways;\n\t\t\tthis.Resize( 320, 240 );\n\t\t\t//\n\t\t\tinitGui();\n\t\t\t//button events\n\t\t\tBtnAdd.Clicked          += OnBtnAddClicked;\n\t\t\tBtnEdit.Clicked         += OnBtnEditClicked;\n\t\t\tBtnRemove.Clicked       += OnBtnRemoveClicked;\n\t\t\t//checkbox events\n\t\t\tChkOwnerDrawned.Toggled += OnOwnerDrawnedChecked;\n\t\t\tChkEditable.Toggled     += OnEditableChecked;\n\t\t\t//ownerdrawned event\n\t\t\tcmb.List.DrawItem       += OnItemDraw;\n\t\t}\n\t\t\n\t\tprivate void OnBtnAddClicked( object sender, EventArgs args )\n\t\t{\n\t\t\t//add a list item\n\t\t\tcmb.List.Items.Add(\"new item !\");\n\t\t}\n\t\t\n\t\tprivate void OnBtnEditClicked( object sender, EventArgs args )\n\t\t{\n\t\t\t//change the last item's text\n\t\t\tif( cmb.List.Items.Count > 0 )\n\t\t\t{\n\t\t\t\tcmb.List.Items[ cmb.List.Items.Count - 1 ] = \"i'm modified\";\n\t\t\t}\n\t\t}\n\t\t\n\t\tprivate void OnBtnRemoveClicked( object sender, EventArgs args )\n\t\t{\n\t\t\t//remove the selected item\n\t\t\tif( cmb.List.Items.Count > 0 )\n\t\t\t\tcmb.List.Items.RemoveAt( cmb.List.Items.Count - 1 );\n\t\t\t\n\t\t}\n\t\t\n\t\tprivate void OnEditableChecked( object sender, EventArgs args )\n\t\t{\n\t\t\tcmb.IsEditable = ChkEditable.Active;\n\t\t}\n\t\t\n\t\tprivate void OnOwnerDrawnedChecked( object sender, EventArgs args )\n\t\t{\n\t\t\tcmb.List.OwnerDraw      = ChkOwnerDrawned.Active;\n\t\t}\n\t\t\n\t\tprivate void OnItemDraw( object sender, DrawItemEventArgs args )\n\t\t{\n\t\t\tString text      = cmb.List.Items[ args.ItemIndex ].ToString();\n\t\t\t//take font from style\n\t\t\tFont font        = new Font( Style.FontDesc.Family , Style.FontDesc.Size / 1000, FontStyle.Bold );\n\t\t\t\n\t\t\t// take color from style\n\t\t\tColor c          = Color.Blue;\n\t\t\tif( args.ItemIndex % 2 == 0 ) c = Color.Red;\n\t\t\t\n\t\t\tBrush b          = new SolidBrush( c );\n\t\t\t//set quality to HighSpeed\n\t\t\targs.Graphics.CompositingQuality = CompositingQuality.HighSpeed;\n\t\t\targs.Graphics.DrawString( text, font, b, args.CellArea.X, args.CellArea.Y );\n\t\t\targs.Graphics.Dispose();\n\t\t}\n\t\t\n\t\tprivate void initGui()\n\t\t{\n\t\t\t//create the layout\n\t\t\tVBox layout       = new VBox();\n\t\t\t//add the combo\n\t\t\tlayout.PackStart( cmb, false, false, 2);\n\t\t\t//add the add/edit/remove buttons\n\t\t\tHBox hbox = new HBox();\n\t\t\thbox.PackStart  ( BtnAdd    );\n\t\t\thbox.PackStart  ( BtnEdit   );\n\t\t\thbox.PackStart  ( BtnRemove );\n\t\t\tlayout.PackStart( hbox, false, true, 0 );\n\t\t\t//add the checkbox\n\t\t\thbox      = new HBox();\n\t\t\thbox.PackStart( ChkOwnerDrawned );\n\t\t\thbox.PackStart( ChkEditable     );\n\t\t\tlayout.PackStart( hbox, false, true, 0 );\n\t\t\t//add layout\n\t\t\tthis.Add( layout );\n\t\t}\n\t\t\n\t}\n}\n";
     this.textview3.CanFocus    = true;
     this.textview3.Name        = "textview3";
     this.GtkScrolledWindow2.Add(this.textview3);
     this.vbox4.Add(this.GtkScrolledWindow2);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox4[this.GtkScrolledWindow2]));
     w20.Position = 2;
     this.notebook1.Add(this.vbox4);
     Gtk.Notebook.NotebookChild w21 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox4]));
     w21.Position = 2;
     // Notebook tab
     this.label5           = new Gtk.Label();
     this.label5.Name      = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("HSimpleComboBox");
     this.notebook1.SetTabLabel(this.vbox4, this.label5);
     this.label5.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.vbox5         = new Gtk.VBox();
     this.vbox5.Name    = "vbox5";
     this.vbox5.Spacing = 6;
     // Container child vbox5.Gtk.Box+BoxChild
     this.label14           = new Gtk.Label();
     this.label14.Name      = "label14";
     this.label14.LabelProp = Mono.Unix.Catalog.GetString("<b>HComboTree</b>");
     this.label14.UseMarkup = true;
     this.vbox5.Add(this.label14);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox5[this.label14]));
     w22.Position = 0;
     w22.Expand   = false;
     w22.Fill     = false;
     // Container child vbox5.Gtk.Box+BoxChild
     this.ComboTreeDemo              = new Gtk.Button();
     this.ComboTreeDemo.CanFocus     = true;
     this.ComboTreeDemo.Name         = "ComboTreeDemo";
     this.ComboTreeDemo.UseUnderline = true;
     this.ComboTreeDemo.Label        = Mono.Unix.Catalog.GetString("Start demo");
     this.vbox5.Add(this.ComboTreeDemo);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox5[this.ComboTreeDemo]));
     w23.Position = 1;
     w23.Expand   = false;
     w23.Fill     = false;
     // Container child vbox5.Gtk.Box+BoxChild
     this.GtkScrolledWindow3            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow3.Name       = "GtkScrolledWindow3";
     this.GtkScrolledWindow3.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow3.Gtk.Container+ContainerChild
     this.TxtComboTree             = new Gtk.TextView();
     this.TxtComboTree.Buffer.Text = "using Gtk;\nusing System;\nusing System.Drawing;\nusing System.Drawing.Drawing2D;\nusing HollyLibrary;\n\nnamespace test\n{\n\t\n\tpublic class ComboTree : Window\n\t{\n\t\t//the combotree widget\n\t\tHComboTree cmb     = new HComboTree();\n\t\t//buttons\n\t\tButton BtnAdd      = new Button( \"Add node\"       );\n\t\tButton BtnAddChild = new Button( \"Add child node\" );\n\t\tButton BtnRemove   = new Button( \"Remove node\"    );\n\t\t//checkboxes\n\t\tCheckButton ChkShowIcon = new CheckButton(\"Show tree icons\");\n\t\tCheckButton ChkEditable = new CheckButton(\"Editable tree items\");\n\t\t\n\t\tpublic ComboTree() : base( WindowType.Toplevel )\n\t\t{\n\t\t\tthis.Title          = \"SimpleComboBox demo\";\n\t\t\tthis.WindowPosition = Gtk.WindowPosition.CenterAlways;\n\t\t\tthis.Resize( 320, 240 );\n\t\t\t//\n\t\t\tinitGui();\n\t\t\t//button events\n\t\t\tBtnAdd.Clicked          += OnBtnAddClicked;\n\t\t\tBtnAddChild.Clicked     += OnBtnAddChildClicked;\n\t\t\tBtnRemove.Clicked       += OnBtnRemoveClicked;\n\t\t\t//checkbox events\n\t\t\tChkShowIcon.Toggled     += OnShowIconChecked;\n\t\t\tChkEditable.Toggled     += OnEditableChecked;\n\t\t}\n\t\t\n\t\tprivate void OnBtnAddClicked( object sender, EventArgs args )\n\t\t{\n\t\t\t//add a list item\n\t\t\tGdk.Pixbuf icon = GraphUtil.pixbufFromStock(\"gtk-add\", IconSize.Button );\n\t\t\tint node_nr     = cmb.Tree.Nodes.Count;\n\t\t\tcmb.Tree.Nodes.Add( new HTreeNode( \"node \" + node_nr , icon ) );\n\t\t}\n\t\t\n\t\tprivate void OnBtnAddChildClicked( object sender, EventArgs args )\n\t\t{\n\t\t\t//add a new child node\n\t\t\tif( cmb.Tree.SelectedNode != null )\n\t\t\t{\n\t\t\t\tHTreeNode father_node = cmb.Tree.SelectedNode;\n\t\t\t\tGdk.Pixbuf icon       = GraphUtil.pixbufFromStock(\"gtk-remove\", IconSize.Button );\n\t\t\t\tHTreeNode new_node    = new HTreeNode(\"gigi kent\", icon );\n\t\t\t\tfather_node.Nodes.Add( new_node );\n\t\t\t}\n\t\t}\n\t\t\n\t\tprivate void OnBtnRemoveClicked( object sender, EventArgs args )\n\t\t{\n\t\t\t//remove the selected node\n\t\t\tHTreeNode node = cmb.Tree.SelectedNode;\n\t\t\tif( node != null )\n\t\t\t{\n\t\t\t\tHTreeNode parent_node = node.ParentNode;\n\t\t\t\tif( parent_node == null )\n\t\t\t\t\tcmb.Tree.Nodes.Remove( node );\n\t\t\t\telse\n\t\t\t\t\tparent_node.Nodes.Remove( node );\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tprivate void OnEditableChecked( object sender, EventArgs args )\n\t\t{\n\t\t\tcmb.Tree.Editable        = ChkEditable.Active;\n\t\t}\n\t\t\n\t\tprivate void OnShowIconChecked( object sender, EventArgs args )\n\t\t{\n\t\t\tcmb.Tree.NodeIconVisible = ChkShowIcon.Active;\n\t\t}\n\t\t\n\t\tprivate void initGui()\n\t\t{\n\t\t\t//create the layout\n\t\t\tVBox layout       = new VBox();\n\t\t\t//add the combo\n\t\t\tlayout.PackStart( cmb, false, false, 2);\n\t\t\t//add the add/edit/remove buttons\n\t\t\tHBox hbox = new HBox();\n\t\t\thbox.PackStart  ( BtnAdd    );\n\t\t\thbox.PackStart  ( BtnAddChild   );\n\t\t\thbox.PackStart  ( BtnRemove );\n\t\t\tlayout.PackStart( hbox, false, true, 0 );\n\t\t\t//add the checkbox\n\t\t\thbox      = new HBox();\n\t\t\thbox.PackStart( ChkShowIcon );\n\t\t\thbox.PackStart( ChkEditable );\n\t\t\tlayout.PackStart( hbox, false, true, 0 );\n\t\t\t//add layout\n\t\t\tthis.Add( layout );\n\t\t}\n\t\t\n\t}\n}\n";
     this.TxtComboTree.CanFocus    = true;
     this.TxtComboTree.Name        = "TxtComboTree";
     this.GtkScrolledWindow3.Add(this.TxtComboTree);
     this.vbox5.Add(this.GtkScrolledWindow3);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox5[this.GtkScrolledWindow3]));
     w25.Position = 2;
     this.notebook1.Add(this.vbox5);
     Gtk.Notebook.NotebookChild w26 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox5]));
     w26.Position = 3;
     // Notebook tab
     this.label9           = new Gtk.Label();
     this.label9.Name      = "label9";
     this.label9.LabelProp = Mono.Unix.Catalog.GetString("HComboTree");
     this.notebook1.SetTabLabel(this.vbox5, this.label9);
     this.label9.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.vbox6         = new Gtk.VBox();
     this.vbox6.Name    = "vbox6";
     this.vbox6.Spacing = 6;
     // Container child vbox6.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.GtkAlignment8             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment8.Name        = "GtkAlignment8";
     this.GtkAlignment8.LeftPadding = ((uint)(12));
     // Container child GtkAlignment8.Gtk.Container+ContainerChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.ColorPicker = new HollyLibrary.HColorPicker();
     this.ColorPicker.WidthRequest = 108;
     this.ColorPicker.Events       = ((Gdk.EventMask)(256));
     this.ColorPicker.Name         = "ColorPicker";
     this.hbox2.Add(this.ColorPicker);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox2[this.ColorPicker]));
     w27.Position = 0;
     w27.Expand   = false;
     this.GtkAlignment8.Add(this.hbox2);
     this.frame3.Add(this.GtkAlignment8);
     this.GtkLabel6           = new Gtk.Label();
     this.GtkLabel6.Name      = "GtkLabel6";
     this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>HColorPicker</b>");
     this.GtkLabel6.UseMarkup = true;
     this.frame3.LabelWidget  = this.GtkLabel6;
     this.vbox6.Add(this.frame3);
     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame3]));
     w30.Position = 0;
     w30.Expand   = false;
     w30.Fill     = false;
     // Container child vbox6.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.GtkAlignment1             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment1.Name        = "GtkAlignment1";
     this.GtkAlignment1.LeftPadding = ((uint)(12));
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     this.hcombofolder1                = new HollyLibrary.HComboFolder();
     this.hcombofolder1.Events         = ((Gdk.EventMask)(256));
     this.hcombofolder1.Name           = "hcombofolder1";
     this.hcombofolder1.DropDownHeight = 0;
     this.GtkAlignment1.Add(this.hcombofolder1);
     this.frame4.Add(this.GtkAlignment1);
     this.GtkLabel7           = new Gtk.Label();
     this.GtkLabel7.Name      = "GtkLabel7";
     this.GtkLabel7.LabelProp = Mono.Unix.Catalog.GetString("<b>HComboFolder</b>");
     this.GtkLabel7.UseMarkup = true;
     this.frame4.LabelWidget  = this.GtkLabel7;
     this.vbox6.Add(this.frame4);
     Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame4]));
     w33.Position = 1;
     w33.Expand   = false;
     w33.Fill     = false;
     // Container child vbox6.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.GtkAlignment2             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment2.Name        = "GtkAlignment2";
     this.GtkAlignment2.LeftPadding = ((uint)(12));
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     this.hdateedit2             = new HollyLibrary.HDateEdit();
     this.hdateedit2.Events      = ((Gdk.EventMask)(256));
     this.hdateedit2.Name        = "hdateedit2";
     this.hdateedit2.CurrentDate = new System.DateTime(0);
     this.GtkAlignment2.Add(this.hdateedit2);
     this.frame5.Add(this.GtkAlignment2);
     this.GtkLabel8           = new Gtk.Label();
     this.GtkLabel8.Name      = "GtkLabel8";
     this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>HDateEdit</b>");
     this.GtkLabel8.UseMarkup = true;
     this.frame5.LabelWidget  = this.GtkLabel8;
     this.vbox6.Add(this.frame5);
     Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame5]));
     w36.Position = 2;
     w36.Expand   = false;
     w36.Fill     = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.frame6            = new Gtk.Frame();
     this.frame6.Name       = "frame6";
     this.frame6.ShadowType = ((Gtk.ShadowType)(1));
     // Container child frame6.Gtk.Container+ContainerChild
     this.GtkAlignment5             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment5.Name        = "GtkAlignment5";
     this.GtkAlignment5.LeftPadding = ((uint)(12));
     // Container child GtkAlignment5.Gtk.Container+ContainerChild
     this.hfontpicker1        = new HollyLibrary.HFontPicker();
     this.hfontpicker1.Events = ((Gdk.EventMask)(256));
     this.hfontpicker1.Name   = "hfontpicker1";
     this.GtkAlignment5.Add(this.hfontpicker1);
     this.frame6.Add(this.GtkAlignment5);
     this.GtkLabel9           = new Gtk.Label();
     this.GtkLabel9.Name      = "GtkLabel9";
     this.GtkLabel9.LabelProp = Mono.Unix.Catalog.GetString("<b>HFontPicker</b>");
     this.GtkLabel9.UseMarkup = true;
     this.frame6.LabelWidget  = this.GtkLabel9;
     this.vbox6.Add(this.frame6);
     Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame6]));
     w39.Position = 3;
     w39.Expand   = false;
     w39.Fill     = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.frame7            = new Gtk.Frame();
     this.frame7.Name       = "frame7";
     this.frame7.ShadowType = ((Gtk.ShadowType)(1));
     // Container child frame7.Gtk.Container+ContainerChild
     this.GtkAlignment6             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment6.Name        = "GtkAlignment6";
     this.GtkAlignment6.LeftPadding = ((uint)(12));
     // Container child GtkAlignment6.Gtk.Container+ContainerChild
     this.hipentry1              = new HollyLibrary.HIpEntry();
     this.hipentry1.Events       = ((Gdk.EventMask)(256));
     this.hipentry1.Name         = "hipentry1";
     this.hipentry1.ErrorMessage = "My customised error message";
     this.GtkAlignment6.Add(this.hipentry1);
     this.frame7.Add(this.GtkAlignment6);
     this.GtkLabel10           = new Gtk.Label();
     this.GtkLabel10.Name      = "GtkLabel10";
     this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>HIpEntry</b>");
     this.GtkLabel10.UseMarkup = true;
     this.frame7.LabelWidget   = this.GtkLabel10;
     this.vbox6.Add(this.frame7);
     Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame7]));
     w42.Position = 4;
     w42.Expand   = false;
     w42.Fill     = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.frame8            = new Gtk.Frame();
     this.frame8.Name       = "frame8";
     this.frame8.ShadowType = ((Gtk.ShadowType)(1));
     // Container child frame8.Gtk.Container+ContainerChild
     this.GtkAlignment7             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment7.Name        = "GtkAlignment7";
     this.GtkAlignment7.LeftPadding = ((uint)(12));
     // Container child GtkAlignment7.Gtk.Container+ContainerChild
     this.vbox7         = new Gtk.VBox();
     this.vbox7.Name    = "vbox7";
     this.vbox7.Spacing = 6;
     // Container child vbox7.Gtk.Box+BoxChild
     this.RegExEntry              = new HollyLibrary.HRegExEntry();
     this.RegExEntry.Events       = ((Gdk.EventMask)(256));
     this.RegExEntry.Name         = "RegExEntry";
     this.RegExEntry.OkMessage    = "My customised ok message";
     this.RegExEntry.ErrorMessage = "A custom error message";
     this.vbox7.Add(this.RegExEntry);
     Gtk.Box.BoxChild w43 = ((Gtk.Box.BoxChild)(this.vbox7[this.RegExEntry]));
     w43.Position = 0;
     w43.Expand   = false;
     w43.Fill     = false;
     // Container child vbox7.Gtk.Box+BoxChild
     this.hbox13         = new Gtk.HBox();
     this.hbox13.Name    = "hbox13";
     this.hbox13.Spacing = 6;
     // Container child hbox13.Gtk.Box+BoxChild
     this.label12           = new Gtk.Label();
     this.label12.Name      = "label12";
     this.label12.LabelProp = Mono.Unix.Catalog.GetString("Regular expression used:");
     this.hbox13.Add(this.label12);
     Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(this.hbox13[this.label12]));
     w44.Position = 0;
     w44.Expand   = false;
     w44.Fill     = false;
     // Container child hbox13.Gtk.Box+BoxChild
     this.TxtRegularExpresion               = new Gtk.Entry();
     this.TxtRegularExpresion.CanFocus      = true;
     this.TxtRegularExpresion.Name          = "TxtRegularExpresion";
     this.TxtRegularExpresion.Text          = Mono.Unix.Catalog.GetString("\\d{3}-\\d{2}-\\d{4}");
     this.TxtRegularExpresion.IsEditable    = true;
     this.TxtRegularExpresion.InvisibleChar = '●';
     this.hbox13.Add(this.TxtRegularExpresion);
     Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(this.hbox13[this.TxtRegularExpresion]));
     w45.Position = 1;
     // Container child hbox13.Gtk.Box+BoxChild
     this.BtnApplyRegex              = new Gtk.Button();
     this.BtnApplyRegex.CanFocus     = true;
     this.BtnApplyRegex.Name         = "BtnApplyRegex";
     this.BtnApplyRegex.UseStock     = true;
     this.BtnApplyRegex.UseUnderline = true;
     this.BtnApplyRegex.Label        = "gtk-apply";
     this.hbox13.Add(this.BtnApplyRegex);
     Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.hbox13[this.BtnApplyRegex]));
     w46.Position = 2;
     w46.Expand   = false;
     w46.Fill     = false;
     this.vbox7.Add(this.hbox13);
     Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox13]));
     w47.Position = 1;
     w47.Expand   = false;
     w47.Fill     = false;
     this.GtkAlignment7.Add(this.vbox7);
     this.frame8.Add(this.GtkAlignment7);
     this.GtkLabel12           = new Gtk.Label();
     this.GtkLabel12.Name      = "GtkLabel12";
     this.GtkLabel12.LabelProp = Mono.Unix.Catalog.GetString("<b>HRegExEntry</b>");
     this.GtkLabel12.UseMarkup = true;
     this.frame8.LabelWidget   = this.GtkLabel12;
     this.vbox6.Add(this.frame8);
     Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame8]));
     w50.Position = 5;
     w50.Expand   = false;
     w50.Fill     = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.BtnToolTip              = new Gtk.Button();
     this.BtnToolTip.CanFocus     = true;
     this.BtnToolTip.Name         = "BtnToolTip";
     this.BtnToolTip.UseUnderline = true;
     // Container child BtnToolTip.Gtk.Container+ContainerChild
     Gtk.Alignment w51 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w52 = new Gtk.HBox();
     w52.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w53 = new Gtk.Image();
     w53.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-about", Gtk.IconSize.Menu, 16);
     w52.Add(w53);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w55 = new Gtk.Label();
     w55.LabelProp    = Mono.Unix.Catalog.GetString("Look ! I have a baloon tooltip over me!");
     w55.UseUnderline = true;
     w52.Add(w55);
     w51.Add(w52);
     this.BtnToolTip.Add(w51);
     this.vbox6.Add(this.BtnToolTip);
     Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(this.vbox6[this.BtnToolTip]));
     w59.Position = 6;
     w59.Expand   = false;
     w59.Fill     = false;
     this.notebook1.Add(this.vbox6);
     Gtk.Notebook.NotebookChild w60 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox6]));
     w60.Position = 4;
     // Notebook tab
     this.label11           = new Gtk.Label();
     this.label11.Name      = "label11";
     this.label11.LabelProp = Mono.Unix.Catalog.GetString("Other widgets");
     this.notebook1.SetTabLabel(this.vbox6, this.label11);
     this.label11.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.hbox14         = new Gtk.HBox();
     this.hbox14.Name    = "hbox14";
     this.hbox14.Spacing = 6;
     // Container child hbox14.Gtk.Box+BoxChild
     this.vbox8         = new Gtk.VBox();
     this.vbox8.Name    = "vbox8";
     this.vbox8.Spacing = 6;
     // Container child vbox8.Gtk.Box+BoxChild
     this.hcolorpickerwidget1        = new HollyLibrary.HColorPickerWidget();
     this.hcolorpickerwidget1.Events = ((Gdk.EventMask)(256));
     this.hcolorpickerwidget1.Name   = "hcolorpickerwidget1";
     this.vbox8.Add(this.hcolorpickerwidget1);
     Gtk.Box.BoxChild w61 = ((Gtk.Box.BoxChild)(this.vbox8[this.hcolorpickerwidget1]));
     w61.Position = 0;
     this.hbox14.Add(this.vbox8);
     Gtk.Box.BoxChild w62 = ((Gtk.Box.BoxChild)(this.hbox14[this.vbox8]));
     w62.Position = 0;
     this.notebook1.Add(this.hbox14);
     Gtk.Notebook.NotebookChild w63 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.hbox14]));
     w63.Position = 5;
     this.Add(this.notebook1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 623;
     this.DefaultHeight = 523;
     this.Show();
     this.DeleteEvent               += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.BtnTreeViewDemo.Clicked   += new System.EventHandler(this.OnBtnTreeViewDemoClicked);
     this.BtnSimpleListDemo.Clicked += new System.EventHandler(this.OnBtnSimpleListDemoClicked);
     this.BtnStartComboDemo.Clicked += new System.EventHandler(this.OnBtnStartComboDemoClicked);
     this.ComboTreeDemo.Clicked     += new System.EventHandler(this.OnComboTreeDemoClicked);
     this.BtnApplyRegex.Clicked     += new System.EventHandler(this.OnBtnApplyRegexClicked);
 }
Beispiel #35
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget PanelWindow
     this.Name           = "PanelWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Moonlight Desklets Panel");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     // Container child PanelWindow.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.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.SearchLabel           = new Gtk.Label();
     this.SearchLabel.Name      = "SearchLabel";
     this.SearchLabel.LabelProp = Mono.Unix.Catalog.GetString("Search:");
     this.hbox2.Add(this.SearchLabel);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox2[this.SearchLabel]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.SearchEntry      = new Gtk.ComboBoxEntry();
     this.SearchEntry.Name = "SearchEntry";
     this.hbox2.Add(this.SearchEntry);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox2[this.SearchEntry]));
     w2.Position = 1;
     w2.Expand   = false;
     w2.Fill     = false;
     this.vbox2.Add(this.hbox2);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.DeskletsScrolledWindow            = new Gtk.ScrolledWindow();
     this.DeskletsScrolledWindow.CanFocus   = true;
     this.DeskletsScrolledWindow.Name       = "DeskletsScrolledWindow";
     this.DeskletsScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child DeskletsScrolledWindow.Gtk.Container+ContainerChild
     this.DeskletsView          = new Gtk.TreeView();
     this.DeskletsView.CanFocus = true;
     this.DeskletsView.Name     = "DeskletsView";
     this.DeskletsScrolledWindow.Add(this.DeskletsView);
     this.vbox2.Add(this.DeskletsScrolledWindow);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.DeskletsScrolledWindow]));
     w5.Position = 1;
     // Container child vbox2.Gtk.Box+BoxChild
     this.DetailsExpander          = new Gtk.Expander(null);
     this.DetailsExpander.CanFocus = true;
     this.DetailsExpander.Name     = "DetailsExpander";
     // Container child DetailsExpander.Gtk.Container+ContainerChild
     this.DetailsLabel           = new Gtk.Label();
     this.DetailsLabel.Name      = "DetailsLabel";
     this.DetailsLabel.LabelProp = "";
     this.DetailsExpander.Add(this.DetailsLabel);
     this.GtkLabel                    = new Gtk.Label();
     this.GtkLabel.Name               = "GtkLabel";
     this.GtkLabel.LabelProp          = Mono.Unix.Catalog.GetString("Show details");
     this.GtkLabel.UseUnderline       = true;
     this.DetailsExpander.LabelWidget = this.GtkLabel;
     this.vbox2.Add(this.DetailsExpander);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.DetailsExpander]));
     w7.Position = 2;
     w7.Expand   = false;
     w7.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.ActionButtonBox             = new Gtk.HButtonBox();
     this.ActionButtonBox.Name        = "ActionButtonBox";
     this.ActionButtonBox.Spacing     = 6;
     this.ActionButtonBox.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child ActionButtonBox.Gtk.ButtonBox+ButtonBoxChild
     this.HelpButton              = new Gtk.Button();
     this.HelpButton.CanFocus     = true;
     this.HelpButton.Name         = "HelpButton";
     this.HelpButton.UseStock     = true;
     this.HelpButton.UseUnderline = true;
     this.HelpButton.Label        = "gtk-help";
     this.ActionButtonBox.Add(this.HelpButton);
     Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(this.ActionButtonBox[this.HelpButton]));
     w8.Secondary = true;
     w8.Expand    = false;
     w8.Fill      = false;
     // Container child ActionButtonBox.Gtk.ButtonBox+ButtonBoxChild
     this.DeskletsButton              = new Gtk.Button();
     this.DeskletsButton.CanFocus     = true;
     this.DeskletsButton.Name         = "DeskletsButton";
     this.DeskletsButton.UseUnderline = true;
     // Container child DeskletsButton.Gtk.Container+ContainerChild
     Gtk.Alignment w9 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w10 = new Gtk.HBox();
     w10.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w11 = new Gtk.Image();
     w11.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-find", Gtk.IconSize.Menu, 16);
     w10.Add(w11);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w13 = new Gtk.Label();
     w13.LabelProp    = Mono.Unix.Catalog.GetString("Get desklets");
     w13.UseUnderline = true;
     w10.Add(w13);
     w9.Add(w10);
     this.DeskletsButton.Add(w9);
     this.ActionButtonBox.Add(this.DeskletsButton);
     Gtk.ButtonBox.ButtonBoxChild w17 = ((Gtk.ButtonBox.ButtonBoxChild)(this.ActionButtonBox[this.DeskletsButton]));
     w17.Position = 1;
     w17.Expand   = false;
     w17.Fill     = false;
     // Container child ActionButtonBox.Gtk.ButtonBox+ButtonBoxChild
     this.CloseButton              = new Gtk.Button();
     this.CloseButton.CanFocus     = true;
     this.CloseButton.Name         = "CloseButton";
     this.CloseButton.UseStock     = true;
     this.CloseButton.UseUnderline = true;
     this.CloseButton.Label        = "gtk-close";
     this.ActionButtonBox.Add(this.CloseButton);
     Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(this.ActionButtonBox[this.CloseButton]));
     w18.Position = 2;
     w18.Expand   = false;
     w18.Fill     = false;
     this.vbox2.Add(this.ActionButtonBox);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox2[this.ActionButtonBox]));
     w19.Position = 3;
     w19.Expand   = false;
     w19.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 447;
     this.DefaultHeight = 446;
     this.Show();
     this.DeleteEvent            += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.HelpButton.Clicked     += new System.EventHandler(this.OnHelpButtonClicked);
     this.DeskletsButton.Clicked += new System.EventHandler(this.OnDeskletsButtonClicked);
     this.CloseButton.Clicked    += new System.EventHandler(this.OnCloseButtonClicked);
 }
Beispiel #36
0
        public GroupChatView(GroupChatModel groupChat) : base(groupChat)
        {
            Trace.Call(groupChat);

            _GroupChatModel = groupChat;

            // person list
            _OutputHPaned = new Gtk.HPaned();

            Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow();
            _PersonScrolledWindow = sw;
            //sw.WidthRequest = 150;
            sw.HscrollbarPolicy = Gtk.PolicyType.Never;

            Gtk.TreeView tv = new Gtk.TreeView();
            _PersonTreeView = tv;
            //tv.CanFocus = false;
            tv.BorderWidth    = 0;
            tv.Selection.Mode = Gtk.SelectionMode.Multiple;
            sw.Add(tv);

            Gtk.TreeViewColumn   column;
            Gtk.CellRendererText cellr = new Gtk.CellRendererText();
            cellr.WidthChars     = 12;
            column               = new Gtk.TreeViewColumn(String.Empty, cellr);
            column.SortColumnId  = 0;
            column.Spacing       = 0;
            column.SortIndicator = false;
            column.Sizing        = Gtk.TreeViewColumnSizing.Autosize;
            column.SetCellDataFunc(cellr, new Gtk.TreeCellDataFunc(RenderPersonIdentityName));
            tv.AppendColumn(column);
            _IdentityNameColumn = column;

            Gtk.ListStore liststore = new Gtk.ListStore(typeof(PersonModel));
            liststore.SetSortColumnId(0, Gtk.SortType.Ascending);
            liststore.SetSortFunc(0, new Gtk.TreeIterCompareFunc(SortPersonListStore));
            _PersonListStore = liststore;

            tv.Model          = liststore;
            tv.RowActivated  += new Gtk.RowActivatedHandler(OnPersonsRowActivated);
            tv.FocusOutEvent += OnPersonTreeViewFocusOutEvent;

            // popup menu
            _PersonMenu = new Gtk.Menu();
            // don't loose the focus else we lose the selection too!
            // see OnPersonTreeViewFocusOutEvent()
            _PersonMenu.TakeFocus = false;
            _PersonMenu.Shown    += OnPersonMenuShown;

            _PersonTreeView.ButtonPressEvent += _OnPersonTreeViewButtonPressEvent;
            _PersonTreeView.KeyPressEvent    += OnPersonTreeViewKeyPressEvent;
            // frame needed for events when selecting something in the treeview
            _PersonTreeViewFrame = new Gtk.Frame();
            _PersonTreeViewFrame.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(_OnUserListButtonReleaseEvent);
            _PersonTreeViewFrame.Add(sw);

            // topic
            // don't worry, ApplyConfig() will add us to the OutputVBox!
            _OutputVBox = new Gtk.VBox();

            _TopicTextView                  = new MessageTextView();
            _TopicTextView.Editable         = false;
            _TopicTextView.WrapMode         = Gtk.WrapMode.WordChar;
            _TopicScrolledWindow            = new Gtk.ScrolledWindow();
            _TopicScrolledWindow.ShadowType = Gtk.ShadowType.In;
            // when using PolicyType.Never, it will try to grow but never shrinks!
            _TopicScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Automatic;
            _TopicScrolledWindow.VscrollbarPolicy = Gtk.PolicyType.Automatic;
            _TopicScrolledWindow.Add(_TopicTextView);
            // make sure the topic is invisible and remains by default and
            // visible when a topic gets set
            _TopicScrolledWindow.ShowAll();
            _TopicScrolledWindow.Visible   = false;
            _TopicScrolledWindow.NoShowAll = true;

            Add(_OutputHPaned);

            //ApplyConfig(Frontend.UserConfig);

            ShowAll();
        }
Beispiel #37
0
        public ChatView(ChatModel chat)
        {
            Trace.Call(chat);

            _ChatModel = chat;

            IsAutoScrolling = true;
            MessageTextView tv = CreateMainMessageTextView();

            _EndMark               = tv.Buffer.CreateMark("end", tv.Buffer.EndIter, false);
            tv.ShowTimestamps      = true;
            tv.ShowMarkerline      = true;
            tv.Editable            = false;
            tv.CursorVisible       = true;
            tv.WrapMode            = Gtk.WrapMode.Char;
            tv.MessageAdded       += OnMessageTextViewMessageAdded;
            tv.MessageHighlighted += OnMessageTextViewMessageHighlighted;
            tv.PopulatePopup      += OnMessageTextViewPopulatePopup;
            tv.SizeRequested      += delegate {
                AutoScroll();
            };
            tv.PersonClicked      += OnMessageTextViewPersonClicked;
            _OutputMessageTextView = tv;

            Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow();
            _OutputScrolledWindow = sw;
            //sw.HscrollbarPolicy = Gtk.PolicyType.Never;
            sw.HscrollbarPolicy          = Gtk.PolicyType.Automatic;
            sw.VscrollbarPolicy          = Gtk.PolicyType.Always;
            sw.ShadowType                = Gtk.ShadowType.In;
            sw.Vadjustment.ValueChanged += OnVadjustmentValueChanged;
            sw.Add(_OutputMessageTextView);

            // popup menu
            _TabMenu        = new Gtk.Menu();
            _TabMenu.Shown += OnTabMenuShown;

            //FocusChild = _OutputTextView;
            //CanFocus = false;

            _TabLabel = new Gtk.Label();

            TabImage = DefaultTabImage;
            _TabHBox = new Gtk.HBox();
            _TabHBox.PackEnd(new Gtk.Fixed(), true, true, 0);
            _TabHBox.PackEnd(_TabLabel, false, false, 0);
            _TabHBox.PackStart(TabImage, false, false, 2);
            _TabHBox.ShowAll();

            _TabEventBox = new Gtk.EventBox();
            _TabEventBox.VisibleWindow     = false;
            _TabEventBox.ButtonPressEvent += new Gtk.ButtonPressEventHandler(OnTabButtonPress);
            _TabEventBox.Add(_TabHBox);
            _TabEventBox.ShowAll();

            _ThemeSettings = new ThemeSettings();

            // OPT-TODO: this should use a TaskStack instead of TaskQueue
            _LastSeenHighlightQueue = new TaskQueue("LastSeenHighlightQueue(" + ID + ")");
            _LastSeenHighlightQueue.AbortedEvent   += OnLastSeenHighlightQueueAbortedEvent;
            _LastSeenHighlightQueue.ExceptionEvent += OnLastSeenHighlightQueueExceptionEvent;
        }
Beispiel #38
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.Database.Designer.CheckConstraintEditorWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "MonoDevelop.Database.Designer.CheckConstraintEditorWidget";
     // Container child MonoDevelop.Database.Designer.CheckConstraintEditorWidget.Gtk.Container+ContainerChild
     this.vpaned          = new Gtk.VPaned();
     this.vpaned.CanFocus = true;
     this.vpaned.Name     = "vpaned";
     this.vpaned.Position = 189;
     // Container child vpaned.Gtk.Paned+PanedChild
     this.hbox         = new Gtk.HBox();
     this.hbox.Name    = "hbox";
     this.hbox.Spacing = 6;
     // Container child hbox.Gtk.Box+BoxChild
     this.windowCheck                  = new Gtk.ScrolledWindow();
     this.windowCheck.CanFocus         = true;
     this.windowCheck.Name             = "windowCheck";
     this.windowCheck.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowCheck.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowCheck.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child windowCheck.Gtk.Container+ContainerChild
     this.listCheck                  = new Gtk.TreeView();
     this.listCheck.CanFocus         = true;
     this.listCheck.Name             = "listCheck";
     this.listCheck.HeadersClickable = true;
     this.windowCheck.Add(this.listCheck);
     this.hbox.Add(this.windowCheck);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox[this.windowCheck]));
     w2.Position = 0;
     // Container child hbox.Gtk.Box+BoxChild
     this.vbuttonbox             = new Gtk.VButtonBox();
     this.vbuttonbox.Name        = "vbuttonbox";
     this.vbuttonbox.Spacing     = 6;
     this.vbuttonbox.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonAdd              = new Gtk.Button();
     this.buttonAdd.CanFocus     = true;
     this.buttonAdd.Name         = "buttonAdd";
     this.buttonAdd.UseStock     = true;
     this.buttonAdd.UseUnderline = true;
     this.buttonAdd.Label        = "gtk-add";
     this.vbuttonbox.Add(this.buttonAdd);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.buttonAdd]));
     w3.Expand = false;
     w3.Fill   = false;
     // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonRemove              = new Gtk.Button();
     this.buttonRemove.Sensitive    = false;
     this.buttonRemove.CanFocus     = true;
     this.buttonRemove.Name         = "buttonRemove";
     this.buttonRemove.UseStock     = true;
     this.buttonRemove.UseUnderline = true;
     this.buttonRemove.Label        = "gtk-remove";
     this.vbuttonbox.Add(this.buttonRemove);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.buttonRemove]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     this.hbox.Add(this.vbuttonbox);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox[this.vbuttonbox]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     this.vpaned.Add(this.hbox);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.vpaned[this.hbox]));
     w6.Resize = false;
     // Container child vpaned.Gtk.Paned+PanedChild
     this.frame             = new Gtk.Frame();
     this.frame.Name        = "frame";
     this.frame.ShadowType  = ((Gtk.ShadowType)(0));
     this.frame.LabelXalign = 0F;
     // Container child frame.Gtk.Container+ContainerChild
     this.alignment             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.alignment.Name        = "alignment";
     this.alignment.LeftPadding = ((uint)(12));
     // Container child alignment.Gtk.Container+ContainerChild
     this.sqlEditor          = new MonoDevelop.Database.Components.SqlEditorWidget();
     this.sqlEditor.Events   = ((Gdk.EventMask)(256));
     this.sqlEditor.Name     = "sqlEditor";
     this.sqlEditor.Editable = false;
     this.alignment.Add(this.sqlEditor);
     this.frame.Add(this.alignment);
     this.GtkLabel2           = new Gtk.Label();
     this.GtkLabel2.Name      = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("Check Condition");
     this.GtkLabel2.UseMarkup = true;
     this.frame.LabelWidget   = this.GtkLabel2;
     this.vpaned.Add(this.frame);
     this.Add(this.vpaned);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.buttonAdd.Clicked    += new System.EventHandler(this.AddClicked);
     this.buttonRemove.Clicked += new System.EventHandler(this.RemoveClicked);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget NPR.StationSearchWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "NPR.StationSearchWidget";
     // Container child NPR.StationSearchWidget.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.my_stations              = new Gtk.Button();
     this.my_stations.CanFocus     = true;
     this.my_stations.Name         = "my_stations";
     this.my_stations.UseUnderline = true;
     this.my_stations.Label        = Mono.Unix.Catalog.GetString("My _Stations");
     this.hbox1.Add(this.my_stations);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.my_stations]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.ZipEntry              = new Docky.Widgets.SearchEntry();
     this.ZipEntry.Name         = "ZipEntry";
     this.ZipEntry.EmptyMessage = "Zip Code";
     this.ZipEntry.Ready        = true;
     this.ZipEntry.HasFocus     = true;
     this.hbox1.Add(this.ZipEntry);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.ZipEntry]));
     w2.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.Search              = new Gtk.Button();
     this.Search.CanFocus     = true;
     this.Search.Name         = "Search";
     this.Search.UseUnderline = true;
     // Container child Search.Gtk.Container+ContainerChild
     Gtk.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w4 = new Gtk.HBox();
     w4.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w5 = new Gtk.Image();
     w5.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-find", Gtk.IconSize.Menu, 16);
     w4.Add(w5);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w7 = new Gtk.Label();
     w7.LabelProp    = Mono.Unix.Catalog.GetString("S_earch");
     w7.UseUnderline = true;
     w4.Add(w7);
     w3.Add(w4);
     this.Search.Add(w3);
     this.hbox1.Add(this.Search);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.Search]));
     w11.Position = 2;
     w11.Expand   = false;
     w11.Fill     = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w12.Position = 0;
     w12.Expand   = false;
     w12.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.stationsScroll                  = new Gtk.ScrolledWindow();
     this.stationsScroll.CanFocus         = true;
     this.stationsScroll.Name             = "stationsScroll";
     this.stationsScroll.HscrollbarPolicy = ((Gtk.PolicyType)(2));
     this.stationsScroll.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child stationsScroll.Gtk.Container+ContainerChild
     Gtk.Viewport w13 = new Gtk.Viewport();
     w13.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.tileview          = new Docky.Widgets.TileView();
     this.tileview.Name     = "tileview";
     this.tileview.IconSize = 64;
     w13.Add(this.tileview);
     this.stationsScroll.Add(w13);
     this.vbox1.Add(this.stationsScroll);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox1[this.stationsScroll]));
     w16.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
     this.my_stations.Clicked += new System.EventHandler(this.MyStationsClicked);
     this.Search.Clicked      += new System.EventHandler(this.SearchClicked);
 }
Beispiel #40
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("GoogleTranslate");
     this.Icon           = new Gdk.Pixbuf(System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "./res/icon.png"));
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.alignment2               = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.alignment2.Name          = "alignment2";
     this.alignment2.LeftPadding   = ((uint)(6));
     this.alignment2.TopPadding    = ((uint)(6));
     this.alignment2.RightPadding  = ((uint)(6));
     this.alignment2.BottomPadding = ((uint)(6));
     // Container child alignment2.Gtk.Container+ContainerChild
     this.vbox4            = new Gtk.VBox();
     this.vbox4.CanDefault = true;
     this.vbox4.Name       = "vbox4";
     this.vbox4.Spacing    = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.scrolledwindow1                  = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus         = true;
     this.scrolledwindow1.Name             = "scrolledwindow1";
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(2));
     this.scrolledwindow1.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w1 = new Gtk.Viewport();
     w1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.TTV_first          = new Gtk.TextView();
     this.TTV_first.CanFocus = true;
     this.TTV_first.Name     = "TTV_first";
     this.TTV_first.WrapMode = ((Gtk.WrapMode)(2));
     w1.Add(this.TTV_first);
     this.scrolledwindow1.Add(w1);
     this.vbox4.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox4[this.scrolledwindow1]));
     w4.Position = 0;
     // Container child vbox4.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.CB_first = Gtk.ComboBox.NewText();
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Albanian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Arabic"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Bulgarian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Catalan"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Chinese (Simplified)"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Chinese (Traditional)"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Croatian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Czech"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Danish"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Dutch"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("English"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Estonian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Filipino"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Finnish"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("French"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Galician"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("German"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Greek"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Hebrew"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Hindi"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Hungarian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Indonesian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Italian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Japanese"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Korean"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Latvian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Lithuanian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Maltese"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Norwegian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Polish"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Portuguese"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Romanian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Russian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Serbian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Slovak"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Slovenian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Spanish"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Swedish"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Thai"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Turkish"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Ukrainian"));
     this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Vietnamese"));
     this.CB_first.Name   = "CB_first";
     this.CB_first.Active = 32;
     this.hbox1.Add(this.CB_first);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.CB_first]));
     w5.Position = 0;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.B_change              = new Gtk.Button();
     this.B_change.CanFocus     = true;
     this.B_change.Name         = "B_change";
     this.B_change.UseUnderline = true;
     // Container child B_change.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 = new Gdk.Pixbuf(System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "./res/swap.png"));
     w7.Add(w8);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w10 = new Gtk.Label();
     w7.Add(w10);
     w6.Add(w7);
     this.B_change.Add(w6);
     this.hbox1.Add(this.B_change);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox1[this.B_change]));
     w14.Position = 1;
     w14.Expand   = false;
     w14.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.CB_second = Gtk.ComboBox.NewText();
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Albanian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Arabic"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Bulgarian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Catalan"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Chinese (Simplified)"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Chinese (Traditional)"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Croatian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Czech"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Danish"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Dutch"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("English"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Estonian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Filipino"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Finnish"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("French"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Galician"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("German"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Greek"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Hebrew"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Hindi"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Hungarian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Indonesian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Italian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Japanese"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Korean"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Latvian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Lithuanian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Maltese"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Norwegian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Polish"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Portuguese"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Romanian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Russian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Serbian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Slovak"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Slovenian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Spanish"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Swedish"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Thai"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Turkish"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Ukrainian"));
     this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Vietnamese"));
     this.CB_second.Name   = "CB_second";
     this.CB_second.Active = 10;
     this.hbox2.Add(this.CB_second);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.CB_second]));
     w15.Position = 0;
     w15.Expand   = false;
     w15.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.B_translate              = new Gtk.Button();
     this.B_translate.CanFocus     = true;
     this.B_translate.Name         = "B_translate";
     this.B_translate.UseUnderline = true;
     this.B_translate.Label        = Mono.Unix.Catalog.GetString("Translate");
     this.hbox2.Add(this.B_translate);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox2[this.B_translate]));
     w16.Position = 1;
     w16.Expand   = false;
     w16.Fill     = false;
     this.hbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox1[this.hbox2]));
     w17.Position = 2;
     w17.Expand   = false;
     w17.Fill     = false;
     this.vbox4.Add(this.hbox1);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox1]));
     w18.Position = 1;
     w18.Expand   = false;
     w18.Fill     = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.scrolledwindow3                  = new Gtk.ScrolledWindow();
     this.scrolledwindow3.CanFocus         = true;
     this.scrolledwindow3.Name             = "scrolledwindow3";
     this.scrolledwindow3.HscrollbarPolicy = ((Gtk.PolicyType)(2));
     this.scrolledwindow3.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow3.Gtk.Container+ContainerChild
     Gtk.Viewport w19 = new Gtk.Viewport();
     w19.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport2.Gtk.Container+ContainerChild
     this.TTV_second            = new Gtk.TextView();
     this.TTV_second.CanFocus   = true;
     this.TTV_second.Name       = "TTV_second";
     this.TTV_second.AcceptsTab = false;
     w19.Add(this.TTV_second);
     this.scrolledwindow3.Add(w19);
     this.vbox4.Add(this.scrolledwindow3);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox4[this.scrolledwindow3]));
     w22.Position = 2;
     this.alignment2.Add(this.vbox4);
     this.Add(this.alignment2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth     = 443;
     this.DefaultHeight    = 302;
     this.vbox4.HasDefault = true;
     this.Show();
     this.DeleteEvent         += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.Mapped              += new System.EventHandler(this.OnMapped);
     this.B_change.Clicked    += new System.EventHandler(this.OnBChangeClicked);
     this.B_translate.Clicked += new System.EventHandler(this.OnBTranslateClicked);
 }
Beispiel #41
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget";
     // Container child MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget.Gtk.Container+ContainerChild
     this.hpaned          = new Gtk.HPaned();
     this.hpaned.CanFocus = true;
     this.hpaned.Name     = "hpaned";
     this.hpaned.Position = 293;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.windowPK                  = new Gtk.ScrolledWindow();
     this.windowPK.CanFocus         = true;
     this.windowPK.Name             = "windowPK";
     this.windowPK.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowPK.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowPK.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child windowPK.Gtk.Container+ContainerChild
     this.listPK                  = new Gtk.TreeView();
     this.listPK.CanFocus         = true;
     this.listPK.Name             = "listPK";
     this.listPK.HeadersClickable = true;
     this.windowPK.Add(this.listPK);
     this.vbox3.Add(this.windowPK);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox3[this.windowPK]));
     w2.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbuttonbox             = new Gtk.HButtonBox();
     this.hbuttonbox.Name        = "hbuttonbox";
     this.hbuttonbox.Spacing     = 6;
     this.hbuttonbox.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonAdd              = new Gtk.Button();
     this.buttonAdd.CanFocus     = true;
     this.buttonAdd.Name         = "buttonAdd";
     this.buttonAdd.UseStock     = true;
     this.buttonAdd.UseUnderline = true;
     this.buttonAdd.Label        = "gtk-add";
     this.hbuttonbox.Add(this.buttonAdd);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonAdd]));
     w3.Expand = false;
     w3.Fill   = false;
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonRemove              = new Gtk.Button();
     this.buttonRemove.Sensitive    = false;
     this.buttonRemove.CanFocus     = true;
     this.buttonRemove.Name         = "buttonRemove";
     this.buttonRemove.UseStock     = true;
     this.buttonRemove.UseUnderline = true;
     this.buttonRemove.Label        = "gtk-remove";
     this.hbuttonbox.Add(this.buttonRemove);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonRemove]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     this.vbox3.Add(this.hbuttonbox);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     this.hpaned.Add(this.vbox3);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned[this.vbox3]));
     w6.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.columnSelecter                  = new MonoDevelop.Database.Components.SelectColumnWidget();
     this.columnSelecter.Sensitive        = false;
     this.columnSelecter.CanFocus         = true;
     this.columnSelecter.Name             = "columnSelecter";
     this.columnSelecter.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.columnSelecter.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.columnSelecter.ShadowType       = ((Gtk.ShadowType)(1));
     this.columnSelecter.SingleCheck      = false;
     this.hpaned.Add(this.columnSelecter);
     this.Add(this.hpaned);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.buttonAdd.Clicked    += new System.EventHandler(this.AddClicked);
     this.buttonRemove.Clicked += new System.EventHandler(this.RemoveClicked);
 }
Beispiel #42
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction            = new Gtk.Action("FileAction", "File", null, null);
     this.FileAction.ShortLabel = "File";
     w1.Add(this.FileAction, null);
     this.newAction            = new Gtk.Action("newAction", "New", null, "gtk-new");
     this.newAction.ShortLabel = "New";
     w1.Add(this.newAction, "<Control>n");
     this.openAction            = new Gtk.Action("openAction", "Open...", null, "gtk-open");
     this.openAction.ShortLabel = "Open...";
     w1.Add(this.openAction, "<Control>o");
     this.saveAction            = new Gtk.Action("saveAction", "Save", null, "gtk-save");
     this.saveAction.ShortLabel = "Save";
     w1.Add(this.saveAction, "<Control>s");
     this.saveAsAction            = new Gtk.Action("saveAsAction", "Save as...", null, "gtk-save-as");
     this.saveAsAction.ShortLabel = "Save as...";
     w1.Add(this.saveAsAction, "<Control><Alt>s");
     this.quitAction            = new Gtk.Action("quitAction", "Exit", null, "gtk-quit");
     this.quitAction.ShortLabel = "Exit";
     w1.Add(this.quitAction, null);
     this.WordsAction            = new Gtk.Action("WordsAction", "Words", null, null);
     this.WordsAction.ShortLabel = "Words";
     w1.Add(this.WordsAction, null);
     this.GenerateAction            = new Gtk.Action("GenerateAction", "Generate", null, null);
     this.GenerateAction.ShortLabel = "Generate";
     w1.Add(this.GenerateAction, "<Control>g");
     this.ClearAndGenerateAction            = new Gtk.Action("ClearAndGenerateAction", "Clear and generate", null, null);
     this.ClearAndGenerateAction.ShortLabel = "Clear and generate";
     w1.Add(this.ClearAndGenerateAction, "<Control><Alt>g");
     this.ClearAction            = new Gtk.Action("ClearAction", "Clear", null, null);
     this.ClearAction.ShortLabel = "Clear";
     w1.Add(this.ClearAction, "<Control><Alt>l");
     this.CopySelectedAction            = new Gtk.Action("CopySelectedAction", "Copy selected", null, null);
     this.CopySelectedAction.ShortLabel = "Copy selected";
     w1.Add(this.CopySelectedAction, "<Control>j");
     this.CopyDescriptionsAction            = new Gtk.Action("CopyDescriptionsAction", "Copy descriptions", null, null);
     this.CopyDescriptionsAction.ShortLabel = "Copy descriptions";
     w1.Add(this.CopyDescriptionsAction, "<Control><Alt>j");
     this.ExportAction            = new Gtk.Action("ExportAction", "Export...", null, null);
     this.ExportAction.ShortLabel = "Export...";
     w1.Add(this.ExportAction, "<Control><Alt>e");
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name           = "MainWindow";
     this.Title          = "WordBuilder v3.0.0";
     this.Icon           = Stetic.IconLoader.LoadIcon(this, "gtk-sort-ascending", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.mainVBox         = new Gtk.VBox();
     this.mainVBox.Name    = "mainVBox";
     this.mainVBox.Spacing = 6;
     // Container child mainVBox.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString(@"<ui><menubar name='mainMenuBar'><menu name='FileAction' action='FileAction'><menuitem name='newAction' action='newAction'/><menuitem name='openAction' action='openAction'/><separator/><menuitem name='saveAction' action='saveAction'/><menuitem name='saveAsAction' action='saveAsAction'/><separator/><menuitem name='quitAction' action='quitAction'/></menu><menu name='WordsAction' action='WordsAction'><menuitem name='GenerateAction' action='GenerateAction'/><menuitem name='ClearAndGenerateAction' action='ClearAndGenerateAction'/><menuitem name='ClearAction' action='ClearAction'/><separator/><menuitem name='CopySelectedAction' action='CopySelectedAction'/><menuitem name='CopyDescriptionsAction' action='CopyDescriptionsAction'/><separator/><menuitem name='ExportAction' action='ExportAction'/></menu></menubar></ui>");
     this.mainMenuBar      = ((Gtk.MenuBar)(this.UIManager.GetWidget("/mainMenuBar")));
     this.mainMenuBar.Name = "mainMenuBar";
     this.mainVBox.Add(this.mainMenuBar);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.mainVBox[this.mainMenuBar]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child mainVBox.Gtk.Box+BoxChild
     this.vpaned2          = new Gtk.VPaned();
     this.vpaned2.CanFocus = true;
     this.vpaned2.Name     = "vpaned2";
     this.vpaned2.Position = 199;
     // Container child vpaned2.Gtk.Paned+PanedChild
     this.mainHPanes          = new Gtk.HPaned();
     this.mainHPanes.CanFocus = true;
     this.mainHPanes.Name     = "mainHPanes";
     this.mainHPanes.Position = 190;
     // Container child mainHPanes.Gtk.Paned+PanedChild
     this.GtkScrolledWindow1            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name       = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.codeTextview          = new Gtk.TextView();
     this.codeTextview.CanFocus = true;
     this.codeTextview.Name     = "codeTextview";
     this.GtkScrolledWindow1.Add(this.codeTextview);
     this.mainHPanes.Add(this.GtkScrolledWindow1);
     Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.mainHPanes[this.GtkScrolledWindow1]));
     w4.Resize = false;
     // Container child mainHPanes.Gtk.Paned+PanedChild
     this.resultVPanes          = new Gtk.VPaned();
     this.resultVPanes.CanFocus = true;
     this.resultVPanes.Name     = "resultVPanes";
     this.resultVPanes.Position = 127;
     // Container child resultVPanes.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.resultsTreeview          = new Gtk.TreeView();
     this.resultsTreeview.CanFocus = true;
     this.resultsTreeview.Name     = "resultsTreeview";
     this.GtkScrolledWindow.Add(this.resultsTreeview);
     this.resultVPanes.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.resultVPanes[this.GtkScrolledWindow]));
     w6.Resize = false;
     // Container child resultVPanes.Gtk.Paned+PanedChild
     this.GtkScrolledWindow2            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow2.Name       = "GtkScrolledWindow2";
     this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
     this.detailsTextview            = new Gtk.TextView();
     this.detailsTextview.CanFocus   = true;
     this.detailsTextview.Name       = "detailsTextview";
     this.detailsTextview.Editable   = false;
     this.detailsTextview.AcceptsTab = false;
     this.GtkScrolledWindow2.Add(this.detailsTextview);
     this.resultVPanes.Add(this.GtkScrolledWindow2);
     this.mainHPanes.Add(this.resultVPanes);
     this.vpaned2.Add(this.mainHPanes);
     Gtk.Paned.PanedChild w10 = ((Gtk.Paned.PanedChild)(this.vpaned2[this.mainHPanes]));
     w10.Resize = false;
     // Container child vpaned2.Gtk.Paned+PanedChild
     this.warningsScrolledWindow            = new Gtk.ScrolledWindow();
     this.warningsScrolledWindow.Name       = "warningsScrolledWindow";
     this.warningsScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child warningsScrolledWindow.Gtk.Container+ContainerChild
     this.warningsTreeView          = new Gtk.TreeView();
     this.warningsTreeView.CanFocus = true;
     this.warningsTreeView.Name     = "warningsTreeView";
     this.warningsScrolledWindow.Add(this.warningsTreeView);
     this.vpaned2.Add(this.warningsScrolledWindow);
     this.mainVBox.Add(this.vpaned2);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.mainVBox[this.vpaned2]));
     w13.Position = 1;
     this.Add(this.mainVBox);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 538;
     this.DefaultHeight = 411;
     this.warningsScrolledWindow.Hide();
     this.Show();
     this.newAction.Activated              += new System.EventHandler(this.OnNewActionActivated);
     this.openAction.Activated             += new System.EventHandler(this.OnOpenActionActivated);
     this.saveAction.Activated             += new System.EventHandler(this.OnSaveActionActivated);
     this.saveAsAction.Activated           += new System.EventHandler(this.OnSaveAsActionActivated);
     this.quitAction.Activated             += new System.EventHandler(this.OnQuitActionActivated);
     this.GenerateAction.Activated         += new System.EventHandler(this.OnGenerateActionActivated);
     this.ClearAndGenerateAction.Activated += new System.EventHandler(this.OnClearAndGenerateActionActivated);
     this.ClearAction.Activated            += new System.EventHandler(this.OnClearActionActivated);
     this.CopySelectedAction.Activated     += new System.EventHandler(this.OnCopySelectedActionActivated);
     this.CopyDescriptionsAction.Activated += new System.EventHandler(this.OnCopyDescriptionsActionActivated);
     this.ExportAction.Activated           += new System.EventHandler(this.OnExportActionActivated);
 }
        public DocumentationDialog(Documentation _doc)
        {
            ContentArea.PackStart(VBox, true, true, 0);

            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;
            descLabel.WidthChars    = 50;
            descLabel.MaxWidthChars = 50;
            VBox.PackStart(descLabel, false, false, 0);


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

                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;
                    l2.WidthChars    = 50;
                    l2.MaxWidthChars = 50;

                    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.Never, 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);

            ShowAll();
        }
Beispiel #44
0
 public ScrollViewBackend()
 {
     Widget = new Gtk.ScrolledWindow();
     Widget.Show();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.Database.Components.ShowImageDialog
     this.Name            = "MonoDevelop.Database.Components.ShowImageDialog";
     this.Title           = Mono.Unix.Catalog.GetString("Image");
     this.TypeHint        = ((Gdk.WindowTypeHint)(1));
     this.WindowPosition  = ((Gtk.WindowPosition)(1));
     this.SkipTaskbarHint = true;
     this.HasSeparator    = false;
     // Internal child MonoDevelop.Database.Components.ShowImageDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.scrolledwindow                  = new Gtk.ScrolledWindow();
     this.scrolledwindow.CanFocus         = true;
     this.scrolledwindow.Name             = "scrolledwindow";
     this.scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow.Gtk.Container+ContainerChild
     Gtk.Viewport w2 = new Gtk.Viewport();
     w2.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.image1      = new Gtk.Image();
     this.image1.Name = "image1";
     w2.Add(this.image1);
     this.scrolledwindow.Add(w2);
     w1.Add(this.scrolledwindow);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.scrolledwindow]));
     w5.Position = 0;
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.hboxError         = new Gtk.HBox();
     this.hboxError.Name    = "hboxError";
     this.hboxError.Spacing = 6;
     // Container child hboxError.Gtk.Box+BoxChild
     this.image        = new Gtk.Image();
     this.image.Name   = "image";
     this.image.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-error", Gtk.IconSize.Menu, 16);
     this.hboxError.Add(this.image);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hboxError[this.image]));
     w6.Position = 0;
     w6.Expand   = false;
     w6.Fill     = false;
     // Container child hboxError.Gtk.Box+BoxChild
     this.label           = new Gtk.Label();
     this.label.Name      = "label";
     this.label.Xalign    = 0F;
     this.label.LabelProp = Mono.Unix.Catalog.GetString("Unable to load object as Image");
     this.hboxError.Add(this.label);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hboxError[this.label]));
     w7.Position = 1;
     w1.Add(this.hboxError);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.hboxError]));
     w8.Position = 1;
     w8.Expand   = false;
     w8.Fill     = false;
     // Internal child MonoDevelop.Database.Components.ShowImageDialog.ActionArea
     Gtk.HButtonBox w9 = this.ActionArea;
     w9.Name        = "dialog1_ActionArea";
     w9.Spacing     = 6;
     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  = 400;
     this.DefaultHeight = 300;
     this.hboxError.Hide();
     this.Show();
     this.buttonClose.Clicked += new System.EventHandler(this.CloseClicked);
 }
Beispiel #46
0
        public MainWindow() : base("Smuxi")
        {
            // restore window size / position
            int width, heigth;

            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"] != null)
            {
                width = (int)Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"];
            }
            else
            {
                width = 800;
            }
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"] != null)
            {
                heigth = (int)Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"];
            }
            else
            {
                heigth = 600;
            }
            if (width < -1 || heigth < -1)
            {
                width  = -1;
                heigth = -1;
            }
            if (width == -1 && heigth == -1)
            {
                SetDefaultSize(800, 600);
                Maximize();
            }
            else if (width == 0 && heigth == 0)
            {
                // HACK: map 0/0 to default size as it crashes on Windows :/
                SetDefaultSize(800, 600);
            }
            else
            {
                SetDefaultSize(width, heigth);
            }

            int x, y;

            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"] != null)
            {
                x = (int)Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"];
            }
            else
            {
                x = 0;
            }
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"] != null)
            {
                y = (int)Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"];
            }
            else
            {
                y = 0;
            }
            if (x < 0 || y < 0)
            {
                x = 0;
                y = 0;
            }
            if (x == 0 && y == 0)
            {
                SetPosition(Gtk.WindowPosition.Center);
            }
            else
            {
                Move(x, y);
            }

            DeleteEvent      += OnDeleteEvent;
            FocusInEvent     += OnFocusInEvent;
            FocusOutEvent    += OnFocusOutEvent;
            WindowStateEvent += OnWindowStateEvent;

            ChatTreeView = new ChatTreeView();

            Notebook               = new Notebook();
            Notebook.SwitchPage   += OnNotebookSwitchPage;
            Notebook.FocusInEvent += OnNotebookFocusInEvent;

            ChatViewManager = new ChatViewManager(Notebook, ChatTreeView);
            Assembly asm = Assembly.GetExecutingAssembly();

            ChatViewManager.Load(asm);
            ChatViewManager.LoadAll(System.IO.Path.GetDirectoryName(asm.Location),
                                    "smuxi-frontend-gnome-*.dll");
            ChatViewManager.ChatAdded   += OnChatViewManagerChatAdded;
            ChatViewManager.ChatSynced  += OnChatViewManagerChatSynced;
            ChatViewManager.ChatRemoved += OnChatViewManagerChatRemoved;

#if GTK_SHARP_2_10
            StatusIconManager = new StatusIconManager(this, ChatViewManager);
#endif
#if INDICATE_SHARP || MESSAGING_MENU_SHARP
            IndicateManager = new IndicateManager(this, ChatViewManager);
#endif
#if NOTIFY_SHARP
            NotifyManager = new NotifyManager(this, ChatViewManager);
#endif
#if IPC_DBUS
            NetworkManager = new NetworkManager(ChatViewManager);
#endif

            UI = new GnomeUI(ChatViewManager);

            // HACK: Frontend.FrontendConfig out of scope
            EngineManager = new EngineManager(Frontend.FrontendConfig, UI);

            Entry = new Entry(ChatViewManager);
            var entryScrolledWindow = new Gtk.ScrolledWindow();
            entryScrolledWindow.ShadowType       = Gtk.ShadowType.EtchedIn;
            entryScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Never;
            entryScrolledWindow.SizeRequested   += delegate(object o, Gtk.SizeRequestedArgs args) {
                // predict and set useful height
                int lineWidth, lineHeight;
                using (var layout = Entry.CreatePangoLayout("Qp")) {
                    layout.GetPixelSize(out lineWidth, out lineHeight);
                }
                var it       = Entry.Buffer.StartIter;
                int newLines = 1;
                // move to end of next visual line
                while (Entry.ForwardDisplayLineEnd(ref it))
                {
                    newLines++;
                    // calling ForwardDisplayLineEnd repeatedly stays on the same position
                    // therefor we move one cursor position further
                    it.ForwardCursorPosition();
                }
                newLines = Math.Min(newLines, 3);
                // use text heigth + a bit extra
                var bestSize = new Gtk.Requisition()
                {
                    Height = (lineHeight * newLines) + 5
                };
                args.Requisition = bestSize;
            };
            entryScrolledWindow.Add(Entry);

            ProgressBar = new Gtk.ProgressBar();
            StatusHBox  = new Gtk.HBox();

            MenuWidget = new MenuWidget(this, ChatViewManager);

            var treeviewScrolledWindow = new Gtk.ScrolledWindow()
            {
                ShadowType       = Gtk.ShadowType.EtchedIn,
                HscrollbarPolicy = Gtk.PolicyType.Never,
                VscrollbarPolicy = Gtk.PolicyType.Automatic
            };
            treeviewScrolledWindow.Add(ChatTreeView);
            ChatViewManager.ChatAdded += (sender, e) => {
                treeviewScrolledWindow.CheckResize();
            };

            var notebookPaned = new Gtk.VPaned();
            notebookPaned.Pack1(Notebook, true, false);
            notebookPaned.Pack2(entryScrolledWindow, false, false);

            var treeviewPaned = new Gtk.HPaned();
            treeviewPaned.Pack1(treeviewScrolledWindow, false, false);
            treeviewPaned.Pack2(notebookPaned, true, false);
            TreeViewHPaned = treeviewPaned;

            var entryPaned = new Gtk.VPaned();
            entryPaned.ButtonPressEvent += (sender, e) => {
                // reset entry size on double click
                if (e.Event.Type == Gdk.EventType.TwoButtonPress &&
                    e.Event.Button == 1)
                {
                    GLib.Timeout.Add(100, delegate {
                        entryPaned.Position = -1;
                        return(false);
                    });
                }
            };
            entryPaned.Pack1(treeviewPaned, true, false);

            Gtk.VBox vbox = new Gtk.VBox();
            vbox.PackStart(MenuWidget, false, false, 0);
            vbox.PackStart(entryPaned, true, true, 0);

            NetworkStatusbar = new Gtk.Statusbar();
            NetworkStatusbar.WidthRequest  = 300;
            NetworkStatusbar.HasResizeGrip = false;

            Statusbar = new Gtk.Statusbar();
            Statusbar.HasResizeGrip = false;

            Gtk.HBox status_bar_hbox = new Gtk.HBox();
            status_bar_hbox.Homogeneous = true;
            status_bar_hbox.PackStart(NetworkStatusbar, false, true, 0);
            status_bar_hbox.PackStart(Statusbar, true, true, 0);

            StatusHBox.PackStart(status_bar_hbox);
            StatusHBox.PackStart(ProgressBar, false, false, 0);
            StatusHBox.ShowAll();
            StatusHBox.NoShowAll = true;
            StatusHBox.Visible   = (bool)Frontend.FrontendConfig["ShowStatusBar"];

            vbox.PackStart(StatusHBox, false, false, 0);
            Add(vbox);
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.OfflineLogDialog
     this.WidthRequest   = 450;
     this.HeightRequest  = 350;
     this.Name           = "ocmgtk.OfflineLogDialog";
     this.Title          = Mono.Unix.Catalog.GetString("Log");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth    = ((uint)(6));
     // Internal child ocmgtk.OfflineLogDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.Spacing     = 6;
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.cacheIcon      = new Gtk.Image();
     this.cacheIcon.Name = "cacheIcon";
     this.hbox2.Add(this.cacheIcon);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox2[this.cacheIcon]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.CacheLabel           = new Gtk.Label();
     this.CacheLabel.Name      = "CacheLabel";
     this.CacheLabel.Xalign    = 0F;
     this.CacheLabel.LabelProp = "<cacheName>";
     this.hbox2.Add(this.CacheLabel);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox2[this.CacheLabel]));
     w3.Position = 1;
     w1.Add(this.hbox2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.hbox2]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.hseparator2      = new Gtk.HSeparator();
     this.hseparator2.Name = "hseparator2";
     w1.Add(this.hseparator2);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.hseparator2]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.hbox3         = new Gtk.HBox();
     this.hbox3.Name    = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Log Date:");
     this.hbox3.Add(this.label3);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox3[this.label3]));
     w6.Position = 0;
     w6.Expand   = false;
     w6.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.logDateWidget             = new ocmgtk.DateWidget();
     this.logDateWidget.Events      = ((Gdk.EventMask)(256));
     this.logDateWidget.Name        = "logDateWidget";
     this.logDateWidget.IncludeTime = false;
     this.logDateWidget.Date        = new System.DateTime(0);
     this.hbox3.Add(this.logDateWidget);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox3[this.logDateWidget]));
     w7.Position = 1;
     w7.Expand   = false;
     w7.Fill     = false;
     w1.Add(this.hbox3);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.hbox3]));
     w8.Position = 2;
     w8.Expand   = false;
     w8.Fill     = false;
     // 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.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Log Type:");
     this.hbox4.Add(this.label4);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox4[this.label4]));
     w9.Position = 0;
     w9.Expand   = false;
     w9.Fill     = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.logChoice = Gtk.ComboBox.NewText();
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Found it"));
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Didn't Find it"));
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Write Note"));
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Needs Maintenance"));
     this.logChoice.Name   = "logChoice";
     this.logChoice.Active = 0;
     this.hbox4.Add(this.logChoice);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox4[this.logChoice]));
     w10.Position = 1;
     w1.Add(this.hbox4);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(w1[this.hbox4]));
     w11.Position = 3;
     w11.Expand   = false;
     w11.Fill     = false;
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.hseparator1      = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     w1.Add(this.hseparator1);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w1[this.hseparator1]));
     w12.Position = 4;
     w12.Expand   = false;
     w12.Fill     = false;
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.ftfCheck               = new Gtk.CheckButton();
     this.ftfCheck.CanFocus      = true;
     this.ftfCheck.Name          = "ftfCheck";
     this.ftfCheck.Label         = Mono.Unix.Catalog.GetString("First To Find");
     this.ftfCheck.DrawIndicator = true;
     this.ftfCheck.UseUnderline  = true;
     w1.Add(this.ftfCheck);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[this.ftfCheck]));
     w13.Position = 5;
     w13.Expand   = false;
     w13.Fill     = false;
     // Container child dialog1_VBox.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.logEntry          = new Gtk.TextView();
     this.logEntry.CanFocus = true;
     this.logEntry.Name     = "logEntry";
     this.GtkScrolledWindow.Add(this.logEntry);
     w1.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[this.GtkScrolledWindow]));
     w15.Position = 6;
     // Internal child ocmgtk.OfflineLogDialog.ActionArea
     Gtk.HButtonBox w16 = this.ActionArea;
     w16.Name        = "dialog1_ActionArea";
     w16.Spacing     = 10;
     w16.BorderWidth = ((uint)(5));
     w16.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 w17 = ((Gtk.ButtonBox.ButtonBoxChild)(w16[this.buttonCancel]));
     w17.Expand = false;
     w17.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 w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w16[this.buttonOk]));
     w18.Position = 1;
     w18.Expand   = false;
     w18.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 462;
     this.DefaultHeight = 377;
     this.Show();
     this.logChoice.Changed += new System.EventHandler(this.OnComboChanged);
 }
Beispiel #48
0
        Gtk.Widget CreateFakeWidget(string typeName)
        {
            Stetic.Custom c = new Stetic.Custom();
            // Give it some default size
            c.WidthRequest  = 20;
            c.HeightRequest = 20;

            Gtk.Container box = null;

            switch (typeClassDescriptor.Name)
            {
            case "Gtk.Alignment":
                box = new Gtk.Alignment(0.5f, 0.5f, 1f, 1f);
                break;

            case "Gtk.Fixed":
                box = new Gtk.Alignment(0.5f, 0.5f, 1f, 1f);
                break;

            case "Gtk.Frame":
                box = new Gtk.Frame();
                break;

            case "Gtk.Box":
            case "Gtk.HBox": {
                Gtk.HBox cc = new Gtk.HBox();
                cc.PackStart(c, true, true, 0);
                return(cc);
            }

            case "Gtk.VBox": {
                Gtk.VBox cc = new Gtk.VBox();
                cc.PackStart(c, true, true, 0);
                return(cc);
            }

            case "Gtk.Paned":
            case "Gtk.VPaned": {
                Gtk.VPaned cc = new Gtk.VPaned();
                cc.Add1(c);
                return(cc);
            }

            case "Gtk.HPaned": {
                Gtk.HPaned cc = new Gtk.HPaned();
                cc.Add1(c);
                return(cc);
            }

            case "Gtk.Notebook": {
                Gtk.Notebook nb = new Gtk.Notebook();
                nb.ShowTabs = false;
                nb.AppendPage(c, null);
                return(nb);
            }

            case "Gtk.ScrolledWindow": {
                Gtk.ScrolledWindow cc = new Gtk.ScrolledWindow();
                cc.VscrollbarPolicy = Gtk.PolicyType.Never;
                cc.HscrollbarPolicy = Gtk.PolicyType.Never;
                cc.AddWithViewport(c);
                return(cc);
            }

            case "Gtk.Table": {
                Gtk.Table t = new Gtk.Table(1, 1, false);
                t.Attach(c, 0, 1, 0, 1);
                return(t);
            }

            case "Gtk.ButtonBox":
                return(new Gtk.HButtonBox());
            }
            if (box != null)
            {
                box.Add(c);
                return(box);
            }
            else
            {
                Stetic.CustomWidget custom = new Stetic.CustomWidget();
                if (custom.Child != null)
                {
                    custom.Remove(custom.Child);
                }
                custom.Add(c);
                return(custom);
            }
        }
Beispiel #49
0
        void IPlugin.Init(object context)
        {
            mainApp    = context as ISolidIDE;
            mainWindow = mainApp.GetMainWindow();
            DockFrame frame = mainWindow.DockFrame;

            // Tree View
            treeView = new Gtk.TreeView();
            Gtk.TreeViewColumn   col             = new Gtk.TreeViewColumn();
            Gtk.CellRendererText colAssemblyCell = new Gtk.CellRendererText();
            col.PackStart(colAssemblyCell, true);
            col.AddAttribute(colAssemblyCell, "text", 0);
            if (treeView.GetColumn(0) != null)
            {
                treeView.Columns[0] = col;
            }
            else
            {
                treeView.AppendColumn(col);
            }
            treeView.Model         = new Gtk.TreeStore(typeof(string));
            treeView.Model         = homeSubFolders(Environment.GetFolderPath(Environment.SpecialFolder.Personal));
            treeView.RowActivated += HandleRowActivated;

            Gtk.ScrolledWindow treeViewScrollWindow = new Gtk.ScrolledWindow();
            Gtk.Viewport       treeViewViewport     = new Gtk.Viewport();
            treeViewScrollWindow.Add(treeViewViewport);
            treeViewViewport.Add(treeView);
            treeViewScrollWindow.ShowAll();

            DockItem treeViewDock = frame.AddItem("TreeViewDock");

            treeViewDock.Behavior       = DockItemBehavior.Normal;
            treeViewDock.Expand         = true;
            treeViewDock.DrawFrame      = true;
            treeViewDock.Label          = "Files";
            treeViewDock.Content        = treeViewScrollWindow;
            treeViewDock.DefaultVisible = true;
            treeViewDock.Visible        = true;

            // Text Editor Notebook
            noteBook = new Gtk.Notebook();

            Gtk.ScrolledWindow textEditorScrollWindow = new Gtk.ScrolledWindow();
            Gtk.Viewport       textEditorViewport     = new Gtk.Viewport();
            textEditorScrollWindow.Add(textEditorViewport);
            textEditorViewport.Add(noteBook);
            textEditorScrollWindow.ShowAll();

            DockItem textEditorDock = frame.AddItem("TextEditorDock");

            textEditorDock.Behavior       = DockItemBehavior.Normal;
            textEditorDock.Expand         = true;
            textEditorDock.DrawFrame      = true;
            textEditorDock.Label          = "Text Editor";
            textEditorDock.Content        = textEditorScrollWindow;
            textEditorDock.DefaultVisible = true;
            textEditorDock.Visible        = true;

            // Menu
            var fileMenuItem = mainApp.GetMenuItem <Gtk.ImageMenuItem>("File");
            var saveMenuItem = mainApp.GetMenuItem <Gtk.ImageMenuItem>("File", "Save");

            saveMenuItem.Activated += HandleSaveActivated;
            var closeMenuItem = mainApp.GetMenuItem <Gtk.ImageMenuItem>("File", "Close");

            closeMenuItem.Activated += HandleCloseActivated;
            var exitMenuItem = mainApp.GetMenuItem <Gtk.ImageMenuItem>("File", "Exit");

            exitMenuItem.Activated += HandleExitActivated;

            /*
             * mainApp.GetMenuItem<Gtk.SeparatorMenuItem>("View", "");
             * mainApp.GetMenuItem<Gtk.CheckMenuItem>("View", "CheckTest1");
             * mainApp.GetMenuItem<Gtk.CheckMenuItem>("View", "CheckTest2");
             * //mainApp.GetMenuItem<Gtk.RadioMenuItem>("View", "RadioTest1");
             * //mainApp.GetMenuItem<Gtk.RadioMenuItem>("View", "RadioTest2");
             * //mainApp.GetMenuItem<Gtk.RadioMenuItem>("View", "RadioTest3");
             */
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Addins.Gui.ErrorDialog
     this.Name        = "Mono.Addins.Gui.ErrorDialog";
     this.Title       = Mono.Unix.Catalog.GetString("Error");
     this.TypeHint    = ((Gdk.WindowTypeHint)(1));
     this.BorderWidth = ((uint)(6));
     // Internal child Mono.Addins.Gui.ErrorDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name    = "dialog-vbox5";
     w1.Spacing = 6;
     // Container child dialog-vbox5.Gtk.Box+BoxChild
     this.hbox59             = new Gtk.HBox();
     this.hbox59.Name        = "hbox59";
     this.hbox59.Spacing     = 6;
     this.hbox59.BorderWidth = ((uint)(6));
     // Container child hbox59.Gtk.Box+BoxChild
     this.vbox72      = new Gtk.VBox();
     this.vbox72.Name = "vbox72";
     // Container child vbox72.Gtk.Box+BoxChild
     this.icon        = new Gtk.Image();
     this.icon.Name   = "icon";
     this.icon.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-error", Gtk.IconSize.Dialog, 48);
     this.vbox72.Add(this.icon);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox72[this.icon]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     this.hbox59.Add(this.vbox72);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox59[this.vbox72]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child hbox59.Gtk.Box+BoxChild
     this.vbox73         = new Gtk.VBox();
     this.vbox73.Name    = "vbox73";
     this.vbox73.Spacing = 12;
     // Container child vbox73.Gtk.Box+BoxChild
     this.descriptionLabel = new Gtk.Label();
     this.descriptionLabel.WidthRequest = 540;
     this.descriptionLabel.CanFocus     = true;
     this.descriptionLabel.Name         = "descriptionLabel";
     this.descriptionLabel.Xalign       = 0F;
     this.descriptionLabel.LabelProp    = "An exception has been thrown 1 2 3 4 5 6 7 8 9 10 11 12 13 14";
     this.descriptionLabel.Wrap         = true;
     this.descriptionLabel.Selectable   = true;
     this.vbox73.Add(this.descriptionLabel);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox73[this.descriptionLabel]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child vbox73.Gtk.Box+BoxChild
     this.expander          = new Gtk.Expander(null);
     this.expander.CanFocus = true;
     this.expander.Name     = "expander";
     // Container child expander.Gtk.Container+ContainerChild
     this.scrolledwindow10                  = new Gtk.ScrolledWindow();
     this.scrolledwindow10.CanFocus         = true;
     this.scrolledwindow10.Name             = "scrolledwindow10";
     this.scrolledwindow10.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow10.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow10.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow10.Gtk.Container+ContainerChild
     this.detailsTextView = new Gtk.TextView();
     this.detailsTextView.HeightRequest    = 250;
     this.detailsTextView.CanFocus         = true;
     this.detailsTextView.Name             = "detailsTextView";
     this.detailsTextView.PixelsAboveLines = 2;
     this.detailsTextView.PixelsBelowLines = 2;
     this.detailsTextView.LeftMargin       = 6;
     this.detailsTextView.RightMargin      = 6;
     this.scrolledwindow10.Add(this.detailsTextView);
     this.expander.Add(this.scrolledwindow10);
     this.label102             = new Gtk.Label();
     this.label102.Name        = "label102";
     this.label102.LabelProp   = Mono.Unix.Catalog.GetString("Details");
     this.expander.LabelWidget = this.label102;
     this.vbox73.Add(this.expander);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox73[this.expander]));
     w7.Position = 1;
     this.hbox59.Add(this.vbox73);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox59[this.vbox73]));
     w8.Position = 1;
     w1.Add(this.hbox59);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.hbox59]));
     w9.Position = 0;
     // Internal child Mono.Addins.Gui.ErrorDialog.ActionArea
     Gtk.HButtonBox w10 = this.ActionArea;
     w10.Name        = "dialog-action_area5";
     w10.Spacing     = 10;
     w10.BorderWidth = ((uint)(5));
     w10.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog-action_area5.Gtk.ButtonBox+ButtonBoxChild
     this.okButton              = new Gtk.Button();
     this.okButton.CanDefault   = true;
     this.okButton.CanFocus     = true;
     this.okButton.Name         = "okButton";
     this.okButton.UseStock     = true;
     this.okButton.UseUnderline = true;
     this.okButton.Label        = "gtk-ok";
     this.AddActionWidget(this.okButton, -5);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 632;
     this.DefaultHeight = 155;
     this.Show();
 }
Beispiel #51
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HGDGTK.MainWindow
     this.Name           = "HGDGTK.MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child HGDGTK.MainWindow.Gtk.Container+ContainerChild
     this.vbox1             = new Gtk.VBox();
     this.vbox1.Name        = "vbox1";
     this.vbox1.Spacing     = 5;
     this.vbox1.BorderWidth = ((uint)(5));
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Now Playing:");
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label2      = new Gtk.Label();
     this.label2.Name = "label2";
     this.hbox1.Add(this.label2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label2]));
     w2.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button1              = new Gtk.Button();
     this.button1.CanFocus     = true;
     this.button1.Name         = "button1";
     this.button1.UseUnderline = true;
     this.button1.FocusOnClick = false;
     this.button1.Label        = Mono.Unix.Catalog.GetString("Crap Song!");
     this.hbox1.Add(this.button1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.button1]));
     w3.Position = 2;
     w3.Expand   = false;
     w3.Fill     = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hseparator1      = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.vbox1.Add(this.hseparator1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned1          = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name     = "hpaned1";
     this.hpaned1.Position = 495;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.filepane                         = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(0)));
     this.filepane.Name                    = "filepane";
     this.filepane.LocalOnly               = false;
     this.filepane.SelectMultiple          = true;
     this.filepane.DoOverwriteConfirmation = true;
     this.hpaned1.Add(this.filepane);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.filepane]));
     w6.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.GtkScrolledWindow2            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow2.Name       = "GtkScrolledWindow2";
     this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
     this.playlist          = new Gtk.NodeView();
     this.playlist.CanFocus = true;
     this.playlist.Name     = "playlist";
     this.GtkScrolledWindow2.Add(this.playlist);
     this.hpaned1.Add(this.GtkScrolledWindow2);
     this.vbox1.Add(this.hpaned1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
     w9.Position = 2;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar1         = new Gtk.Statusbar();
     this.statusbar1.Name    = "statusbar1";
     this.statusbar1.Spacing = 6;
     this.vbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w10.PackType = ((Gtk.PackType)(1));
     w10.Position = 3;
     w10.Expand   = false;
     w10.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 816;
     this.DefaultHeight = 643;
     this.Show();
     this.playlist.DragEnd  += new Gtk.DragEndHandler(this.OnNodeview1DragEnd);
     this.playlist.DragDrop += new Gtk.DragDropHandler(this.OnNodeview1DragDrop);
 }
Beispiel #52
0
        public GroupChatView(GroupChatModel groupChat) : base(groupChat)
        {
            Trace.Call(groupChat);

            _GroupChatModel = groupChat;

            // person list
            Participants  = new List <PersonModel>();
            _OutputHPaned = new Gtk.HPaned();
            _OutputHPaned.ButtonPressEvent += (sender, e) => {;
                                                              // reset person list size on double click
                                                              if (e.Event.Type == Gdk.EventType.TwoButtonPress &&
                                                                  e.Event.Button == 1)
                                                              {
                                                                  GLib.Timeout.Add(200, delegate {
                        _OutputHPaned.Position = -1;
                        return(false);
                    });
                                                              }
            };

            Gtk.TreeView tv = new Gtk.TreeView();
            _PersonTreeView = tv;
            Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow();
            PersonScrolledWindow = sw;
            sw.HscrollbarPolicy  = Gtk.PolicyType.Never;
            sw.SizeRequested    += (o, args) => {
                // predict and set useful treeview width
                var persons = SyncedPersons;
                if (persons == null || persons.Count == 0)
                {
                    return;
                }

                int longestNameWidth = 0;
                foreach (var person in persons.Values)
                {
                    int lineWidth, lineHeigth;
                    using (var layout = _PersonTreeView.CreatePangoLayout(person.IdentityName)) {
                        layout.GetPixelSize(out lineWidth, out lineHeigth);
                    }
                    if (lineWidth > longestNameWidth)
                    {
                        longestNameWidth = lineWidth;
                    }
                }

                var bestSize = new Gtk.Requisition()
                {
                    Width = longestNameWidth
                };
                args.Requisition = bestSize;
            };

            //tv.CanFocus = false;
            tv.BorderWidth    = 0;
            tv.Selection.Mode = Gtk.SelectionMode.Multiple;
            sw.Add(tv);

            Gtk.TreeViewColumn   column;
            Gtk.CellRendererText cellr = new Gtk.CellRendererText();
            IdentityNameCellRenderer = cellr;
            column = new Gtk.TreeViewColumn(String.Empty, cellr);
            column.SortColumnId  = 0;
            column.Spacing       = 0;
            column.SortIndicator = false;
            column.Sizing        = Gtk.TreeViewColumnSizing.Autosize;
            // FIXME: this callback leaks memory
            column.SetCellDataFunc(cellr, new Gtk.TreeCellDataFunc(RenderPersonIdentityName));
            tv.AppendColumn(column);
            _IdentityNameColumn = column;

            Gtk.ListStore liststore = new Gtk.ListStore(typeof(PersonModel));
            liststore.SetSortColumnId(0, Gtk.SortType.Ascending);
            liststore.SetSortFunc(0, new Gtk.TreeIterCompareFunc(SortPersonListStore));
            _PersonListStore = liststore;

            tv.Model           = liststore;
            tv.SearchColumn    = 0;
            tv.SearchEqualFunc = (model, col, key, iter) => {
                var person = (PersonModel)model.GetValue(iter, col);
                // Ladies and gentlemen welcome to C
                // 0 means it matched but 0 as bool is false. So if it matches
                // we have to return false. Still not clear? true is false and
                // false is true, weirdo! If you think this is retarded,
                // yes it is.
                return(!person.IdentityName.StartsWith(key, StringComparison.InvariantCultureIgnoreCase));
            };
            tv.EnableSearch   = true;
            tv.RowActivated  += new Gtk.RowActivatedHandler(OnPersonsRowActivated);
            tv.FocusOutEvent += OnPersonTreeViewFocusOutEvent;

            // popup menu
            _PersonMenu = new Gtk.Menu();
            // don't loose the focus else we lose the selection too!
            // see OnPersonTreeViewFocusOutEvent()
            _PersonMenu.TakeFocus = false;
            _PersonMenu.Shown    += OnPersonMenuShown;

            _PersonTreeView.ButtonPressEvent += _OnPersonTreeViewButtonPressEvent;
            _PersonTreeView.KeyPressEvent    += OnPersonTreeViewKeyPressEvent;
            // frame needed for events when selecting something in the treeview
            _PersonTreeViewFrame = new Gtk.Frame();
            _PersonTreeViewFrame.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(_OnUserListButtonReleaseEvent);
            _PersonTreeViewFrame.Add(sw);

            // topic
            // don't worry, ApplyConfig() will add us to the OutputVBox!
            _OutputVBox = new Gtk.VBox();

            _TopicTextView                        = new MessageTextView();
            _TopicTextView.Editable               = false;
            _TopicTextView.WrapMode               = Gtk.WrapMode.WordChar;
            _TopicScrolledWindow                  = new Gtk.ScrolledWindow();
            _TopicScrolledWindow.ShadowType       = Gtk.ShadowType.In;
            _TopicScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Never;
            _TopicScrolledWindow.Add(_TopicTextView);
            // make sure the topic is invisible and remains by default and
            // visible when a topic gets set
            _TopicScrolledWindow.ShowAll();
            _TopicScrolledWindow.Visible        = false;
            _TopicScrolledWindow.NoShowAll      = true;
            _TopicScrolledWindow.SizeRequested += delegate(object o, Gtk.SizeRequestedArgs args) {
                // predict and set useful topic heigth
                int lineWidth, lineHeight;
                using (var layout = _TopicTextView.CreatePangoLayout("Test Topic")) {
                    layout.GetPixelSize(out lineWidth, out lineHeight);
                }
                var lineSpacing = _TopicTextView.PixelsAboveLines +
                                  _TopicTextView.PixelsBelowLines;
                var it       = _TopicTextView.Buffer.StartIter;
                int newLines = 1;
                // move to end of next visual line
                while (_TopicTextView.ForwardDisplayLineEnd(ref it))
                {
                    newLines++;
                    // calling ForwardDisplayLineEnd repeatedly stays on the same position
                    // therefor we move one cursor position further
                    it.ForwardCursorPosition();
                }
                newLines = Math.Min(newLines, 3);
                var bestSize = new Gtk.Requisition()
                {
                    Height = ((lineHeight + lineSpacing) * newLines) + 4
                };
                args.Requisition = bestSize;
            };

            Add(_OutputHPaned);

            //ApplyConfig(Frontend.UserConfig);

            ShowAll();
        }
Beispiel #53
0
        public InsertTimestampPreferences() : base(false, 12)
        {
            // Get current values
            String dateFormat = (string)Preferences.Get(
                Preferences.INSERT_TIMESTAMP_FORMAT);

            DateTime now = DateTime.Now;

            // Label
            Gtk.Label label = new Gtk.Label(Catalog.GetString(
                                                "Choose one of the predefined formats " +
                                                "or use your own."));
            label.Wrap   = true;
            label.Xalign = 0;
            PackStart(label);

            // Use Selected Format
            selected_radio = new Gtk.RadioButton(Catalog.GetString(
                                                     "Use _Selected Format"));
            PackStart(selected_radio);

            // 1st column (visible): formatted date
            // 2nd column (not visible): date format
            store = new Gtk.ListStore(typeof(string),
                                      typeof(string));
            foreach (String format in formats)
            {
                store.AppendValues(now.ToString(format), format);
            }

            scroll            = new Gtk.ScrolledWindow();
            scroll.ShadowType = Gtk.ShadowType.In;
            PackStart(scroll);

            tv = new Gtk.TreeView(store);
            tv.HeadersVisible = false;
            tv.AppendColumn("Format", new Gtk.CellRendererText(),
                            "text", 0);
            scroll.Add(tv);

            // Use Custom Format
            Gtk.HBox customBox = new Gtk.HBox(false, 12);
            PackStart(customBox);

            custom_radio = new Gtk.RadioButton(
                selected_radio, Catalog.GetString("_Use Custom Format"));
            customBox.PackStart(custom_radio);

            custom_entry = new Gtk.Entry();
            customBox.PackStart(custom_entry);

            IPropertyEditor entryEditor = Services.Factory.CreatePropertyEditorEntry(
                Preferences.INSERT_TIMESTAMP_FORMAT, custom_entry);

            entryEditor.Setup();

            // Activate/deactivate widgets
            bool useCustom = true;

            Gtk.TreeIter iter;
            store.GetIterFirst(out iter);

            foreach (object[] row in store)
            {
                if (dateFormat.Equals(row[1]))
                {
                    // Found format in list
                    useCustom = false;
                    break;
                }
                store.IterNext(ref iter);
            }

            if (useCustom)
            {
                custom_radio.Active = true;
                scroll.Sensitive    = false;
            }
            else
            {
                selected_radio.Active  = true;
                custom_entry.Sensitive = false;
                tv.Selection.SelectIter(iter);
                Gtk.TreePath path = store.GetPath(iter);
                tv.ScrollToCell(path, null, false, 0, 0);
            }

            // Register Toggled event for one radio button only
            selected_radio.Toggled += OnSelectedRadioToggled;
            tv.Selection.Changed   += OnSelectionChanged;

            ShowAll();
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog
     this.Name            = "MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog";
     this.TypeHint        = ((Gdk.WindowTypeHint)(1));
     this.WindowPosition  = ((Gtk.WindowPosition)(1));
     this.SkipTaskbarHint = true;
     this.HasSeparator    = false;
     // Internal child MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.notebook             = new Gtk.Notebook();
     this.notebook.CanFocus    = true;
     this.notebook.Name        = "notebook";
     this.notebook.CurrentPage = 0;
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.tableGeneral               = new Gtk.Table(((uint)(7)), ((uint)(2)), false);
     this.tableGeneral.Name          = "tableGeneral";
     this.tableGeneral.RowSpacing    = ((uint)(6));
     this.tableGeneral.ColumnSpacing = ((uint)(6));
     this.tableGeneral.BorderWidth   = ((uint)(6));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.comboProvider      = new Gtk.ComboBox();
     this.comboProvider.Name = "comboProvider";
     this.tableGeneral.Add(this.comboProvider);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.tableGeneral[this.comboProvider]));
     w2.LeftAttach  = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.XOptions    = ((Gtk.AttachOptions)(4));
     w2.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.entryName                  = new Gtk.Entry();
     this.entryName.CanDefault       = true;
     this.entryName.CanFocus         = true;
     this.entryName.Name             = "entryName";
     this.entryName.IsEditable       = true;
     this.entryName.ActivatesDefault = true;
     this.entryName.InvisibleChar    = '●';
     this.tableGeneral.Add(this.entryName);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryName]));
     w3.TopAttach    = ((uint)(1));
     w3.BottomAttach = ((uint)(2));
     w3.LeftAttach   = ((uint)(1));
     w3.RightAttach  = ((uint)(2));
     w3.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.entryServer               = new Gtk.Entry();
     this.entryServer.CanFocus      = true;
     this.entryServer.Name          = "entryServer";
     this.entryServer.IsEditable    = true;
     this.entryServer.InvisibleChar = '●';
     this.tableGeneral.Add(this.entryServer);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryServer]));
     w4.TopAttach    = ((uint)(2));
     w4.BottomAttach = ((uint)(3));
     w4.LeftAttach   = ((uint)(1));
     w4.RightAttach  = ((uint)(2));
     w4.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.entryUsername               = new Gtk.Entry();
     this.entryUsername.CanFocus      = true;
     this.entryUsername.Name          = "entryUsername";
     this.entryUsername.IsEditable    = true;
     this.entryUsername.InvisibleChar = '●';
     this.tableGeneral.Add(this.entryUsername);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryUsername]));
     w5.TopAttach    = ((uint)(4));
     w5.BottomAttach = ((uint)(5));
     w5.LeftAttach   = ((uint)(1));
     w5.RightAttach  = ((uint)(2));
     w5.XOptions     = ((Gtk.AttachOptions)(4));
     w5.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.hboxDatabase         = new Gtk.HBox();
     this.hboxDatabase.Name    = "hboxDatabase";
     this.hboxDatabase.Spacing = 6;
     // Container child hboxDatabase.Gtk.Box+BoxChild
     this.comboDatabase      = Gtk.ComboBoxEntry.NewText();
     this.comboDatabase.Name = "comboDatabase";
     this.hboxDatabase.Add(this.comboDatabase);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.comboDatabase]));
     w6.Position = 0;
     // Container child hboxDatabase.Gtk.Box+BoxChild
     this.buttonRefresh              = new Gtk.Button();
     this.buttonRefresh.CanFocus     = true;
     this.buttonRefresh.Name         = "buttonRefresh";
     this.buttonRefresh.UseStock     = true;
     this.buttonRefresh.UseUnderline = true;
     this.buttonRefresh.Label        = "gtk-refresh";
     this.hboxDatabase.Add(this.buttonRefresh);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.buttonRefresh]));
     w7.Position = 1;
     w7.Expand   = false;
     w7.Fill     = false;
     // Container child hboxDatabase.Gtk.Box+BoxChild
     this.buttonOpen              = new Gtk.Button();
     this.buttonOpen.CanFocus     = true;
     this.buttonOpen.Name         = "buttonOpen";
     this.buttonOpen.UseStock     = true;
     this.buttonOpen.UseUnderline = true;
     this.buttonOpen.Label        = "gtk-open";
     this.hboxDatabase.Add(this.buttonOpen);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.buttonOpen]));
     w8.Position = 2;
     w8.Expand   = false;
     w8.Fill     = false;
     this.tableGeneral.Add(this.hboxDatabase);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.tableGeneral[this.hboxDatabase]));
     w9.TopAttach    = ((uint)(6));
     w9.BottomAttach = ((uint)(7));
     w9.LeftAttach   = ((uint)(1));
     w9.RightAttach  = ((uint)(2));
     w9.XOptions     = ((Gtk.AttachOptions)(4));
     w9.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.hboxPassword         = new Gtk.HBox();
     this.hboxPassword.Name    = "hboxPassword";
     this.hboxPassword.Spacing = 6;
     // Container child hboxPassword.Gtk.Box+BoxChild
     this.entryPassword               = new Gtk.Entry();
     this.entryPassword.CanFocus      = true;
     this.entryPassword.Name          = "entryPassword";
     this.entryPassword.IsEditable    = true;
     this.entryPassword.Visibility    = false;
     this.entryPassword.InvisibleChar = '●';
     this.hboxPassword.Add(this.entryPassword);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hboxPassword[this.entryPassword]));
     w10.Position = 0;
     // Container child hboxPassword.Gtk.Box+BoxChild
     this.checkSavePassword               = new Gtk.CheckButton();
     this.checkSavePassword.CanFocus      = true;
     this.checkSavePassword.Name          = "checkSavePassword";
     this.checkSavePassword.Label         = Mono.Unix.Catalog.GetString("Save Password");
     this.checkSavePassword.Active        = true;
     this.checkSavePassword.DrawIndicator = true;
     this.checkSavePassword.UseUnderline  = true;
     this.hboxPassword.Add(this.checkSavePassword);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hboxPassword[this.checkSavePassword]));
     w11.Position = 1;
     w11.Expand   = false;
     this.tableGeneral.Add(this.hboxPassword);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.tableGeneral[this.hboxPassword]));
     w12.TopAttach    = ((uint)(5));
     w12.BottomAttach = ((uint)(6));
     w12.LeftAttach   = ((uint)(1));
     w12.RightAttach  = ((uint)(2));
     w12.XOptions     = ((Gtk.AttachOptions)(4));
     w12.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.Xalign    = 0F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Type");
     this.tableGeneral.Add(this.label3);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label3]));
     w13.XOptions = ((Gtk.AttachOptions)(4));
     w13.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.Xalign    = 0F;
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Name");
     this.tableGeneral.Add(this.label4);
     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label4]));
     w14.TopAttach    = ((uint)(1));
     w14.BottomAttach = ((uint)(2));
     w14.XOptions     = ((Gtk.AttachOptions)(4));
     w14.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label5           = new Gtk.Label();
     this.label5.Name      = "label5";
     this.label5.Xalign    = 0F;
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Server");
     this.tableGeneral.Add(this.label5);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label5]));
     w15.TopAttach    = ((uint)(2));
     w15.BottomAttach = ((uint)(3));
     w15.XOptions     = ((Gtk.AttachOptions)(4));
     w15.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label6           = new Gtk.Label();
     this.label6.Name      = "label6";
     this.label6.Xalign    = 0F;
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("Port");
     this.tableGeneral.Add(this.label6);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label6]));
     w16.TopAttach    = ((uint)(3));
     w16.BottomAttach = ((uint)(4));
     w16.XOptions     = ((Gtk.AttachOptions)(4));
     w16.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label7           = new Gtk.Label();
     this.label7.Name      = "label7";
     this.label7.Xalign    = 0F;
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Username");
     this.tableGeneral.Add(this.label7);
     Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label7]));
     w17.TopAttach    = ((uint)(4));
     w17.BottomAttach = ((uint)(5));
     w17.XOptions     = ((Gtk.AttachOptions)(4));
     w17.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label8           = new Gtk.Label();
     this.label8.Name      = "label8";
     this.label8.Xalign    = 0F;
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Password");
     this.tableGeneral.Add(this.label8);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label8]));
     w18.TopAttach    = ((uint)(5));
     w18.BottomAttach = ((uint)(6));
     w18.XOptions     = ((Gtk.AttachOptions)(4));
     w18.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label9           = new Gtk.Label();
     this.label9.Name      = "label9";
     this.label9.Xalign    = 0F;
     this.label9.LabelProp = Mono.Unix.Catalog.GetString("Database");
     this.tableGeneral.Add(this.label9);
     Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label9]));
     w19.TopAttach    = ((uint)(6));
     w19.BottomAttach = ((uint)(7));
     w19.XOptions     = ((Gtk.AttachOptions)(4));
     w19.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.spinPort          = new Gtk.SpinButton(1, 65535, 1);
     this.spinPort.CanFocus = true;
     this.spinPort.Name     = "spinPort";
     this.spinPort.Adjustment.PageIncrement = 10;
     this.spinPort.ClimbRate = 1;
     this.spinPort.Numeric   = true;
     this.spinPort.Value     = 1;
     this.tableGeneral.Add(this.spinPort);
     Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.tableGeneral[this.spinPort]));
     w20.TopAttach    = ((uint)(3));
     w20.BottomAttach = ((uint)(4));
     w20.LeftAttach   = ((uint)(1));
     w20.RightAttach  = ((uint)(2));
     w20.XOptions     = ((Gtk.AttachOptions)(4));
     w20.YOptions     = ((Gtk.AttachOptions)(4));
     this.notebook.Add(this.tableGeneral);
     Gtk.Notebook.NotebookChild w21 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.tableGeneral]));
     w21.TabExpand = false;
     // Notebook tab
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("General");
     this.notebook.SetTabLabel(this.tableGeneral, this.label1);
     this.label1.ShowAll();
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.tableAdvanced               = new Gtk.Table(((uint)(4)), ((uint)(2)), false);
     this.tableAdvanced.Name          = "tableAdvanced";
     this.tableAdvanced.RowSpacing    = ((uint)(6));
     this.tableAdvanced.ColumnSpacing = ((uint)(6));
     this.tableAdvanced.BorderWidth   = ((uint)(6));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.checkCustom               = new Gtk.CheckButton();
     this.checkCustom.CanFocus      = true;
     this.checkCustom.Name          = "checkCustom";
     this.checkCustom.Label         = Mono.Unix.Catalog.GetString("Use custom connection string");
     this.checkCustom.DrawIndicator = true;
     this.checkCustom.UseUnderline  = true;
     this.tableAdvanced.Add(this.checkCustom);
     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.checkCustom]));
     w22.TopAttach    = ((uint)(2));
     w22.BottomAttach = ((uint)(3));
     w22.RightAttach  = ((uint)(2));
     w22.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.label10           = new Gtk.Label();
     this.label10.Name      = "label10";
     this.label10.Xalign    = 0F;
     this.label10.LabelProp = Mono.Unix.Catalog.GetString("Min Pool Size");
     this.tableAdvanced.Add(this.label10);
     Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.label10]));
     w23.XOptions = ((Gtk.AttachOptions)(4));
     w23.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.label11           = new Gtk.Label();
     this.label11.Name      = "label11";
     this.label11.Xalign    = 0F;
     this.label11.LabelProp = Mono.Unix.Catalog.GetString("Max Pool Size");
     this.tableAdvanced.Add(this.label11);
     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.label11]));
     w24.TopAttach    = ((uint)(1));
     w24.BottomAttach = ((uint)(2));
     w24.XOptions     = ((Gtk.AttachOptions)(4));
     w24.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.scrolledwindow                  = new Gtk.ScrolledWindow();
     this.scrolledwindow.Sensitive        = false;
     this.scrolledwindow.CanFocus         = true;
     this.scrolledwindow.Name             = "scrolledwindow";
     this.scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow.Gtk.Container+ContainerChild
     this.textConnectionString          = new Gtk.TextView();
     this.textConnectionString.CanFocus = true;
     this.textConnectionString.Name     = "textConnectionString";
     this.scrolledwindow.Add(this.textConnectionString);
     this.tableAdvanced.Add(this.scrolledwindow);
     Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.scrolledwindow]));
     w26.TopAttach    = ((uint)(3));
     w26.BottomAttach = ((uint)(4));
     w26.RightAttach  = ((uint)(2));
     w26.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.spinMaxPoolSize          = new Gtk.SpinButton(1, 100, 1);
     this.spinMaxPoolSize.CanFocus = true;
     this.spinMaxPoolSize.Name     = "spinMaxPoolSize";
     this.spinMaxPoolSize.Adjustment.PageIncrement = 10;
     this.spinMaxPoolSize.ClimbRate = 1;
     this.spinMaxPoolSize.Numeric   = true;
     this.spinMaxPoolSize.Value     = 5;
     this.tableAdvanced.Add(this.spinMaxPoolSize);
     Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.spinMaxPoolSize]));
     w27.TopAttach    = ((uint)(1));
     w27.BottomAttach = ((uint)(2));
     w27.LeftAttach   = ((uint)(1));
     w27.RightAttach  = ((uint)(2));
     w27.XOptions     = ((Gtk.AttachOptions)(4));
     w27.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.spinMinPoolSize          = new Gtk.SpinButton(1, 100, 1);
     this.spinMinPoolSize.CanFocus = true;
     this.spinMinPoolSize.Name     = "spinMinPoolSize";
     this.spinMinPoolSize.Adjustment.PageIncrement = 10;
     this.spinMinPoolSize.ClimbRate = 1;
     this.spinMinPoolSize.Numeric   = true;
     this.spinMinPoolSize.Value     = 1;
     this.tableAdvanced.Add(this.spinMinPoolSize);
     Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.spinMinPoolSize]));
     w28.LeftAttach  = ((uint)(1));
     w28.RightAttach = ((uint)(2));
     w28.XOptions    = ((Gtk.AttachOptions)(4));
     w28.YOptions    = ((Gtk.AttachOptions)(4));
     this.notebook.Add(this.tableAdvanced);
     Gtk.Notebook.NotebookChild w29 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.tableAdvanced]));
     w29.Position  = 1;
     w29.TabExpand = false;
     // Notebook tab
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Advanced");
     this.notebook.SetTabLabel(this.tableAdvanced, this.label2);
     this.label2.ShowAll();
     w1.Add(this.notebook);
     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(w1[this.notebook]));
     w30.Position = 0;
     w30.Expand   = false;
     w30.Fill     = false;
     // Internal child MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.ActionArea
     Gtk.HButtonBox w31 = this.ActionArea;
     w31.Name        = "dialog1_ActionArea";
     w31.Spacing     = 6;
     w31.BorderWidth = ((uint)(5));
     w31.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 w32 = ((Gtk.ButtonBox.ButtonBoxChild)(w31[this.buttonCancel]));
     w32.Expand = false;
     w32.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 w33 = ((Gtk.ButtonBox.ButtonBoxChild)(w31[this.buttonOk]));
     w33.Position = 1;
     w33.Expand   = false;
     w33.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth         = 606;
     this.DefaultHeight        = 351;
     this.entryName.HasDefault = true;
     this.Show();
     this.spinPort.Changed        += new System.EventHandler(this.PortChanged);
     this.entryPassword.Changed   += new System.EventHandler(this.PasswordChanged);
     this.buttonRefresh.Clicked   += new System.EventHandler(this.RefreshClicked);
     this.buttonOpen.Clicked      += new System.EventHandler(this.OpenClicked);
     this.entryUsername.Changed   += new System.EventHandler(this.UsernameChanged);
     this.entryServer.Changed     += new System.EventHandler(this.ServerChanged);
     this.entryName.Changed       += new System.EventHandler(this.NameChanged);
     this.comboProvider.Changed   += new System.EventHandler(this.ProviderChanged);
     this.spinMinPoolSize.Changed += new System.EventHandler(this.MinPoolSizeChanged);
     this.spinMaxPoolSize.Changed += new System.EventHandler(this.MaxPoolSizeChanged);
     this.buttonCancel.Clicked    += new System.EventHandler(this.OnCancelClicked);
     this.buttonOk.Clicked        += new System.EventHandler(this.OnOkClicked);
 }
Beispiel #55
0
        public FeedbackDialog(int x, int y) : base(Gtk.WindowType.Toplevel)
        {
            SetDefaultSize(350, 200);
            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);
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Monsoon.RssManagerDialog
     this.Name           = "Monsoon.RssManagerDialog";
     this.Title          = Mono.Unix.Catalog.GetString("Monsoon RSS Manager");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Internal child Monsoon.RssManagerDialog.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;
     this.vbox2.BorderWidth = ((uint)(5));
     // 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.label5           = new Gtk.Label();
     this.label5.Name      = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("RSS Feed:");
     this.hbox1.Add(this.label5);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label5]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.feedUrlEntry               = new Gtk.Entry();
     this.feedUrlEntry.CanFocus      = true;
     this.feedUrlEntry.Name          = "feedUrlEntry";
     this.feedUrlEntry.IsEditable    = true;
     this.feedUrlEntry.InvisibleChar = '●';
     this.hbox1.Add(this.feedUrlEntry);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.feedUrlEntry]));
     w3.Position = 1;
     this.vbox2.Add(this.hbox1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.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.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.feedTreeView                = new Gtk.TreeView();
     this.feedTreeView.CanFocus       = true;
     this.feedTreeView.Name           = "feedTreeView";
     this.feedTreeView.HeadersVisible = false;
     this.scrolledwindow1.Add(this.feedTreeView);
     this.hbox2.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.scrolledwindow1]));
     w6.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.addFeedButton              = new Gtk.Button();
     this.addFeedButton.CanFocus     = true;
     this.addFeedButton.Name         = "addFeedButton";
     this.addFeedButton.UseStock     = true;
     this.addFeedButton.UseUnderline = true;
     this.addFeedButton.Label        = "gtk-add";
     this.vbox3.Add(this.addFeedButton);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox3[this.addFeedButton]));
     w7.Position = 0;
     w7.Expand   = false;
     w7.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.removeFeedButton              = new Gtk.Button();
     this.removeFeedButton.CanFocus     = true;
     this.removeFeedButton.Name         = "removeFeedButton";
     this.removeFeedButton.UseStock     = true;
     this.removeFeedButton.UseUnderline = true;
     this.removeFeedButton.Label        = "gtk-remove";
     this.vbox3.Add(this.removeFeedButton);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.removeFeedButton]));
     w8.Position = 1;
     w8.Expand   = false;
     w8.Fill     = false;
     this.hbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3]));
     w9.Position = 1;
     w9.Expand   = false;
     w9.Fill     = false;
     this.vbox2.Add(this.hbox2);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2]));
     w10.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("Feeds");
     this.notebook1.SetTabLabel(this.vbox2, this.label1);
     this.label1.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.hbox3             = new Gtk.HBox();
     this.hbox3.Name        = "hbox3";
     this.hbox3.Spacing     = 6;
     this.hbox3.BorderWidth = ((uint)(5));
     // Container child hbox3.Gtk.Box+BoxChild
     this.vbox4         = new Gtk.VBox();
     this.vbox4.Name    = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.scrolledwindow2            = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus   = true;
     this.scrolledwindow2.Name       = "scrolledwindow2";
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     this.filterTreeView                = new Gtk.TreeView();
     this.filterTreeView.CanFocus       = true;
     this.filterTreeView.Name           = "filterTreeView";
     this.filterTreeView.HeadersVisible = false;
     this.scrolledwindow2.Add(this.filterTreeView);
     this.vbox4.Add(this.scrolledwindow2);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox4[this.scrolledwindow2]));
     w13.Position = 0;
     // Container child vbox4.Gtk.Box+BoxChild
     this.hbox4         = new Gtk.HBox();
     this.hbox4.Name    = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.addFilterButton              = new Gtk.Button();
     this.addFilterButton.CanFocus     = true;
     this.addFilterButton.Name         = "addFilterButton";
     this.addFilterButton.UseStock     = true;
     this.addFilterButton.UseUnderline = true;
     this.addFilterButton.Label        = "gtk-add";
     this.hbox4.Add(this.addFilterButton);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox4[this.addFilterButton]));
     w14.Position = 0;
     w14.Expand   = false;
     w14.Fill     = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.removeFilterButton              = new Gtk.Button();
     this.removeFilterButton.CanFocus     = true;
     this.removeFilterButton.Name         = "removeFilterButton";
     this.removeFilterButton.UseStock     = true;
     this.removeFilterButton.UseUnderline = true;
     this.removeFilterButton.Label        = "gtk-remove";
     this.hbox4.Add(this.removeFilterButton);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox4[this.removeFilterButton]));
     w15.Position = 1;
     w15.Expand   = false;
     w15.Fill     = false;
     this.vbox4.Add(this.hbox4);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox4]));
     w16.Position = 1;
     w16.Expand   = false;
     w16.Fill     = false;
     this.hbox3.Add(this.vbox4);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox3[this.vbox4]));
     w17.Position = 0;
     w17.Expand   = false;
     w17.Fill     = false;
     // Container child hbox3.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.GtkAlignment4             = new Gtk.Alignment(1F, 0F, 1F, 1F);
     this.GtkAlignment4.Name        = "GtkAlignment4";
     this.GtkAlignment4.LeftPadding = ((uint)(12));
     // Container child GtkAlignment4.Gtk.Container+ContainerChild
     this.filterTable               = new Gtk.Table(((uint)(7)), ((uint)(2)), false);
     this.filterTable.Name          = "filterTable";
     this.filterTable.RowSpacing    = ((uint)(6));
     this.filterTable.ColumnSpacing = ((uint)(6));
     // Container child filterTable.Gtk.Table+TableChild
     this.excludeEntry               = new Gtk.Entry();
     this.excludeEntry.CanFocus      = true;
     this.excludeEntry.Name          = "excludeEntry";
     this.excludeEntry.IsEditable    = true;
     this.excludeEntry.InvisibleChar = '●';
     this.filterTable.Add(this.excludeEntry);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.filterTable[this.excludeEntry]));
     w18.TopAttach    = ((uint)(2));
     w18.BottomAttach = ((uint)(3));
     w18.LeftAttach   = ((uint)(1));
     w18.RightAttach  = ((uint)(2));
     w18.XOptions     = ((Gtk.AttachOptions)(4));
     w18.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child filterTable.Gtk.Table+TableChild
     this.filterFeedCombobox      = new Gtk.ComboBox();
     this.filterFeedCombobox.Name = "filterFeedCombobox";
     this.filterTable.Add(this.filterFeedCombobox);
     Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.filterTable[this.filterFeedCombobox]));
     w19.TopAttach    = ((uint)(4));
     w19.BottomAttach = ((uint)(5));
     w19.LeftAttach   = ((uint)(1));
     w19.RightAttach  = ((uint)(2));
     w19.XOptions     = ((Gtk.AttachOptions)(4));
     w19.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child filterTable.Gtk.Table+TableChild
     this.includeEntry               = new Gtk.Entry();
     this.includeEntry.CanFocus      = true;
     this.includeEntry.Name          = "includeEntry";
     this.includeEntry.IsEditable    = true;
     this.includeEntry.InvisibleChar = '●';
     this.filterTable.Add(this.includeEntry);
     Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.filterTable[this.includeEntry]));
     w20.TopAttach    = ((uint)(1));
     w20.BottomAttach = ((uint)(2));
     w20.LeftAttach   = ((uint)(1));
     w20.RightAttach  = ((uint)(2));
     w20.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child filterTable.Gtk.Table+TableChild
     this.label10           = new Gtk.Label();
     this.label10.Name      = "label10";
     this.label10.Xalign    = 0F;
     this.label10.LabelProp = Mono.Unix.Catalog.GetString("Name:");
     this.filterTable.Add(this.label10);
     Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.filterTable[this.label10]));
     w21.XOptions = ((Gtk.AttachOptions)(4));
     w21.YOptions = ((Gtk.AttachOptions)(4));
     // Container child filterTable.Gtk.Table+TableChild
     this.label11           = new Gtk.Label();
     this.label11.Name      = "label11";
     this.label11.Xalign    = 0F;
     this.label11.LabelProp = Mono.Unix.Catalog.GetString("Feed:");
     this.filterTable.Add(this.label11);
     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.filterTable[this.label11]));
     w22.TopAttach    = ((uint)(4));
     w22.BottomAttach = ((uint)(5));
     w22.XOptions     = ((Gtk.AttachOptions)(4));
     w22.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child filterTable.Gtk.Table+TableChild
     this.label6           = new Gtk.Label();
     this.label6.Name      = "label6";
     this.label6.Xalign    = 0F;
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("Filter:");
     this.filterTable.Add(this.label6);
     Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.filterTable[this.label6]));
     w23.TopAttach    = ((uint)(1));
     w23.BottomAttach = ((uint)(2));
     w23.XOptions     = ((Gtk.AttachOptions)(4));
     w23.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child filterTable.Gtk.Table+TableChild
     this.label7           = new Gtk.Label();
     this.label7.Name      = "label7";
     this.label7.Xalign    = 0F;
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Exclude:");
     this.filterTable.Add(this.label7);
     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.filterTable[this.label7]));
     w24.TopAttach    = ((uint)(2));
     w24.BottomAttach = ((uint)(3));
     w24.XOptions     = ((Gtk.AttachOptions)(4));
     w24.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child filterTable.Gtk.Table+TableChild
     this.label8           = new Gtk.Label();
     this.label8.Name      = "label8";
     this.label8.Xalign    = 0F;
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Save Path:");
     this.filterTable.Add(this.label8);
     Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.filterTable[this.label8]));
     w25.TopAttach    = ((uint)(3));
     w25.BottomAttach = ((uint)(4));
     w25.XOptions     = ((Gtk.AttachOptions)(4));
     w25.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child filterTable.Gtk.Table+TableChild
     this.label9           = new Gtk.Label();
     this.label9.Name      = "label9";
     this.label9.Xalign    = 0F;
     this.label9.LabelProp = Mono.Unix.Catalog.GetString("Label:");
     this.filterTable.Add(this.label9);
     Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.filterTable[this.label9]));
     w26.TopAttach    = ((uint)(5));
     w26.BottomAttach = ((uint)(6));
     w26.XOptions     = ((Gtk.AttachOptions)(4));
     w26.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child filterTable.Gtk.Table+TableChild
     this.labelCombobox      = new Gtk.ComboBox();
     this.labelCombobox.Name = "labelCombobox";
     this.filterTable.Add(this.labelCombobox);
     Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.filterTable[this.labelCombobox]));
     w27.TopAttach    = ((uint)(5));
     w27.BottomAttach = ((uint)(6));
     w27.LeftAttach   = ((uint)(1));
     w27.RightAttach  = ((uint)(2));
     w27.XOptions     = ((Gtk.AttachOptions)(4));
     w27.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child filterTable.Gtk.Table+TableChild
     this.nameEntry               = new Gtk.Entry();
     this.nameEntry.CanFocus      = true;
     this.nameEntry.Name          = "nameEntry";
     this.nameEntry.IsEditable    = true;
     this.nameEntry.InvisibleChar = '●';
     this.filterTable.Add(this.nameEntry);
     Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.filterTable[this.nameEntry]));
     w28.LeftAttach  = ((uint)(1));
     w28.RightAttach = ((uint)(2));
     w28.XOptions    = ((Gtk.AttachOptions)(4));
     w28.YOptions    = ((Gtk.AttachOptions)(4));
     this.GtkAlignment4.Add(this.filterTable);
     this.frame1.Add(this.GtkAlignment4);
     this.GtkLabel6           = new Gtk.Label();
     this.GtkLabel6.Name      = "GtkLabel6";
     this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Filter Settings</b>");
     this.GtkLabel6.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel6;
     this.hbox3.Add(this.frame1);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox3[this.frame1]));
     w31.Position = 1;
     this.notebook1.Add(this.hbox3);
     Gtk.Notebook.NotebookChild w32 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.hbox3]));
     w32.Position = 1;
     // Notebook tab
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Filters");
     this.notebook1.SetTabLabel(this.hbox3, this.label2);
     this.label2.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.vbox5             = new Gtk.VBox();
     this.vbox5.Name        = "vbox5";
     this.vbox5.Spacing     = 6;
     this.vbox5.BorderWidth = ((uint)(5));
     // Container child vbox5.Gtk.Box+BoxChild
     this.hbox5         = new Gtk.HBox();
     this.hbox5.Name    = "hbox5";
     this.hbox5.Spacing = 6;
     // Container child hbox5.Gtk.Box+BoxChild
     this.feedCombobox      = new Gtk.ComboBox();
     this.feedCombobox.Name = "feedCombobox";
     this.hbox5.Add(this.feedCombobox);
     Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.hbox5[this.feedCombobox]));
     w33.Position = 0;
     // Container child hbox5.Gtk.Box+BoxChild
     this.refreshFeedButton              = new Gtk.Button();
     this.refreshFeedButton.CanFocus     = true;
     this.refreshFeedButton.Name         = "refreshFeedButton";
     this.refreshFeedButton.UseStock     = true;
     this.refreshFeedButton.UseUnderline = true;
     this.refreshFeedButton.Label        = "gtk-refresh";
     this.hbox5.Add(this.refreshFeedButton);
     Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox5[this.refreshFeedButton]));
     w34.Position = 1;
     w34.Expand   = false;
     w34.Fill     = false;
     this.vbox5.Add(this.hbox5);
     Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox5]));
     w35.Position = 0;
     w35.Expand   = false;
     w35.Fill     = false;
     // Container child vbox5.Gtk.Box+BoxChild
     this.scrolledwindow3            = new Gtk.ScrolledWindow();
     this.scrolledwindow3.CanFocus   = true;
     this.scrolledwindow3.Name       = "scrolledwindow3";
     this.scrolledwindow3.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow3.Gtk.Container+ContainerChild
     this.itemTreeView                = new Gtk.TreeView();
     this.itemTreeView.CanFocus       = true;
     this.itemTreeView.Name           = "itemTreeView";
     this.itemTreeView.HeadersVisible = false;
     this.scrolledwindow3.Add(this.itemTreeView);
     this.vbox5.Add(this.scrolledwindow3);
     Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox5[this.scrolledwindow3]));
     w37.Position = 1;
     this.notebook1.Add(this.vbox5);
     Gtk.Notebook.NotebookChild w38 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox5]));
     w38.Position = 2;
     // Notebook tab
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Torrents");
     this.notebook1.SetTabLabel(this.vbox5, this.label3);
     this.label3.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.hbox6             = new Gtk.HBox();
     this.hbox6.Name        = "hbox6";
     this.hbox6.Spacing     = 6;
     this.hbox6.BorderWidth = ((uint)(5));
     // Container child hbox6.Gtk.Box+BoxChild
     this.scrolledwindow4             = new Gtk.ScrolledWindow();
     this.scrolledwindow4.CanFocus    = true;
     this.scrolledwindow4.Name        = "scrolledwindow4";
     this.scrolledwindow4.ShadowType  = ((Gtk.ShadowType)(1));
     this.scrolledwindow4.BorderWidth = ((uint)(5));
     // Container child scrolledwindow4.Gtk.Container+ContainerChild
     this.historyTreeView          = new Gtk.TreeView();
     this.historyTreeView.CanFocus = true;
     this.historyTreeView.Name     = "historyTreeView";
     this.scrolledwindow4.Add(this.historyTreeView);
     this.hbox6.Add(this.scrolledwindow4);
     Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.hbox6[this.scrolledwindow4]));
     w40.Position = 0;
     // Container child hbox6.Gtk.Box+BoxChild
     this.vbox6         = new Gtk.VBox();
     this.vbox6.Name    = "vbox6";
     this.vbox6.Spacing = 6;
     // Container child vbox6.Gtk.Box+BoxChild
     this.removeHistoryButton              = new Gtk.Button();
     this.removeHistoryButton.CanFocus     = true;
     this.removeHistoryButton.Name         = "removeHistoryButton";
     this.removeHistoryButton.UseStock     = true;
     this.removeHistoryButton.UseUnderline = true;
     this.removeHistoryButton.Label        = "gtk-remove";
     this.vbox6.Add(this.removeHistoryButton);
     Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.vbox6[this.removeHistoryButton]));
     w41.Position = 0;
     w41.Expand   = false;
     w41.Fill     = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.clearHistoryButton              = new Gtk.Button();
     this.clearHistoryButton.CanFocus     = true;
     this.clearHistoryButton.Name         = "clearHistoryButton";
     this.clearHistoryButton.UseStock     = true;
     this.clearHistoryButton.UseUnderline = true;
     this.clearHistoryButton.Label        = "gtk-clear";
     this.vbox6.Add(this.clearHistoryButton);
     Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.vbox6[this.clearHistoryButton]));
     w42.Position = 1;
     w42.Expand   = false;
     w42.Fill     = false;
     this.hbox6.Add(this.vbox6);
     Gtk.Box.BoxChild w43 = ((Gtk.Box.BoxChild)(this.hbox6[this.vbox6]));
     w43.Position = 1;
     w43.Expand   = false;
     w43.Fill     = false;
     this.notebook1.Add(this.hbox6);
     Gtk.Notebook.NotebookChild w44 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.hbox6]));
     w44.Position = 3;
     // Notebook tab
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("History");
     this.notebook1.SetTabLabel(this.hbox6, this.label4);
     this.label4.ShowAll();
     w1.Add(this.notebook1);
     Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(w1[this.notebook1]));
     w45.Position = 0;
     // Internal child Monsoon.RssManagerDialog.ActionArea
     Gtk.HButtonBox w46 = this.ActionArea;
     w46.Name        = "GtkDialog_ActionArea";
     w46.Spacing     = 6;
     w46.BorderWidth = ((uint)(5));
     w46.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child GtkDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.Close              = new Gtk.Button();
     this.Close.CanFocus     = true;
     this.Close.Name         = "Close";
     this.Close.UseUnderline = true;
     this.Close.Label        = Mono.Unix.Catalog.GetString("Close");
     this.AddActionWidget(this.Close, 0);
     Gtk.ButtonBox.ButtonBoxChild w47 = ((Gtk.ButtonBox.ButtonBoxChild)(w46[this.Close]));
     w47.Expand = false;
     w47.Fill   = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 549;
     this.DefaultHeight = 384;
     this.label9.Hide();
     this.labelCombobox.Hide();
     this.Show();
     this.addFeedButton.Clicked       += new System.EventHandler(this.OnAddFeedButtonClicked);
     this.removeFeedButton.Clicked    += new System.EventHandler(this.OnRemoveFeedButtonClicked);
     this.addFilterButton.Clicked     += new System.EventHandler(this.OnAddFilterButtonClicked);
     this.removeFilterButton.Clicked  += new System.EventHandler(this.OnRemoveFilterButtonClicked);
     this.refreshFeedButton.Clicked   += new System.EventHandler(this.OnRefreshFeedButtonClicked);
     this.removeHistoryButton.Clicked += new System.EventHandler(this.OnRemoveHistoryButtonClicked);
     this.clearHistoryButton.Clicked  += new System.EventHandler(this.OnClearHistoryButtonClicked);
 }
Beispiel #57
0
        protected override bool OnKeyPressEvent(Gdk.EventKey evnt)
        {
            if ((evnt.State & (ModifierType.Mod1Mask | ModifierType.ControlMask)) != 0)
            {
                return(base.OnKeyPressEvent(evnt));
            }

            bool handled = true;

            // Scroll if image is zoomed in (scrollbars are visible)
            Gtk.ScrolledWindow scrolled_w = this.Parent as Gtk.ScrolledWindow;
            bool scrolled = scrolled_w != null && !this.Fit;

            // Go to the next/previous photo when not zoomed (no scrollbars)
            switch (evnt.Key)
            {
            case Gdk.Key.Up:
            case Gdk.Key.KP_Up:
            case Gdk.Key.Left:
            case Gdk.Key.KP_Left:
            case Gdk.Key.h:
            case Gdk.Key.H:
            case Gdk.Key.k:
            case Gdk.Key.K:
                if (scrolled)
                {
                    handled = false;
                }
                else
                {
                    this.Item.MovePrevious();
                }
                break;

            case Gdk.Key.Page_Up:
            case Gdk.Key.KP_Page_Up:
            case Gdk.Key.BackSpace:
            case Gdk.Key.b:
            case Gdk.Key.B:
                this.Item.MovePrevious();
                break;

            case Gdk.Key.Down:
            case Gdk.Key.KP_Down:
            case Gdk.Key.Right:
            case Gdk.Key.KP_Right:
            case Gdk.Key.j:
            case Gdk.Key.J:
            case Gdk.Key.l:
            case Gdk.Key.L:
                if (scrolled)
                {
                    handled = false;
                }
                else
                {
                    this.Item.MoveNext();
                }
                break;

            case Gdk.Key.Page_Down:
            case Gdk.Key.KP_Page_Down:
            case Gdk.Key.space:
            case Gdk.Key.KP_Space:
            case Gdk.Key.n:
            case Gdk.Key.N:
                this.Item.MoveNext();
                break;

            case Gdk.Key.Home:
            case Gdk.Key.KP_Home:
                this.Item.Index = 0;
                break;

            case Gdk.Key.r:
            case Gdk.Key.R:
                this.Item.Index = new Random().Next(0, this.Query.Count - 1);
                break;

            case Gdk.Key.End:
            case Gdk.Key.KP_End:
                this.Item.Index = this.Query.Count - 1;
                break;

            default:
                handled = false;
                break;
            }

            return(handled || base.OnKeyPressEvent(evnt));
        }
Beispiel #58
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget UI
     Name           = "UI";
     Title          = Mono.Unix.Catalog.GetString("vCardLib UI 1.4");
     Icon           = new Gdk.Pixbuf(System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "./vcard.jpg"));
     WindowPosition = ((Gtk.WindowPosition)(4));
     Gravity        = ((Gdk.Gravity)(5));
     // Container child UI.Gtk.Container+ContainerChild
     vbox1         = new Gtk.VBox();
     vbox1.Name    = "vbox1";
     vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     hbox1         = new Gtk.HBox();
     hbox1.Name    = "hbox1";
     hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     label2           = new Gtk.Label();
     label2.Name      = "label2";
     label2.LabelProp = Mono.Unix.Catalog.GetString("File Path:");
     hbox1.Add(label2);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(hbox1[label2]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     ofd_select_vcard      = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Select a File"), ((Gtk.FileChooserAction)(0)));
     ofd_select_vcard.Name = "ofd_select_vcard";
     hbox1.Add(ofd_select_vcard);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(hbox1[ofd_select_vcard]));
     w2.PackType = ((Gtk.PackType)(1));
     w2.Position = 1;
     vbox1.Add(hbox1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(vbox1[hbox1]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     hbox2         = new Gtk.HBox();
     hbox2.Name    = "hbox2";
     hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     label4           = new Gtk.Label();
     label4.Name      = "label4";
     label4.LabelProp = Mono.Unix.Catalog.GetString("Search:");
     hbox2.Add(label4);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(hbox2[label4]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     txt_search            = new Gtk.TextView();
     txt_search.CanFocus   = true;
     txt_search.Name       = "txt_search";
     txt_search.AcceptsTab = false;
     hbox2.Add(txt_search);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(hbox2[txt_search]));
     w5.Position = 1;
     vbox1.Add(hbox2);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(vbox1[hbox2]));
     w6.Position = 1;
     w6.Expand   = false;
     w6.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     GtkScrolledWindow            = new Gtk.ScrolledWindow();
     GtkScrolledWindow.Name       = "GtkScrolledWindow";
     GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     dgv_contacts          = new Gtk.NodeView();
     dgv_contacts.CanFocus = true;
     dgv_contacts.Name     = "dgv_contacts";
     GtkScrolledWindow.Add(dgv_contacts);
     vbox1.Add(GtkScrolledWindow);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(vbox1[GtkScrolledWindow]));
     w8.Position = 2;
     Add(vbox1);
     if ((Child != null))
     {
         Child.ShowAll();
     }
     DefaultWidth  = 666;
     DefaultHeight = 432;
     Show();
     DeleteEvent += OnDeleteEvent;
     ofd_select_vcard.SelectionChanged += OnOfdSelectVcardSelectionChanged;
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.ModifyCacheDialog
     this.WidthRequest   = 650;
     this.HeightRequest  = 550;
     this.Name           = "ocmgtk.ModifyCacheDialog";
     this.Title          = Mono.Unix.Catalog.GetString("Add/Modify Geocache...");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth    = ((uint)(6));
     // Internal child ocmgtk.ModifyCacheDialog.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 = 0;
     this.notebook1.TabPos      = ((Gtk.PositionType)(0));
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.table2               = new Gtk.Table(((uint)(6)), ((uint)(2)), false);
     this.table2.Name          = "table2";
     this.table2.RowSpacing    = ((uint)(6));
     this.table2.ColumnSpacing = ((uint)(6));
     this.table2.BorderWidth   = ((uint)(6));
     // Container child table2.Gtk.Table+TableChild
     this.codeEntry               = new Gtk.Entry();
     this.codeEntry.CanFocus      = true;
     this.codeEntry.Name          = "codeEntry";
     this.codeEntry.IsEditable    = true;
     this.codeEntry.InvisibleChar = '•';
     this.table2.Add(this.codeEntry);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table2[this.codeEntry]));
     w2.LeftAttach  = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     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.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.image46        = new Gtk.Image();
     this.image46.Name   = "image46";
     this.image46.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.Button, 20);
     this.hbox1.Add(this.image46);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.image46]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.corrButton              = new Gtk.Button();
     this.corrButton.CanFocus     = true;
     this.corrButton.Name         = "corrButton";
     this.corrButton.FocusOnClick = false;
     this.corrButton.Relief       = ((Gtk.ReliefStyle)(2));
     // Container child corrButton.Gtk.Container+ContainerChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.Xalign    = 0F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Use <span fgcolor=\"blue\">corrected coordinates</span> to prevent GPX imports from overwriting the cache location");
     this.label3.UseMarkup = true;
     this.corrButton.Add(this.label3);
     this.corrButton.Label = null;
     this.hbox1.Add(this.corrButton);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.corrButton]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     this.vbox2.Add(this.hbox1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
     w6.Position = 0;
     w6.Expand   = false;
     w6.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.coordEntry           = new ocmgtk.LocationWidget();
     this.coordEntry.Events    = ((Gdk.EventMask)(256));
     this.coordEntry.Name      = "coordEntry";
     this.coordEntry.Latitude  = 0;
     this.coordEntry.Longitude = 0;
     this.vbox2.Add(this.coordEntry);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.coordEntry]));
     w7.Position = 1;
     w7.Expand   = false;
     w7.Fill     = false;
     this.GtkAlignment2.Add(this.vbox2);
     this.frame3.Add(this.GtkAlignment2);
     this.GtkLabel2           = new Gtk.Label();
     this.GtkLabel2.Name      = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>Location</b>");
     this.GtkLabel2.UseMarkup = true;
     this.frame3.LabelWidget  = this.GtkLabel2;
     this.table2.Add(this.frame3);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table2[this.frame3]));
     w10.TopAttach    = ((uint)(4));
     w10.BottomAttach = ((uint)(5));
     w10.RightAttach  = ((uint)(2));
     w10.XOptions     = ((Gtk.AttachOptions)(4));
     w10.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.frame4            = new Gtk.Frame();
     this.frame4.Name       = "frame4";
     this.frame4.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame4.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.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.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.descriptionEntry          = new Gtk.TextView();
     this.descriptionEntry.CanFocus = true;
     this.descriptionEntry.Name     = "descriptionEntry";
     this.GtkScrolledWindow.Add(this.descriptionEntry);
     this.vbox3.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox3[this.GtkScrolledWindow]));
     w12.Position = 0;
     this.GtkAlignment3.Add(this.vbox3);
     this.frame4.Add(this.GtkAlignment3);
     this.GtkLabel3           = new Gtk.Label();
     this.GtkLabel3.Name      = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("<b>Waypoint Description</b>");
     this.GtkLabel3.UseMarkup = true;
     this.frame4.LabelWidget  = this.GtkLabel3;
     this.table2.Add(this.frame4);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table2[this.frame4]));
     w15.TopAttach    = ((uint)(5));
     w15.BottomAttach = ((uint)(6));
     w15.RightAttach  = ((uint)(2));
     // Container child table2.Gtk.Table+TableChild
     this.label11           = new Gtk.Label();
     this.label11.Name      = "label11";
     this.label11.Xalign    = 0F;
     this.label11.LabelProp = Mono.Unix.Catalog.GetString("URL:");
     this.table2.Add(this.label11);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table2[this.label11]));
     w16.TopAttach    = ((uint)(2));
     w16.BottomAttach = ((uint)(3));
     w16.XOptions     = ((Gtk.AttachOptions)(4));
     w16.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label12           = new Gtk.Label();
     this.label12.Name      = "label12";
     this.label12.Xalign    = 0F;
     this.label12.LabelProp = Mono.Unix.Catalog.GetString("URL Name:");
     this.table2.Add(this.label12);
     Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table2[this.label12]));
     w17.TopAttach    = ((uint)(3));
     w17.BottomAttach = ((uint)(4));
     w17.XOptions     = ((Gtk.AttachOptions)(4));
     w17.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label7           = new Gtk.Label();
     this.label7.Name      = "label7";
     this.label7.Xalign    = 0F;
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Cache Type:");
     this.table2.Add(this.label7);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table2[this.label7]));
     w18.TopAttach    = ((uint)(1));
     w18.BottomAttach = ((uint)(2));
     w18.XOptions     = ((Gtk.AttachOptions)(4));
     w18.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label8           = new Gtk.Label();
     this.label8.Name      = "label8";
     this.label8.Xalign    = 0F;
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Cache Code:");
     this.table2.Add(this.label8);
     Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table2[this.label8]));
     w19.XOptions = ((Gtk.AttachOptions)(4));
     w19.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.typeEntry = Gtk.ComboBox.NewText();
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Generic"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Traditional Cache"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Unknown Cache"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Multi-Cache"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Earthcache"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Eventcache"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Letterbox Hybrid"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Project A.P.E Cache"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("GPS Adventures Exhibit"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Locationless Cache"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Virtual Cache"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Webcam Cache"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Wherigo Cache"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Cache In Trash Out Event"));
     this.typeEntry.AppendText(Mono.Unix.Catalog.GetString("Mega Event Cache"));
     this.typeEntry.Name   = "typeEntry";
     this.typeEntry.Active = 0;
     this.table2.Add(this.typeEntry);
     Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.table2[this.typeEntry]));
     w20.TopAttach    = ((uint)(1));
     w20.BottomAttach = ((uint)(2));
     w20.LeftAttach   = ((uint)(1));
     w20.RightAttach  = ((uint)(2));
     w20.XOptions     = ((Gtk.AttachOptions)(4));
     w20.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.urlEntry               = new Gtk.Entry();
     this.urlEntry.CanFocus      = true;
     this.urlEntry.Name          = "urlEntry";
     this.urlEntry.IsEditable    = true;
     this.urlEntry.InvisibleChar = '•';
     this.table2.Add(this.urlEntry);
     Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table2[this.urlEntry]));
     w21.TopAttach    = ((uint)(2));
     w21.BottomAttach = ((uint)(3));
     w21.LeftAttach   = ((uint)(1));
     w21.RightAttach  = ((uint)(2));
     w21.XOptions     = ((Gtk.AttachOptions)(4));
     w21.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.urlNameEntry               = new Gtk.Entry();
     this.urlNameEntry.CanFocus      = true;
     this.urlNameEntry.Name          = "urlNameEntry";
     this.urlNameEntry.IsEditable    = true;
     this.urlNameEntry.InvisibleChar = '•';
     this.table2.Add(this.urlNameEntry);
     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table2[this.urlNameEntry]));
     w22.TopAttach    = ((uint)(3));
     w22.BottomAttach = ((uint)(4));
     w22.LeftAttach   = ((uint)(1));
     w22.RightAttach  = ((uint)(2));
     w22.XOptions     = ((Gtk.AttachOptions)(4));
     w22.YOptions     = ((Gtk.AttachOptions)(4));
     this.notebook1.Add(this.table2);
     // Notebook tab
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Waypoint Properties");
     this.notebook1.SetTabLabel(this.table2, this.label2);
     this.label2.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.table3               = new Gtk.Table(((uint)(6)), ((uint)(2)), false);
     this.table3.Name          = "table3";
     this.table3.RowSpacing    = ((uint)(6));
     this.table3.ColumnSpacing = ((uint)(6));
     this.table3.BorderWidth   = ((uint)(6));
     // Container child table3.Gtk.Table+TableChild
     this.diffEntry = Gtk.ComboBox.NewText();
     this.diffEntry.AppendText(Mono.Unix.Catalog.GetString("1"));
     this.diffEntry.AppendText(Mono.Unix.Catalog.GetString("1.5"));
     this.diffEntry.AppendText(Mono.Unix.Catalog.GetString("2"));
     this.diffEntry.AppendText(Mono.Unix.Catalog.GetString("2.5"));
     this.diffEntry.AppendText(Mono.Unix.Catalog.GetString("3"));
     this.diffEntry.AppendText(Mono.Unix.Catalog.GetString("3.5"));
     this.diffEntry.AppendText(Mono.Unix.Catalog.GetString("4"));
     this.diffEntry.AppendText(Mono.Unix.Catalog.GetString("4.5"));
     this.diffEntry.AppendText(Mono.Unix.Catalog.GetString("5"));
     this.diffEntry.Name   = "diffEntry";
     this.diffEntry.Active = 0;
     this.table3.Add(this.diffEntry);
     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table3[this.diffEntry]));
     w24.TopAttach    = ((uint)(1));
     w24.BottomAttach = ((uint)(2));
     w24.LeftAttach   = ((uint)(1));
     w24.RightAttach  = ((uint)(2));
     w24.XOptions     = ((Gtk.AttachOptions)(4));
     w24.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.frame5            = new Gtk.Frame();
     this.frame5.Name       = "frame5";
     this.frame5.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame5.Gtk.Container+ContainerChild
     this.GtkAlignment4             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment4.Name        = "GtkAlignment4";
     this.GtkAlignment4.LeftPadding = ((uint)(12));
     // Container child GtkAlignment4.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.shortDescEntry          = new Gtk.TextView();
     this.shortDescEntry.CanFocus = true;
     this.shortDescEntry.Name     = "shortDescEntry";
     this.shortDescEntry.WrapMode = ((Gtk.WrapMode)(2));
     this.GtkScrolledWindow1.Add(this.shortDescEntry);
     this.GtkAlignment4.Add(this.GtkScrolledWindow1);
     this.frame5.Add(this.GtkAlignment4);
     this.GtkLabel4           = new Gtk.Label();
     this.GtkLabel4.Name      = "GtkLabel4";
     this.GtkLabel4.LabelProp = Mono.Unix.Catalog.GetString("<b>Short Description</b>");
     this.GtkLabel4.UseMarkup = true;
     this.frame5.LabelWidget  = this.GtkLabel4;
     this.table3.Add(this.frame5);
     Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.table3[this.frame5]));
     w28.TopAttach    = ((uint)(4));
     w28.BottomAttach = ((uint)(5));
     w28.RightAttach  = ((uint)(2));
     w28.XOptions     = ((Gtk.AttachOptions)(4));
     w28.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.frame6            = new Gtk.Frame();
     this.frame6.Name       = "frame6";
     this.frame6.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame6.Gtk.Container+ContainerChild
     this.GtkAlignment5             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment5.Name        = "GtkAlignment5";
     this.GtkAlignment5.LeftPadding = ((uint)(12));
     // Container child GtkAlignment5.Gtk.Container+ContainerChild
     this.GtkScrolledWindow2            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow2.Name       = "GtkScrolledWindow2";
     this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
     this.longDescEntry          = new Gtk.TextView();
     this.longDescEntry.CanFocus = true;
     this.longDescEntry.Name     = "longDescEntry";
     this.longDescEntry.WrapMode = ((Gtk.WrapMode)(2));
     this.GtkScrolledWindow2.Add(this.longDescEntry);
     this.GtkAlignment5.Add(this.GtkScrolledWindow2);
     this.frame6.Add(this.GtkAlignment5);
     this.GtkLabel5           = new Gtk.Label();
     this.GtkLabel5.Name      = "GtkLabel5";
     this.GtkLabel5.LabelProp = Mono.Unix.Catalog.GetString("<b>Long Description</b>");
     this.GtkLabel5.UseMarkup = true;
     this.frame6.LabelWidget  = this.GtkLabel5;
     this.table3.Add(this.frame6);
     Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table3[this.frame6]));
     w32.TopAttach    = ((uint)(5));
     w32.BottomAttach = ((uint)(6));
     w32.RightAttach  = ((uint)(2));
     w32.XOptions     = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.frame7            = new Gtk.Frame();
     this.frame7.Name       = "frame7";
     this.frame7.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame7.Gtk.Container+ContainerChild
     this.GtkAlignment6             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment6.Name        = "GtkAlignment6";
     this.GtkAlignment6.LeftPadding = ((uint)(12));
     // Container child GtkAlignment6.Gtk.Container+ContainerChild
     this.GtkScrolledWindow3            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow3.Name       = "GtkScrolledWindow3";
     this.GtkScrolledWindow3.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow3.Gtk.Container+ContainerChild
     this.hintEntry          = new Gtk.TextView();
     this.hintEntry.CanFocus = true;
     this.hintEntry.Name     = "hintEntry";
     this.hintEntry.WrapMode = ((Gtk.WrapMode)(2));
     this.GtkScrolledWindow3.Add(this.hintEntry);
     this.GtkAlignment6.Add(this.GtkScrolledWindow3);
     this.frame7.Add(this.GtkAlignment6);
     this.GtkLabel6           = new Gtk.Label();
     this.GtkLabel6.Name      = "GtkLabel6";
     this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Hint</b>");
     this.GtkLabel6.UseMarkup = true;
     this.frame7.LabelWidget  = this.GtkLabel6;
     this.table3.Add(this.frame7);
     Gtk.Table.TableChild w36 = ((Gtk.Table.TableChild)(this.table3[this.frame7]));
     w36.TopAttach    = ((uint)(3));
     w36.BottomAttach = ((uint)(4));
     w36.RightAttach  = ((uint)(2));
     w36.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.label13           = new Gtk.Label();
     this.label13.Name      = "label13";
     this.label13.Xalign    = 0F;
     this.label13.LabelProp = Mono.Unix.Catalog.GetString("Cache Name:");
     this.table3.Add(this.label13);
     Gtk.Table.TableChild w37 = ((Gtk.Table.TableChild)(this.table3[this.label13]));
     w37.XOptions = ((Gtk.AttachOptions)(4));
     w37.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.label14           = new Gtk.Label();
     this.label14.Name      = "label14";
     this.label14.Xalign    = 0F;
     this.label14.LabelProp = Mono.Unix.Catalog.GetString("Difficulty:");
     this.table3.Add(this.label14);
     Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(this.table3[this.label14]));
     w38.TopAttach    = ((uint)(1));
     w38.BottomAttach = ((uint)(2));
     w38.XOptions     = ((Gtk.AttachOptions)(4));
     w38.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.label15           = new Gtk.Label();
     this.label15.Name      = "label15";
     this.label15.Xalign    = 0F;
     this.label15.LabelProp = Mono.Unix.Catalog.GetString("Terrain:");
     this.table3.Add(this.label15);
     Gtk.Table.TableChild w39 = ((Gtk.Table.TableChild)(this.table3[this.label15]));
     w39.TopAttach    = ((uint)(2));
     w39.BottomAttach = ((uint)(3));
     w39.XOptions     = ((Gtk.AttachOptions)(4));
     w39.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.nameEntry               = new Gtk.Entry();
     this.nameEntry.CanFocus      = true;
     this.nameEntry.Name          = "nameEntry";
     this.nameEntry.IsEditable    = true;
     this.nameEntry.InvisibleChar = '•';
     this.table3.Add(this.nameEntry);
     Gtk.Table.TableChild w40 = ((Gtk.Table.TableChild)(this.table3[this.nameEntry]));
     w40.LeftAttach  = ((uint)(1));
     w40.RightAttach = ((uint)(2));
     w40.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.terrEntry = Gtk.ComboBox.NewText();
     this.terrEntry.AppendText(Mono.Unix.Catalog.GetString("1"));
     this.terrEntry.AppendText(Mono.Unix.Catalog.GetString("1.5"));
     this.terrEntry.AppendText(Mono.Unix.Catalog.GetString("2"));
     this.terrEntry.AppendText(Mono.Unix.Catalog.GetString("2.5"));
     this.terrEntry.AppendText(Mono.Unix.Catalog.GetString("3"));
     this.terrEntry.AppendText(Mono.Unix.Catalog.GetString("3.5"));
     this.terrEntry.AppendText(Mono.Unix.Catalog.GetString("4"));
     this.terrEntry.AppendText(Mono.Unix.Catalog.GetString("4.5"));
     this.terrEntry.AppendText(Mono.Unix.Catalog.GetString("5"));
     this.terrEntry.Name   = "terrEntry";
     this.terrEntry.Active = 0;
     this.table3.Add(this.terrEntry);
     Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table3[this.terrEntry]));
     w41.TopAttach    = ((uint)(2));
     w41.BottomAttach = ((uint)(3));
     w41.LeftAttach   = ((uint)(1));
     w41.RightAttach  = ((uint)(2));
     w41.XOptions     = ((Gtk.AttachOptions)(4));
     w41.YOptions     = ((Gtk.AttachOptions)(4));
     this.notebook1.Add(this.table3);
     Gtk.Notebook.NotebookChild w42 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.table3]));
     w42.Position = 1;
     // Notebook tab
     this.name           = new Gtk.Label();
     this.name.Name      = "name";
     this.name.LabelProp = Mono.Unix.Catalog.GetString("Paperless Caching Details");
     this.notebook1.SetTabLabel(this.table3, this.name);
     this.name.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.vbox4             = new Gtk.VBox();
     this.vbox4.Name        = "vbox4";
     this.vbox4.Spacing     = 6;
     this.vbox4.BorderWidth = ((uint)(6));
     // Container child vbox4.Gtk.Box+BoxChild
     this.frame8            = new Gtk.Frame();
     this.frame8.Name       = "frame8";
     this.frame8.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame8.Gtk.Container+ContainerChild
     this.GtkAlignment7             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment7.Name        = "GtkAlignment7";
     this.GtkAlignment7.LeftPadding = ((uint)(12));
     // Container child GtkAlignment7.Gtk.Container+ContainerChild
     this.table1               = new Gtk.Table(((uint)(4)), ((uint)(2)), false);
     this.table1.Name          = "table1";
     this.table1.RowSpacing    = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.cacheIDEntry               = new Gtk.Entry();
     this.cacheIDEntry.CanFocus      = true;
     this.cacheIDEntry.Name          = "cacheIDEntry";
     this.cacheIDEntry.IsEditable    = true;
     this.cacheIDEntry.InvisibleChar = '•';
     this.table1.Add(this.cacheIDEntry);
     Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table1[this.cacheIDEntry]));
     w43.TopAttach    = ((uint)(3));
     w43.BottomAttach = ((uint)(4));
     w43.LeftAttach   = ((uint)(1));
     w43.RightAttach  = ((uint)(2));
     w43.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label19           = new Gtk.Label();
     this.label19.Name      = "label19";
     this.label19.Xalign    = 0F;
     this.label19.LabelProp = Mono.Unix.Catalog.GetString("Owner:");
     this.table1.Add(this.label19);
     Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table1[this.label19]));
     w44.XOptions = ((Gtk.AttachOptions)(4));
     w44.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label20           = new Gtk.Label();
     this.label20.Name      = "label20";
     this.label20.Xalign    = 0F;
     this.label20.LabelProp = Mono.Unix.Catalog.GetString("Owner ID:");
     this.table1.Add(this.label20);
     Gtk.Table.TableChild w45 = ((Gtk.Table.TableChild)(this.table1[this.label20]));
     w45.TopAttach    = ((uint)(1));
     w45.BottomAttach = ((uint)(2));
     w45.XOptions     = ((Gtk.AttachOptions)(4));
     w45.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label21           = new Gtk.Label();
     this.label21.Name      = "label21";
     this.label21.Xalign    = 0F;
     this.label21.LabelProp = Mono.Unix.Catalog.GetString("Placed By:");
     this.table1.Add(this.label21);
     Gtk.Table.TableChild w46 = ((Gtk.Table.TableChild)(this.table1[this.label21]));
     w46.TopAttach    = ((uint)(2));
     w46.BottomAttach = ((uint)(3));
     w46.XOptions     = ((Gtk.AttachOptions)(4));
     w46.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label22           = new Gtk.Label();
     this.label22.Name      = "label22";
     this.label22.Xalign    = 0F;
     this.label22.LabelProp = Mono.Unix.Catalog.GetString("Cache ID:");
     this.table1.Add(this.label22);
     Gtk.Table.TableChild w47 = ((Gtk.Table.TableChild)(this.table1[this.label22]));
     w47.TopAttach    = ((uint)(3));
     w47.BottomAttach = ((uint)(4));
     w47.XOptions     = ((Gtk.AttachOptions)(4));
     w47.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.ownerEntry               = new Gtk.Entry();
     this.ownerEntry.CanFocus      = true;
     this.ownerEntry.Name          = "ownerEntry";
     this.ownerEntry.IsEditable    = true;
     this.ownerEntry.InvisibleChar = '•';
     this.table1.Add(this.ownerEntry);
     Gtk.Table.TableChild w48 = ((Gtk.Table.TableChild)(this.table1[this.ownerEntry]));
     w48.LeftAttach  = ((uint)(1));
     w48.RightAttach = ((uint)(2));
     w48.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.ownerIDEntry               = new Gtk.Entry();
     this.ownerIDEntry.CanFocus      = true;
     this.ownerIDEntry.Name          = "ownerIDEntry";
     this.ownerIDEntry.IsEditable    = true;
     this.ownerIDEntry.InvisibleChar = '•';
     this.table1.Add(this.ownerIDEntry);
     Gtk.Table.TableChild w49 = ((Gtk.Table.TableChild)(this.table1[this.ownerIDEntry]));
     w49.TopAttach    = ((uint)(1));
     w49.BottomAttach = ((uint)(2));
     w49.LeftAttach   = ((uint)(1));
     w49.RightAttach  = ((uint)(2));
     w49.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.placedByEntry               = new Gtk.Entry();
     this.placedByEntry.CanFocus      = true;
     this.placedByEntry.Name          = "placedByEntry";
     this.placedByEntry.IsEditable    = true;
     this.placedByEntry.InvisibleChar = '•';
     this.table1.Add(this.placedByEntry);
     Gtk.Table.TableChild w50 = ((Gtk.Table.TableChild)(this.table1[this.placedByEntry]));
     w50.TopAttach    = ((uint)(2));
     w50.BottomAttach = ((uint)(3));
     w50.LeftAttach   = ((uint)(1));
     w50.RightAttach  = ((uint)(2));
     w50.YOptions     = ((Gtk.AttachOptions)(4));
     this.GtkAlignment7.Add(this.table1);
     this.frame8.Add(this.GtkAlignment7);
     this.GtkLabel           = new Gtk.Label();
     this.GtkLabel.Name      = "GtkLabel";
     this.GtkLabel.LabelProp = Mono.Unix.Catalog.GetString("<b>Owner Details</b>");
     this.GtkLabel.UseMarkup = true;
     this.frame8.LabelWidget = this.GtkLabel;
     this.vbox4.Add(this.frame8);
     Gtk.Box.BoxChild w53 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame8]));
     w53.Position = 0;
     w53.Expand   = false;
     w53.Fill     = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.frame9            = new Gtk.Frame();
     this.frame9.Name       = "frame9";
     this.frame9.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame9.Gtk.Container+ContainerChild
     this.GtkAlignment8             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment8.Name        = "GtkAlignment8";
     this.GtkAlignment8.LeftPadding = ((uint)(12));
     // Container child GtkAlignment8.Gtk.Container+ContainerChild
     this.table4               = new Gtk.Table(((uint)(4)), ((uint)(2)), false);
     this.table4.Name          = "table4";
     this.table4.RowSpacing    = ((uint)(6));
     this.table4.ColumnSpacing = ((uint)(6));
     // Container child table4.Gtk.Table+TableChild
     this.label23           = new Gtk.Label();
     this.label23.Name      = "label23";
     this.label23.LabelProp = Mono.Unix.Catalog.GetString("User Data 2:");
     this.table4.Add(this.label23);
     Gtk.Table.TableChild w54 = ((Gtk.Table.TableChild)(this.table4[this.label23]));
     w54.TopAttach    = ((uint)(1));
     w54.BottomAttach = ((uint)(2));
     w54.XOptions     = ((Gtk.AttachOptions)(4));
     w54.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.label24           = new Gtk.Label();
     this.label24.Name      = "label24";
     this.label24.LabelProp = Mono.Unix.Catalog.GetString("User Data 3:");
     this.table4.Add(this.label24);
     Gtk.Table.TableChild w55 = ((Gtk.Table.TableChild)(this.table4[this.label24]));
     w55.TopAttach    = ((uint)(2));
     w55.BottomAttach = ((uint)(3));
     w55.XOptions     = ((Gtk.AttachOptions)(4));
     w55.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.label25           = new Gtk.Label();
     this.label25.Name      = "label25";
     this.label25.LabelProp = Mono.Unix.Catalog.GetString("User Data 4:");
     this.table4.Add(this.label25);
     Gtk.Table.TableChild w56 = ((Gtk.Table.TableChild)(this.table4[this.label25]));
     w56.TopAttach    = ((uint)(3));
     w56.BottomAttach = ((uint)(4));
     w56.XOptions     = ((Gtk.AttachOptions)(4));
     w56.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.label5           = new Gtk.Label();
     this.label5.Name      = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("User Data 1:");
     this.table4.Add(this.label5);
     Gtk.Table.TableChild w57 = ((Gtk.Table.TableChild)(this.table4[this.label5]));
     w57.XOptions = ((Gtk.AttachOptions)(4));
     w57.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.udata1Entry               = new Gtk.Entry();
     this.udata1Entry.CanFocus      = true;
     this.udata1Entry.Name          = "udata1Entry";
     this.udata1Entry.IsEditable    = true;
     this.udata1Entry.InvisibleChar = '•';
     this.table4.Add(this.udata1Entry);
     Gtk.Table.TableChild w58 = ((Gtk.Table.TableChild)(this.table4[this.udata1Entry]));
     w58.LeftAttach  = ((uint)(1));
     w58.RightAttach = ((uint)(2));
     w58.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.uData2Entry               = new Gtk.Entry();
     this.uData2Entry.CanFocus      = true;
     this.uData2Entry.Name          = "uData2Entry";
     this.uData2Entry.IsEditable    = true;
     this.uData2Entry.InvisibleChar = '•';
     this.table4.Add(this.uData2Entry);
     Gtk.Table.TableChild w59 = ((Gtk.Table.TableChild)(this.table4[this.uData2Entry]));
     w59.TopAttach    = ((uint)(1));
     w59.BottomAttach = ((uint)(2));
     w59.LeftAttach   = ((uint)(1));
     w59.RightAttach  = ((uint)(2));
     w59.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.uData3Entry               = new Gtk.Entry();
     this.uData3Entry.CanFocus      = true;
     this.uData3Entry.Name          = "uData3Entry";
     this.uData3Entry.IsEditable    = true;
     this.uData3Entry.InvisibleChar = '•';
     this.table4.Add(this.uData3Entry);
     Gtk.Table.TableChild w60 = ((Gtk.Table.TableChild)(this.table4[this.uData3Entry]));
     w60.TopAttach    = ((uint)(2));
     w60.BottomAttach = ((uint)(3));
     w60.LeftAttach   = ((uint)(1));
     w60.RightAttach  = ((uint)(2));
     w60.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.uData4Entry               = new Gtk.Entry();
     this.uData4Entry.CanFocus      = true;
     this.uData4Entry.Name          = "uData4Entry";
     this.uData4Entry.IsEditable    = true;
     this.uData4Entry.InvisibleChar = '•';
     this.table4.Add(this.uData4Entry);
     Gtk.Table.TableChild w61 = ((Gtk.Table.TableChild)(this.table4[this.uData4Entry]));
     w61.TopAttach    = ((uint)(3));
     w61.BottomAttach = ((uint)(4));
     w61.LeftAttach   = ((uint)(1));
     w61.RightAttach  = ((uint)(2));
     w61.YOptions     = ((Gtk.AttachOptions)(4));
     this.GtkAlignment8.Add(this.table4);
     this.frame9.Add(this.GtkAlignment8);
     this.GtkLabel8           = new Gtk.Label();
     this.GtkLabel8.Name      = "GtkLabel8";
     this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>User Data</b>");
     this.GtkLabel8.UseMarkup = true;
     this.frame9.LabelWidget  = this.GtkLabel8;
     this.vbox4.Add(this.frame9);
     Gtk.Box.BoxChild w64 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame9]));
     w64.Position = 1;
     w64.Expand   = false;
     w64.Fill     = false;
     this.notebook1.Add(this.vbox4);
     Gtk.Notebook.NotebookChild w65 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox4]));
     w65.Position = 2;
     // Notebook tab
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Other Properties");
     this.notebook1.SetTabLabel(this.vbox4, this.label4);
     this.label4.ShowAll();
     w1.Add(this.notebook1);
     Gtk.Box.BoxChild w66 = ((Gtk.Box.BoxChild)(w1[this.notebook1]));
     w66.Position = 0;
     w66.Padding  = ((uint)(6));
     // Internal child ocmgtk.ModifyCacheDialog.ActionArea
     Gtk.HButtonBox w67 = this.ActionArea;
     w67.Name        = "dialog1_ActionArea";
     w67.Spacing     = 10;
     w67.BorderWidth = ((uint)(5));
     w67.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 w68 = ((Gtk.ButtonBox.ButtonBoxChild)(w67[this.buttonCancel]));
     w68.Expand = false;
     w68.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 w69 = ((Gtk.ButtonBox.ButtonBoxChild)(w67[this.buttonOk]));
     w69.Position = 1;
     w69.Expand   = false;
     w69.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 808;
     this.DefaultHeight = 577;
     this.Show();
     this.corrButton.Clicked   += new System.EventHandler(this.OnCorrClick);
     this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClicked);
     this.buttonOk.Clicked     += new System.EventHandler(this.OnButtonOkClicked);
 }
Beispiel #60
0
 public WebViewHandler()
 {
     scroll  = new Gtk.ScrolledWindow();
     Control = new Gtk.Widget(NativeMethods.webkit_web_view_new());
     scroll.Add(Control);
 }