Skip to content

Commit

Permalink
Remove non-existing path of sftp_ui.wxcp: ../bitmaps/16-connected.png (
Browse files Browse the repository at this point in the history
…#3488)

and re-run wxCrafter on Plugin/sftp_ui.wxcp
  • Loading branch information
Jarod42 authored Oct 13, 2024
1 parent 9ac9c40 commit d95a9d4
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 69 deletions.
4 changes: 0 additions & 4 deletions Plugin/sftp_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,6 @@ AddSSHAcountDlgBase::AddSSHAcountDlgBase(wxWindow* parent, wxWindowID id, const

m_button51 =
new wxButton(this, wxID_ANY, _("Test Connection"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
#if wxVERSION_NUMBER >= 2904
m_button51->SetBitmap(wxXmlResource::Get()->LoadBitmap(wxT("16-connected")), wxLEFT);
m_button51->SetBitmapMargins(5, 5);
#endif

boxSizer23->Add(m_button51, 0, wxALL | wxEXPAND, WXC_FROM_DIP(10));

Expand Down
10 changes: 5 additions & 5 deletions Plugin/sftp_ui.wxcp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}, {
"type": "virtualFolderPicker",
"m_label": "Virtual Folder:",
"m_path": "plugin_sdk:sftp_ui"
"m_path": ""
}, {
"type": "choice",
"m_label": "Centre:",
Expand Down Expand Up @@ -999,7 +999,7 @@
}, {
"type": "virtualFolderPicker",
"m_label": "Virtual Folder:",
"m_path": "plugin_sdk:sftp_ui"
"m_path": ""
}, {
"type": "choice",
"m_label": "Centre:",
Expand Down Expand Up @@ -2459,7 +2459,7 @@
}, {
"type": "bitmapPicker",
"m_label": "Bitmap File:",
"m_path": "../bitmaps/16-connected.png"
"m_path": ""
}, {
"type": "choice",
"m_label": "Direction",
Expand Down Expand Up @@ -2790,7 +2790,7 @@
}, {
"type": "virtualFolderPicker",
"m_label": "Virtual Folder:",
"m_path": "plugin_sdk:sftp_ui"
"m_path": ""
}, {
"type": "choice",
"m_label": "Centre:",
Expand Down Expand Up @@ -4140,7 +4140,7 @@
}, {
"type": "virtualFolderPicker",
"m_label": "Virtual Folder:",
"m_path": "plugin_sdk:sftp_ui"
"m_path": ""
}, {
"type": "choice",
"m_label": "Centre:",
Expand Down
109 changes: 49 additions & 60 deletions Plugin/sftp_ui_sftp_bitmaps.cpp
Original file line number Diff line number Diff line change
@@ -1,60 +1,49 @@
//
// This file was automatically generated by wxrc, do not edit by hand.
//

#include <wx/wxprec.h>

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#include <wx/filesys.h>
#include <wx/fs_mem.h>
#include <wx/xrc/xmlres.h>
#include <wx/xrc/xh_all.h>

#if wxCHECK_VERSION(2,8,5) && wxABI_VERSION >= 20805
#define XRC_ADD_FILE(name, data, size, mime) \
wxMemoryFSHandler::AddFileWithMimeType(name, data, size, mime)
#else
#define XRC_ADD_FILE(name, data, size, mime) \
wxMemoryFSHandler::AddFile(name, data, size)
#endif

static size_t xml_res_size_0 = 0;
static unsigned char xml_res_file_0[] = {
};

static size_t xml_res_size_1 = 246;
static unsigned char xml_res_file_1[] = {
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,
115,111,117,114,99,101,32,120,109,108,110,115,61,34,104,116,116,112,58,
47,47,119,119,119,46,119,120,119,105,100,103,101,116,115,46,111,114,103,
47,119,120,120,114,99,34,62,10,32,32,60,33,45,45,32,72,97,110,100,108,101,
114,32,71,101,110,101,114,97,116,105,111,110,32,105,115,32,79,78,32,45,
45,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,49,54,45,99,111,110,
110,101,99,116,101,100,34,62,115,102,116,112,95,117,105,95,115,102,116,
112,95,98,105,116,109,97,112,115,46,99,112,112,36,46,46,95,98,105,116,109,
97,112,115,95,49,54,45,99,111,110,110,101,99,116,101,100,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 wxCE8CInitBitmapResources()
{

// Check for memory FS. If not present, load the handler:
{
wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"), wxT("dummy one"));
wxFileSystem fsys;
wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file"));
wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
if (f) delete f;
else wxFileSystem::AddHandler(new wxMemoryFSHandlerBase);
}

XRC_ADD_FILE(wxT("XRC_resource/sftp_ui_sftp_bitmaps.cpp$.._bitmaps_16-connected.png"), xml_res_file_0, xml_res_size_0, wxT("image/png"));
XRC_ADD_FILE(wxT("XRC_resource/sftp_ui_sftp_bitmaps.cpp$_Users_eifrah_devl_codelite_Plugin_sftp_ui_sftp_bitmaps.xrc"), xml_res_file_1, xml_res_size_1, wxT("text/xml"));
wxXmlResource::Get()->Load(wxT("memory:XRC_resource/sftp_ui_sftp_bitmaps.cpp$_Users_eifrah_devl_codelite_Plugin_sftp_ui_sftp_bitmaps.xrc"));
}
//
// This file was automatically generated by wxrc, do not edit by hand.
//

#include <wx/wxprec.h>

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#include <wx/filesys.h>
#include <wx/fs_mem.h>
#include <wx/xrc/xmlres.h>
#include <wx/xrc/xh_all.h>

#if wxCHECK_VERSION(2,8,5) && wxABI_VERSION >= 20805
#define XRC_ADD_FILE(name, data, size, mime) \
wxMemoryFSHandler::AddFileWithMimeType(name, data, size, mime)
#else
#define XRC_ADD_FILE(name, data, size, mime) \
wxMemoryFSHandler::AddFile(name, data, size)
#endif

static size_t xml_res_size_0 = 137;
static unsigned char xml_res_file_0[] = {
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,
115,111,117,114,99,101,32,120,109,108,110,115,61,34,104,116,116,112,58,
47,47,119,119,119,46,119,120,119,105,100,103,101,116,115,46,111,114,103,
47,119,120,120,114,99,34,62,10,32,32,60,33,45,45,32,72,97,110,100,108,101,
114,32,71,101,110,101,114,97,116,105,111,110,32,105,115,32,79,78,32,45,
45,62,10,60,47,114,101,115,111,117,114,99,101,62,10};

void wxCE8CInitBitmapResources()
{

// Check for memory FS. If not present, load the handler:
{
wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"), wxT("dummy one"));
wxFileSystem fsys;
wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file"));
wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
if (f) delete f;
else wxFileSystem::AddHandler(new wxMemoryFSHandlerBase);
}

XRC_ADD_FILE(wxT("XRC_resource/sftp_ui_sftp_bitmaps.cpp$_Users_eifrah_devl_codelite_Plugin_sftp_ui_sftp_bitmaps.xrc"), xml_res_file_0, xml_res_size_0, wxT("text/xml"));
wxXmlResource::Get()->Load(wxT("memory:XRC_resource/sftp_ui_sftp_bitmaps.cpp$_Users_eifrah_devl_codelite_Plugin_sftp_ui_sftp_bitmaps.xrc"));
}

0 comments on commit d95a9d4

Please sign in to comment.