Skip to content

Commit

Permalink
Added resources
Browse files Browse the repository at this point in the history
  • Loading branch information
eranif committed May 24, 2015
1 parent 5749377 commit 0c93790
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 12 deletions.
4 changes: 4 additions & 0 deletions Notebook/Notebook.project
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
<VirtualDirectory Name="resources">
<File Name="wxcrafter.wxcp"/>
<File Name="win_resources.rc"/>
<File Name="../resources/blocks.png"/>
<File Name="../resources/close.png"/>
<File Name="../resources/notebook.png"/>
<File Name="../resources/settings.png"/>
</VirtualDirectory>
<VirtualDirectory Name="Notebook">
<File Name="Notebook.h"/>
Expand Down
4 changes: 2 additions & 2 deletions Notebook/wxcrafter.wxcp
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@
}, {
"type": "filePicker",
"m_label": "Bitmap File:",
"m_path": "../blocks.png"
"m_path": "../resources/blocks.png"
}],
"m_events": [],
"m_children": []
Expand All @@ -963,7 +963,7 @@
}, {
"type": "filePicker",
"m_label": "Bitmap File:",
"m_path": "../settings.png"
"m_path": "../resources/settings.png"
}],
"m_events": [],
"m_children": []
Expand Down
21 changes: 11 additions & 10 deletions Notebook/wxcrafter_bitmaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static unsigned char xml_res_file_1[] = {
243,235,183,69,81,222,220,182,48,131,110,118,227,69,79,93,249,157,40,255,
29,235,75,0,17,17,163,15,243,0,0,0,0,73,69,78,68,174,66,96,130};

static size_t xml_res_size_2 = 277;
static size_t xml_res_size_2 = 297;
static unsigned char xml_res_file_2[] = {
60,63,120,109,108,32,118,101,114,115,105,111,110,61,34,49,46,48,34,32,101,
110,99,111,100,105,110,103,61,34,85,84,70,45,56,34,63,62,10,60,114,101,
Expand All @@ -85,13 +85,14 @@ static unsigned char xml_res_file_2[] = {
47,119,120,120,114,99,34,62,10,32,32,60,111,98,106,101,99,116,32,99,108,
97,115,115,61,34,119,120,66,105,116,109,97,112,34,32,110,97,109,101,61,
34,98,108,111,99,107,115,34,62,119,120,99,114,97,102,116,101,114,95,98,
105,116,109,97,112,115,46,99,112,112,36,46,46,95,98,108,111,99,107,115,
46,112,110,103,60,47,111,98,106,101,99,116,62,10,32,32,60,111,98,106,101,
99,116,32,99,108,97,115,115,61,34,119,120,66,105,116,109,97,112,34,32,110,
97,109,101,61,34,115,101,116,116,105,110,103,115,34,62,119,120,99,114,97,
102,116,101,114,95,98,105,116,109,97,112,115,46,99,112,112,36,46,46,95,
115,101,116,116,105,110,103,115,46,112,110,103,60,47,111,98,106,101,99,
116,62,10,60,47,114,101,115,111,117,114,99,101,62,10};
105,116,109,97,112,115,46,99,112,112,36,46,46,95,114,101,115,111,117,114,
99,101,115,95,98,108,111,99,107,115,46,112,110,103,60,47,111,98,106,101,
99,116,62,10,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,
119,120,66,105,116,109,97,112,34,32,110,97,109,101,61,34,115,101,116,116,
105,110,103,115,34,62,119,120,99,114,97,102,116,101,114,95,98,105,116,109,
97,112,115,46,99,112,112,36,46,46,95,114,101,115,111,117,114,99,101,115,
95,115,101,116,116,105,110,103,115,46,112,110,103,60,47,111,98,106,101,
99,116,62,10,60,47,114,101,115,111,117,114,99,101,62,10};

void wxC9ED9InitBitmapResources()
{
Expand All @@ -106,8 +107,8 @@ void wxC9ED9InitBitmapResources()
else wxFileSystem::AddHandler(new wxMemoryFSHandlerBase);
}

XRC_ADD_FILE(wxT("XRC_resource/wxcrafter_bitmaps.cpp$.._blocks.png"), xml_res_file_0, xml_res_size_0, wxT("image/png"));
XRC_ADD_FILE(wxT("XRC_resource/wxcrafter_bitmaps.cpp$.._settings.png"), xml_res_file_1, xml_res_size_1, wxT("image/png"));
XRC_ADD_FILE(wxT("XRC_resource/wxcrafter_bitmaps.cpp$.._resources_blocks.png"), xml_res_file_0, xml_res_size_0, wxT("image/png"));
XRC_ADD_FILE(wxT("XRC_resource/wxcrafter_bitmaps.cpp$.._resources_settings.png"), xml_res_file_1, xml_res_size_1, wxT("image/png"));
XRC_ADD_FILE(wxT("XRC_resource/wxcrafter_bitmaps.cpp$C__src_Notebook_Notebook_wxcrafter_bitmaps.xrc"), xml_res_file_2, xml_res_size_2, wxT("text/xml"));
wxXmlResource::Get()->Load(wxT("memory:XRC_resource/wxcrafter_bitmaps.cpp$C__src_Notebook_Notebook_wxcrafter_bitmaps.xrc"));
}
File renamed without changes
File renamed without changes
Binary file added resources/notebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes

0 comments on commit 0c93790

Please sign in to comment.