What are the important qualities of a view? A view is registered with its document, and when the view becomes active (ie the user clicks on it) then it will set its document to be the active/current document. Mehr ...
#include <MutView.h>
Öffentliche Methoden | |
MutView () | |
virtual | ~MutView () |
virtual bool | OnCreate (wxDocument *doc, long flags) |
virtual bool | OnClose (bool deleteWindow=true) |
virtual void | OnDraw (wxDC *dc) |
virtual void | OnUpdate (wxView *sender, wxObject *hint=NULL) |
virtual void | OnActivateView (bool activate, wxView *activeView, wxView *deactiveView) |
MutEditFile * | GetTextsw () |
void | SetTextsw (MutEditFile *t) |
MutFrame * | GetMutFrame () |
Freundbeziehungen | |
class | MutDocument |
What are the important qualities of a view? A view is registered with its document, and when the view becomes active (ie the user clicks on it) then it will set its document to be the active/current document.
What else? it will receive instructions from the document to update (ie redraw) when the document changes, and close when the document closes, and do something when the document changes its filename (eg the user does a save_as). Does the view need an event table? no I think its methods get called by direct pointer access p->method etc.
mutaborGUI::MutView::MutView | ( | ) |
virtual mutaborGUI::MutView::~MutView | ( | ) | [virtual] |
MutFrame* mutaborGUI::MutView::GetMutFrame | ( | ) | [inline] |
Definiert in Zeile 92 der Datei MutView.h.
Wird benutzt von END_EVENT_TABLE().
{ wxWindow * f = GetFrame(); if (f) { wxASSERT(dynamic_cast<MutFrame *>(f)); } return (MutFrame *) f; }
MutEditFile* mutaborGUI::MutView::GetTextsw | ( | ) | [inline] |
virtual void mutaborGUI::MutView::OnActivateView | ( | bool | activate, |
wxView * | activeView, | ||
wxView * | deactiveView | ||
) | [virtual] |
virtual bool mutaborGUI::MutView::OnClose | ( | bool | deleteWindow = true | ) | [virtual] |
virtual bool mutaborGUI::MutView::OnCreate | ( | wxDocument * | doc, |
long | flags | ||
) | [virtual] |
Wird benutzt von END_EVENT_TABLE().
virtual void mutaborGUI::MutView::OnDraw | ( | wxDC * | dc | ) | [virtual] |
virtual void mutaborGUI::MutView::OnUpdate | ( | wxView * | sender, |
wxObject * | hint = NULL |
||
) | [virtual] |
void mutaborGUI::MutView::SetTextsw | ( | MutEditFile * | t | ) | [inline] |
friend class MutDocument [friend] |