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