1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
//////////////////////////////////////////////////////////////////////
// This file was auto-generated by codelite's wxCrafter Plugin
// wxCrafter project file: continousbuildbasepane.wxcp
// Do not modify this file by hand!
//////////////////////////////////////////////////////////////////////
#include "continousbuildbasepane.h"
// Declare the bitmap loading function
extern void wxC47E7InitBitmapResources();
static bool bBitmapLoaded = false;
ContinousBuildBasePane::ContinousBuildBasePane(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);
wxC47E7InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* mainSizer = new wxBoxSizer(wxVERTICAL);
this->SetSizer(mainSizer);
wxBoxSizer* bSizer5 = new wxBoxSizer(wxHORIZONTAL);
mainSizer->Add(bSizer5, 0, wxEXPAND, 5);
m_checkBox1 = new wxCheckBox(this, wxID_ANY, _("Enable continuous build"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBox1->SetValue(false);
bSizer5->Add(m_checkBox1, 0, wxLEFT|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5);
bSizer5->Add(0, 0, 1, wxEXPAND, 5);
m_buttonCancel = new wxButton(this, wxID_ANY, _("&Clear All"), wxDefaultPosition, wxSize(-1, -1), 0);
m_buttonCancel->SetDefault();
bSizer5->Add(m_buttonCancel, 0, wxALL|wxEXPAND, 5);
wxBoxSizer* bSizer51 = new wxBoxSizer(wxHORIZONTAL);
mainSizer->Add(bSizer51, 1, wxEXPAND, 5);
wxBoxSizer* bSizer6 = new wxBoxSizer(wxVERTICAL);
bSizer51->Add(bSizer6, 1, wxEXPAND, 5);
wxArrayString m_listBoxQueueArr;
m_listBoxQueue = new wxListBox(this, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), m_listBoxQueueArr, 0);
bSizer6->Add(m_listBoxQueue, 1, wxALL|wxEXPAND, 5);
wxBoxSizer* bSizer9 = new wxBoxSizer(wxVERTICAL);
bSizer51->Add(bSizer9, 1, wxEXPAND, 5);
m_staticText4 = new wxStaticText(this, wxID_ANY, _("Failed Files:"), wxDefaultPosition, wxSize(-1, -1), 0);
wxFont m_staticText4Font(12, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxT("Arial"));
m_staticText4->SetFont(m_staticText4Font);
m_staticText4->Hide();
bSizer9->Add(m_staticText4, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
wxArrayString m_listBoxFailedFilesArr;
m_listBoxFailedFiles = new wxListBox(this, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), m_listBoxFailedFilesArr, 0);
m_listBoxFailedFiles->Hide();
bSizer9->Add(m_listBoxFailedFiles, 1, wxALL|wxEXPAND, 5);
SetName(wxT("ContinousBuildBasePane"));
SetSizeHints(389,188);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
CentreOnParent(wxBOTH);
// Connect events
m_checkBox1->Connect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(ContinousBuildBasePane::OnEnableCB), NULL, this);
m_buttonCancel->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(ContinousBuildBasePane::OnStopAll), NULL, this);
m_buttonCancel->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(ContinousBuildBasePane::OnStopUI), NULL, this);
m_listBoxQueue->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(ContinousBuildBasePane::OnEnableContBuildUI), NULL, this);
m_staticText4->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(ContinousBuildBasePane::OnEnableContBuildUI), NULL, this);
m_listBoxFailedFiles->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(ContinousBuildBasePane::OnEnableContBuildUI), NULL, this);
}
ContinousBuildBasePane::~ContinousBuildBasePane()
{
m_checkBox1->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(ContinousBuildBasePane::OnEnableCB), NULL, this);
m_buttonCancel->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(ContinousBuildBasePane::OnStopAll), NULL, this);
m_buttonCancel->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(ContinousBuildBasePane::OnStopUI), NULL, this);
m_listBoxQueue->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(ContinousBuildBasePane::OnEnableContBuildUI), NULL, this);
m_staticText4->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(ContinousBuildBasePane::OnEnableContBuildUI), NULL, this);
m_listBoxFailedFiles->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(ContinousBuildBasePane::OnEnableContBuildUI), NULL, this);
}
|