15PANEL_JOBSET_BASE::PANEL_JOBSET_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
PANEL_NOTEBOOK_BASE( parent, id, pos, size, style,
name )
17 wxBoxSizer* bSizerMain;
18 bSizerMain =
new wxBoxSizer( wxVERTICAL );
20 wxBoxSizer* bSizerUpper;
21 bSizerUpper =
new wxBoxSizer( wxHORIZONTAL );
23 wxStaticBoxSizer* sbJobs;
24 sbJobs =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Jobs") ), wxVERTICAL );
26 m_jobsGrid =
new WX_GRID( sbJobs->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
41 m_jobsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
46 m_jobsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
51 m_jobsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
52 sbJobs->Add(
m_jobsGrid, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 3 );
54 wxBoxSizer* bJobsButtons;
55 bJobsButtons =
new wxBoxSizer( wxHORIZONTAL );
58 bJobsButtons->Add(
m_buttonAddJob, 0, wxALIGN_CENTER|wxBOTTOM|wxTOP, 5 );
60 m_buttonUp =
new STD_BITMAP_BUTTON( sbJobs->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
61 bJobsButtons->Add(
m_buttonUp, 0, wxALIGN_CENTER|wxBOTTOM|wxLEFT|wxTOP, 5 );
64 bJobsButtons->Add(
m_buttonDown, 0, wxALIGN_CENTER|wxBOTTOM|wxLEFT|wxTOP, 5 );
67 bJobsButtons->Add( 20, 0, 0, wxEXPAND, 5 );
73 bJobsButtons->Add( 0, 0, 1, wxEXPAND, 5 );
76 sbJobs->Add( bJobsButtons, 0, wxEXPAND|wxLEFT|wxRIGHT, 3 );
79 bSizerUpper->Add( sbJobs, 7, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
81 wxStaticBoxSizer* sbOutputs;
82 sbOutputs =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Outputs") ), wxVERTICAL );
84 m_outputList =
new wxScrolledWindow( sbOutputs->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL );
94 wxBoxSizer* bOutputButtons;
95 bOutputButtons =
new wxBoxSizer( wxHORIZONTAL );
98 bOutputButtons->Add(
m_buttonOutputAdd, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxTOP, 5 );
101 sbOutputs->Add( bOutputButtons, 0, wxEXPAND|wxLEFT, 3 );
104 bSizerUpper->Add( sbOutputs, 4, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
107 bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
109 wxBoxSizer* bSizerButtons;
110 bSizerButtons =
new wxBoxSizer( wxHORIZONTAL );
113 bSizerButtons->Add( 0, 0, 1, wxEXPAND, 5 );
115 m_buttonSave =
new wxButton(
this, wxID_ANY,
_(
"Save Jobset"), wxDefaultPosition, wxDefaultSize, 0 );
119 bSizerButtons->Add( 10, 0, 0, wxEXPAND, 5 );
121 m_buttonRunAllOutputs =
new wxButton(
this, wxID_ANY,
_(
"Generate All Outputs"), wxDefaultPosition, wxDefaultSize, 0 );
125 bSizerMain->Add( bSizerButtons, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
128 this->SetSizer( bSizerMain );
158PANEL_JOBSET_OUTPUT_BASE::PANEL_JOBSET_OUTPUT_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
160 this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_3DLIGHT ) );
162 wxBoxSizer* bSizerMain;
163 bSizerMain =
new wxBoxSizer( wxVERTICAL );
165 wxFlexGridSizer* fgSizer3;
166 fgSizer3 =
new wxFlexGridSizer( 1, 3, 5, 5 );
167 fgSizer3->AddGrowableCol( 1 );
168 fgSizer3->SetFlexibleDirection( wxBOTH );
169 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
171 m_bitmapOutputType =
new wxStaticBitmap(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
174 m_textOutputType =
new wxStaticText(
this, wxID_ANY,
_(
"dummy"), wxDefaultPosition, wxDefaultSize, 0 );
176 m_textOutputType->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD,
false, wxEmptyString ) );
180 m_statusBitmap =
new wxStaticBitmap(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
181 fgSizer3->Add(
m_statusBitmap, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
184 bSizerMain->Add( fgSizer3, 0, wxEXPAND|wxALL, 5 );
186 wxBoxSizer* bSizerButtons;
187 bSizerButtons =
new wxBoxSizer( wxHORIZONTAL );
193 bSizerButtons->Add(
m_buttonDelete, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
196 bSizerButtons->Add( 0, 0, 1, wxEXPAND, 5 );
198 m_buttonGenerate =
new wxButton(
this, wxID_ANY,
_(
"Generate"), wxDefaultPosition, wxDefaultSize, 0 );
199 bSizerButtons->Add(
m_buttonGenerate, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
202 bSizerMain->Add( bSizerButtons, 0, wxEXPAND, 5 );
205 this->SetSizer( bSizerMain );
207 bSizerMain->Fit(
this );
228DIALOG_OUTPUT_RUN_RESULTS_BASE::DIALOG_OUTPUT_RUN_RESULTS_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
230 this->SetSizeHints( wxSize( 450,250 ), wxDefaultSize );
232 wxBoxSizer* bMainSizer;
233 bMainSizer =
new wxBoxSizer( wxVERTICAL );
239 wxBoxSizer* bSizer16;
240 bSizer16 =
new wxBoxSizer( wxHORIZONTAL );
242 m_jobList =
new wxListCtrl(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL );
243 bSizer16->Add(
m_jobList, 1, wxALL|wxEXPAND, 5 );
245 m_textCtrlOutput =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_BESTWRAP|wxTE_MULTILINE|wxTE_READONLY );
249 bMainSizer->Add( bSizer16, 1, wxEXPAND, 5 );
256 bMainSizer->Add(
m_sdbSizer, 0, wxEXPAND, 5 );
259 this->SetSizer( bMainSizer );
261 bMainSizer->Fit(
this );
263 this->Centre( wxBOTH );
virtual void OnButtonOk(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
wxTextCtrl * m_textCtrlOutput
DIALOG_OUTPUT_RUN_RESULTS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Job Output Run Log"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnJobListItemSelected(wxListEvent &event)
~DIALOG_OUTPUT_RUN_RESULTS_BASE()
wxStaticText * m_staticTextOutputName
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
virtual void OnGenerateAllOutputsClick(wxCommandEvent &event)
wxBoxSizer * m_outputListSizer
virtual void OnGridCellChange(wxGridEvent &event)
STD_BITMAP_BUTTON * m_buttonDown
virtual void OnSizeGrid(wxSizeEvent &event)
wxButton * m_buttonRunAllOutputs
virtual void OnSaveButtonClick(wxCommandEvent &event)
wxScrolledWindow * m_outputList
STD_BITMAP_BUTTON * m_buttonOutputAdd
virtual void OnAddJobClick(wxCommandEvent &event)
virtual void OnJobButtonDelete(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_buttonAddJob
PANEL_JOBSET_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(600, 400), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
virtual void OnAddOutputClick(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_buttonDelete
virtual void OnJobButtonDown(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_buttonUp
virtual void OnJobButtonUp(wxCommandEvent &event)
wxStaticBitmap * m_bitmapOutputType
virtual void OnGenerate(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_buttonDelete
STD_BITMAP_BUTTON * m_buttonProperties
virtual void OnProperties(wxCommandEvent &event)
wxButton * m_buttonGenerate
virtual void OnRightDown(wxMouseEvent &event)
PANEL_JOBSET_OUTPUT_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxBORDER_SUNKEN|wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
virtual void OnDelete(wxCommandEvent &event)
wxStaticBitmap * m_statusBitmap
wxStaticText * m_textOutputType
virtual void OnLastStatusClick(wxMouseEvent &event)
~PANEL_JOBSET_OUTPUT_BASE()
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...