wxwidgets继承wxcrafter的基类

app.h

#ifndef APP_H
#define APP_H


#include "wx/app.h"



class MyApp:public wxApp
{


public:

    virtual bool OnInit();

};



#endif // APP_H

frame.h

#ifndef FRAME_H
#define FRAME_H

#include "wx/frame.h"
#include "wxcrafter.h"


class MyFrame :public MainFrameBaseClass
{


public:
    MyFrame(wxString title);



};



#endif // FRAME_H


wxcrafter.h

//
// This file was auto-generated by codelite's wxCrafter Plugin
// wxCrafter project file: wxcrafter.wxcp
// Do not modify this file by hand!
//

#ifndef _PECSJUNC_GUI_WXCRAFTER_BASE_CLASSES_H
#define _PECSJUNC_GUI_WXCRAFTER_BASE_CLASSES_H

#include <wx/settings.h>
#include <wx/xrc/xmlres.h>
#include <wx/xrc/xh_bmp.h>
#include <wx/frame.h>
#include <wx/iconbndl.h>
#include <wx/artprov.h>
#include <wx/sizer.h>
#include <wx/ribbon/bar.h>
#include <wx/ribbon/art.h>
#include <wx/panel.h>
#include <wx/stattext.h>
#include <wx/notebook.h>
#include <wx/dialog.h>
#include <wx/timer.h>
#include <wx/statbmp.h>
#include <wx/hyperlink.h>
#include <wx/richtext/richtextctrl.h>
#include <wx/button.h>
#if wxVERSION_NUMBER >= 2900
#include <wx/persist.h>
#include <wx/persist/toplevel.h>
#include <wx/persist/bookctrl.h>
#include <wx/persist/treebook.h>
#endif

#ifdef WXC_FROM_DIP
#undef WXC_FROM_DIP
#endif
#if wxVERSION_NUMBER >= 3100
#define WXC_FROM_DIP(x) wxWindow::FromDIP(x, NULL)
#else
#define WXC_FROM_DIP(x) x
#endif


class MainFrameBaseClass : public wxFrame
{
protected:
    wxRibbonBar* MainRibbon;
    wxPanel* LeftPanel0;
    wxPanel* m_panel598;
    wxStaticText* m_staticText602;
    wxNotebook* LeftPanel;
    wxPanel* mainpanel;

protected:
    virtual void MainFrameBaseClass_Resize(wxSizeEvent& event) { event.Skip(); }
    virtual void MainFrameBaseClass_Move(wxMoveEvent& event) { event.Skip(); }
    virtual void MainFrameClose(wxCloseEvent& event) { event.Skip(); }

public:
    wxRibbonBar* GetMainRibbon() { return MainRibbon; }
    wxStaticText* GetStaticText602() { return m_staticText602; }
    wxPanel* GetPanel598() { return m_panel598; }
    wxNotebook* GetLeftPanel() { return LeftPanel; }
    wxPanel* GetLeftPanel0() { return LeftPanel0; }
    wxPanel* GetMainpanel() { return mainpanel; }
    MainFrameBaseClass(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("My Frame"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(800,500), long style = wxCAPTION|wxRESIZE_BORDER|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxSYSTEM_MENU|wxCLOSE_BOX|wxFULL_REPAINT_ON_RESIZE);
    virtual ~MainFrameBaseClass();
};


class GraphBaseClass : public wxPanel
{
protected:
    wxPanel* TopPanel;

protected:

public:
    wxPanel* GetTopPanel() { return TopPanel; }
    GraphBaseClass(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(400,300), long style = wxTAB_TRAVERSAL);
    virtual ~GraphBaseClass();
};


class GridBaseClass : public wxPanel
{
protected:

protected:

public:
    GridBaseClass(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(400,300), long style = wxTAB_TRAVERSAL);
    virtual ~GridBaseClass();
};


class ColorsBaseClass : public wxDialog
{
protected:

protected:
    virtual void OnClose(wxCloseEvent& event) { event.Skip(); }

public:
    ColorsBaseClass(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Colors"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE|wxSTAY_ON_TOP|wxCLOSE_BOX|wxBORDER_STATIC);
    virtual ~ColorsBaseClass();
};


class WelcomeClassBase : public wxDialog
{
protected:
    wxTimer* m_timer1089;

protected:
    virtual void OnTick(wxTimerEvent& event) { event.Skip(); }

public:
    wxTimer* GetTimer1089() { return m_timer1089; }
    WelcomeClassBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT(""), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(200,120), long style = wxSTAY_ON_TOP|wxBORDER_STATIC);
    virtual ~WelcomeClassBase();
};


class UpdateClassBase : public wxDialog
{
protected:
    wxStaticBitmap* welcomeImage;
    wxHyperlinkCtrl* m_hyperLink1104;
    wxStaticText* asdw;
    wxRichTextCtrl* SNTextBox;
    wxButton* m_button1124;
    wxStaticText* m_staticText1110;
    wxRichTextCtrl* AKTextBox;
    wxButton* m_button1114;

protected:
    virtual void ImageOnMouseLeftDown(wxMouseEvent& event) { event.Skip(); }
    virtual void ImageOnMouseLeftUp(wxMouseEvent& event) { event.Skip(); }
    virtual void ImageOnMouseMove(wxMoveEvent& event) { event.Skip(); }
    virtual void CopyClipboardOnClick(wxCommandEvent& event) { event.Skip(); }
    virtual void ActivateOnClick(wxCommandEvent& event) { event.Skip(); }

public:
    wxStaticBitmap* GetWelcomeImage() { return welcomeImage; }
    wxHyperlinkCtrl* GetHyperLink1104() { return m_hyperLink1104; }
    wxStaticText* GetAsdw() { return asdw; }
    wxRichTextCtrl* GetSNTextBox() { return SNTextBox; }
    wxButton* GetButton1124() { return m_button1124; }
    wxStaticText* GetStaticText1110() { return m_staticText1110; }
    wxRichTextCtrl* GetAKTextBox() { return AKTextBox; }
    wxButton* GetButton1114() { return m_button1114; }
    UpdateClassBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Update"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE|wxSTAY_ON_TOP);
    virtual ~UpdateClassBase();
};

#endif

app.cpp


#include "app.h"
#include "frame.h"

wxIMPLEMENT_APP(MyApp);


bool MyApp::OnInit()
{

MyFrame* frame=new MyFrame("Hello world");

frame->Show();

return true;




}

frame.cpp

#include "frame.h"
#include "wxcrafter.h"


MyFrame::MyFrame(wxString title):MainFrameBaseClass(NULL,wxID_ANY,title)
{

}

wxcrafter.cpp

//
// This file was auto-generated by codelite's wxCrafter Plugin
// wxCrafter project file: wxcrafter.wxcp
// Do not modify this file by hand!
//

#include "wxcrafter.h"


// Declare the bitmap loading function
extern void wxC9ED9InitBitmapResources();

static bool bBitmapLoaded = false;


MainFrameBaseClass::MainFrameBaseClass(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style)
    : wxFrame(parent, id, title, pos, size, style)
{
    if ( !bBitmapLoaded ) {
        // We need to initialise the default bitmap handler
        wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
        wxC9ED9InitBitmapResources();
        bBitmapLoaded = true;
    }

    wxBoxSizer* boxSizer211 = new wxBoxSizer(wxVERTICAL);
    this->SetSizer(boxSizer211);

     MainRibbon = new wxRibbonBar(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), wxRIBBON_BAR_SHOW_PAGE_LABELS);



    MainRibbon->SetArtProvider(new wxRibbonDefaultArtProvider);

    boxSizer211->Add(MainRibbon, 0, wxEXPAND, WXC_FROM_DIP(5));
    MainRibbon->Realize();
    wxBoxSizer* boxSizer544 = new wxBoxSizer(wxHORIZONTAL);

    boxSizer211->Add(boxSizer544, 1, wxEXPAND, WXC_FROM_DIP(5));

    LeftPanel0 = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), wxTAB_TRAVERSAL);
    LeftPanel0->SetBackgroundColour(wxColour(wxT("rgb(235,235,235)")));
    wxFont LeftPanel0Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
    LeftPanel0Font.SetWeight(wxFONTWEIGHT_BOLD);
    LeftPanel0->SetFont(LeftPanel0Font);

    boxSizer544->Add(LeftPanel0, 0, wxEXPAND, WXC_FROM_DIP(5));

    wxBoxSizer* boxSizer594 = new wxBoxSizer(wxVERTICAL);
    LeftPanel0->SetSizer(boxSizer594);

    m_panel598 = new wxPanel(LeftPanel0, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(LeftPanel0, wxSize(-1,-1)), wxTAB_TRAVERSAL);
    m_panel598->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT));

    boxSizer594->Add(m_panel598, 0, wxRIGHT|wxEXPAND, WXC_FROM_DIP(5));

    wxBoxSizer* boxSizer600 = new wxBoxSizer(wxVERTICAL);
    m_panel598->SetSizer(boxSizer600);

    m_staticText602 = new wxStaticText(m_panel598, wxID_ANY, _("Tight-Binding Model Attributes"), wxDefaultPosition, wxDLG_UNIT(m_panel598, wxSize(-1,-1)), 0);
    m_staticText602->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT));

    boxSizer600->Add(m_staticText602, 0, wxALL, WXC_FROM_DIP(5));

    LeftPanel = new wxNotebook(LeftPanel0, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(LeftPanel0, wxSize(-1,-1)), wxBK_DEFAULT);
    LeftPanel->SetName(wxT("LeftPanel"));

    boxSizer594->Add(LeftPanel, 1, wxEXPAND, WXC_FROM_DIP(5));

    mainpanel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), wxFULL_REPAINT_ON_RESIZE|wxTAB_TRAVERSAL);
    mainpanel->SetBackgroundColour(wxColour(wxT("rgb(255,255,255)")));

    boxSizer544->Add(mainpanel, 1, wxEXPAND, WXC_FROM_DIP(5));


    #if wxVERSION_NUMBER >= 2900
    if(!wxPersistenceManager::Get().Find(LeftPanel)){
        wxPersistenceManager::Get().RegisterAndRestore(LeftPanel);
    } else {
        wxPersistenceManager::Get().Restore(LeftPanel);
    }
    #endif

    SetName(wxT("MainFrameBaseClass"));
    SetSize(wxDLG_UNIT(this, wxSize(800,500)));
    if (GetSizer()) {
         GetSizer()->Fit(this);
    }
    if(GetParent()) {
        CentreOnParent(wxBOTH);
    } else {
        CentreOnScreen(wxBOTH);
    }
#if wxVERSION_NUMBER >= 2900
    if(!wxPersistenceManager::Get().Find(this)) {
        wxPersistenceManager::Get().RegisterAndRestore(this);
    } else {
        wxPersistenceManager::Get().Restore(this);
    }
#endif
    // Connect events
    this->Connect(wxEVT_SIZE, wxSizeEventHandler(MainFrameBaseClass::MainFrameBaseClass_Resize), NULL, this);
    this->Connect(wxEVT_MOVE, wxMoveEventHandler(MainFrameBaseClass::MainFrameBaseClass_Move), NULL, this);
    this->Connect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(MainFrameBaseClass::MainFrameClose), NULL, this);

}

MainFrameBaseClass::~MainFrameBaseClass()
{
    this->Disconnect(wxEVT_SIZE, wxSizeEventHandler(MainFrameBaseClass::MainFrameBaseClass_Resize), NULL, this);
    this->Disconnect(wxEVT_MOVE, wxMoveEventHandler(MainFrameBaseClass::MainFrameBaseClass_Move), NULL, this);
    this->Disconnect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(MainFrameBaseClass::MainFrameClose), NULL, this);

}

GraphBaseClass::GraphBaseClass(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
    : wxPanel(parent, id, pos, size, style)
{
    if ( !bBitmapLoaded ) {
        // We need to initialise the default bitmap handler
        wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
        wxC9ED9InitBitmapResources();
        bBitmapLoaded = true;
    }

    wxBoxSizer* boxSizer215 = new wxBoxSizer(wxVERTICAL);
    this->SetSizer(boxSizer215);

    TopPanel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(300,-1)), wxTAB_TRAVERSAL);
    TopPanel->SetBackgroundColour(wxColour(wxT("rgb(255,255,255)")));

    boxSizer215->Add(TopPanel, 0, wxEXPAND, WXC_FROM_DIP(5));

    wxBoxSizer* boxSizer241 = new wxBoxSizer(wxHORIZONTAL);
    TopPanel->SetSizer(boxSizer241);

    SetName(wxT("GraphBaseClass"));
    SetMinClientSize(wxSize(400,300));
    SetSize(wxDLG_UNIT(this, wxSize(400,300)));
    if (GetSizer()) {
         GetSizer()->Fit(this);
    }
}

GraphBaseClass::~GraphBaseClass()
{
}

GridBaseClass::GridBaseClass(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
    : wxPanel(parent, id, pos, size, style)
{
    if ( !bBitmapLoaded ) {
        // We need to initialise the default bitmap handler
        wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
        wxC9ED9InitBitmapResources();
        bBitmapLoaded = true;
    }

    SetName(wxT("GridBaseClass"));
    SetSize(wxDLG_UNIT(this, wxSize(400,300)));
    if (GetSizer()) {
         GetSizer()->Fit(this);
    }
}

GridBaseClass::~GridBaseClass()
{
}

ColorsBaseClass::ColorsBaseClass(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style)
    : wxDialog(parent, id, title, pos, size, style)
{
    if ( !bBitmapLoaded ) {
        // We need to initialise the default bitmap handler
        wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
        wxC9ED9InitBitmapResources();
        bBitmapLoaded = true;
    }
    this->SetBackgroundColour(wxColour(wxT("rgb(255,255,255)")));

    SetBackgroundColour(wxColour(wxT("rgb(255,255,255)")));
    SetName(wxT("ColorsBaseClass"));
    SetSize(wxDLG_UNIT(this, wxSize(-1,-1)));
    if (GetSizer()) {
         GetSizer()->Fit(this);
    }
    if(GetParent()) {
        CentreOnParent(wxBOTH);
    } else {
        CentreOnScreen(wxBOTH);
    }
#if wxVERSION_NUMBER >= 2900
    if(!wxPersistenceManager::Get().Find(this)) {
        wxPersistenceManager::Get().RegisterAndRestore(this);
    } else {
        wxPersistenceManager::Get().Restore(this);
    }
#endif
    // Connect events
    this->Connect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(ColorsBaseClass::OnClose), NULL, this);

}

ColorsBaseClass::~ColorsBaseClass()
{
    this->Disconnect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(ColorsBaseClass::OnClose), NULL, this);

}

WelcomeClassBase::WelcomeClassBase(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style)
    : wxDialog(parent, id, title, pos, size, style)
{
    if ( !bBitmapLoaded ) {
        // We need to initialise the default bitmap handler
        wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
        wxC9ED9InitBitmapResources();
        bBitmapLoaded = true;
    }
    this->SetBackgroundColour(wxColour(wxT("rgb(0,0,0)")));
    this->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BACKGROUND));

    m_timer1089 = new wxTimer;
    m_timer1089->Start(1000, false);

    SetBackgroundColour(wxColour(wxT("rgb(0,0,0)")));
    SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BACKGROUND));
    SetName(wxT("WelcomeClassBase"));
    SetMinClientSize(wxSize(200,120));
    SetSize(wxDLG_UNIT(this, wxSize(200,120)));
    if (GetSizer()) {
         GetSizer()->Fit(this);
    }
    if(GetParent()) {
        CentreOnParent(wxBOTH);
    } else {
        CentreOnScreen(wxBOTH);
    }
#if wxVERSION_NUMBER >= 2900
    if(!wxPersistenceManager::Get().Find(this)) {
        wxPersistenceManager::Get().RegisterAndRestore(this);
    } else {
        wxPersistenceManager::Get().Restore(this);
    }
#endif
    // Connect events
    m_timer1089->Connect(wxEVT_TIMER, wxTimerEventHandler(WelcomeClassBase::OnTick), NULL, this);

}

WelcomeClassBase::~WelcomeClassBase()
{
    m_timer1089->Disconnect(wxEVT_TIMER, wxTimerEventHandler(WelcomeClassBase::OnTick), NULL, this);

    m_timer1089->Stop();
    wxDELETE( m_timer1089 );

}

UpdateClassBase::UpdateClassBase(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style)
    : wxDialog(parent, id, title, pos, size, style)
{
    if ( !bBitmapLoaded ) {
        // We need to initialise the default bitmap handler
        wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
        wxC9ED9InitBitmapResources();
        bBitmapLoaded = true;
    }

    wxBoxSizer* boxSizer1098 = new wxBoxSizer(wxVERTICAL);
    this->SetSizer(boxSizer1098);

    welcomeImage = new wxStaticBitmap(this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDLG_UNIT(this, wxSize(650,285)), 0 );

    boxSizer1098->Add(welcomeImage, 0, wxALL, WXC_FROM_DIP(5));
    welcomeImage->SetMinSize(wxSize(650,285));

    m_hyperLink1104 = new wxHyperlinkCtrl(this, wxID_ANY, _("Check for TBStudio updates"), wxT("https://tight-binding.com"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), wxHL_DEFAULT_STYLE);
    m_hyperLink1104->SetNormalColour(wxColour(wxT("#0000FF")));
    m_hyperLink1104->SetHoverColour(wxColour(wxT("#0000FF")));
    m_hyperLink1104->SetVisitedColour(wxColour(wxT("#FF0000")));

    boxSizer1098->Add(m_hyperLink1104, 0, wxALL, WXC_FROM_DIP(5));

    wxBoxSizer* boxSizer1118 = new wxBoxSizer(wxHORIZONTAL);

    boxSizer1098->Add(boxSizer1118, 1, wxEXPAND, WXC_FROM_DIP(5));

    wxBoxSizer* boxSizer1120 = new wxBoxSizer(wxVERTICAL);

    boxSizer1118->Add(boxSizer1120, 1, wxEXPAND, WXC_FROM_DIP(5));

    asdw = new wxStaticText(this, wxID_ANY, _("Serial Number:"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), 0);

    boxSizer1120->Add(asdw, 0, wxLEFT|wxRIGHT|wxTOP, WXC_FROM_DIP(5));

    SNTextBox = new wxRichTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,110)), wxTE_MULTILINE|wxTE_PROCESS_TAB|wxTE_PROCESS_ENTER|wxWANTS_CHARS);

    boxSizer1120->Add(SNTextBox, 0, wxALL|wxEXPAND, WXC_FROM_DIP(5));
    SNTextBox->SetMinSize(wxSize(-1,110));

    m_button1124 = new wxButton(this, wxID_ANY, _("Copy to Clipboard"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), 0);

    boxSizer1120->Add(m_button1124, 0, wxALL, WXC_FROM_DIP(5));

    wxBoxSizer* boxSizer1122 = new wxBoxSizer(wxVERTICAL);

    boxSizer1118->Add(boxSizer1122, 1, wxEXPAND, WXC_FROM_DIP(5));

    m_staticText1110 = new wxStaticText(this, wxID_ANY, _("Activation key:"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), 0);

    boxSizer1122->Add(m_staticText1110, 0, wxLEFT|wxRIGHT|wxTOP, WXC_FROM_DIP(5));

    AKTextBox = new wxRichTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,110)), wxTE_MULTILINE|wxTE_PROCESS_TAB|wxTE_PROCESS_ENTER|wxWANTS_CHARS);

    boxSizer1122->Add(AKTextBox, 0, wxALL|wxEXPAND, WXC_FROM_DIP(5));
    AKTextBox->SetMinSize(wxSize(-1,110));

    m_button1114 = new wxButton(this, wxID_ANY, _("Activate"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), 0);

    boxSizer1122->Add(m_button1114, 0, wxALL|wxALIGN_RIGHT, WXC_FROM_DIP(5));

    SetName(wxT("UpdateClassBase"));
    SetSize(wxDLG_UNIT(this, wxSize(-1,-1)));
    if (GetSizer()) {
         GetSizer()->Fit(this);
    }
    if(GetParent()) {
        CentreOnParent(wxBOTH);
    } else {
        CentreOnScreen(wxBOTH);
    }
#if wxVERSION_NUMBER >= 2900
    if(!wxPersistenceManager::Get().Find(this)) {
        wxPersistenceManager::Get().RegisterAndRestore(this);
    } else {
        wxPersistenceManager::Get().Restore(this);
    }
#endif
    // Connect events
    welcomeImage->Connect(wxEVT_LEFT_DOWN, wxMouseEventHandler(UpdateClassBase::ImageOnMouseLeftDown), NULL, this);
    welcomeImage->Connect(wxEVT_LEFT_UP, wxMouseEventHandler(UpdateClassBase::ImageOnMouseLeftUp), NULL, this);
    welcomeImage->Connect(wxEVT_MOVE, wxMoveEventHandler(UpdateClassBase::ImageOnMouseMove), NULL, this);
    m_button1124->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(UpdateClassBase::CopyClipboardOnClick), NULL, this);
    m_button1114->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(UpdateClassBase::ActivateOnClick), NULL, this);

}

UpdateClassBase::~UpdateClassBase()
{
    welcomeImage->Disconnect(wxEVT_LEFT_DOWN, wxMouseEventHandler(UpdateClassBase::ImageOnMouseLeftDown), NULL, this);
    welcomeImage->Disconnect(wxEVT_LEFT_UP, wxMouseEventHandler(UpdateClassBase::ImageOnMouseLeftUp), NULL, this);
    welcomeImage->Disconnect(wxEVT_MOVE, wxMoveEventHandler(UpdateClassBase::ImageOnMouseMove), NULL, this);
    m_button1124->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(UpdateClassBase::CopyClipboardOnClick), NULL, this);
    m_button1114->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(UpdateClassBase::ActivateOnClick), NULL, this);

}

wxcrafter_bitmaps.cpp

//
// 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 wxC9ED9InitBitmapResources()
{

    // 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/wxcrafter_bitmaps.cpp$C__Users_mohammad_Documents_Codelite_pecsjunc_GUI_wxcrafter_bitmaps.xrc"), xml_res_file_0, xml_res_size_0, wxT("text/xml"));
    wxXmlResource::Get()->Load(wxT("memory:XRC_resource/wxcrafter_bitmaps.cpp$C__Users_mohammad_Documents_Codelite_pecsjunc_GUI_wxcrafter_bitmaps.xrc"));
}

由于用到了wxRibbonBar 需要把库添加进链接,不然会提示undefine wxRibbonBar,
链接库添加效果图
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值