X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1c6c6aede1a66cad8444b555d5f763235b21a35..16aa9c84bca0619ff0a89267772ca30d80324951:/contrib/samples/ogl/studio/symbols.cpp diff --git a/contrib/samples/ogl/studio/symbols.cpp b/contrib/samples/ogl/studio/symbols.cpp index d8a617eb4c..8bc2778ef0 100644 --- a/contrib/samples/ogl/studio/symbols.cpp +++ b/contrib/samples/ogl/studio/symbols.cpp @@ -24,7 +24,8 @@ #include #endif -#include +#include +#include #include "studio.h" #include "doc.h" @@ -119,51 +120,51 @@ void csApp::InitSymbols() wxShape* shape = new csCircleShape(); shape->AssignNewIds(); - shape->SetEventHandler(new csEvtHandler(shape, shape, wxString(""))); + shape->SetEventHandler(new csEvtHandler(shape, shape, wxEmptyString)); - m_symbolDatabase->AddSymbol(new csSymbol("Circle", shape)); + m_symbolDatabase->AddSymbol(new csSymbol(_T("Circle"), shape)); shape = new csCircleShadowShape(); shape->AssignNewIds(); - shape->SetEventHandler(new csEvtHandler(shape, shape, wxString(""))); + shape->SetEventHandler(new csEvtHandler(shape, shape, wxEmptyString)); - m_symbolDatabase->AddSymbol(new csSymbol("Circle shadow", shape)); + m_symbolDatabase->AddSymbol(new csSymbol(_T("Circle shadow"), shape)); shape = new csThinRectangleShape(); shape->AssignNewIds(); - shape->SetEventHandler(new csEvtHandler(shape, shape, wxString(""))); + shape->SetEventHandler(new csEvtHandler(shape, shape, wxEmptyString)); - m_symbolDatabase->AddSymbol(new csSymbol("Thin Rectangle", shape)); + m_symbolDatabase->AddSymbol(new csSymbol(_T("Thin Rectangle"), shape)); shape = new csWideRectangleShape(); shape->AssignNewIds(); - shape->SetEventHandler(new csEvtHandler(shape, shape, wxString(""))); + shape->SetEventHandler(new csEvtHandler(shape, shape, wxEmptyString)); - m_symbolDatabase->AddSymbol(new csSymbol("Wide Rectangle", shape)); + m_symbolDatabase->AddSymbol(new csSymbol(_T("Wide Rectangle"), shape)); shape = new csSemiCircleShape(); shape->AssignNewIds(); - shape->SetEventHandler(new csEvtHandler(shape, shape, wxString(""))); + shape->SetEventHandler(new csEvtHandler(shape, shape, wxEmptyString)); - m_symbolDatabase->AddSymbol(new csSymbol("SemiCircle", shape)); + m_symbolDatabase->AddSymbol(new csSymbol(_T("SemiCircle"), shape)); shape = new csTriangleShape(); shape->AssignNewIds(); - shape->SetEventHandler(new csEvtHandler(shape, shape, wxString(""))); + shape->SetEventHandler(new csEvtHandler(shape, shape, wxEmptyString)); - m_symbolDatabase->AddSymbol(new csSymbol("Triangle", shape)); + m_symbolDatabase->AddSymbol(new csSymbol(_T("Triangle"), shape)); shape = new csOctagonShape(); shape->AssignNewIds(); - shape->SetEventHandler(new csEvtHandler(shape, shape, wxString(""))); + shape->SetEventHandler(new csEvtHandler(shape, shape, wxEmptyString)); - m_symbolDatabase->AddSymbol(new csSymbol("Octagon", shape)); + m_symbolDatabase->AddSymbol(new csSymbol(_T("Octagon"), shape)); shape = new csGroupShape(); shape->AssignNewIds(); - shape->SetEventHandler(new csEvtHandler(shape, shape, wxString(""))); + shape->SetEventHandler(new csEvtHandler(shape, shape, wxEmptyString)); - m_symbolDatabase->AddSymbol(new csSymbol("Group", shape)); + m_symbolDatabase->AddSymbol(new csSymbol(_T("Group"), shape)); } wxBitmap* csSymbolDatabase::CreateToolBitmap(csSymbol* symbol, const wxSize& toolSize)