mirror of
https://gitlab.com/samplehive/sample-hive.git
synced 2026-10-23 05:05:01 +02:00
Initial commit
This commit is contained in:
+41
@@ -0,0 +1,41 @@
|
||||
#include "App.hpp"
|
||||
|
||||
#include <wx/bitmap.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/splash.h>
|
||||
|
||||
wxIMPLEMENT_APP(App);
|
||||
|
||||
App::App()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
App::~App()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool App::OnInit()
|
||||
{
|
||||
if (!wxApp::OnInit())
|
||||
return false;
|
||||
|
||||
m_Frame = new MainFrame();
|
||||
|
||||
wxBitmap bitmap;
|
||||
wxSplashScreen* splash;
|
||||
|
||||
if (bitmap.LoadFile("../assets/Logo/logo-hive_768x432.png", wxBITMAP_TYPE_PNG))
|
||||
{
|
||||
splash = new wxSplashScreen(bitmap,
|
||||
wxSPLASH_CENTRE_ON_SCREEN | wxSPLASH_TIMEOUT,
|
||||
2000, NULL, -1, wxDefaultPosition, wxDefaultSize,
|
||||
wxBORDER_SIMPLE | wxSTAY_ON_TOP);
|
||||
}
|
||||
|
||||
wxYield();
|
||||
|
||||
m_Frame->Show(true);
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user