• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IPadWindow类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: Initialize

		protected override void Initialize (IPadWindow container)
		{
			view = new DebuggerConsoleView ();
			view.ConsoleInput += OnViewConsoleInput;
			view.ShadowType = Gtk.ShadowType.None;
			view.ShowAll ();
			view.Editable = DebuggingService.IsPaused;
			DebuggingService.PausedEvent += DebuggerPaused;
			DebuggingService.ResumedEvent += DebuggerResumed;
			DebuggingService.StoppedEvent += DebuggerStopped;
		}
开发者ID:zenek-y,项目名称:monodevelop,代码行数:11,代码来源:ImmediatePad.cs


示例17: Init

		internal void Init (IPadWindow window)
		{
			this.window = window;

			if (title != null)
				window.Title = title;

			if (icon != null)
				window.Icon = icon;
			
			Initialize (window);
		}
开发者ID:sushihangover,项目名称:monodevelop,代码行数:12,代码来源:PadContent.cs


示例18: InitializePadContent

		public PadContent InitializePadContent (IPadWindow window)
		{
			if (content == null) {
				content = CreatePad ();
				content.Init (window);
				ApplyPreferences ();
			} else if (!initializeCalled) {
				content.Init (window);
				ApplyPreferences ();
			}
			initializeCalled = true;
			return content;
		}
开发者ID:zenek-y,项目名称:monodevelop,代码行数:13,代码来源:PadCodon.cs


示例19: Initialize

        public void Initialize(IPadWindow window)
        {
            var toolBar = window.GetToolbar(Gtk.PositionType.Top);
            CommandToolButton button = new CommandToolButton(TFSCommands.ConnectToServer, IdeApp.CommandService) { StockId = Gtk.Stock.Add };
            toolBar.Add(button);
            _treeView.Columns.Add(new ListViewColumn(string.Empty, new TextCellView(_name)));
            _treeView.DataSource = _treeStore;
            _content.PackStart(_treeView, true, true);
            UpdateData();

            onServersChanged = DispatchService.GuiDispatch<System.Action>(UpdateData);
            TFSVersionControlService.Instance.OnServersChange += onServersChanged;

            _treeView.RowActivated += OnRowClicked;
        }
开发者ID:Indomitable,项目名称:monodevelop-tfs-addin,代码行数:15,代码来源:TeamExplorerPad.cs


示例20: ClassBrowserPadWidget

		public ClassBrowserPadWidget (ExtensibleTreeView treeView, IPadWindow window)
		{
			this.treeView = treeView;
			
			DockItemToolbar searchBox = window.GetToolbar (PositionType.Top);
			
			searchEntry = new Entry ();
			searchBox.Add (searchEntry, true);
			buttonSearch = new Button (new Gtk.Image (Gtk.Stock.Find, IconSize.Menu));
			buttonSearch.Relief = ReliefStyle.None;
			buttonCancelSearch = new Button (new Gtk.Image (Gtk.Stock.Stop, IconSize.Menu));
			buttonCancelSearch.Relief = ReliefStyle.None;
			searchBox.Add (buttonSearch);
			searchBox.Add (buttonCancelSearch);
			searchBox.ShowAll ();
			
			notebook = new Notebook ();
			notebook.ShowTabs = false;
			notebook.ShowBorder = false;
			this.PackEnd (notebook, true, true, 0);
			
			notebook.AppendPage (treeView, null);
			ScrolledWindow scrolledWindow = new ScrolledWindow ();
			scrolledWindow.Add (searchResultsTreeView);
			notebook.AppendPage (scrolledWindow, null);
			
			list = new ListStore (new Type[] {
				typeof (Pixbuf),
				typeof (string),
				typeof (IType)
			});
			model = new TreeModelSort (list);
			searchResultsTreeView.Model = model;
			searchResultsTreeView.AppendColumn (string.Empty, new Gtk.CellRendererPixbuf (), "pixbuf", 0);
			searchResultsTreeView.AppendColumn (string.Empty, new Gtk.CellRendererText (), "text", 1);
			searchResultsTreeView.HeadersVisible = false;
			searchResultsTreeView.RowActivated += SearchRowActivated;
			IdeApp.Workspace.WorkspaceItemOpened += OnOpenCombine;
			IdeApp.Workspace.WorkspaceItemClosed += OnCloseCombine;
					
			this.searchEntry.Changed += SearchEntryChanged;
			this.buttonCancelSearch.Clicked += CancelSearchClicked;
			this.searchEntry.Activated += SearchClicked;
			this.searchEntry.KeyPressEvent += SearchEntryKeyPressEvent;
			this.buttonSearch.Clicked += SearchClicked;
			
			this.ShowAll ();
		}
开发者ID:nocache,项目名称:monodevelop,代码行数:48,代码来源:ClassBrowserPadWidget.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IPage类代码示例发布时间:2022-05-24
下一篇:
C# IPacketReceiver类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap