Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | Private Member Functions | Private Attributes
Silverstone.Manticore.Bookmarks.BookmarksWindow Class Reference

Summary description for BookmarksWindow. More...

Inheritance diagram for Silverstone.Manticore.Bookmarks.BookmarksWindow:
Inheritance graph
[legend]
Collaboration diagram for Silverstone.Manticore.Bookmarks.BookmarksWindow:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BookmarksWindow ()
void OnClosed (Object sender, EventArgs e)
void OnActivated (Object sender, EventArgs e)

Protected Member Functions

void Init ()
void OnTreeAfterSelect (Object sender, TreeViewEventArgs e)
void OnTreeDoubleClick (Object sender, EventArgs e)

Protected Attributes

String mType = ""

Properties

String Type [get]

Private Member Functions

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

Private Attributes

StatusBar mStatusBar
StatusBarPanel mStatusBarPanel
BookmarksTreeView mBookmarksTree
BaseTreeBuilder mBuilder = null

Detailed Description

Summary description for BookmarksWindow.

Definition at line 57 of file BookmarksWindow.cs.


Constructor & Destructor Documentation

Definition at line 65 of file BookmarksWindow.cs.

              {
      mType = "BookmarksWindow";
      
      Init();
    }

Here is the call graph for this function:


Member Function Documentation

Reimplemented from Silverstone.Manticore.Toolkit.ManticoreWindow.

Definition at line 72 of file BookmarksWindow.cs.

    {
      // Set up UI
      InitializeComponent();

      base.Init();
    }

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

Definition at line 85 of file BookmarksWindow.cs.

              {
      mStatusBar = new StatusBar();
      mStatusBarPanel = new StatusBarPanel();
      ((ISupportInitialize)mStatusBarPanel).BeginInit();
      SuspendLayout();

      mStatusBar.Name = "statusBar";
      mStatusBar.Panels.Add(mStatusBarPanel);
      mStatusBar.TabIndex = 0;
      mStatusBar.Text = "";
      mStatusBarPanel.Text = "";
      Controls.Add(mStatusBar);

      mBookmarksTree = new BookmarksTreeView("BookmarksRoot");
      mBookmarksTree.Dock = DockStyle.Fill;
      mBookmarksTree.ImageIndex = -1;
      mBookmarksTree.Name = "bookmarksTree";
      mBookmarksTree.SelectedImageIndex = -1;
      mBookmarksTree.Size = new System.Drawing.Size(584, 409);
      mBookmarksTree.TabIndex = 1;

      mBookmarksTree.AfterSelect += new TreeViewEventHandler(OnTreeAfterSelect);
      mBookmarksTree.DoubleClick += new EventHandler(OnTreeDoubleClick);

      Controls.Add(mBookmarksTree);
      mBookmarksTree.Build();

      
      AutoScaleBaseSize = new System.Drawing.Size(5, 13);
      ClientSize = new System.Drawing.Size(584, 429);
      Name = "BookmarksWindow";
      Text = Environment.UserName + "'s Bookmarks";
      ((ISupportInitialize)(mStatusBarPanel)).EndInit();
      ResumeLayout(false);
    }

Here is the call graph for this function:

void Silverstone.Manticore.Toolkit.ManticoreWindow.OnActivated ( Object  sender,
EventArgs  e 
) [inline, inherited]

Definition at line 80 of file ManticoreWindow.cs.

    {
      WindowMediator wm = ServiceManager.WindowMediator;
      wm.SetMostRecentWindow(this);
    }

Here is the call graph for this function:

void Silverstone.Manticore.Toolkit.ManticoreWindow.OnClosed ( Object  sender,
EventArgs  e 
) [inline, inherited]

Definition at line 74 of file ManticoreWindow.cs.

    {
      WindowMediator wm = ServiceManager.WindowMediator;
      wm.UnregisterWindow(this);
    }

Here is the call graph for this function:

void Silverstone.Manticore.Bookmarks.BookmarksWindow.OnTreeAfterSelect ( Object  sender,
TreeViewEventArgs  e 
) [inline, protected]

Definition at line 123 of file BookmarksWindow.cs.

    {
      ManticoreTreeNode node = e.Node as ManticoreTreeNode;
      Bookmarks bmks = ServiceManager.Bookmarks;
      String bookmarkURL = bmks.GetBookmarkAttribute(node.Data as String, "url");
      mStatusBar.Text = bookmarkURL;
    }

Here is the call graph for this function:

void Silverstone.Manticore.Bookmarks.BookmarksWindow.OnTreeDoubleClick ( Object  sender,
EventArgs  e 
) [inline, protected]

Definition at line 131 of file BookmarksWindow.cs.

    {
      ManticoreTreeNode node = mBookmarksTree.SelectedNode as ManticoreTreeNode;
      Bookmarks bmks = ServiceManager.Bookmarks;
      String bookmarkURL = bmks.GetBookmarkAttribute(node.Data as String, "url");
      if (bookmarkURL != "") 
      {
        WindowMediator wm = ServiceManager.WindowMediator;
        BrowserWindow window = wm.GetMostRecentWindow("BrowserWindow") as BrowserWindow;
        if (window != null)
          window.LoadURL(bookmarkURL);
      }
    }

Here is the call graph for this function:


Member Data Documentation

Definition at line 61 of file BookmarksWindow.cs.

Definition at line 63 of file BookmarksWindow.cs.

Definition at line 59 of file BookmarksWindow.cs.

Definition at line 60 of file BookmarksWindow.cs.

Definition at line 52 of file ManticoreWindow.cs.


Property Documentation

Definition at line 55 of file ManticoreWindow.cs.


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