Added ability to install SampleHive, added _() macro for translation support, much more clearer log messages and general clean up.

This commit is contained in:
apoorv569
2021-07-18 09:09:41 +05:30
parent 293821be99
commit 953b81d753
14 changed files with 565 additions and 513 deletions
+4 -1
View File
@@ -1,10 +1,13 @@
#include "App.hpp"
#include "SampleHiveConfig.hpp"
#include <wx/bitmap.h>
#include <wx/defs.h>
#include <wx/gdicmn.h>
#include <wx/splash.h>
#define SPLASH_LOGO SAMPLEHIVE_DATADIR "/assets/logo/logo-hive_768x432.png"
wxIMPLEMENT_APP(App);
App::App()
@@ -27,7 +30,7 @@ bool App::OnInit()
wxBitmap bitmap;
wxSplashScreen* splash;
if (bitmap.LoadFile("../assets/logo/logo-hive_768x432.png", wxBITMAP_TYPE_PNG))
if (bitmap.LoadFile(SPLASH_LOGO, wxBITMAP_TYPE_PNG))
{
splash = new wxSplashScreen(bitmap,
wxSPLASH_CENTRE_ON_SCREEN | wxSPLASH_TIMEOUT,