- OGLConstraintTypes.Append(gyCONSTRAINT_MIDALIGNED_RIGHT,
- new OGLConstraintType(gyCONSTRAINT_MIDALIGNED_RIGHT, "Right-midaligned", "centred on the right of"));
+ wxOGLConstraintTypes->Append(gyCONSTRAINT_MIDALIGNED_BOTTOM,
+ new wxOGLConstraintType(gyCONSTRAINT_MIDALIGNED_BOTTOM, "Bottom-midaligned", "centred on the bottom of"));
+
+ wxOGLConstraintTypes->Append(gyCONSTRAINT_MIDALIGNED_LEFT,
+ new wxOGLConstraintType(gyCONSTRAINT_MIDALIGNED_LEFT, "Left-midaligned", "centred on the left of"));
+
+ wxOGLConstraintTypes->Append(gyCONSTRAINT_MIDALIGNED_RIGHT,
+ new wxOGLConstraintType(gyCONSTRAINT_MIDALIGNED_RIGHT, "Right-midaligned", "centred on the right of"));
+}
+
+void OGLCleanUpConstraintTypes()
+{
+ if (!wxOGLConstraintTypes)
+ return;
+
+ wxNode* node = wxOGLConstraintTypes->First();
+ while (node)
+ {
+ wxOGLConstraintType* ct = (wxOGLConstraintType*) node->Data();
+ delete ct;
+ node = node->Next();
+ }
+ delete wxOGLConstraintTypes;
+ wxOGLConstraintTypes = NULL;