Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions | Package Attributes | Private Member Functions | Private Attributes
Silverstone.Manticore.Browser.PrefPanel Class Reference

Summary description for UserControl1. More...

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

List of all members.

Public Member Functions

 PrefPanel (Form aParent, Preferences aPrefs)
void VisibilityChanged (Object sender, EventArgs e)
 Called when the visibility of the panel changes.
virtual void Load ()
 Implemented by derived class. Reads preferences for each UI element the first time this panel is shown, and populates the UI appropriately.
virtual void Save ()
 Implemented by derived class. Takes data from UI elements (which may be user-manipulated) and saves preferences.

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used.

Package Attributes

Preferences mPrefs
 Preferences handle.
Form mParent
 Parent window (Preferences dialog)

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.ComponentModel.Container components = null
 Required designer variable.
bool mGenerated = false
 Whether or not this panel has been shown before. We defer reading preferences and populating UI for preferences panels that have not yet been shown.

Detailed Description

Summary description for UserControl1.

Definition at line 54 of file PrefPanel.cs.


Constructor & Destructor Documentation

Silverstone.Manticore.Browser.PrefPanel.PrefPanel ( Form  aParent,
Preferences  aPrefs 
) [inline]

Definition at line 79 of file PrefPanel.cs.

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

      // LAME oh so lame.
      mPrefs = aPrefs;
      mParent = aParent;

      // All preferences panels have these properties initially.
      this.Location = new System.Drawing.Point(160, 16);
      this.Size = new System.Drawing.Size(320, 264);
      this.TabIndex = 1;
      this.Visible = false;

      // When the preference panel is shown for the first time, we
      // need to fill its fields from preferences. 
      this.VisibleChanged += new EventHandler(VisibilityChanged);
              }

Here is the call graph for this function:


Member Function Documentation

override void Silverstone.Manticore.Browser.PrefPanel.Dispose ( bool  disposing) [inline, protected]

Clean up any resources being used.

Reimplemented in Silverstone.Manticore.Browser.BrowserDisplayPanel.

Definition at line 135 of file PrefPanel.cs.

              {
                     if( disposing )
                     {
                            if(components != null)
                            {
                                   components.Dispose();
                            }
                     }
                     base.Dispose( disposing );
              }

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

Reimplemented in Silverstone.Manticore.Browser.BrowserDisplayPanel.

Definition at line 152 of file PrefPanel.cs.

              {
                     components = new System.ComponentModel.Container();
              }
virtual void Silverstone.Manticore.Browser.PrefPanel.Load ( ) [inline, virtual]

Implemented by derived class. Reads preferences for each UI element the first time this panel is shown, and populates the UI appropriately.

Reimplemented in Silverstone.Manticore.Browser.BrowserDisplayPanel.

Definition at line 118 of file PrefPanel.cs.

    {
      // Implemented by derived class
    }
virtual void Silverstone.Manticore.Browser.PrefPanel.Save ( ) [inline, virtual]

Implemented by derived class. Takes data from UI elements (which may be user-manipulated) and saves preferences.

Reimplemented in Silverstone.Manticore.Browser.BrowserDisplayPanel.

Definition at line 127 of file PrefPanel.cs.

    {
      // Implemented by derived class
    }

Here is the caller graph for this function:

Called when the visibility of the panel changes.

Parameters:
sender
e

Definition at line 104 of file PrefPanel.cs.

    {
      if (!mGenerated) {
        // The first time we display the panel, read the values 
        // for UI elements from preferences and fill the controls.
        Load();
        mGenerated = true;
      }
    }

Here is the call graph for this function:


Member Data Documentation

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

Required designer variable.

Reimplemented in Silverstone.Manticore.Browser.BrowserDisplayPanel.

Definition at line 59 of file PrefPanel.cs.

Whether or not this panel has been shown before. We defer reading preferences and populating UI for preferences panels that have not yet been shown.

Definition at line 66 of file PrefPanel.cs.

Parent window (Preferences dialog)

Definition at line 77 of file PrefPanel.cs.

Preferences handle.

Definition at line 72 of file PrefPanel.cs.


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