Exemple #1
0
        void ReleaseDesignerOutlets()
        {
            if (BtnAdd != null)
            {
                BtnAdd.Dispose();
                BtnAdd = null;
            }

            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }

            if (MainTableView != null)
            {
                MainTableView.Dispose();
                MainTableView = null;
            }

            if (GroupsTableView != null)
            {
                GroupsTableView.Dispose();
                GroupsTableView = null;
            }
        }
        public ObjectInspectorPad()
        {
            controller = new ObjectInspectorTreeViewController();
            controller.AllowEditing = true;

            treeView = controller.GetMacTreeView(ObjectValueTreeViewFlags.ObjectValuePadFlags);

            fontChanger = new PadFontChanger(treeView, SetCustomFont);

            var scrolled = new AppKit.NSScrollView {
                DocumentView          = treeView,
                AutohidesScrollers    = false,
                HasVerticalScroller   = true,
                HasHorizontalScroller = true,
            };

            scrolled.WantsLayer    = true;
            scrolled.Layer.Actions = new NSDictionary(
                "actions", NSNull.Null,
                "contents", NSNull.Null,
                "hidden", NSNull.Null,
                "onLayout", NSNull.Null,
                "onOrderIn", NSNull.Null,
                "onOrderOut", NSNull.Null,
                "position", NSNull.Null,
                "sublayers", NSNull.Null,
                "transform", NSNull.Null,
                "bounds", NSNull.Null);

            var host = new GtkNSViewHost(scrolled);

            host.ShowAll();

            control = host;
        }
Exemple #3
0
 void ReleaseDesignerOutlets()
 {
     if (PartyTable != null)
     {
         PartyTable.Dispose();
         PartyTable = null;
     }
 }
		void ReleaseDesignerOutlets ()
		{
			if (BtnClose != null) {
				BtnClose.Dispose ();
				BtnClose = null;
			}

			if (MainTableView != null) {
				MainTableView.Dispose ();
				MainTableView = null;
			}
		}
Exemple #5
0
        void ReleaseDesignerOutlets()
        {
            if (Btn != null)
            {
                Btn.Dispose();
                Btn = null;
            }

            if (Scroll != null)
            {
                Scroll.Dispose();
                Scroll = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (Label != null)
            {
                Label.Dispose();
                Label = null;
            }

            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }
        }
Exemple #7
0
        void ReleaseDesignerOutlets()
        {
            if (ClickedLabel1 != null)
            {
                ClickedLabel1.Dispose();
                ClickedLabel1 = null;
            }

            if (DocumentEditor != null)
            {
                DocumentEditor.Dispose();
                DocumentEditor = null;
            }
        }
Exemple #8
0
        void ReleaseDesignerOutlets()
        {
            if (textReadPath != null)
            {
                textReadPath.Dispose();
                textReadPath = null;
            }

            if (textReadValue != null)
            {
                textReadValue.Dispose();
                textReadValue = null;
            }

            if (textWritePath != null)
            {
                textWritePath.Dispose();
                textWritePath = null;
            }

            if (textWriteValue != null)
            {
                textWriteValue.Dispose();
                textWriteValue = null;
            }

            if (viewReadValue != null)
            {
                viewReadValue.Dispose();
                viewReadValue = null;
            }

            if (viewWriteValue != null)
            {
                viewWriteValue.Dispose();
                viewWriteValue = null;
            }

            if (textviewReadValue != null)
            {
                textviewReadValue.Dispose();
                textviewReadValue = null;
            }

            if (textviewWriteValue != null)
            {
                textviewWriteValue.Dispose();
                textviewWriteValue = null;
            }
        }
Exemple #9
0
        void ReleaseDesignerOutlets()
        {
            if (_familiesProgress != null)
            {
                _familiesProgress.Dispose();
                _familiesProgress = null;
            }

            if (_individualsProgress != null)
            {
                _individualsProgress.Dispose();
                _individualsProgress = null;
            }

            if (_relationshipsProgress != null)
            {
                _relationshipsProgress.Dispose();
                _relationshipsProgress = null;
            }

            if (_sourcesProgress != null)
            {
                _sourcesProgress.Dispose();
                _sourcesProgress = null;
            }

            if (_statusTextView != null)
            {
                _statusTextView.Dispose();
                _statusTextView = null;
            }

            if (_titleLabel != null)
            {
                _titleLabel.Dispose();
                _titleLabel = null;
            }

            if (ScrollingTextOutlet != null)
            {
                ScrollingTextOutlet.Dispose();
                ScrollingTextOutlet = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }

            if (ButtonScaleDown != null)
            {
                ButtonScaleDown.Dispose();
                ButtonScaleDown = null;
            }

            if (ButtonScaleUp != null)
            {
                ButtonScaleUp.Dispose();
                ButtonScaleUp = null;
            }
        }
Exemple #11
0
        public ObjectValuePad(bool allowWatchExpressions = false)
        {
            if (UseNewTreeView)
            {
                controller = new ObjectValueTreeViewController(allowWatchExpressions);
                controller.AllowEditing = true;

                if (Platform.IsMac)
                {
                    LoggingService.LogInfo("Using MacObjectValueTreeView for {0}", allowWatchExpressions ? "Watch Pad" : "Locals Pad");
                    var treeView = controller.GetMacControl(ObjectValueTreeViewFlags.ObjectValuePadFlags);
                    _treeview = treeView;

                    fontChanger = new PadFontChanger(treeView, treeView.SetCustomFont, treeView.QueueResize);

                    var scrolled = new AppKit.NSScrollView {
                        DocumentView          = treeView,
                        AutohidesScrollers    = false,
                        HasVerticalScroller   = true,
                        HasHorizontalScroller = true,
                    };

                    // disable implicit animations
                    scrolled.WantsLayer    = true;
                    scrolled.Layer.Actions = new NSDictionary(
                        "actions", NSNull.Null,
                        "contents", NSNull.Null,
                        "hidden", NSNull.Null,
                        "onLayout", NSNull.Null,
                        "onOrderIn", NSNull.Null,
                        "onOrderOut", NSNull.Null,
                        "position", NSNull.Null,
                        "sublayers", NSNull.Null,
                        "transform", NSNull.Null,
                        "bounds", NSNull.Null);

                    var host = new GtkNSViewHost(scrolled);
                    host.ShowAll();

                    control = host;
                }
                else
                {
                    LoggingService.LogInfo("Using GtkObjectValueTreeView for {0}", allowWatchExpressions ? "Watch Pad" : "Locals Pad");
                    var treeView = controller.GetGtkControl(ObjectValueTreeViewFlags.ObjectValuePadFlags);
                    treeView.Show();

                    fontChanger = new PadFontChanger(treeView, treeView.SetCustomFont, treeView.QueueResize);

                    var scrolled = new ScrolledWindow {
                        HscrollbarPolicy = PolicyType.Automatic,
                        VscrollbarPolicy = PolicyType.Automatic
                    };
                    scrolled.Add(treeView);
                    scrolled.Show();

                    control = scrolled;
                }
            }
            else
            {
                LoggingService.LogInfo("Using old ObjectValueTreeView for {0}", allowWatchExpressions ? "Watch Pad" : "Locals Pad");
                tree              = new ObjectValueTreeView();
                tree.AllowAdding  = allowWatchExpressions;
                tree.AllowEditing = true;
                tree.Show();

                fontChanger = new PadFontChanger(tree, tree.SetCustomFont, tree.QueueResize);

                var scrolled = new ScrolledWindow {
                    HscrollbarPolicy = PolicyType.Automatic,
                    VscrollbarPolicy = PolicyType.Automatic
                };
                scrolled.Add(tree);
                scrolled.Show();

                control = scrolled;
            }

            DebuggingService.CurrentFrameChanged      += OnFrameChanged;
            DebuggingService.PausedEvent              += OnDebuggerPaused;
            DebuggingService.ResumedEvent             += OnDebuggerResumed;
            DebuggingService.StoppedEvent             += OnDebuggerStopped;
            DebuggingService.EvaluationOptionsChanged += OnEvaluationOptionsChanged;
            DebuggingService.VariableChanged          += OnVariableChanged;

            needsUpdateValues = false;
            needsUpdateFrame  = true;

            //If pad is created/opened while debugging...
            IsInitialResume = !DebuggingService.IsDebugging;
        }
Exemple #12
0
        Widget CreateExceptionValueTreeView()
        {
            Widget scrolledWidget = null;

            if (useNewTreeView)
            {
                controller = new ObjectValueTreeViewController();
                controller.SetStackFrame(DebuggingService.CurrentFrame);
                controller.AllowExpanding = true;

                if (Platform.IsMac)
                {
                    macExceptionValueTreeView = controller.GetMacControl(ObjectValueTreeViewFlags.ObjectValuePadFlags);
                    macExceptionValueTreeView.UIElementName = "ExceptionCaughtDialog";
                }
                else
                {
                    exceptionValueTreeView = controller.GetGtkControl(ObjectValueTreeViewFlags.ExceptionCaughtFlags);
                }
            }
            else
            {
                var objValueTreeView = new ObjectValueTreeView();
                objValueTreeView.Frame          = DebuggingService.CurrentFrame;
                objValueTreeView.AllowPopupMenu = false;
                objValueTreeView.AllowExpanding = true;
                objValueTreeView.AllowPinning   = false;
                objValueTreeView.AllowEditing   = false;
                objValueTreeView.AllowAdding    = false;

                exceptionValueTreeView = objValueTreeView;
            }

            if (useNewTreeView && Platform.IsMac)
            {
                var scrolled = new AppKit.NSScrollView {
                    DocumentView          = macExceptionValueTreeView,
                    AutohidesScrollers    = true,
                    HasVerticalScroller   = true,
                    HasHorizontalScroller = true,
                };

                // disable implicit animations
                scrolled.WantsLayer    = true;
                scrolled.Layer.Actions = new NSDictionary(
                    "actions", NSNull.Null,
                    "contents", NSNull.Null,
                    "hidden", NSNull.Null,
                    "onLayout", NSNull.Null,
                    "onOrderIn", NSNull.Null,
                    "onOrderOut", NSNull.Null,
                    "position", NSNull.Null,
                    "sublayers", NSNull.Null,
                    "transform", NSNull.Null,
                    "bounds", NSNull.Null);

                var host = new GtkNSViewHost(scrolled);
                host.ShowAll();
                scrolledWidget = host;
            }
            else
            {
                exceptionValueTreeView.ModifyBase(StateType.Normal, Styles.ExceptionCaughtDialog.ValueTreeBackgroundColor.ToGdkColor());
                exceptionValueTreeView.ModifyBase(StateType.Active, Styles.ObjectValueTreeActiveBackgroundColor.ToGdkColor());
                exceptionValueTreeView.ModifyFont(Pango.FontDescription.FromString(Platform.IsWindows ? "9" : "11"));
                exceptionValueTreeView.RulesHint = false;
                exceptionValueTreeView.CanFocus  = true;
                exceptionValueTreeView.Show();

                var scrolled = new ScrolledWindow {
                    CanFocus         = true,
                    HscrollbarPolicy = PolicyType.Automatic,
                    VscrollbarPolicy = PolicyType.Automatic
                };

                scrolled.ShadowType = ShadowType.None;
                scrolled.Add(exceptionValueTreeView);
                scrolled.Show();
                scrolledWidget = scrolled;
            }

            var label = new Label();

            label.Markup = "<b>" + GettextCatalog.GetString("Properties") + "</b>";
            label.Xalign = 0;
            label.Xpad   = 10;

            if (exceptionValueTreeView != null)
            {
                exceptionValueTreeView.SetCommonAccessibilityAttributes("ExceptionCaughtDialog.ExceptionValueTreeView", label, null);
            }
            else
            {
                macExceptionValueTreeView.AccessibilityTitle = new NSString(label.Text);
            }

            var vbox = new VBox();

            vbox.PackStart(label, false, false, 12);
            vbox.PackStart(scrolledWidget, true, true, 0);
            vbox.ShowAll();

            return(vbox);
        }
Exemple #13
0
        void ReleaseDesignerOutlets()
        {
            if (GuiBtnAdd != null)
            {
                GuiBtnAdd.Dispose();
                GuiBtnAdd = null;
            }

            if (GuiBtnCopy != null)
            {
                GuiBtnCopy.Dispose();
                GuiBtnCopy = null;
            }

            if (GuiBtnDelete != null)
            {
                GuiBtnDelete.Dispose();
                GuiBtnDelete = null;
            }

            if (GuiBtnEdit != null)
            {
                GuiBtnEdit.Dispose();
                GuiBtnEdit = null;
            }

            if (GuiBtnRefresh != null)
            {
                GuiBtnRefresh.Dispose();
                GuiBtnRefresh = null;
            }

            if (GuiInfoLabel != null)
            {
                GuiInfoLabel.Dispose();
                GuiInfoLabel = null;
            }

            if (GuiLabelEmailsCount != null)
            {
                GuiLabelEmailsCount.Dispose();
                GuiLabelEmailsCount = null;
            }

            if (GuiProgressSpiner != null)
            {
                GuiProgressSpiner.Dispose();
                GuiProgressSpiner = null;
            }

            if (GuiTableEmails != null)
            {
                GuiTableEmails.Dispose();
                GuiTableEmails = null;
            }

            if (GuiTableScrollView != null)
            {
                GuiTableScrollView.Dispose();
                GuiTableScrollView = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (navigationCells != null)
            {
                navigationCells.Dispose();
                navigationCells = null;
            }

            if (outlineView != null)
            {
                outlineView.Dispose();
                outlineView = null;
            }

            if (searchResults != null)
            {
                searchResults.Dispose();
                searchResults = null;
            }

            if (webView != null)
            {
                webView.Dispose();
                webView = null;
            }

            if (tabSelector != null)
            {
                tabSelector.Dispose();
                tabSelector = null;
            }

            if (spinnerView != null)
            {
                spinnerView.Dispose();
                spinnerView = null;
            }

            if (spinnerWidget != null)
            {
                spinnerWidget.Dispose();
                spinnerWidget = null;
            }

            if (indexSpinnerView != null)
            {
                indexSpinnerView.Dispose();
                indexSpinnerView = null;
            }

            if (indexSpinnerWidget != null)
            {
                indexSpinnerWidget.Dispose();
                indexSpinnerWidget = null;
            }

            if (addBookmarkBtn != null)
            {
                addBookmarkBtn.Dispose();
                addBookmarkBtn = null;
            }

            if (bookmarkSelector != null)
            {
                bookmarkSelector.Dispose();
                bookmarkSelector = null;
            }

            if (viewBookmarksBtn != null)
            {
                viewBookmarksBtn.Dispose();
                viewBookmarksBtn = null;
            }

            if (bookmarkToolbar != null)
            {
                bookmarkToolbar.Dispose();
                bookmarkToolbar = null;
            }

            if (splitView != null)
            {
                splitView.Dispose();
                splitView = null;
            }

            if (multipleMatchResults != null)
            {
                multipleMatchResults.Dispose();
                multipleMatchResults = null;
            }

            if (indexResults != null)
            {
                indexResults.Dispose();
                indexResults = null;
            }

            if (indexSearchEntry != null)
            {
                indexSearchEntry.Dispose();
                indexSearchEntry = null;
            }

            if (toolbarSearchEntry != null)
            {
                toolbarSearchEntry.Dispose();
                toolbarSearchEntry = null;
            }

            if (searchScrollView != null)
            {
                searchScrollView.Dispose();
                searchScrollView = null;
            }
        }