/////////////////////////////////////////////////////////////////////////////
-// Name: ogledit.cpp
+// Name: contrib/samples/ogl/ogledit/ogledit.cpp
// Purpose: OGLEdit sample app
// Author: Julian Smart
// Modified by:
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-// #pragma implementation
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#endif
#ifndef WX_PRECOMP
-#include <wx/wx.h>
+#include "wx/wx.h"
#endif
#if !wxUSE_DOC_VIEW_ARCHITECTURE
#include "doc.h"
#include "view.h"
-#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__)
-#include "ogl.xpm"
+#ifndef __WXMSW__
+ #include "ogl.xpm"
#endif
// A macro needed for some compilers (AIX) that need 'main' to be defined
bool MyApp::OnInit(void)
{
wxOGLInitialize();
-
+
//// Create a document manager
myDocManager = new wxDocManager;
edit_menu->Append(wxID_UNDO, _T("&Undo"));
edit_menu->Append(wxID_REDO, _T("&Redo"));
edit_menu->AppendSeparator();
- edit_menu->Append(OGLEDIT_CUT, _T("&Cut"));
+ edit_menu->Append(wxID_CUT, _T("&Cut"));
edit_menu->AppendSeparator();
edit_menu->Append(OGLEDIT_CHANGE_BACKGROUND_COLOUR, _T("Change &background colour"));
edit_menu->Append(OGLEDIT_EDIT_LABEL, _T("Edit &label"));
frame->editMenu = edit_menu;
-
+
file_menu->AppendSeparator();
file_menu->Append(wxID_EXIT, _T("E&xit"));
int canvasY = 0;
int canvasW = cw - paletteW;
int canvasH = ch;
-
+
palette->SetSize(paletteX, paletteY, paletteW, paletteH);
canvas->SetSize(canvasX, canvasY, canvasW, canvasH);
}
{
return wxGetApp().frame;
}
-