66 explicit Batch(wxFrame* parent);
117 bool OnStitch(wxString scriptFile, wxString outname, wxString userDefinedOutput,
int id);
119 bool OnDetect(wxString scriptFile, wxString userDefinedAssistant,
int id);
bool NoErrors()
Returns true if there are no failed projects in batch.
int GetRunningCount()
Returns number of projects currently in progress.
int ClearBatch()
Clears batch list and returns 0 if succesful.
Stitch a pto project file, with GUI output etc.
int GetFirstAvailable()
Returns index of first waiting project in batch.
void SwapProject(int index)
Swaps position in batch of project at index with project at index+1.
void RemoveProjectAtIndex(int selIndex)
Removes project at index from batch list.
int GetProjectCount()
Returns number of projects in batch list.
FrameArray m_stitchFrames
int GetIndex(int id)
Returns index of project with selected id.
void SetStatus(int index, Project::Status status)
Used internally to set status of selected project.
size_t GetFailedProjectsCount()
returns number of failed projects
WX_DEFINE_ARRAY_PTR(MyPipedProcess *, MyProcessesArray)
void CancelBatch()
Stops batch run, failing projects in progress.
bool OnDetect(wxString scriptFile, wxString userDefinedAssistant, int id)
called to start detecting
void RemoveProject(int id)
Removes project with id from batch list.
void AddProjectToBatch(wxString projectFile, wxString outputFile=wxEmptyString, wxString userDefinedSequence=wxEmptyString, Project::Target target=Project::STITCHING)
Adds a project entry in the batch list.
void AddAppToBatch(wxString app)
Adds an application entry in the batch list.
int LoadBatchFile(wxString file)
Clears current batch list and loads projects from batch file.
bool IsPaused()
Returns true if batch execution is currently paused.
void ChangePrefix(int index, wxString newPrefix)
Changes output prefix for project at index.
void AppendBatchFile(wxString file)
Appends projects from file to batch list.
Project::Status GetStatus(int index)
Returns current status of project at index.
bool IsRunning()
return true, if batch is running
void RunNextInBatch()
Starts execution of next waiting project in batch.
wxString GetFailedProjectName(unsigned int i)
returns project file name of failed project with index i
void PauseBatch()
Pauses and continues batch execution.
wxPowerResourceBlocker * m_resBlocker
wxDECLARE_EVENT(wxEVT_COMMAND_THUMBNAILTHREAD_UPDATE, wxCommandEvent)
void SaveTemp()
Saves batch list to temporary file.
Project * GetProject(int index)
Returns project at index.
void ShowOutput(bool isVisible=true)
Set visibility of all running projects.
int GetProjectCountByPath(wxString path)
Returns number of projects in batch list with the input file path.
void RunBatch()
Starts batch execution.
std::vector< FailedProject > m_failedProjects
Batch(wxFrame *parent)
Main constructor.
void CancelProject(int index)
Cancels project at index in batch, failing it.
void SaveBatchFile(wxString file)
Saves batch list to file.
bool CompareProjectsInLists(int stitchListIndex, int batchListIndex)
Compares two project at indexes in both lists and returns true if they have identical project ids...
wxString GetBatchFilename()
returns the filename of the default queue file
bool AllDone()
Returns true if there are no more projects pending execution.
void OnProcessTerminate(wxProcessEvent &event)
Called internally when all running processes have completed and need to be removed from running list...
Batch processor for Hugin.
wxString GetFailedProjectLog(unsigned int i)
returns log file name of failed project with index i
int LoadTemp()
Loads temporary batch file.
bool OnStitch(wxString scriptFile, wxString outname, wxString userDefinedOutput, int id)
Called to start stitch of project with input scriptFile.
void ChangeUserDefined(int index, wxString newUserDefined)
Changes user defined sequence for project at index.