2024-07-15 18:20:13 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2024-12-31 13:07:26 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
|
2024-07-15 18:20:13 -04:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "widgets/std_bitmap_button.h"
|
2024-12-30 18:23:34 +00:00
|
|
|
#include "widgets/wx_grid.h"
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
#include "panel_jobs_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
PANEL_JOBS_BASE::PANEL_JOBS_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 )
|
|
|
|
{
|
2024-10-22 22:29:14 -04:00
|
|
|
wxBoxSizer* bSizerMain;
|
2024-12-30 18:23:34 +00:00
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
wxBoxSizer* bSizerUpper;
|
|
|
|
bSizerUpper = new wxBoxSizer( wxHORIZONTAL );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
wxStaticBoxSizer* sbJobs;
|
|
|
|
sbJobs = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Jobs") ), wxVERTICAL );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
m_jobsGrid = new WX_GRID( sbJobs->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
// Grid
|
|
|
|
m_jobsGrid->CreateGrid( 5, 2 );
|
|
|
|
m_jobsGrid->EnableEditing( true );
|
|
|
|
m_jobsGrid->EnableGridLines( true );
|
|
|
|
m_jobsGrid->EnableDragGridSize( false );
|
|
|
|
m_jobsGrid->SetMargins( 0, 0 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
// Columns
|
|
|
|
m_jobsGrid->SetColSize( 0, 40 );
|
|
|
|
m_jobsGrid->SetColSize( 1, 260 );
|
|
|
|
m_jobsGrid->EnableDragColMove( false );
|
2024-12-31 10:37:44 +00:00
|
|
|
m_jobsGrid->EnableDragColSize( false );
|
2024-12-30 18:23:34 +00:00
|
|
|
m_jobsGrid->SetColLabelSize( 0 );
|
|
|
|
m_jobsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
// Rows
|
|
|
|
m_jobsGrid->EnableDragRowSize( true );
|
|
|
|
m_jobsGrid->SetRowLabelSize( 0 );
|
|
|
|
m_jobsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
// Label Appearance
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
// Cell Defaults
|
|
|
|
m_jobsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
2024-12-31 02:33:19 +00:00
|
|
|
sbJobs->Add( m_jobsGrid, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 3 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
wxBoxSizer* bJobsButtons;
|
|
|
|
bJobsButtons = new wxBoxSizer( wxHORIZONTAL );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
m_buttonAddJob = new STD_BITMAP_BUTTON( sbJobs->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2024-12-31 02:33:19 +00:00
|
|
|
bJobsButtons->Add( m_buttonAddJob, 0, wxALIGN_CENTER|wxBOTTOM|wxTOP, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
m_buttonUp = new STD_BITMAP_BUTTON( sbJobs->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2024-12-31 02:33:19 +00:00
|
|
|
bJobsButtons->Add( m_buttonUp, 0, wxALIGN_CENTER|wxBOTTOM|wxLEFT|wxTOP, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
m_buttonDown = new STD_BITMAP_BUTTON( sbJobs->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2024-12-31 02:33:19 +00:00
|
|
|
bJobsButtons->Add( m_buttonDown, 0, wxALIGN_CENTER|wxBOTTOM|wxLEFT|wxTOP, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
bJobsButtons->Add( 20, 0, 0, wxEXPAND, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-31 02:33:19 +00:00
|
|
|
m_buttonDelete = new STD_BITMAP_BUTTON( sbJobs->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2024-12-30 18:23:34 +00:00
|
|
|
bJobsButtons->Add( m_buttonDelete, 0, wxALL, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
bJobsButtons->Add( 0, 0, 1, wxEXPAND, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
|
2024-12-31 02:33:19 +00:00
|
|
|
sbJobs->Add( bJobsButtons, 0, wxEXPAND|wxLEFT|wxRIGHT, 3 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
|
2024-12-31 13:07:26 +00:00
|
|
|
bSizerUpper->Add( sbJobs, 7, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2024-12-30 18:23:34 +00:00
|
|
|
|
|
|
|
wxStaticBoxSizer* sbOutputs;
|
|
|
|
sbOutputs = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Outputs") ), wxVERTICAL );
|
|
|
|
|
2024-12-30 14:00:01 -05:00
|
|
|
m_outputList = new wxScrolledWindow( sbOutputs->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_outputList->SetScrollRate( 5, 5 );
|
|
|
|
m_outputListSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
|
|
|
|
m_outputList->SetSizer( m_outputListSizer );
|
|
|
|
m_outputList->Layout();
|
|
|
|
m_outputListSizer->Fit( m_outputList );
|
2024-12-30 18:23:34 +00:00
|
|
|
sbOutputs->Add( m_outputList, 1, wxEXPAND|wxALL, 0 );
|
|
|
|
|
|
|
|
wxBoxSizer* bOutputButtons;
|
|
|
|
bOutputButtons = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
m_buttonOutputAdd = new STD_BITMAP_BUTTON( sbOutputs->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2024-12-31 02:33:19 +00:00
|
|
|
bOutputButtons->Add( m_buttonOutputAdd, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxTOP, 5 );
|
2024-12-30 18:23:34 +00:00
|
|
|
|
|
|
|
|
2024-12-31 02:33:19 +00:00
|
|
|
sbOutputs->Add( bOutputButtons, 0, wxEXPAND|wxLEFT, 3 );
|
2024-12-30 18:23:34 +00:00
|
|
|
|
|
|
|
|
2024-12-31 13:07:26 +00:00
|
|
|
bSizerUpper->Add( sbOutputs, 4, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
wxBoxSizer* bSizerButtons;
|
|
|
|
bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-30 18:23:34 +00:00
|
|
|
|
|
|
|
bSizerButtons->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
m_buttonSave = new wxButton( this, wxID_ANY, _("Save Jobset"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizerButtons->Add( m_buttonSave, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
|
2024-12-31 13:07:26 +00:00
|
|
|
bSizerButtons->Add( 10, 0, 0, wxEXPAND, 5 );
|
2024-12-30 18:23:34 +00:00
|
|
|
|
|
|
|
m_buttonRunAllOutputs = new wxButton( this, wxID_ANY, _("Generate All Outputs"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizerButtons->Add( m_buttonRunAllOutputs, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerMain->Add( bSizerButtons, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
|
2024-10-22 22:29:14 -04:00
|
|
|
this->SetSizer( bSizerMain );
|
2024-07-15 18:20:13 -04:00
|
|
|
this->Layout();
|
|
|
|
|
|
|
|
// Connect Events
|
2024-12-30 18:23:34 +00:00
|
|
|
m_jobsGrid->Connect( wxEVT_SIZE, wxSizeEventHandler( PANEL_JOBS_BASE::OnSizeGrid ), NULL, this );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_buttonAddJob->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnAddJobClick ), NULL, this );
|
2024-10-02 22:53:43 -04:00
|
|
|
m_buttonUp->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnJobButtonUp ), NULL, this );
|
|
|
|
m_buttonDown->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnJobButtonDown ), NULL, this );
|
2024-12-30 18:23:34 +00:00
|
|
|
m_buttonDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnJobButtonDelete ), NULL, this );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_buttonOutputAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnAddOutputClick ), NULL, this );
|
2024-12-30 18:23:34 +00:00
|
|
|
m_buttonSave->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnSaveButtonClick ), NULL, this );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_buttonRunAllOutputs->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnRunAllJobsClick ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
PANEL_JOBS_BASE::~PANEL_JOBS_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2024-12-30 18:23:34 +00:00
|
|
|
m_jobsGrid->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PANEL_JOBS_BASE::OnSizeGrid ), NULL, this );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_buttonAddJob->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnAddJobClick ), NULL, this );
|
2024-10-02 22:53:43 -04:00
|
|
|
m_buttonUp->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnJobButtonUp ), NULL, this );
|
|
|
|
m_buttonDown->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnJobButtonDown ), NULL, this );
|
2024-12-30 18:23:34 +00:00
|
|
|
m_buttonDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnJobButtonDelete ), NULL, this );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_buttonOutputAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnAddOutputClick ), NULL, this );
|
2024-12-30 18:23:34 +00:00
|
|
|
m_buttonSave->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnSaveButtonClick ), NULL, this );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_buttonRunAllOutputs->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOBS_BASE::OnRunAllJobsClick ), NULL, this );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
PANEL_JOB_OUTPUT_BASE::PANEL_JOB_OUTPUT_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
|
|
|
|
{
|
|
|
|
this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_3DLIGHT ) );
|
|
|
|
|
2024-10-22 22:29:14 -04:00
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxHORIZONTAL );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2025-01-01 14:29:26 +00:00
|
|
|
wxFlexGridSizer* fgSizer3;
|
|
|
|
fgSizer3 = new wxFlexGridSizer( 2, 4, 5, 5 );
|
|
|
|
fgSizer3->AddGrowableCol( 1 );
|
|
|
|
fgSizer3->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2024-12-16 22:32:22 -05:00
|
|
|
|
2025-01-01 14:29:26 +00:00
|
|
|
m_bitmapOutputType = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgSizer3->Add( m_bitmapOutputType, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
2024-12-29 07:16:38 -05:00
|
|
|
|
2024-12-31 05:11:16 +05:00
|
|
|
m_textOutputType = new wxStaticText( this, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_textOutputType->Wrap( -1 );
|
|
|
|
m_textOutputType->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
|
|
|
|
2025-01-01 14:29:26 +00:00
|
|
|
fgSizer3->Add( m_textOutputType, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 1 );
|
2024-12-16 22:32:22 -05:00
|
|
|
|
|
|
|
m_statusBitmap = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
|
2025-01-01 14:29:26 +00:00
|
|
|
fgSizer3->Add( m_statusBitmap, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
m_buttonOutputRun = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
|
|
|
fgSizer3->Add( m_buttonOutputRun, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-12-16 22:32:22 -05:00
|
|
|
|
|
|
|
|
2025-01-01 14:29:26 +00:00
|
|
|
fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
|
2025-01-01 14:29:26 +00:00
|
|
|
fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
|
2025-01-01 14:29:26 +00:00
|
|
|
fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
m_buttonOutputOptions = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2025-01-01 14:29:26 +00:00
|
|
|
fgSizer3->Add( m_buttonOutputOptions, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
|
2025-01-01 14:29:26 +00:00
|
|
|
bSizerMain->Add( fgSizer3, 1, wxALL, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
|
2024-10-22 22:29:14 -04:00
|
|
|
this->SetSizer( bSizerMain );
|
2024-07-15 18:20:13 -04:00
|
|
|
this->Layout();
|
2024-10-22 22:29:14 -04:00
|
|
|
bSizerMain->Fit( this );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
// Connect Events
|
2024-12-16 22:32:22 -05:00
|
|
|
m_statusBitmap->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PANEL_JOB_OUTPUT_BASE::OnLastStatusClick ), NULL, this );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_buttonOutputRun->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOB_OUTPUT_BASE::OnOutputRunClick ), NULL, this );
|
|
|
|
m_buttonOutputOptions->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOB_OUTPUT_BASE::OnOutputOptionsClick ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
PANEL_JOB_OUTPUT_BASE::~PANEL_JOB_OUTPUT_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2024-12-16 22:32:22 -05:00
|
|
|
m_statusBitmap->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PANEL_JOB_OUTPUT_BASE::OnLastStatusClick ), NULL, this );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_buttonOutputRun->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOB_OUTPUT_BASE::OnOutputRunClick ), NULL, this );
|
|
|
|
m_buttonOutputOptions->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_JOB_OUTPUT_BASE::OnOutputOptionsClick ), NULL, this );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_JOB_OUTPUT_BASE::DIALOG_JOB_OUTPUT_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
|
|
|
{
|
2024-12-26 11:29:28 -05:00
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-10-22 22:29:14 -04:00
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
wxFlexGridSizer* fgSizer1;
|
2024-12-31 16:42:07 +00:00
|
|
|
fgSizer1 = new wxFlexGridSizer( 4, 2, 5, 5 );
|
|
|
|
fgSizer1->AddGrowableCol( 1 );
|
|
|
|
fgSizer1->AddGrowableRow( 3 );
|
2024-07-15 18:20:13 -04:00
|
|
|
fgSizer1->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
2024-12-31 16:42:07 +00:00
|
|
|
m_textArchiveDesc = new wxStaticText( this, wxID_ANY, _("Description:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2024-12-29 07:16:38 -05:00
|
|
|
m_textArchiveDesc->Wrap( -1 );
|
2024-12-31 16:42:07 +00:00
|
|
|
fgSizer1->Add( m_textArchiveDesc, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-12-29 07:16:38 -05:00
|
|
|
|
2024-12-31 16:42:07 +00:00
|
|
|
m_textCtrlDescription = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgSizer1->Add( m_textCtrlDescription, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
|
2024-12-29 07:16:38 -05:00
|
|
|
|
2024-12-31 16:42:07 +00:00
|
|
|
m_textArchiveFormat = new wxStaticText( this, wxID_ANY, _("Format:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_textArchiveFormat->Wrap( -1 );
|
2024-12-31 16:42:07 +00:00
|
|
|
fgSizer1->Add( m_textArchiveFormat, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
wxArrayString m_choiceArchiveformatChoices;
|
2024-12-31 16:42:07 +00:00
|
|
|
m_choiceArchiveformat = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceArchiveformatChoices, 0 );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_choiceArchiveformat->SetSelection( 0 );
|
2024-12-31 16:42:07 +00:00
|
|
|
fgSizer1->Add( m_choiceArchiveformat, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-31 16:42:07 +00:00
|
|
|
m_textOutputPath = new wxStaticText( this, wxID_ANY, _("Output path:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_textOutputPath->Wrap( -1 );
|
2024-12-31 16:42:07 +00:00
|
|
|
fgSizer1->Add( m_textOutputPath, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
wxBoxSizer* bSizer16;
|
|
|
|
bSizer16 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2024-12-31 16:42:07 +00:00
|
|
|
m_textCtrlOutputPath = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_textCtrlOutputPath->SetMinSize( wxSize( 350,-1 ) );
|
|
|
|
|
2024-12-31 16:42:07 +00:00
|
|
|
bSizer16->Add( m_textCtrlOutputPath, 1, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-31 16:42:07 +00:00
|
|
|
m_buttonOutputPath = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
|
|
|
bSizer16->Add( m_buttonOutputPath, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
|
2024-12-31 16:42:07 +00:00
|
|
|
fgSizer1->Add( bSizer16, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-31 16:42:07 +00:00
|
|
|
m_staticText10 = new wxStaticText( this, wxID_ANY, _("Include jobs:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2024-07-15 18:20:13 -04:00
|
|
|
m_staticText10->Wrap( -1 );
|
2024-12-31 16:42:07 +00:00
|
|
|
fgSizer1->Add( m_staticText10, 0, wxTOP, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-31 16:42:07 +00:00
|
|
|
wxArrayString m_includeJobsChoices;
|
|
|
|
m_includeJobs = new wxCheckListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_includeJobsChoices, 0 );
|
|
|
|
m_includeJobs->SetMinSize( wxSize( 300,200 ) );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-31 16:42:07 +00:00
|
|
|
fgSizer1->Add( m_includeJobs, 1, wxEXPAND, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
|
2024-12-31 16:42:07 +00:00
|
|
|
bSizerMain->Add( fgSizer1, 1, wxEXPAND|wxALL, 10 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
m_sdbSizer1 = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizer1Save = new wxButton( this, wxID_SAVE );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1Save );
|
|
|
|
m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
|
|
|
|
m_sdbSizer1->Realize();
|
|
|
|
|
2024-12-31 02:33:19 +00:00
|
|
|
bSizerMain->Add( m_sdbSizer1, 0, wxBOTTOM|wxEXPAND, 5 );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
|
2024-10-22 22:29:14 -04:00
|
|
|
this->SetSizer( bSizerMain );
|
2024-07-15 18:20:13 -04:00
|
|
|
this->Layout();
|
2024-12-29 07:16:38 -05:00
|
|
|
bSizerMain->Fit( this );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// Connect Events
|
|
|
|
m_buttonOutputPath->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_JOB_OUTPUT_BASE::onOutputPathBrowseClicked ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_JOB_OUTPUT_BASE::~DIALOG_JOB_OUTPUT_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
m_buttonOutputPath->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_JOB_OUTPUT_BASE::onOutputPathBrowseClicked ), NULL, this );
|
|
|
|
|
|
|
|
}
|
2024-10-22 22:29:14 -04:00
|
|
|
|
|
|
|
DIALOG_SPECIAL_EXECUTE_BASE::DIALOG_SPECIAL_EXECUTE_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2024-12-22 15:24:18 +03:00
|
|
|
m_staticText9 = new wxStaticText( this, wxID_ANY, _("Options"), wxDefaultPosition, wxDefaultSize, 0 );
|
2024-10-22 22:29:14 -04:00
|
|
|
m_staticText9->Wrap( -1 );
|
|
|
|
m_staticText9->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
|
|
|
|
|
|
|
bSizerMain->Add( m_staticText9, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
m_panel9 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
|
|
wxFlexGridSizer* fgSizer1;
|
|
|
|
fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 );
|
|
|
|
fgSizer1->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
2024-12-22 15:24:18 +03:00
|
|
|
m_textCommand = new wxStaticText( m_panel9, wxID_ANY, _("Command"), wxDefaultPosition, wxDefaultSize, 0 );
|
2024-10-22 22:29:14 -04:00
|
|
|
m_textCommand->Wrap( -1 );
|
|
|
|
fgSizer1->Add( m_textCommand, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
m_textCtrlCommand = new wxTextCtrl( m_panel9, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_textCtrlCommand->SetMinSize( wxSize( 350,-1 ) );
|
|
|
|
|
|
|
|
fgSizer1->Add( m_textCtrlCommand, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
2024-12-31 05:14:17 +05:00
|
|
|
m_cbRecordOutput = new wxCheckBox( m_panel9, wxID_ANY, _("Record output messages"), wxDefaultPosition, wxDefaultSize, 0 );
|
2024-10-22 22:29:14 -04:00
|
|
|
fgSizer1->Add( m_cbRecordOutput, 0, wxALL, 5 );
|
|
|
|
|
2024-12-22 15:24:18 +03:00
|
|
|
m_textOutputPath = new wxStaticText( m_panel9, wxID_ANY, _("Output Path"), wxDefaultPosition, wxDefaultSize, 0 );
|
2024-10-22 22:29:14 -04:00
|
|
|
m_textOutputPath->Wrap( -1 );
|
|
|
|
fgSizer1->Add( m_textOutputPath, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
m_textCtrlOutputPath = new wxTextCtrl( m_panel9, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_textCtrlOutputPath->SetMinSize( wxSize( 350,-1 ) );
|
|
|
|
|
|
|
|
fgSizer1->Add( m_textCtrlOutputPath, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
2024-12-22 15:24:18 +03:00
|
|
|
m_cbIgnoreExitCode = new wxCheckBox( m_panel9, wxID_ANY, _("Ignore non-zero exit code"), wxDefaultPosition, wxDefaultSize, 0 );
|
2024-10-22 22:29:14 -04:00
|
|
|
fgSizer1->Add( m_cbIgnoreExitCode, 1, wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
m_panel9->SetSizer( fgSizer1 );
|
|
|
|
m_panel9->Layout();
|
|
|
|
fgSizer1->Fit( m_panel9 );
|
|
|
|
bSizerMain->Add( m_panel9, 1, wxEXPAND | wxALL, 5 );
|
|
|
|
|
|
|
|
m_sdbSizer1 = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizer1Save = new wxButton( this, wxID_SAVE );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1Save );
|
|
|
|
m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
|
|
|
|
m_sdbSizer1->Realize();
|
|
|
|
|
|
|
|
bSizerMain->Add( m_sdbSizer1, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
|
|
|
bSizerMain->Fit( this );
|
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// Connect Events
|
|
|
|
m_cbRecordOutput->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SPECIAL_EXECUTE_BASE::OnRecordOutputClicked ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_SPECIAL_EXECUTE_BASE::~DIALOG_SPECIAL_EXECUTE_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
m_cbRecordOutput->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SPECIAL_EXECUTE_BASE::OnRecordOutputClicked ), NULL, this );
|
|
|
|
|
|
|
|
}
|
2024-12-16 22:32:22 -05:00
|
|
|
|
|
|
|
DIALOG_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 )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxSize( 450,250 ), wxDefaultSize );
|
|
|
|
|
|
|
|
wxBoxSizer* bMainSizer;
|
|
|
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2024-12-31 05:11:16 +05:00
|
|
|
m_staticTextOutputName = new wxStaticText( this, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
|
2024-12-16 22:32:22 -05:00
|
|
|
m_staticTextOutputName->Wrap( -1 );
|
|
|
|
bMainSizer->Add( m_staticTextOutputName, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizer16;
|
|
|
|
bSizer16 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
m_jobList = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL );
|
|
|
|
bSizer16->Add( m_jobList, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
|
2024-12-23 23:05:29 -05:00
|
|
|
m_textCtrlOutput = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_BESTWRAP|wxTE_MULTILINE|wxTE_READONLY );
|
|
|
|
bSizer16->Add( m_textCtrlOutput, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
|
2024-12-16 22:32:22 -05:00
|
|
|
|
|
|
|
bMainSizer->Add( bSizer16, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
m_sdbSizer = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizerOK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerOK );
|
|
|
|
m_sdbSizer->Realize();
|
|
|
|
|
|
|
|
bMainSizer->Add( m_sdbSizer, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bMainSizer );
|
|
|
|
this->Layout();
|
|
|
|
bMainSizer->Fit( this );
|
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// Connect Events
|
2024-12-23 23:05:29 -05:00
|
|
|
m_jobList->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_OUTPUT_RUN_RESULTS_BASE::OnJobListItemSelected ), NULL, this );
|
2024-12-16 22:32:22 -05:00
|
|
|
m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_OUTPUT_RUN_RESULTS_BASE::OnButtonOk ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_OUTPUT_RUN_RESULTS_BASE::~DIALOG_OUTPUT_RUN_RESULTS_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2024-12-23 23:05:29 -05:00
|
|
|
m_jobList->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_OUTPUT_RUN_RESULTS_BASE::OnJobListItemSelected ), NULL, this );
|
2024-12-16 22:32:22 -05:00
|
|
|
m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_OUTPUT_RUN_RESULTS_BASE::OnButtonOk ), NULL, this );
|
|
|
|
|
|
|
|
}
|