Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions | Properties | Events | Private Member Functions | Private Attributes
Silverstone.Manticore.Browser.LocationBar Class Reference

Summary description for LocationBar. More...

Collaboration diagram for Silverstone.Manticore.Browser.LocationBar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LocationBar ()
delegate void LocationBarEventHandler (Object sender, LocationBarEventArgs e)

Protected Member Functions

void OnKeyDown (Object aSender, KeyEventArgs aKea)
void OnGoButtonClick (Object aSender, EventArgs aEa)
void FireLocationBarCommit ()
void OnAddressBarModified (Object aSender, EventArgs aEa)
override void OnPaint (PaintEventArgs aPea)

Properties

string Text [get, set]

Events

LocationBarEventHandler LocationBarCommit
LocationBarEventHandler LocationBarModified

Private Member Functions

void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor.

Private Attributes

System.Windows.Forms.Label mAddressLabel
System.Windows.Forms.TextBox mAddressBar
System.Windows.Forms.Button mGoButton
System.ComponentModel.Container components = null
 Required designer variable.

Detailed Description

Summary description for LocationBar.

Definition at line 52 of file LocationBar.cs.


Constructor & Destructor Documentation

Definition at line 62 of file LocationBar.cs.

              {
                     // This call is required by the Windows.Forms Form Designer.
                     InitializeComponent();

                     mAddressBar.KeyDown += new KeyEventHandler(OnKeyDown);
      mAddressBar.ModifiedChanged += new EventHandler(OnAddressBarModified);
      mGoButton.Click += new EventHandler(OnGoButtonClick);
              }

Here is the call graph for this function:


Member Function Documentation

Definition at line 100 of file LocationBar.cs.

    {
      if (LocationBarCommit != null) 
      {
        LocationBarEventArgs lbea = new LocationBarEventArgs(mAddressBar.Text);
        LocationBarCommit(this, lbea);
      }
    }

Required method for Designer support - do not modify the contents of this method with the code editor.

Definition at line 131 of file LocationBar.cs.

              {
      this.mAddressLabel = new System.Windows.Forms.Label();
      this.mAddressBar = new System.Windows.Forms.TextBox();
      this.mGoButton = new System.Windows.Forms.Button();
      this.SuspendLayout();
      // 
      // mAddressLabel
      // 
      this.mAddressLabel.AutoSize = true;
      this.mAddressLabel.Location = new System.Drawing.Point(8, 6);
      this.mAddressLabel.Name = "mAddressLabel";
      this.mAddressLabel.Size = new System.Drawing.Size(49, 13);
      this.mAddressLabel.TabIndex = 0;
      this.mAddressLabel.Text = "A&ddress:";
      // 
      // mAddressBar
      // 
      this.mAddressBar.Anchor = (System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right);
      this.mAddressBar.Location = new System.Drawing.Point(64, 3);
      this.mAddressBar.Name = "mAddressBar";
      this.mAddressBar.Size = new System.Drawing.Size(336, 20);
      this.mAddressBar.TabIndex = 1;
      this.mAddressBar.Text = "";
      // 
      // mGoButton
      // 
      this.mGoButton.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
      this.mGoButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
      this.mGoButton.Location = new System.Drawing.Point(408, 2);
      this.mGoButton.Name = "mGoButton";
      this.mGoButton.Size = new System.Drawing.Size(32, 23);
      this.mGoButton.TabIndex = 2;
      this.mGoButton.Text = "Go";
      // 
      // LocationBar
      // 
      this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                  this.mGoButton,
                                                                  this.mAddressBar,
                                                                  this.mAddressLabel});
      this.Name = "LocationBar";
      this.Size = new System.Drawing.Size(448, 25);
      this.ResumeLayout(false);

    }

Here is the caller graph for this function:

void Silverstone.Manticore.Browser.LocationBar.OnAddressBarModified ( Object  aSender,
EventArgs  aEa 
) [inline, protected]

Definition at line 110 of file LocationBar.cs.

    {
      if (LocationBarModified != null) 
      {
        LocationBarEventArgs lbea = new LocationBarEventArgs(mAddressBar.Text);
        LocationBarModified(this, lbea);
      }
    }
void Silverstone.Manticore.Browser.LocationBar.OnGoButtonClick ( Object  aSender,
EventArgs  aEa 
) [inline, protected]

Definition at line 95 of file LocationBar.cs.

void Silverstone.Manticore.Browser.LocationBar.OnKeyDown ( Object  aSender,
KeyEventArgs  aKea 
) [inline, protected]

Definition at line 89 of file LocationBar.cs.

    {
      if (aKea.KeyCode == Keys.Enter) 
        FireLocationBarCommit();
    }
override void Silverstone.Manticore.Browser.LocationBar.OnPaint ( PaintEventArgs  aPea) [inline, protected]

Definition at line 119 of file LocationBar.cs.

    {
      Graphics g = aPea.Graphics;
      g.DrawLine(SystemPens.ControlDark, 0, 0, ClientRectangle.Width, 0);
      g.DrawLine(SystemPens.ControlLight, 0, 1, ClientRectangle.Width, 1);
    }

Member Data Documentation

System.ComponentModel.Container Silverstone.Manticore.Browser.LocationBar.components = null [private]

Required designer variable.

Definition at line 60 of file LocationBar.cs.

System.Windows.Forms.TextBox Silverstone.Manticore.Browser.LocationBar.mAddressBar [private]

Definition at line 55 of file LocationBar.cs.

System.Windows.Forms.Label Silverstone.Manticore.Browser.LocationBar.mAddressLabel [private]

Definition at line 54 of file LocationBar.cs.

System.Windows.Forms.Button Silverstone.Manticore.Browser.LocationBar.mGoButton [private]

Definition at line 56 of file LocationBar.cs.


Property Documentation

Definition at line 73 of file LocationBar.cs.


Event Documentation

Definition at line 87 of file LocationBar.cs.

Definition at line 109 of file LocationBar.cs.


The documentation for this class was generated from the following file: