Public Member Functions | Public Attributes

hipp::HippView Class Reference
[Doc/View Framework]

Implementation of wxView More...

#include <HippView.h>

List of all members.

Public Member Functions

 HippView ()
virtual bool OnCreate (wxDocument *doc, long flags)
 Called when the document is created.
virtual wxPrintout * OnCreatePrintout ()
 Called to create print or print preview.
virtual void OnDraw (wxDC *dc)
 Called to print the document.
virtual void OnDraw ()
 Called to draw the document.
virtual void OnDrawForPrinter (wxDC *dc, PRINT_FORMAT format)
 Called to draw the document for printing.
virtual void OnUpdate (wxView *sender, wxObject *hint=NULL)
 Called when the view needs to be updated.
virtual bool OnClose (bool deleteWindow=true)
 Called when the view is closed.
HippDocumentGetDocument ()
void SetDocument (wxDocument *doc)
virtual void DoSelectShape (wxJoystickEvent &event)
void OnCut (wxCommandEvent &event)
 Processes the cut command.
void OnFullscreen (wxCommandEvent &event)
void RestoreWindow (wxCommandEvent &event)
void MirrorScene (wxCommandEvent &event)
void RenderMode (wxCommandEvent &event)
void OnIdle (wxIdleEvent &event)
void togglePenColour ()
void updatePenOptions ()
bool * getPenWhitePtr ()
int * getPenWidthPtr ()
wxPoint getDevicePos () const
void UpdateWindowSize (wxSizeEvent &frameSizeEvent)
list< Node * > GetTopLevelViews ()
HippFrameGetFrame ()

Public Attributes

int current_viewpoint_id

Detailed Description

Implementation of wxView

Author:
David Kadish

HippView is an implementation of wxView. It is responsible for the display of a HippDocument inside a HippFrame. It handles user interaction with the contents of a document and sends data changes to the HippDocument.

Todo:
HippView and HippFrame are in shambles a little. Their functional boundaries are all messed up because they were mostly copied from WxFrame (from the old Hipp). Both are full of commented code that shouldn't be there and much of the code in HippView should actually be in HippFrame. Needs a serious refactoring.

Constructor & Destructor Documentation

HippView::HippView (  ) 

Member Function Documentation

void HippView::DoSelectShape ( wxJoystickEvent &  event  )  [virtual]
wxPoint HippView::getDevicePos (  )  const
HippDocument * HippView::GetDocument (  ) 
HippFrame* hipp::HippView::GetFrame (  )  [inline]
bool* hipp::HippView::getPenWhitePtr (  )  [inline]
int* hipp::HippView::getPenWidthPtr (  )  [inline]
list< Node * > HippView::GetTopLevelViews (  ) 
void HippView::MirrorScene ( wxCommandEvent &  event  ) 
bool HippView::OnClose ( bool  deleteWindow = true  )  [virtual]

Called when the view is closed.

bool HippView::OnCreate ( wxDocument *  doc,
long  flags 
) [virtual]

Called when the document is created.

wxPrintout * HippView::OnCreatePrintout (  )  [virtual]

Called to create print or print preview.

void HippView::OnCut ( wxCommandEvent &  event  ) 

Processes the cut command.

void HippView::OnDraw (  )  [virtual]

Called to draw the document.

void HippView::OnDraw ( wxDC *  dc  )  [virtual]

Called to print the document.

void HippView::OnDrawForPrinter ( wxDC *  dc,
PRINT_FORMAT  format 
) [virtual]

Called to draw the document for printing.

void HippView::OnFullscreen ( wxCommandEvent &  event  ) 
void HippView::OnIdle ( wxIdleEvent &  event  ) 
void HippView::OnUpdate ( wxView *  sender,
wxObject *  hint = NULL 
) [virtual]

Called when the view needs to be updated.

void HippView::RenderMode ( wxCommandEvent &  event  ) 
void HippView::RestoreWindow ( wxCommandEvent &  event  ) 
void HippView::SetDocument ( wxDocument *  doc  ) 
void HippView::togglePenColour (  ) 
void HippView::updatePenOptions (  ) 
void HippView::UpdateWindowSize ( wxSizeEvent &  frameSizeEvent  ) 

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines