예제 #1
0
 void CreateContent()
 {
     if (this.content == null)
     {
         this.content = codon.InitializePadContent(this);
     }
 }
예제 #2
0
 internal Pad FindPad(PadContent padContent)
 {
     foreach (Pad pad in Pads)
     {
         if (pad.Content == padContent)
         {
             return(pad);
         }
     }
     return(null);
 }
예제 #3
0
 public Pad ShowPad(PadContent padContent, string id, string label, string defaultPlacement, DockItemStatus defaultStatus, IconId icon)
 {
     return(ShowPad(new PadCodon(padContent, id, label, defaultPlacement, defaultStatus, icon)));
 }
예제 #4
0
 public Pad AddPad(PadContent padContent, string id, string label, string defaultPlacement, IconId icon)
 {
     return(AddPad(new PadCodon(padContent, id, label, defaultPlacement, icon)));
 }
예제 #5
0
		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;
		}
예제 #6
0
		public PadCodon (PadContent content, string id, string label, string defaultPlacement, DockItemStatus defaultStatus, string icon)
		{
			this.id               = id;
			this.content          = content;
			this.label            = label;
			this.defaultPlacement = defaultPlacement;
			this.icon             = icon;
			this.defaultStatus    = defaultStatus;
		}
예제 #7
0
		public PadCodon (PadContent content, string id, string label, string defaultPlacement, string icon)
			: this (content, id, label, defaultPlacement, DockItemStatus.Dockable, icon)
		{
		}
예제 #8
0
		void CreateContent ()
		{
			if (this.content == null) {
				this.content = codon.InitializePadContent (this);
			}
		}