Compile fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -33,7 +33,7 @@ class MyApp: public wxApp
|
||||
|
||||
void OnObjectPopupMenu(wxCommandEvent& event)
|
||||
{
|
||||
return ObjectMenuProc((wxMenu *)event.GetEventObject(), event);
|
||||
ObjectMenuProc((wxMenu *)event.GetEventObject(), event);
|
||||
}
|
||||
|
||||
private:
|
||||
|
@@ -105,11 +105,6 @@ EditorToolPalette *MyApp::CreatePalette(wxFrame *parent)
|
||||
|
||||
palette->SetMargins(2, 2);
|
||||
|
||||
#ifdef __WXMSW__
|
||||
if (palette->IsKindOf(CLASSINFO(wxToolBar95)))
|
||||
((wxToolBar95 *)palette)->SetToolBitmapSize(wxSize(22, 22));
|
||||
#endif
|
||||
|
||||
palette->AddTool(PALETTE_ARROW, PaletteArrow, wxNullBitmap, TRUE, 0, -1, NULL, "Pointer");
|
||||
palette->AddTool(PALETTE_TOOL1, PaletteTool1, wxNullBitmap, TRUE, 0, -1, NULL, "Tool 1");
|
||||
palette->AddTool(PALETTE_TOOL2, PaletteTool2, wxNullBitmap, TRUE, 0, -1, NULL, "Tool 2");
|
||||
|
@@ -1183,3 +1183,12 @@ void studioShapeEditProc(wxMenu& menu, wxCommandEvent& event)
|
||||
}
|
||||
}
|
||||
|
||||
BEGIN_EVENT_TABLE(ShapeEditMenu, wxMenu)
|
||||
EVT_COMMAND_RANGE(1, 65000, wxEVT_COMMAND_MENU_SELECTED, ShapeEditMenu::OnCommand)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
void ShapeEditMenu::OnCommand(wxCommandEvent& event)
|
||||
{
|
||||
studioShapeEditProc(*this, event);
|
||||
}
|
||||
|
||||
|
@@ -252,6 +252,16 @@ public:
|
||||
wxString m_label;
|
||||
};
|
||||
|
||||
class ShapeEditMenu: public wxMenu
|
||||
{
|
||||
public:
|
||||
ShapeEditMenu() {}
|
||||
|
||||
void OnCommand(wxCommandEvent& event);
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
extern void studioShapeEditProc(wxMenu& menu, wxCommandEvent& event);
|
||||
|
||||
#endif
|
||||
|
@@ -167,7 +167,7 @@ bool csApp::OnInit(void)
|
||||
FillProjectTreeCtrl();
|
||||
|
||||
// Create the shape editing menu
|
||||
m_shapeEditMenu = new wxMenu("", (wxFunction)studioShapeEditProc);
|
||||
m_shapeEditMenu = new ShapeEditMenu;
|
||||
m_shapeEditMenu->Append(ID_CS_EDIT_PROPERTIES, "Edit properties");
|
||||
m_shapeEditMenu->AppendSeparator();
|
||||
m_shapeEditMenu->Append(ID_CS_ROTATE_CLOCKWISE, "Rotate clockwise");
|
||||
|
Reference in New Issue
Block a user