X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/422d0ff0bec79832494fe4605ffdcf8e87ba6c03..ed177375b27f8b80231a42638314c9809e6e945d:/contrib/samples/ogl/ogledit/palette.cpp diff --git a/contrib/samples/ogl/ogledit/palette.cpp b/contrib/samples/ogl/ogledit/palette.cpp index 1449340569..30adc96717 100644 --- a/contrib/samples/ogl/ogledit/palette.cpp +++ b/contrib/samples/ogl/ogledit/palette.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: palette.cpp +// Name: samples/ogl/ogledit/palette.cpp // Purpose: OGLEdit palette // Author: Julian Smart // Modified by: @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -// #pragma implementation -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -21,10 +17,10 @@ #endif #ifndef WX_PRECOMP -#include +#include "wx/wx.h" #endif -#include +#include "wx/toolbar.h" #include #include @@ -80,21 +76,12 @@ void EditorToolPalette::SetSize(int x, int y, int width, int height, int sizeFla EditorToolPalette *MyApp::CreatePalette(wxFrame *parent) { - // Load palette bitmaps. MSW-specific bitmaps no - // longer needed. -#if 0 - wxBitmap PaletteTool1(_T("TOOL1")); - wxBitmap PaletteTool2(_T("TOOL2")); - wxBitmap PaletteTool3(_T("TOOL3")); - wxBitmap PaletteTool4(_T("TOOL4")); - wxBitmap PaletteArrow(_T("ARROWTOOL")); -#else + // Load palette bitmaps. wxBitmap PaletteTool1(tool1_xpm); wxBitmap PaletteTool2(tool2_xpm); wxBitmap PaletteTool3(tool3_xpm); wxBitmap PaletteTool4(tool4_xpm); wxBitmap PaletteArrow(arrow_xpm); -#endif EditorToolPalette *palette = new EditorToolPalette(parent, wxPoint(0, 0), wxDefaultSize, wxTB_VERTICAL); @@ -114,4 +101,3 @@ EditorToolPalette *MyApp::CreatePalette(wxFrame *parent) palette->currentlySelected = PALETTE_ARROW; return palette; } -