Use a more clear name for a dialog in the layout sample
No real changes, just rename the over generic MySizerDialog to a more specific MyNotebookWithSizerDialog, as the goal of this dialog seems to be to demonstrate using wxNotebook and sizers together.
This commit is contained in:
@@ -207,7 +207,7 @@ void MyFrame::TestFlexSizers(wxCommandEvent& WXUNUSED(event) )
|
|||||||
|
|
||||||
void MyFrame::TestNotebookSizers(wxCommandEvent& WXUNUSED(event) )
|
void MyFrame::TestNotebookSizers(wxCommandEvent& WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
MySizerDialog dialog( this, "Notebook Sizer Test Dialog" );
|
MyNotebookWithSizerDialog dialog( this, "Notebook Sizer Test Dialog" );
|
||||||
|
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
}
|
}
|
||||||
@@ -396,10 +396,10 @@ MyFlexSizerFrame::MyFlexSizerFrame(wxFrame* parent)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// MySizerDialog
|
// MyNotebookWithSizerDialog
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
MySizerDialog::MySizerDialog(wxWindow *parent, const wxString &title)
|
MyNotebookWithSizerDialog::MyNotebookWithSizerDialog(wxWindow *parent, const wxString &title)
|
||||||
: wxDialog(parent, wxID_ANY, wxString(title))
|
: wxDialog(parent, wxID_ANY, wxString(title))
|
||||||
{
|
{
|
||||||
// Begin with first hierarchy: a notebook at the top and
|
// Begin with first hierarchy: a notebook at the top and
|
||||||
|
@@ -64,11 +64,11 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// a dialog using notebook sizer for layout
|
// a dialog using notebook and sizers for layout
|
||||||
class MySizerDialog : public wxDialog
|
class MyNotebookWithSizerDialog : public wxDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MySizerDialog(wxWindow *parent, const wxString &title );
|
MyNotebookWithSizerDialog(wxWindow *parent, const wxString &title );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user