Debug wxBitmapBundle

This commit is contained in:
Loic Guegan 2023-06-04 12:07:12 +02:00
parent 40f0d24790
commit cffa5f1186
2 changed files with 10 additions and 2 deletions

View file

@ -6,7 +6,9 @@
#include <wx/preferences.h>
#include <wx/spinctrl.h>
#include <wx/stdpaths.h>
#ifdef __APPLE__
#include <wx/bmpbndl.h>
#endif
/**
* @brief Configuration page for the BoardCanvas
*
@ -115,9 +117,11 @@ public:
virtual wxBitmap GetLargeIcon() {
return wxArtProvider::GetBitmap(wxART_HELP, wxART_TOOLBAR);
}
#ifdef __APPLE__
virtual wxBitmapBundle GetIcon() {
return wxBitmapBundle::FromBitmap(LoadPNG("ui_rook"));
}
#endif
virtual wxWindow *CreateWindow(wxWindow *parent) {
return new BoardPrefsPanel(parent);
}

View file

@ -5,7 +5,9 @@
#include <wx/preferences.h>
#include <wx/spinctrl.h>
#include <wx/stdpaths.h>
#ifdef __APPLE__
#include <wx/bmpbndl.h>
#endif
/**
* @brief Configuration page for the EditorCanvas
*
@ -63,9 +65,11 @@ public:
virtual wxBitmap GetLargeIcon() {
return wxArtProvider::GetBitmap(wxART_HELP, wxART_TOOLBAR);
}
#ifdef __APPLE__
virtual wxBitmapBundle GetIcon() {
return wxBitmapBundle::FromBitmap(LoadPNG("ui_text_alt"));
}
#endif
virtual wxWindow *CreateWindow(wxWindow *parent) {
return new EditorPrefsPanel(parent);
}