+ wxChar** symbols = new wxChar*[20];
+ int noSymbols = 0;
+
+ symbols[noSymbols] = _T("Wide Rectangle");
+ noSymbols ++;
+
+ symbols[noSymbols] = _T("Thin Rectangle");
+ noSymbols ++;
+
+ symbols[noSymbols] = _T("Triangle");
+ noSymbols ++;
+
+ symbols[noSymbols] = _T("Octagon");
+ noSymbols ++;
+
+ // For some reason, we're getting Gdk errors with
+ // some shapes, such as ones that use DrawEllipse.
+#ifndef __WXGTK__
+ symbols[noSymbols] = _T("Group");
+ noSymbols ++;
+
+ symbols[noSymbols] = _T("Circle");
+ noSymbols ++;
+
+ symbols[noSymbols] = _T("Circle shadow");
+ noSymbols ++;
+
+ symbols[noSymbols] = _T("SemiCircle");
+ noSymbols ++;
+#endif
+
+ int i;
+ for (i = 0; i < noSymbols; i++)
+ {
+ csSymbol* symbol = GetSymbolDatabase()->FindSymbol(symbols[i]);
+ if (symbol)
+ {
+ wxBitmap* bitmap = GetSymbolDatabase()->CreateToolBitmap(symbol, toolBitmapSize);
+ palette->AddTool(symbol->GetToolId(), *bitmap, wxNullBitmap, TRUE, 0, -1, NULL, symbol->GetName());
+
+ delete bitmap;
+ }
+ }
+ delete[] symbols;
+
+#if 0