Ejemplo n.º 1
0
 void DaggerUISubNode_DaggerNodeAttached(DaggerNode node)
 {
     // store the sub node so we can make the UIGraph for it later
     _node = (DaggerSubNode)node;
     _node.SubNodeGraph.ImportedPins.PinAdded += new DaggerPinAdded(ImportedPins_PinAdded);
     _node.SubNodeGraph.ExportedPins.PinAdded += new DaggerPinAdded(ExportedPins_PinAdded);
     _editSubNodeButton                = new SimpleImageButton();
     _editSubNodeButton.ButtonImage    = _subnodeEditButtonImageList.Images[0];
     _editSubNodeButton.ButtonImage2   = _subnodeEditButtonImageList.Images[1];
     _editSubNodeButton.MultiState     = true;
     _editSubNodeButton.ToolTipText    = "Edit SubNode";
     _editSubNodeButton.ToolTipEnabled = true;
     _editSubNodeButton.StateChanged  += new SimpleImageButton.StateChangedEventHandler(_editSubNodeButton_StateChanged);
     CaptionButtons.Add(_editSubNodeButton);
 }
Ejemplo n.º 2
0
 public void Add(SimpleImageButton button)
 {
     List.Add(button);
 }
Ejemplo n.º 3
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DSFilterNodeUI));
     this._expandPropertiesButton    = new DaggerLib.UI.Windows.SimpleImageButton();
     this._clockButton               = new DaggerLib.UI.Windows.SimpleImageButton();
     this._detachVideoWindowButton   = new DaggerLib.UI.Windows.SimpleImageButton();
     this._closeButton               = new DaggerLib.UI.Windows.SimpleImageButton();
     this._propertiesImageList       = new System.Windows.Forms.ImageList(this.components);
     this.dvdControlbutton           = new DaggerLib.UI.Windows.SimpleImageButton();
     this.dvdControlContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.titleMenuToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.resumeToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.rootMenuToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.chaptersToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.dvdControlContextMenuStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // _internalControl
     //
     this._internalControl.Location = new System.Drawing.Point(16, 21);
     this._internalControl.Size     = new System.Drawing.Size(173, 14);
     //
     // _expandPropertiesButton
     //
     this._expandPropertiesButton.ButtonImage      = null;
     this._expandPropertiesButton.ButtonImage2     = null;
     this._expandPropertiesButton.MouseInsideTint  = System.Drawing.Color.White;
     this._expandPropertiesButton.MouseOutsideTint = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this._expandPropertiesButton.MultiState       = true;
     this._expandPropertiesButton.Name             = "_expandPropertiesButton";
     this._expandPropertiesButton.State            = false;
     this._expandPropertiesButton.TabIndex         = 1;
     this._expandPropertiesButton.ToolTipEnabled   = true;
     this._expandPropertiesButton.ToolTipText      = "Show/Hide Properties";
     this._expandPropertiesButton.StateChanged    += new DaggerLib.UI.Windows.SimpleImageButton.StateChangedEventHandler(this._expandPropertiesButton_StateChanged);
     this._expandPropertiesButton.Click           += new System.EventHandler(this._expandPropertiesButton_Click);
     //
     // _clockButton
     //
     this._clockButton.ButtonImage      = ((System.Drawing.Image)(resources.GetObject("_clockButton.ButtonImage")));
     this._clockButton.ButtonImage2     = null;
     this._clockButton.MouseInsideTint  = System.Drawing.Color.White;
     this._clockButton.MouseOutsideTint = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this._clockButton.MultiState       = false;
     this._clockButton.Name             = "_clockButton";
     this._clockButton.State            = false;
     this._clockButton.TabIndex         = 2;
     this._clockButton.ToolTipEnabled   = true;
     this._clockButton.ToolTipText      = "Set as Reference Clock";
     this._clockButton.Click           += new System.EventHandler(this._clockButton_Click);
     //
     // _detachVideoWindowButton
     //
     this._detachVideoWindowButton.ButtonImage      = ((System.Drawing.Image)(resources.GetObject("_detachVideoWindowButton.ButtonImage")));
     this._detachVideoWindowButton.ButtonImage2     = null;
     this._detachVideoWindowButton.MouseInsideTint  = System.Drawing.Color.White;
     this._detachVideoWindowButton.MouseOutsideTint = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this._detachVideoWindowButton.MultiState       = false;
     this._detachVideoWindowButton.Name             = "_detachVideoWindowButton";
     this._detachVideoWindowButton.State            = false;
     this._detachVideoWindowButton.TabIndex         = 3;
     this._detachVideoWindowButton.ToolTipEnabled   = true;
     this._detachVideoWindowButton.ToolTipText      = "Detach Video Window";
     this._detachVideoWindowButton.Click           += new System.EventHandler(this._detachVideoWindowButton_Click);
     //
     // _closeButton
     //
     this._closeButton.ButtonImage      = ((System.Drawing.Image)(resources.GetObject("_closeButton.ButtonImage")));
     this._closeButton.ButtonImage2     = null;
     this._closeButton.MouseInsideTint  = System.Drawing.Color.White;
     this._closeButton.MouseOutsideTint = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this._closeButton.MultiState       = false;
     this._closeButton.Name             = "_closeButton";
     this._closeButton.State            = false;
     this._closeButton.TabIndex         = 4;
     this._closeButton.ToolTipEnabled   = true;
     this._closeButton.ToolTipText      = "Remove Filter";
     this._closeButton.Click           += new System.EventHandler(this._closeButton_Click);
     //
     // _propertiesImageList
     //
     this._propertiesImageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_propertiesImageList.ImageStream")));
     this._propertiesImageList.TransparentColor = System.Drawing.Color.Transparent;
     this._propertiesImageList.Images.SetKeyName(0, "down.png");
     this._propertiesImageList.Images.SetKeyName(1, "up.png");
     this._propertiesImageList.Images.SetKeyName(2, "cog.png");
     //
     // dvdControlbutton
     //
     this.dvdControlbutton.ButtonImage      = ((System.Drawing.Image)(resources.GetObject("dvdControlbutton.ButtonImage")));
     this.dvdControlbutton.ButtonImage2     = null;
     this.dvdControlbutton.MouseInsideTint  = System.Drawing.Color.White;
     this.dvdControlbutton.MouseOutsideTint = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.dvdControlbutton.MultiState       = false;
     this.dvdControlbutton.Name             = "dvdControlbutton";
     this.dvdControlbutton.State            = false;
     this.dvdControlbutton.TabIndex         = 5;
     this.dvdControlbutton.ToolTipEnabled   = false;
     this.dvdControlbutton.ToolTipText      = "DVD Control";
     this.dvdControlbutton.Visible          = false;
     this.dvdControlbutton.Click           += new System.EventHandler(this.dvdControlbutton_Click);
     //
     // dvdControlContextMenuStrip
     //
     this.dvdControlContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.titleMenuToolStripMenuItem,
         this.resumeToolStripMenuItem,
         this.rootMenuToolStripMenuItem,
         this.chaptersToolStripMenuItem
     });
     this.dvdControlContextMenuStrip.Name     = "dvdControlContextMenuStrip";
     this.dvdControlContextMenuStrip.Size     = new System.Drawing.Size(134, 92);
     this.dvdControlContextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.dvdControlContextMenuStrip_Opening);
     //
     // titleMenuToolStripMenuItem
     //
     this.titleMenuToolStripMenuItem.Name   = "titleMenuToolStripMenuItem";
     this.titleMenuToolStripMenuItem.Size   = new System.Drawing.Size(133, 22);
     this.titleMenuToolStripMenuItem.Text   = "Title Menu";
     this.titleMenuToolStripMenuItem.Click += new System.EventHandler(this.titleMenuToolStripMenuItem_Click);
     //
     // resumeToolStripMenuItem
     //
     this.resumeToolStripMenuItem.Name   = "resumeToolStripMenuItem";
     this.resumeToolStripMenuItem.Size   = new System.Drawing.Size(133, 22);
     this.resumeToolStripMenuItem.Text   = "Resume";
     this.resumeToolStripMenuItem.Click += new System.EventHandler(this.resumeToolStripMenuItem_Click);
     //
     // rootMenuToolStripMenuItem
     //
     this.rootMenuToolStripMenuItem.Name   = "rootMenuToolStripMenuItem";
     this.rootMenuToolStripMenuItem.Size   = new System.Drawing.Size(133, 22);
     this.rootMenuToolStripMenuItem.Text   = "Root Menu";
     this.rootMenuToolStripMenuItem.Click += new System.EventHandler(this.rootMenuToolStripMenuItem_Click);
     //
     // chaptersToolStripMenuItem
     //
     this.chaptersToolStripMenuItem.Name = "chaptersToolStripMenuItem";
     this.chaptersToolStripMenuItem.Size = new System.Drawing.Size(133, 22);
     this.chaptersToolStripMenuItem.Text = "Chapters";
     //
     // DSFilterNodeUI
     //
     this.BackColor = System.Drawing.SystemColors.Control;
     this.CaptionButtons.Add(this.dvdControlbutton);
     this.CaptionButtons.Add(this._detachVideoWindowButton);
     this.CaptionButtons.Add(this._clockButton);
     this.CaptionButtons.Add(this._expandPropertiesButton);
     this.CaptionButtons.Add(this._closeButton);
     this.CaptionColor          = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
     this.CaptionColorUnfocused = System.Drawing.Color.Blue;
     this.CaptionSize           = 16;
     this.Controls.Add(this.dvdControlbutton);
     this.Controls.Add(this._detachVideoWindowButton);
     this.Controls.Add(this._clockButton);
     this.Controls.Add(this._expandPropertiesButton);
     this.Controls.Add(this._closeButton);
     this.Name = "DSFilterNodeUI";
     this.Size = new System.Drawing.Size(205, 40);
     this.Controls.SetChildIndex(this._closeButton, 0);
     this.Controls.SetChildIndex(this._expandPropertiesButton, 0);
     this.Controls.SetChildIndex(this._clockButton, 0);
     this.Controls.SetChildIndex(this._detachVideoWindowButton, 0);
     this.Controls.SetChildIndex(this.dvdControlbutton, 0);
     this.Controls.SetChildIndex(this._internalControl, 0);
     this.dvdControlContextMenuStrip.ResumeLayout(false);
     this.ResumeLayout(false);
 }