menu_bar->Append(file_menu, _("&File"));
menu_bar->Append(active_menu, _("Active &Layout"));
+#if wxUSE_STATUSBAR
frame->CreateStatusBar(3);
+#endif // wxUSE_STATUSBAR
frame->SetMenuBar(menu_bar);
// Create all layouts
for( i = 0; i != MAX_LAYOUTS; ++i )
- {
+ {
CreateLayout( i );
}
// hide others
{
wxTreeCtrl* pTree = new wxTreeCtrl( mpInternalFrm, wxID_ANY );
- const wxTreeItemId rootid = pTree->AppendItem( (long)0, label, 0);
+ const wxTreeItemId rootid = pTree->AddRoot(label);
- if ( label[0] != 'X' )
+ if ( label.StartsWith(_T("X")) )
{
- pTree->AppendItem(rootid, _("Leaf1"), 0);
- pTree->AppendItem(rootid, _("Leaf2"), 0);
+ pTree->AppendItem(rootid, _("Scully"));
+ pTree->AppendItem(rootid, _("Mulder"));
}
else
{
- pTree->AppendItem(rootid, _("Scully"), 0);
- pTree->AppendItem(rootid, _("Mulder"), 0);
+ pTree->AppendItem(rootid, _("Leaf1"));
+ pTree->AppendItem(rootid, _("Leaf2"));
}
return pTree;
{
bool isNested = (pParent != mpInternalFrm);
- // check if we're craeting nested layout
+ // check if we're creating nested layout
if ( isNested )
{
layout.mBorderPen.SetColour( 128,255,128 );
pClassView->AppendItem( rootId, _("serializer-classes (grabbed at run-time)"), 0 );
// now create "output" window
- wxNotebook* pTabbedArea = new wxNotebook(pParent, wxID_ANY);
+ wxNotebook* pTabbedArea = new wxNotebook(pParent, wxID_ANY);
// SEB: originally here was a wxpp (wxWorkshop) class used
// wxPaggedWindow* pTabbedArea = new wxPaggedWindow();
// pTabbedArea->Create( pParent, wxID_ANY );