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:
@@ -0,0 +1,25 @@
|
||||
#include "wx/defs.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/icon.h"
|
||||
|
||||
#include "MainFrame.hpp"
|
||||
|
||||
MainFrame::MainFrame(): wxFrame(NULL, wxID_ANY, "Sample Hive", wxDefaultPosition)
|
||||
{
|
||||
int height = 600, width = 800;
|
||||
|
||||
const std::string filepath = "config.yaml";
|
||||
Serializer serializer(filepath);
|
||||
|
||||
height = serializer.DeserializeWinSize("Height", height);
|
||||
width = serializer.DeserializeWinSize("Width", width);
|
||||
|
||||
this->SetSize(width, height);
|
||||
this->Center(wxBOTH);
|
||||
this->CenterOnScreen(wxBOTH);
|
||||
this->SetIcon(wxIcon("../assets/Icons/icon-hive_24x24.png", wxICON_DEFAULT_TYPE, -1, -1));
|
||||
|
||||
m_Browser = new Browser(this);
|
||||
}
|
||||
|
||||
MainFrame::~MainFrame(){}
|
||||
Reference in New Issue
Block a user