#undef new
#endif
-#if wxUSE_IOSTREAMH
-#include <iostream.h>
-#else
-#include <iostream>
-#endif
-
#include <stdio.h>
#include <ctype.h>
#include <math.h>
m_brush = wxWHITE_BRUSH;
m_font = g_oglNormalFont;
m_textColour = wxBLACK;
- m_textColourName = "BLACK";
+ m_textColourName = wxT("BLACK");
m_visible = FALSE;
m_selected = FALSE;
m_attachmentMode = ATTACHMENT_MODE_NONE;
m_shadowBrush = wxBLACK_BRUSH;
m_textMarginX = 5;
m_textMarginY = 5;
- m_regionName = "0";
+ m_regionName = wxT("0");
m_centreResize = TRUE;
m_maintainAspectRatio = FALSE;
m_highlighted = FALSE;
// the region eventually (the duplication is for compatibility)
wxShapeRegion *region = new wxShapeRegion;
m_regions.Append(region);
- region->SetName("0");
+ region->SetName(wxT("0"));
region->SetFont(g_oglNormalFont);
region->SetFormatMode(FORMAT_CENTRE_HORIZ | FORMAT_CENTRE_VERT);
- region->SetColour("BLACK");
+ region->SetColour(wxT("BLACK"));
}
wxShape::~wxShape()
return;
wxShapeRegion *region = (wxShapeRegion *)node->Data();
- region->SetText(s);
+ // region->SetText(s); // don't set the formatted text yet, it will be done below
+ region->m_regionText = s;
dc.SetFont(* region->GetFont());
region->GetSize(&w, &h);
node = stringList->First();
while (node)
{
- char *s = (char *)node->Data();
+ wxChar *s = (wxChar *)node->Data();
wxShapeTextLine *line = new wxShapeTextLine(0.0, 0.0, s);
region->GetFormattedText().Append((wxObject *)line);
node = node->Next();
{
wxNode *node = m_regions.Nth(regionId);
if (!node)
- return wxString("");
+ return wxEmptyString;
wxShapeRegion *region = (wxShapeRegion *)node->Data();
return region->GetColour();
}
{
wxNode *node = m_regions.Nth(regionId);
if (!node)
- return wxString("");
+ return wxEmptyString;
wxShapeRegion *region = (wxShapeRegion *)node->Data();
return region->GetName();
}
for (int i = 0; i < n; i++)
{
if (parentName.Length() > 0)
- buff << parentName << "." << i;
+ buff << parentName << wxT(".") << i;
else
buff << i;
SetRegionName(buff, i);
buff.Empty();
wxShape *child = (wxShape *)node->Data();
if (parentName.Length() > 0)
- buff << parentName << "." << i;
+ buff << parentName << wxT(".") << j;
else
- buff << i;
+ buff << j;
child->NameRegions(buff);
node = node->Next();
j ++;
m_lines.DeleteObject(line);
}
-#ifdef PROLOGIO
+#if wxUSE_PROLOGIO
void wxShape::WriteAttributes(wxExpr *clause)
{
clause->AddAttributeValueString("type", GetClassInfo()->GetClassName());