+ char** symbols = new char*[20];
+ int noSymbols = 0;
+
+ symbols[noSymbols] = "Wide Rectangle";
+ noSymbols ++;
+
+ symbols[noSymbols] = "Thin Rectangle";
+ noSymbols ++;
+
+ symbols[noSymbols] = "Triangle";
+ noSymbols ++;
+
+ symbols[noSymbols] = "Octagon";
+ noSymbols ++;
+
+ // For some reason, we're getting Gdk errors with
+ // some shapes, such as ones that use DrawEllipse.
+#ifndef __WXGTK__
+ symbols[noSymbols] = "Group";
+ noSymbols ++;
+
+ symbols[noSymbols] = "Circle";
+ noSymbols ++;
+
+ symbols[noSymbols] = "Circle shadow";
+ noSymbols ++;
+
+ symbols[noSymbols] = "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