當前位置: 首頁>>代碼示例>>C#>>正文


C# Codons.PadCodon類代碼示例

本文整理匯總了C#中MonoDevelop.Ide.Codons.PadCodon的典型用法代碼示例。如果您正苦於以下問題:C# PadCodon類的具體用法?C# PadCodon怎麽用?C# PadCodon使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PadCodon類屬於MonoDevelop.Ide.Codons命名空間,在下文中一共展示了PadCodon類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的MonoDevelop.Ide.Codons.PadCodon類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。