|
OpenASIP 2.2
|
#include <ChildFrame.hh>


Public Member Functions | |
| ChildFrame (wxDocument *doc, wxView *view, wxDocMDIParentFrame *parent) | |
| ~ChildFrame () | |
| void | setStatus (const wxString text, int field=0) |
Private Member Functions | |
| void | onFocus (wxFocusEvent &event) |
Private Attributes | |
| wxView * | view_ |
| View of the document which is displayed in the frame. | |
| wxDocMDIParentFrame * | parent_ |
| MDI parent frame of the ChildFrame. | |
MDI child frame for displaying a document.
Definition at line 42 of file ChildFrame.hh.
| ChildFrame::ChildFrame | ( | wxDocument * | doc, |
| wxView * | view, | ||
| wxDocMDIParentFrame * | parent | ||
| ) |
The Constructor.
| doc | Document which is displayed in the ChildFrame. |
| view | View of the document to display. |
| parent | MDI parent frame of the child frame. |
Definition at line 52 of file ChildFrame.cc.
| ChildFrame::~ChildFrame | ( | ) |
|
private |
Activates the associated view when a ChildFrame instance gains focus.
Correct views are not always activated by the wxWidgets document/view framework when documents are closed. This function makes sure that the view associated with the focused ChildFrame is activated.
Definition at line 91 of file ChildFrame.cc.
References view_.
| void ChildFrame::setStatus | ( | const wxString | text, |
| int | field = 0 |
||
| ) |
Sets the statusbar text.
| text | New text for the statusbar. |
| field | Field of status bar to set text for. |
Definition at line 76 of file ChildFrame.cc.
References parent_.
Referenced by SetStatusTextCmd::Do(), SelectTool::onMouseEvent(), MachineCanvas::updateMachine(), and ConnectTool::updateStatusline().
|
private |
MDI parent frame of the ChildFrame.
Definition at line 55 of file ChildFrame.hh.
Referenced by setStatus().
|
private |
View of the document which is displayed in the frame.
Definition at line 53 of file ChildFrame.hh.
Referenced by onFocus().