Menu

[r7]: / ContinuousBuild / continousbuildbasepane.cpp  Maximize  Restore  History

Download this file

88 lines (65 with data), 4.3 kB

 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
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 16 2008)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "continousbuildbasepane.h"
///////////////////////////////////////////////////////////////////////////
ContinousBuildBasePane::ContinousBuildBasePane( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
wxBoxSizer* mainSizer;
mainSizer = new wxBoxSizer( wxVERTICAL );
wxFlexGridSizer* fgSizer2;
fgSizer2 = new wxFlexGridSizer( 2, 2, 0, 0 );
fgSizer2->AddGrowableCol( 0 );
fgSizer2->AddGrowableCol( 1 );
fgSizer2->SetFlexibleDirection( wxBOTH );
fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
m_checkBox1 = new wxCheckBox( this, wxID_ANY, _("Enable continous build"), wxDefaultPosition, wxDefaultSize, 0 );
fgSizer2->Add( m_checkBox1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
wxBoxSizer* bSizer4;
bSizer4 = new wxBoxSizer( wxHORIZONTAL );
m_staticText3 = new wxStaticText( this, wxID_ANY, _("Build concurrency:"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText3->Wrap( -1 );
bSizer4->Add( m_staticText3, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
wxArrayString m_choiceNumberOfJobsChoices;
m_choiceNumberOfJobs = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceNumberOfJobsChoices, 0 );
m_choiceNumberOfJobs->SetSelection( 0 );
bSizer4->Add( m_choiceNumberOfJobs, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
fgSizer2->Add( bSizer4, 0, wxEXPAND, 5 );
mainSizer->Add( fgSizer2, 0, wxEXPAND, 5 );
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
mainSizer->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
wxBoxSizer* bSizer2;
bSizer2 = new wxBoxSizer( wxHORIZONTAL );
m_listBoxQueue = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
bSizer2->Add( m_listBoxQueue, 1, wxALL|wxEXPAND, 5 );
wxBoxSizer* bSizer3;
bSizer3 = new wxBoxSizer( wxVERTICAL );
m_buttonCancel = new wxButton( this, wxID_ANY, _("&Stop All"), wxDefaultPosition, wxDefaultSize, 0 );
m_buttonCancel->SetDefault();
bSizer3->Add( m_buttonCancel, 0, wxALL|wxEXPAND, 5 );
bSizer2->Add( bSizer3, 0, wxEXPAND, 5 );
mainSizer->Add( bSizer2, 1, wxEXPAND, 5 );
m_staticTextStatus = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
m_staticTextStatus->Wrap( -1 );
mainSizer->Add( m_staticTextStatus, 0, wxALL|wxEXPAND, 5 );
this->SetSizer( mainSizer );
this->Layout();
// Connect Events
m_checkBox1->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( ContinousBuildBasePane::OnEnableCB ), NULL, this );
m_choiceNumberOfJobs->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( ContinousBuildBasePane::OnChoiceNumberOfJobs ), NULL, this );
m_choiceNumberOfJobs->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( ContinousBuildBasePane::OnChoiceNumberOfJobsUI ), 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 );
}
ContinousBuildBasePane::~ContinousBuildBasePane()
{
// Disconnect Events
m_checkBox1->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( ContinousBuildBasePane::OnEnableCB ), NULL, this );
m_choiceNumberOfJobs->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( ContinousBuildBasePane::OnChoiceNumberOfJobs ), NULL, this );
m_choiceNumberOfJobs->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( ContinousBuildBasePane::OnChoiceNumberOfJobsUI ), 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 );
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.