Exemple #1
0
        protected override Task <DocumentView> OnInitializeView()
        {
            var container = new DocumentViewContainer();

            container.SupportedModes = DocumentViewContainerMode.Tabs;

            var regexView = new DocumentViewContent(() => RegexToolkit);

            regexView.Title = GettextCatalog.GetString("Regex Toolkit");

            var elementHelpView = new DocumentViewContent(() => new ElementHelpWidget(regexView, RegexToolkit));

            elementHelpView.Title = GettextCatalog.GetString("Elements");

            container.Views.Add(regexView);
            container.Views.Add(elementHelpView);
            return(Task.FromResult <DocumentView> (container));
        }
        protected override async Task <DocumentView> OnInitializeView()
        {
            container = new DocumentViewContainer();
            container.SupportedModes     = DocumentViewContainerMode.Tabs | DocumentViewContainerMode.VerticalSplit;
            container.ActiveViewChanged += Container_ActiveViewChanged;

            content = await IdeServices.DocumentControllerService.CreateTextEditorController(fileDescriptor);

            await content.Initialize(fileDescriptor);

            content.HasUnsavedChangesChanged += OnTextDirtyChanged;
            var sourceView = await content.GetDocumentView();

            sourceView.Title = GettextCatalog.GetString("Source");
            container.Views.Add(sourceView);

            return(container);
        }
Exemple #3
0
        protected override async Task <DocumentView> OnInitializeView()
        {
            var container = new DocumentViewContainer();

            // can't set last mode here otherwise if we set Tabs, clicking Split incorrectly puts it into VerticalSplit mode
            container.SupportedModes = DocumentViewContainerMode.Tabs | DocumentViewContainerMode.HorizontalSplit;
            container.CurrentMode    = DocumentViewContainerMode.HorizontalSplit;

            // our designer content
            var content = new DocumentViewContent(OnGetViewControlAsync);

            content.Title = "Design";
            container.Views.Add(content);

            // the source code editor
            var innerView = await _inner.GetDocumentView();

            container.Views.Add(innerView);

            return(container);
        }