SdiBaseSimple::SdiView Class Reference

Collaboration diagram for SdiBaseSimple::SdiView:
[legend]
List of all members.

Public Member Functions

 SdiView ()
 Default Constructor.
 SdiView (String name, SdiApplicationContext context)
 Create a constructor in all views with this signature.
virtual void Doc_Update (Object sender)
 Override in derived class for actions to perform when doc changes.
virtual void SdiView_Paint (object sender, PaintEventArgs e)
 Override this method in the extended class.

Protected Member Functions

void SdiInitializeComponent ()
 Default appearance of view.

Properties

SdiApplicationContext Context [get]
 Read-only property to access the application context.

Detailed Description

All views should extend from this class.


Constructor & Destructor Documentation

SdiBaseSimple::SdiView::SdiView (  )  [inline]

Default Constructor.

SdiBaseSimple::SdiView::SdiView ( String  name,
SdiApplicationContext  context 
) [inline]

Create a constructor in all views with this signature.

The extended constructor MUST call the base contstructor.

            public ExtendedView(String name, SdiApplicationContext context) 
                : base(name, context)
            {
            	...
            }
            
If you modify the extended view in the designer, be sure to call InitializeComponent in the extended view from the view's constructor. InitializeComponent will not be created until you modify the extended view in the designer.
            public ExtendedView(String name, SdiApplicationContext context) 
                : base(name, context)
            {
            	...
                InitializeComponent();
                ...
            }
            

Parameters:
name The name to be used to retrieve the view
context The application context from the main form


Member Function Documentation

virtual void SdiBaseSimple::SdiView::Doc_Update ( Object  sender  )  [inline, virtual]

Override in derived class for actions to perform when doc changes.

Be sure to call the base class Doc_Update or call Invalidate(true) in the overriden method.

Parameters:
sender The view that initiated the change to the doc.

virtual void SdiBaseSimple::SdiView::SdiView_Paint ( object  sender,
PaintEventArgs  e 
) [inline, virtual]

Override this method in the extended class.

Each view that is created with SdiApplication.SetView is subscribed to the paint event. Override this method in the extended class to handled painting. It is not necessary to subscribe to the paint handler in the extended class.

Parameters:
sender Object that initiated paint.
e Normal event args for paint

void SdiBaseSimple::SdiView::SdiInitializeComponent (  )  [inline, protected]

Default appearance of view.

This is the default appearance of view before any changes are made in the extended class. This method should not be changed or overridden. Make all changes in extended view class. Any changes made to the extended class in the designer will be reflected in IntializeComponent in the extended class.


Property Documentation

SdiApplicationContext SdiBaseSimple::SdiView::Context [get]

Read-only property to access the application context.


The documentation for this class was generated from the following file:
Generated on Thu Nov 9 12:19:37 2006 for test by  doxygen 1.5.1-p1