- int currentX = gap;
- toolbar->AddSeparator();
- toolbar->AddTool(TOOLBAR_NEW, ToolbarNewBitmap, (wxBitmap *)NULL,
- FALSE, (float)currentX, -1, NULL, "New dialog");
- currentX += width + dx;
- toolbar->AddTool(TOOLBAR_LOAD_FILE, ToolbarLoadBitmap, (wxBitmap *)NULL,
- FALSE, (float)currentX, -1, NULL, "Load");
- currentX += width + dx;
- toolbar->AddTool(TOOLBAR_SAVE_FILE, ToolbarSaveBitmap, (wxBitmap *)NULL,
- FALSE, (float)currentX, -1, NULL, "Save");
- currentX += width + dx + gap;
- toolbar->AddSeparator();
- toolbar->AddTool(TOOLBAR_FORMAT_HORIZ, ToolbarVertBitmap, (wxBitmap *)NULL,
- FALSE, (float)currentX, -1, NULL, "Horizontal align");
- currentX += width + dx;
- toolbar->AddTool(TOOLBAR_FORMAT_VERT_TOP_ALIGN, ToolbarAlignTBitmap, (wxBitmap *)NULL,
- FALSE, (float)currentX, -1, NULL, "Top align");
- currentX += width + dx;
- toolbar->AddTool(TOOLBAR_FORMAT_VERT_BOT_ALIGN, ToolbarAlignBBitmap, (wxBitmap *)NULL,
- FALSE, (float)currentX, -1, NULL, "Bottom align");
- currentX += width + dx;
- toolbar->AddTool(TOOLBAR_FORMAT_VERT, ToolbarHorizBitmap, (wxBitmap *)NULL,
- FALSE, (float)currentX, -1, NULL, "Vertical align");
- currentX += width + dx;
- toolbar->AddTool(TOOLBAR_FORMAT_HORIZ_LEFT_ALIGN, ToolbarAlignLBitmap, (wxBitmap *)NULL,
- FALSE, (float)currentX, -1, NULL, "Left align");
- currentX += width + dx;
- toolbar->AddTool(TOOLBAR_FORMAT_HORIZ_RIGHT_ALIGN, ToolbarAlignRBitmap, (wxBitmap *)NULL,
- FALSE, (float)currentX, -1, NULL, "Right align");
- currentX += width + dx;
- toolbar->AddTool(TOOLBAR_COPY_SIZE, ToolbarCopySizeBitmap, (wxBitmap *)NULL,
- FALSE, (float)currentX, -1, NULL, "Copy size");
- currentX += width + dx + gap;
- toolbar->AddSeparator();
- toolbar->AddTool(TOOLBAR_TO_FRONT, ToolbarToFrontBitmap, (wxBitmap *)NULL,
- FALSE, (float)currentX, -1, NULL, "To front");
- currentX += width + dx;
- toolbar->AddTool(TOOLBAR_TO_BACK, ToolbarToBackBitmap, (wxBitmap *)NULL,
- FALSE, (float)currentX, -1, NULL, "To back");
- currentX += width + dx + gap;
-
- toolbar->AddSeparator();
- toolbar->AddTool(TOOLBAR_HELP, ToolbarHelpBitmap, (wxBitmap *)NULL,
- FALSE, (float)currentX, -1, NULL, "Help");
- currentX += width + dx;
-
- toolbar->Realize();
-
- return toolbar;
+ int currentX = gap;
+ //toolbar->AddSeparator();
+ toolbar->AddTool(TOOLBAR_NEW, ToolbarNewBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "New dialog");
+ currentX += width + dx;
+ toolbar->AddTool(TOOLBAR_LOAD_FILE, ToolbarLoadBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Load");
+ currentX += width + dx;
+ toolbar->AddTool(TOOLBAR_SAVE_FILE, ToolbarSaveBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Save");
+ currentX += width + dx + gap;
+ toolbar->AddSeparator();
+ toolbar->AddTool(TOOLBAR_FORMAT_HORIZ, ToolbarVertBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Horizontal align");
+ currentX += width + dx;
+ toolbar->AddTool(TOOLBAR_FORMAT_VERT_TOP_ALIGN, ToolbarAlignTBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Top align");
+ currentX += width + dx;
+ toolbar->AddTool(TOOLBAR_FORMAT_VERT_BOT_ALIGN, ToolbarAlignBBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Bottom align");
+ currentX += width + dx;
+ toolbar->AddTool(TOOLBAR_FORMAT_VERT, ToolbarHorizBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Vertical align");
+ currentX += width + dx;
+ toolbar->AddTool(TOOLBAR_FORMAT_HORIZ_LEFT_ALIGN, ToolbarAlignLBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Left align");
+ currentX += width + dx;
+ toolbar->AddTool(TOOLBAR_FORMAT_HORIZ_RIGHT_ALIGN, ToolbarAlignRBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Right align");
+ currentX += width + dx + gap;
+ toolbar->AddSeparator();
+ toolbar->AddTool(TOOLBAR_COPY_SIZE, ToolbarCopySizeBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Copy size");
+ currentX += width + dx;
+ toolbar->AddTool(TOOLBAR_COPY_WIDTH, ToolbarCopyWidthBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Copy width");
+ currentX += width + dx;
+ toolbar->AddTool(TOOLBAR_COPY_HEIGHT, ToolbarCopyHeightBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Copy height");
+ currentX += width + dx;
+ toolbar->AddTool(TOOLBAR_DISTRIBUTE_HORIZ, ToolbarDistributeHorizBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Distribute horizontally");
+ currentX += width + dx;
+ toolbar->AddTool(TOOLBAR_DISTRIBUTE_VERT, ToolbarDistributeVertBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Distribute vertically");
+ currentX += width + dx + gap;
+ toolbar->AddSeparator();
+ toolbar->AddTool(TOOLBAR_TO_FRONT, ToolbarToFrontBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "To front");
+ currentX += width + dx;
+ toolbar->AddTool(TOOLBAR_TO_BACK, ToolbarToBackBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "To back");
+ currentX += width + dx + gap;
+
+ toolbar->AddSeparator();
+ toolbar->AddTool(TOOLBAR_HELP, ToolbarHelpBitmap, wxNullBitmap,
+ FALSE, currentX, -1, NULL, "Help");
+ currentX += width + dx;
+
+ toolbar->Realize();
+
+ return toolbar;