当前位置: 首页>>代码示例>>C#>>正文


C# IPadWindow类代码示例

本文整理汇总了C#中IPadWindow的典型用法代码示例。如果您正苦于以下问题:C# IPadWindow类的具体用法?C# IPadWindow怎么用?C# IPadWindow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IPadWindow类属于命名空间,在下文中一共展示了IPadWindow类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Initialize

		public void Initialize (IPadWindow window)
		{
			CreateToolbar (window);
			CreatePackageConsoleView ();
			CreatePackageConsoleViewModel ();
			BindingViewModelToView ();
		}
开发者ID:modulexcite,项目名称:monodevelop-nuget-extensions,代码行数:7,代码来源:PackageConsolePad.cs

示例2: Initialize

		public override void Initialize (IPadWindow window)
		{
			base.Initialize (window);
			IdeApp.Workbench.ActiveDocumentChanged += DocumentChangedHandler;
			CurrentDoc = IdeApp.Workbench.ActiveDocument;
			Update ();
		}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:7,代码来源:DocumentOutlinePad.cs

示例3: Initialize

		public override void Initialize (IPadWindow container)
		{
			base.Initialize (container);
			toolbarProvider.Attach (container.GetToolbar (Gtk.PositionType.Top));
			grid.SetToolbarProvider (toolbarProvider);
			this.container = container;
		}
开发者ID:awatertree,项目名称:monodevelop,代码行数:7,代码来源:PropertyPad.cs

示例4: Initialize

		public void Initialize (IPadWindow container)
		{
			view = new DebuggerConsoleView ();
			view.ConsoleInput += OnViewConsoleInput;
			view.ShadowType = Gtk.ShadowType.None;
			view.ShowAll ();
		}
开发者ID:rae1,项目名称:monodevelop,代码行数:7,代码来源:ImmediatePad.cs

示例5: Initialize

		public override void Initialize (IPadWindow container)
		{
			base.Initialize (container);
			TreeView.Id = Id;
			if (Initializer != null)
				Initializer ();
		}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:7,代码来源:TreeViewPad.cs

示例6: Button

		void IPadContent.Initialize (IPadWindow window)
		{
			this.window = window;
			window.Icon = icon;
			
			DockItemToolbar toolbar = window.GetToolbar (PositionType.Right);

			buttonStop = new Button (new Gtk.Image ("gtk-stop", IconSize.Menu));
			buttonStop.Clicked += new EventHandler (OnButtonStopClick);
			buttonStop.TooltipText = GettextCatalog.GetString ("Stop");
			toolbar.Add (buttonStop);

			buttonClear = new Button (new Gtk.Image ("gtk-clear", IconSize.Menu));
			buttonClear.Clicked += new EventHandler (OnButtonClearClick);
			buttonClear.TooltipText = GettextCatalog.GetString ("Clear console");
			toolbar.Add (buttonClear);

			buttonPin = new ToggleButton ();
			buttonPin.Image = new Gtk.Image ((IconId)"md-pin-up", IconSize.Menu);
			buttonPin.Image.ShowAll ();
			buttonPin.Clicked += new EventHandler (OnButtonPinClick);
			buttonPin.TooltipText = GettextCatalog.GetString ("Pin output pad");
			toolbar.Add (buttonPin);
			toolbar.ShowAll ();
		}
开发者ID:Tak,项目名称:monodevelop-novell,代码行数:25,代码来源:DefaultMonitorPad.cs

示例7: Initialize

        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();
        }
开发者ID:simendsjo,项目名称:Mono-D,代码行数:59,代码来源:ExpressionEvaluationWidget.cs

示例8: CreateToolbar

		void CreateToolbar (IPadWindow window)
		{
			toolbarWidget = new PackageConsoleToolbarWidget ();
			toolbarWidget.ClearButtonClicked += ClearButtonClicked;
			DockItemToolbar toolbar = window.GetToolbar (Gtk.PositionType.Top);
			toolbar.Add (toolbarWidget, false);
			toolbar.ShowAll ();
		}
开发者ID:modulexcite,项目名称:monodevelop-nuget-extensions,代码行数:8,代码来源:PackageConsolePad.cs

示例9: Initialize

		protected override void Initialize (IPadWindow container)
		{
			base.Initialize (container);
			toolbarProvider.Attach (container.GetToolbar (DockPositionType.Top));
			grid.SetToolbarProvider (toolbarProvider);
			this.container = container;
			DesignerSupport.Service.SetPad (this);
		}
开发者ID:zenek-y,项目名称:monodevelop,代码行数:8,代码来源:PropertyPad.cs

示例10: Initialize

		public void Initialize (IPadWindow container)
		{
			view = new ConsoleView ();
			view.ConsoleInput += OnViewConsoleInput;
			Pango.FontDescription font = Pango.FontDescription.FromString (DesktopService.DefaultMonospaceFont);
			view.SetFont (font);
			view.ShadowType = Gtk.ShadowType.None;
			view.ShowAll ();
		}
开发者ID:bmsullivan,项目名称:monodevelop,代码行数:9,代码来源:ImmediatePad.cs

示例11: Initialize

        public void Initialize(IPadWindow window)
        {
            scw = new ScrolledWindow ();
            bugList = new TreeView ();
            bugStore = new TreeStore (typeof (BugInfo), typeof(string));
            bugList.Model = bugStore;

            Fill ();
        }
开发者ID:slluis,项目名称:bugziller,代码行数:9,代码来源:BugsPad.cs

示例12: Initialize

		protected override void Initialize (IPadWindow window)
		{
			base.Initialize (window);
			IdeApp.Workbench.ActiveDocumentChanged += DocumentChangedHandler;
			CurrentDoc = IdeApp.Workbench.ActiveDocument;
			toolbar = window.GetToolbar (DockPositionType.Top);
			toolbar.Visible = false;
			Update ();
		}
开发者ID:zenek-y,项目名称:monodevelop,代码行数:9,代码来源:DocumentOutlinePad.cs

示例13: Initialize

		public virtual void Initialize (IPadWindow container)
		{
			if (title != null)
				container.Title = title;

			if (icon != IconId.Null)
				container.Icon = icon;

			window = container;
		}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:10,代码来源:AbstractPadContent.cs

示例14: ClassBrowserPadWidget

		public ClassBrowserPadWidget (ExtensibleTreeView treeView, IPadWindow window)
		{
			this.treeView = treeView;
			PackStart (treeView, true, true, 0);

			IdeApp.Workspace.WorkspaceItemOpened += OnOpenCombine;
			IdeApp.Workspace.WorkspaceItemClosed += OnCloseCombine;
					
			this.ShowAll ();
		}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:10,代码来源:ClassBrowserPadWidget.cs

示例15: Initialize

		public void Initialize (IPadWindow container)
		{
			view = new ConsoleView ();
			view.ConsoleInput += OnViewConsoleInput;
			view.SetFont (IdeApp.Preferences.CustomOutputPadFont);
			view.ShadowType = Gtk.ShadowType.None;
			view.ShowAll ();

			IdeApp.Preferences.CustomOutputPadFontChanged += HandleCustomOutputPadFontChanged;
		}
开发者ID:RainsSoft,项目名称:playscript-monodevelop,代码行数:10,代码来源:ImmediatePad.cs


注:本文中的IPadWindow类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。