fix non-compiling wxdlg code in linux
This commit is contained in:
parent
99ba104317
commit
ab429334f4
|
@ -56,9 +56,9 @@ public:
|
||||||
void NewFrame()
|
void NewFrame()
|
||||||
{
|
{
|
||||||
listPolys->SetItemCount(viewer3d_state.polylist.count);
|
listPolys->SetItemCount(viewer3d_state.polylist.count);
|
||||||
labelFrameCounter->SetLabel(wxString::Format("%s: %d",_("Frame"),viewer3d_state.frameNumber));
|
labelFrameCounter->SetLabel(wxString::Format(wxT("Frame: %d"),viewer3d_state.frameNumber));
|
||||||
labelUserPolycount->SetLabel(wxString::Format("%s: %d",_("User Polys"),viewer3d_state.polylist.count));
|
labelUserPolycount->SetLabel(wxString::Format(wxT("User Polys: %d"),viewer3d_state.polylist.count));
|
||||||
labelFinalPolycount->SetLabel(wxString::Format("%s: %d",_("Final Polys"),viewer3d_state.polylist.count));
|
labelFinalPolycount->SetLabel(wxString::Format(wxT("Final Polys: %d"),viewer3d_state.polylist.count));
|
||||||
//tree->DeleteAllItems();
|
//tree->DeleteAllItems();
|
||||||
//tree->Freeze();
|
//tree->Freeze();
|
||||||
//wxTreeItemId root = tree->AddRoot("");
|
//wxTreeItemId root = tree->AddRoot("");
|
||||||
|
@ -71,7 +71,7 @@ public:
|
||||||
|
|
||||||
virtual wxString OnGetItemText(const wxListCtrl* list, long item, long column) const
|
virtual wxString OnGetItemText(const wxListCtrl* list, long item, long column) const
|
||||||
{
|
{
|
||||||
return "hi";
|
return wxT("hi");
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void OnListPolysSelected( wxListEvent& event )
|
virtual void OnListPolysSelected( wxListEvent& event )
|
||||||
|
|
|
@ -71,7 +71,7 @@ wxdlg3dViewer::wxdlg3dViewer( wxWindow* parent, wxWindowID id, const wxString& c
|
||||||
Init();
|
Init();
|
||||||
Create(parent, id, caption, pos, size, style);
|
Create(parent, id, caption, pos, size, style);
|
||||||
listPolys->callbacks = this;
|
listPolys->callbacks = this;
|
||||||
listPolys->InsertColumn(0,"polys");
|
listPolys->InsertColumn(0,wxT("polys"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ public:
|
||||||
void CreateControls();
|
void CreateControls();
|
||||||
|
|
||||||
virtual wxString OnGetItemText(const wxListCtrl* list, long item, long column) const {
|
virtual wxString OnGetItemText(const wxListCtrl* list, long item, long column) const {
|
||||||
return "";
|
return wxT("");
|
||||||
}
|
}
|
||||||
virtual void RepaintPanel() {}
|
virtual void RepaintPanel() {}
|
||||||
virtual void _OnPaintPanel( wxPaintEvent& event ) {};
|
virtual void _OnPaintPanel( wxPaintEvent& event ) {};
|
||||||
|
|
Loading…
Reference in New Issue