a2dDocumentViewScrolledWindow Class Reference

specialized wxScrolledWindow to handle a2dView events More...

#include <docviewref.h>

Inheritance diagram for a2dDocumentViewScrolledWindow:

Inheritance graph
[legend]
Collaboration diagram for a2dDocumentViewScrolledWindow:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dDocumentViewScrolledWindow (a2dView *view, wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxHSCROLL|wxVSCROLL, const wxString &name=wxT("a2dDocumentViewScrolledWindow"))
 Constructor for creation with view.
 a2dDocumentViewScrolledWindow (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxHSCROLL|wxVSCROLL, const wxString &name=wxT("a2dDocumentViewScrolledWindow"))
 Constructor for creation without view.
 ~a2dDocumentViewScrolledWindow ()
 Destructor.


Detailed Description

specialized wxScrolledWindow to handle a2dView events

The following events are sent up from the a2dView to this window.

wxEVT_CLOSE_VIEW

Next one can be recieved from the event distributer DistributeEvent()

wxEVT_CHANGEDFILENAME_DOCUMENT

When the a2dView sent this events it disables itself until return, to prevent looping.

wxEVT_CLOSE_VIEW should be handled in a derived class, or in some/the parent window of this window. The handler must call a2dDocumentViewScrolledWindow::SetView( NULL ) or set m_view to NULL and release it, this Detaches the view from the window, In case the window gets deleted via a Destroy() this will be done automatically.

These event are of type commandevents, and travel up to the parent of this window if not handled here.

All other events to the window are sent first to the a2dView and if not handled there, can be handled here.

Definition at line 3994 of file docviewref.h.


Constructor & Destructor Documentation

a2dDocumentViewScrolledWindow::a2dDocumentViewScrolledWindow ( a2dView view,
wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxHSCROLL | wxVSCROLL,
const wxString &  name = wxT("a2dDocumentViewScrolledWindow") 
)

Constructor for creation with view.

Parameters:
view The view for the document ( can be NULL )
parent the parent window for this window
id The window identifier. It may take a value of -1 to indicate a default value.
pos The window position.
size The window size.
style Window style, please look into wxWindows docs for an overview.
name The name of the window.

Definition at line 2497 of file docviewref.cpp.

a2dDocumentViewScrolledWindow::a2dDocumentViewScrolledWindow ( wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxHSCROLL | wxVSCROLL,
const wxString &  name = wxT("a2dDocumentViewScrolledWindow") 
)

Constructor for creation without view.

Parameters:
parent the parent window for this window
id The window identifier. It may take a value of -1 to indicate a default value.
pos The window position.
size The window size.
style Window style, please look into wxWindows docs for an overview.
name The name of the window.

Definition at line 2502 of file docviewref.cpp.


The documentation for this class was generated from the following files:
a2dDocumentViewScrolledWindow Class Reference -- Tue Aug 31 18:23:04 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation