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

C# Codons.PadCodon类代码示例

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

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



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

示例1: Pad

		internal Pad (DefaultWorkbench workbench, PadCodon content)
		{
			this.window    = workbench.GetPadWindow (content);
			this.window.PadHidden += delegate {
				IsOpenedAutomatically = false;
			};
			this.content   = content;
			this.workbench = workbench;
		}
开发者ID:sushihangover,项目名称:monodevelop,代码行数:9,代码来源:Pad.cs


示例2: IsVisible

 public bool IsVisible(PadCodon padContent)
 {
     DockItem item = GetDockItem (padContent);
     if (item != null)
         return item.Visible;
     return false;
 }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:7,代码来源:DefaultWorkbench.cs


示例3: IsSticky

 public bool IsSticky(PadCodon padContent)
 {
     DockItem item = GetDockItem (padContent);
     return item != null && (item.Behavior & DockItemBehavior.Sticky) != 0;
 }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:5,代码来源:DefaultWorkbench.cs


示例4: HidePad

 public void HidePad(PadCodon padContent)
 {
     DockItem item = GetDockItem (padContent);
     if (item != null)
         item.Visible = false;
 }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:6,代码来源:DefaultWorkbench.cs


示例5: GetPadWindow

 public IPadWindow GetPadWindow(PadCodon content)
 {
     IPadWindow w;
     padWindows.TryGetValue (content, out w);
     return w;
 }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:6,代码来源:DefaultWorkbench.cs


示例6: AddPad

        void AddPad(PadCodon content, bool show)
        {
            DockItem item = GetDockItem (content);
            if (padContentCollection.Contains (content)) {
                if (show && item != null)
                    item.Visible = true;
                return;
            }

            if (item != null) {
                if (show)
                    item.Visible = true;
            } else {
                AddPad (content, content.DefaultPlacement, content.DefaultStatus);
            }
        }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:16,代码来源:DefaultWorkbench.cs


示例7: ActivatePad

        public void ActivatePad(PadCodon padContent, bool giveFocus)
        {
            WelcomePage.WelcomePageService.HideWelcomePage ();

            DockItem item = GetDockItem (padContent);
            if (item != null)
                item.Present (giveFocus);
        }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:8,代码来源:DefaultWorkbench.cs


示例8: ShowPad

 public void ShowPad(PadCodon content)
 {
     AddPad (content, true);
 }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:4,代码来源:DefaultWorkbench.cs


示例9: RegisterPad

 void RegisterPad(PadCodon content)
 {
     if (content.HasId) {
         string lab = content.Label.Length > 0 ? GettextCatalog.GetString (content.Label) : "";
         ActionCommand cmd = new ActionCommand ("Pad|" + content.PadId, lab, null);
         cmd.DefaultHandler = new PadActivationHandler (this, content);
         cmd.Category = GettextCatalog.GetString ("View");
         cmd.Description = GettextCatalog.GetString ("Show {0}", cmd.Text);
         IdeApp.CommandService.RegisterCommand (cmd);
     }
     padContentCollection.Add (content);
 }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:12,代码来源:DefaultWorkbench.cs


示例10: PadActivationHandler

 public PadActivationHandler(DefaultWorkbench wb, PadCodon pad)
 {
     this.pad = pad;
     this.wb = wb;
 }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:5,代码来源:DefaultWorkbench.cs


示例11: CreatePadContent

        void CreatePadContent(bool force, PadCodon padCodon, PadWindow window, DockItem item)
        {
            if (force || item.Content == null) {
                IPadContent newContent = padCodon.InitializePadContent (window);

                Gtk.Widget pcontent;
                if (newContent is Widget) {
                    pcontent = newContent.Control;
                } else {
                    PadCommandRouterContainer crc = new PadCommandRouterContainer (window, newContent.Control, newContent, true);
                    crc.Show ();
                    pcontent = crc;
                }

                PadCommandRouterContainer router = new PadCommandRouterContainer (window, pcontent, toolbarFrame, false);
                router.Show ();
                item.Content = router;
            }
        }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:19,代码来源:DefaultWorkbench.cs


示例12: ActivatePad

		public void ActivatePad (PadCodon padContent, bool giveFocus)
		{
			DockItem item = GetDockItem (padContent);
			if (item != null)
				item.Present (giveFocus);
		}
开发者ID:sandyarmstrong,项目名称:monodevelop,代码行数:6,代码来源:DefaultWorkbench.cs


示例13: CreatePadContent

		void CreatePadContent (bool force, PadCodon padCodon, PadWindow window, DockItem item)
		{
			if (force || item.Content == null) {
				PadContent newContent = padCodon.InitializePadContent (window);

				Gtk.Widget crc = new PadCommandRouterContainer (window, newContent.Control, newContent, true);
				crc.Show ();

				Gtk.Widget router = new PadCommandRouterContainer (window, crc, toolbarFrame, false);
				router.Show ();
				item.Content = router;
			}
		}
开发者ID:kdubau,项目名称:monodevelop,代码行数:13,代码来源:DefaultWorkbench.cs


示例14: RemovePad

 public void RemovePad(PadCodon codon)
 {
     if (codon.HasId) {
         Command cmd = IdeApp.CommandService.GetCommand (codon.Id);
         if (cmd != null)
             IdeApp.CommandService.UnregisterCommand (cmd);
     }
     DockItem item = GetDockItem (codon);
     padContentCollection.Remove (codon);
     PadWindow win = (PadWindow) GetPadWindow (codon);
     if (win != null) {
         win.NotifyDestroyed ();
         Counters.PadsLoaded--;
         padCodons.Remove (win);
     }
     if (item != null)
         dock.RemoveItem (item);
     padWindows.Remove (codon);
 }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:19,代码来源:DefaultWorkbench.cs


示例15: SetSticky

 public void SetSticky(PadCodon padContent, bool sticky)
 {
     DockItem item = GetDockItem (padContent);
     if (item != null) {
         if (sticky)
             item.Behavior |= DockItemBehavior.Sticky;
         else
             item.Behavior &= ~DockItemBehavior.Sticky;
     }
 }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:10,代码来源:DefaultWorkbench.cs


示例16: BringToFront

 public void BringToFront(PadCodon content)
 {
     BringToFront (content, false);
 }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:4,代码来源:DefaultWorkbench.cs


示例17: GetDockItem

 internal DockItem GetDockItem(PadCodon content)
 {
     if (padContentCollection.Contains (content)) {
         DockItem item = dock.GetItem (content.PadId);
         return item;
     }
     return null;
 }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:8,代码来源:DefaultWorkbench.cs


示例18: PadWindow

		internal PadWindow (DefaultWorkbench workbench, PadCodon codon)
		{
			this.workbench = workbench;
			this.codon = codon;
			this.title = GettextCatalog.GetString (codon.Label);
			this.icon = codon.Icon;
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:7,代码来源:IPadContainer.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# FindInFiles.FilterOptions类代码示例发布时间:2022-05-26
下一篇:
C# CodeTemplates.CodeTemplate类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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