Initial commit

This commit is contained in:
apoorv569
2021-03-20 04:19:12 +05:30
commit 0cf4931ef4
33 changed files with 4481 additions and 0 deletions
+41
View File
@@ -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;
}