BatchFrame Class Reference

#include <BatchFrame.h>

List of all members.

Public Member Functions

 BatchFrame (wxLocale *locale, wxString xrc)
void * Entry ()
void OnUserExit (wxCommandEvent &event)
void OnButtonAddCommand (wxCommandEvent &event)
void OnButtonAddDir (wxCommandEvent &event)
void OnButtonSearchPano (wxCommandEvent &e)
void OnButtonAddToStitchingQueue (wxCommandEvent &event)
 let the user select a project file which should be added to the stitching queue
void OnButtonAddToAssistantQueue (wxCommandEvent &event)
 let the user select a project file which should be added to the stitching queue
void OnButtonCancel (wxCommandEvent &event)
void OnButtonChangePrefix (wxCommandEvent &event)
void OnButtonClear (wxCommandEvent &event)
void OnButtonHelp (wxCommandEvent &event)
void OnButtonMoveDown (wxCommandEvent &event)
void OnButtonMoveUp (wxCommandEvent &event)
void OnButtonOpenBatch (wxCommandEvent &event)
void OnButtonOpenWithHugin (wxCommandEvent &event)
void OnButtonPause (wxCommandEvent &event)
void OnButtonRemoveComplete (wxCommandEvent &event)
void OnButtonRemoveFromList (wxCommandEvent &event)
void OnButtonReset (wxCommandEvent &event)
void OnButtonResetAll (wxCommandEvent &event)
void OnButtonRunBatch (wxCommandEvent &event)
void OnButtonSaveBatch (wxCommandEvent &event)
void OnButtonSkip (wxCommandEvent &event)
void OnCheckOverwrite (wxCommandEvent &event)
void OnCheckParallel (wxCommandEvent &event)
void OnCheckShutdown (wxCommandEvent &event)
void OnCheckVerbose (wxCommandEvent &event)
void OnCheckAutoRemove (wxCommandEvent &event)
 event handler called when auto remove checkbox was changed
void OnCheckAutoStitch (wxCommandEvent &event)
 event handler called when auto stitch checkbox was changed
void OnCheckSaveLog (wxCommandEvent &event)
 event handler called when always save log checkbox was changed
void OnClose (wxCloseEvent &event)
void OnMinimize (wxIconizeEvent &e)
 handle when minimize or restore image
void PropagateDefaults ()
void SetCheckboxes ()
void RunBatch ()
void SetLocaleAndXRC (wxLocale *locale, wxString xrc)
void SwapProject (int index)
bool GetCheckParallel ()
 return if parallel checkbox is checked
bool GetCheckShutdown ()
 return if shutdown checkbox is checked
bool GetCheckOverwrite ()
 return if overwrite checkbox is checked
bool GetCheckVerbose ()
 return if verbose checkbox is checked
bool GetCheckAutoRemove ()
 return if auto remove checkbox is checked
bool GetCheckAutoStitch ()
 return if auto stitch checkbox is checked
bool GetCheckSaveLog ()
 return if always save log is checked
void RestoreSize ()
void AddToList (wxString aFile, Project::Target target=Project::STITCHING)
void AddDirToList (wxString aDir)
void ChangePrefix (int index, wxString newPrefix)
bool IsRunning ()
 returns true, if batch is running
bool IsPaused ()
 returns true, if batch is paused
void SetStatusInformation (wxString status, bool showBalloon)
 sets status message, also updates tooltip of taskbar icon
void UpdateBatchVerboseStatus ()
 update visibility of verbose output window depending on status of verbose checkbox
bool IsStartedMinimized ()
 returns true, if last session was finished minimized
void SetInternalVerbose (bool newVerbose)
 sets the current verbose status, does not update the checkbox

Public Attributes

ProjectListBoxprojListBox

Private Member Functions

void OnProcessTerminate (wxProcessEvent &event)
void OnReloadBatch (wxCommandEvent &event)
 called by thread when queue was changed outside of PTBatcherGUI
void OnUpdateListBox (wxCommandEvent &event)
 called by thread to update listbox
void OnBatchFailed (wxCommandEvent &event)
 called when batch was finished and there are failed projects
void OnBatchInformation (wxCommandEvent &e)
 called when batch wants to show some progress message
void OnRefillListBox (wxCommandEvent &e)
 called if the project box needs to be updated, because projects were added or deleted

Private Attributes

wxLocale * m_locale
wxString m_xrcPrefix
Batchm_batch
bool m_cancelled
bool m_paused
bool m_closeThread
wxHtmlHelpController * m_help
BatchTaskBarIconm_tray
bool m_startedMinimized


Constructor & Destructor Documentation

BatchFrame::BatchFrame wxLocale *  locale,
wxString  xrc
 


Member Function Documentation

void BatchFrame::AddDirToList wxString  aDir  ) 
 

Definition at line 433 of file BatchFrame.cpp.

References Batch::AddProjectToBatch(), ProjectListBox::AppendProject(), Batch::GetProject(), Batch::GetProjectCount(), DirTraverser::GetProjectFiles(), Project::isAligned, m_batch, projListBox, Batch::SaveTemp(), and Project::target.

Referenced by OnButtonAddDir(), and BatchDropTarget::OnDropFiles().

void BatchFrame::AddToList wxString  aFile,
Project::Target  target = Project::STITCHING
 

Definition at line 454 of file BatchFrame.cpp.

References Batch::AddProjectToBatch(), ProjectListBox::AppendProject(), Batch::GetProject(), Batch::GetProjectCount(), m_batch, projListBox, Batch::SaveTemp(), and SetStatusInformation().

Referenced by OnButtonAddToAssistantQueue(), OnButtonAddToStitchingQueue(), FindPanoDialog::OnButtonSend(), BatchDropTarget::OnDropFiles(), and BatchIPCConnection::OnRequest().

void BatchFrame::ChangePrefix int  index,
wxString  newPrefix
 

Definition at line 524 of file BatchFrame.cpp.

References ProjectListBox::ChangePrefix(), Batch::ChangePrefix(), Batch::GetProjectCount(), m_batch, and projListBox.

Referenced by OnButtonChangePrefix(), and BatchIPCConnection::OnRequest().

void * BatchFrame::Entry  ) 
 

Definition at line 232 of file BatchFrame.cpp.

References Batch::GetLastFile(), Batch::GetLastFileDate(), m_batch, wxEVT_COMMAND_RELOAD_BATCH, and wxEVT_COMMAND_UPDATE_LISTBOX.

bool BatchFrame::GetCheckAutoRemove  ) 
 

return if auto remove checkbox is checked

Definition at line 942 of file BatchFrame.cpp.

Referenced by PropagateDefaults().

bool BatchFrame::GetCheckAutoStitch  ) 
 

return if auto stitch checkbox is checked

Definition at line 947 of file BatchFrame.cpp.

Referenced by PropagateDefaults().

bool BatchFrame::GetCheckOverwrite  ) 
 

return if overwrite checkbox is checked

Definition at line 932 of file BatchFrame.cpp.

Referenced by BatchIPCConnection::OnRequest(), and PropagateDefaults().

bool BatchFrame::GetCheckParallel  ) 
 

return if parallel checkbox is checked

Definition at line 922 of file BatchFrame.cpp.

Referenced by BatchIPCConnection::OnRequest(), and PropagateDefaults().

bool BatchFrame::GetCheckSaveLog  ) 
 

return if always save log is checked

Definition at line 952 of file BatchFrame.cpp.

bool BatchFrame::GetCheckShutdown  ) 
 

return if shutdown checkbox is checked

Definition at line 927 of file BatchFrame.cpp.

Referenced by BatchIPCConnection::OnRequest(), and PropagateDefaults().

bool BatchFrame::GetCheckVerbose  ) 
 

return if verbose checkbox is checked

Definition at line 937 of file BatchFrame.cpp.

Referenced by BatchIPCConnection::OnRequest(), and PropagateDefaults().

bool BatchFrame::IsPaused  ) 
 

returns true, if batch is paused

Definition at line 268 of file BatchFrame.cpp.

References Batch::IsPaused(), and m_batch.

bool BatchFrame::IsRunning  ) 
 

returns true, if batch is running

Definition at line 263 of file BatchFrame.cpp.

References Batch::IsRunning(), and m_batch.

Referenced by RunBatch().

bool BatchFrame::IsStartedMinimized  )  [inline]
 

returns true, if last session was finished minimized

Definition at line 142 of file BatchFrame.h.

void BatchFrame::OnBatchFailed wxCommandEvent &  event  )  [private]
 

called when batch was finished and there are failed projects

Definition at line 1176 of file BatchFrame.cpp.

References Batch::GetFailedProjectsCount(), m_batch, and m_xrcPrefix.

void BatchFrame::OnBatchInformation wxCommandEvent &  e  )  [private]
 

called when batch wants to show some progress message

Definition at line 1185 of file BatchFrame.cpp.

References SetStatusInformation().

void BatchFrame::OnButtonAddCommand wxCommandEvent &  event  ) 
 

Definition at line 341 of file BatchFrame.cpp.

References Batch::AddAppToBatch(), ProjectListBox::AppendProject(), Batch::GetProject(), Batch::GetProjectCount(), m_batch, projListBox, and Batch::SaveTemp().

void BatchFrame::OnButtonAddDir wxCommandEvent &  event  ) 
 

Definition at line 356 of file BatchFrame.cpp.

References AddDirToList().

void BatchFrame::OnButtonAddToAssistantQueue wxCommandEvent &  event  ) 
 

let the user select a project file which should be added to the stitching queue

Definition at line 404 of file BatchFrame.cpp.

References AddToList(), m_batch, and Batch::SaveTemp().

void BatchFrame::OnButtonAddToStitchingQueue wxCommandEvent &  event  ) 
 

let the user select a project file which should be added to the stitching queue

Definition at line 376 of file BatchFrame.cpp.

References AddToList(), m_batch, and Batch::SaveTemp().

Referenced by PTBatcherGUI::OnKeyDown().

void BatchFrame::OnButtonCancel wxCommandEvent &  event  ) 
 

Definition at line 474 of file BatchFrame.cpp.

References Batch::CancelBatch(), m_batch, m_cancelled, and SetStatusInformation().

Referenced by OnButtonResetAll(), and PTBatcherGUI::OnKeyDown().

void BatchFrame::OnButtonChangePrefix wxCommandEvent &  event  ) 
 

Definition at line 482 of file BatchFrame.cpp.

References ChangePrefix(), containsInvalidCharacters(), ProjectListBox::GetSelectedIndex(), ProjectListBox::GetSelectedProject(), ProjectListBox::GetSelectedProjectPrefix(), ProjectListBox::GetSelectedProjectTarget(), m_batch, makefile::prefix(), projListBox, Batch::SaveTemp(), and ShowFilenameWarning().

void BatchFrame::OnButtonClear wxCommandEvent &  event  ) 
 

Definition at line 539 of file BatchFrame.cpp.

References Batch::ClearBatch(), m_batch, m_cancelled, projListBox, and Batch::SaveTemp().

void BatchFrame::OnButtonHelp wxCommandEvent &  event  ) 
 

Definition at line 558 of file BatchFrame.cpp.

References DEBUG_INFO, DEBUG_TRACE, m_help, m_locale, and m_xrcPrefix.

void BatchFrame::OnButtonMoveDown wxCommandEvent &  event  ) 
 

Definition at line 610 of file BatchFrame.cpp.

References ProjectListBox::GetSelectedIndex(), m_batch, projListBox, Batch::SaveTemp(), and SwapProject().

void BatchFrame::OnButtonMoveUp wxCommandEvent &  event  ) 
 

Definition at line 616 of file BatchFrame.cpp.

References ProjectListBox::GetSelectedIndex(), m_batch, projListBox, Batch::SaveTemp(), and SwapProject().

void BatchFrame::OnButtonOpenBatch wxCommandEvent &  event  ) 
 

Definition at line 622 of file BatchFrame.cpp.

References ProjectListBox::Fill(), Batch::LoadBatchFile(), m_batch, projListBox, and Batch::SaveTemp().

void BatchFrame::OnButtonOpenWithHugin wxCommandEvent &  event  ) 
 

Definition at line 646 of file BatchFrame.cpp.

References getExePath(), ProjectListBox::GetSelectedIndex(), ProjectListBox::GetSelectedProject(), ProjectListBox::GetText(), and projListBox.

Referenced by PTBatcherGUI::OnItemActivated().

void BatchFrame::OnButtonPause wxCommandEvent &  event  ) 
 

Definition at line 685 of file BatchFrame.cpp.

References Batch::GetRunningCount(), Batch::IsPaused(), m_batch, Batch::PauseBatch(), and SetStatusInformation().

Referenced by OnButtonRunBatch().

void BatchFrame::OnButtonRemoveComplete wxCommandEvent &  event  ) 
 

Definition at line 708 of file BatchFrame.cpp.

References ProjectListBox::Deselect(), Batch::GetStatus(), m_batch, Batch::NoErrors(), projListBox, Batch::RemoveProjectAtIndex(), and Batch::SaveTemp().

void BatchFrame::OnButtonRemoveFromList wxCommandEvent &  event  ) 
 

Definition at line 738 of file BatchFrame.cpp.

References ProjectListBox::Deselect(), ProjectListBox::GetSelectedIndex(), ProjectListBox::GetSelectedProject(), Batch::GetStatus(), m_batch, OnButtonSkip(), projListBox, Batch::RemoveProjectAtIndex(), and Batch::SaveTemp().

Referenced by PTBatcherGUI::OnKeyDown().

void BatchFrame::OnButtonReset wxCommandEvent &  event  ) 
 

Definition at line 773 of file BatchFrame.cpp.

References ProjectListBox::GetSelectedIndex(), ProjectListBox::GetSelectedProject(), Batch::GetStatus(), m_batch, OnButtonSkip(), projListBox, Batch::SaveTemp(), and Batch::SetStatus().

void BatchFrame::OnButtonResetAll wxCommandEvent &  event  ) 
 

Definition at line 805 of file BatchFrame.cpp.

References Batch::GetRunningCount(), m_batch, OnButtonCancel(), projListBox, Batch::SaveTemp(), and Batch::SetStatus().

void BatchFrame::OnButtonRunBatch wxCommandEvent &  event  ) 
 

Definition at line 831 of file BatchFrame.cpp.

References Batch::IsPaused(), m_batch, OnButtonPause(), and RunBatch().

void BatchFrame::OnButtonSaveBatch wxCommandEvent &  event  ) 
 

Definition at line 844 of file BatchFrame.cpp.

References m_batch, and Batch::SaveBatchFile().

void BatchFrame::OnButtonSearchPano wxCommandEvent &  e  ) 
 

Definition at line 370 of file BatchFrame.cpp.

References m_xrcPrefix.

void BatchFrame::OnButtonSkip wxCommandEvent &  event  ) 
 

Definition at line 859 of file BatchFrame.cpp.

References Batch::CancelProject(), Batch::CompareProjectsInLists(), Batch::GetRunningCount(), ProjectListBox::GetSelectedIndex(), Batch::GetStatus(), m_batch, projListBox, and Batch::SetStatus().

Referenced by OnButtonRemoveFromList(), and OnButtonReset().

void BatchFrame::OnCheckAutoRemove wxCommandEvent &  event  ) 
 

event handler called when auto remove checkbox was changed

Definition at line 1019 of file BatchFrame.cpp.

References Batch::autoremove, and m_batch.

void BatchFrame::OnCheckAutoStitch wxCommandEvent &  event  ) 
 

event handler called when auto stitch checkbox was changed

Definition at line 1034 of file BatchFrame.cpp.

References Batch::autostitch, and m_batch.

void BatchFrame::OnCheckOverwrite wxCommandEvent &  event  ) 
 

Definition at line 957 of file BatchFrame.cpp.

References m_batch, and Batch::overwrite.

Referenced by BatchIPCConnection::OnRequest().

void BatchFrame::OnCheckParallel wxCommandEvent &  event  ) 
 

Definition at line 971 of file BatchFrame.cpp.

References m_batch, and Batch::parallel.

Referenced by BatchIPCConnection::OnRequest().

void BatchFrame::OnCheckSaveLog wxCommandEvent &  event  ) 
 

event handler called when always save log checkbox was changed

Definition at line 1049 of file BatchFrame.cpp.

References m_batch, and Batch::saveLog.

void BatchFrame::OnCheckShutdown wxCommandEvent &  event  ) 
 

Definition at line 985 of file BatchFrame.cpp.

References m_batch, and Batch::shutdown.

Referenced by BatchIPCConnection::OnRequest().

void BatchFrame::OnCheckVerbose wxCommandEvent &  event  ) 
 

Definition at line 999 of file BatchFrame.cpp.

References m_batch, Batch::ShowOutput(), and Batch::verbose.

Referenced by BatchIPCConnection::OnRequest().

void BatchFrame::OnClose wxCloseEvent &  event  ) 
 

Definition at line 1064 of file BatchFrame.cpp.

References m_closeThread, and m_tray.

void BatchFrame::OnMinimize wxIconizeEvent &  e  ) 
 

handle when minimize or restore image

Definition at line 1211 of file BatchFrame.cpp.

References m_batch, m_tray, Batch::ShowOutput(), and Batch::verbose.

void BatchFrame::OnProcessTerminate wxProcessEvent &  event  )  [private]
 

Definition at line 1143 of file BatchFrame.cpp.

References Batch::GetRunningCount(), and m_batch.

void BatchFrame::OnRefillListBox wxCommandEvent &  e  )  [private]
 

called if the project box needs to be updated, because projects were added or deleted

Definition at line 1246 of file BatchFrame.cpp.

References ProjectListBox::Fill(), ProjectListBox::GetIndex(), ProjectListBox::GetProjectId(), ProjectListBox::GetSelectedIndex(), m_batch, projListBox, and ProjectListBox::Select().

void BatchFrame::OnReloadBatch wxCommandEvent &  event  )  [private]
 

called by thread when queue was changed outside of PTBatcherGUI

Definition at line 327 of file BatchFrame.cpp.

References Batch::ClearBatch(), ProjectListBox::Fill(), Batch::LoadTemp(), m_batch, and projListBox.

void BatchFrame::OnUpdateListBox wxCommandEvent &  event  )  [private]
 

called by thread to update listbox

Definition at line 273 of file BatchFrame.cpp.

References ProjectListBox::GetIndex(), Batch::GetProject(), Batch::GetProjectCount(), Batch::GetStatus(), Project::id, m_batch, Project::modDate, Project::path, projListBox, ProjectListBox::ReloadProject(), Project::ResetOptions(), Batch::SaveTemp(), ProjectListBox::SetMissing(), Batch::SetStatus(), Project::skip, Project::target, and ProjectListBox::UpdateStatus().

void BatchFrame::OnUserExit wxCommandEvent &  event  ) 
 

Definition at line 336 of file BatchFrame.cpp.

void BatchFrame::PropagateDefaults  ) 
 

Definition at line 1100 of file BatchFrame.cpp.

References Batch::autoremove, Batch::autostitch, GetCheckAutoRemove(), GetCheckAutoStitch(), GetCheckOverwrite(), GetCheckParallel(), GetCheckShutdown(), GetCheckVerbose(), m_batch, Batch::overwrite, Batch::parallel, Batch::shutdown, and Batch::verbose.

void BatchFrame::RestoreSize  ) 
 

Definition at line 1152 of file BatchFrame.cpp.

References m_startedMinimized, and m_tray.

void BatchFrame::RunBatch  ) 
 

Definition at line 1110 of file BatchFrame.cpp.

References IsRunning(), m_batch, Batch::RunBatch(), and SetStatusInformation().

Referenced by OnButtonRunBatch().

void BatchFrame::SetCheckboxes  ) 
 

Definition at line 902 of file BatchFrame.cpp.

Referenced by BatchIPCConnection::OnRequest().

void BatchFrame::SetInternalVerbose bool  newVerbose  ) 
 

sets the current verbose status, does not update the checkbox

Definition at line 1014 of file BatchFrame.cpp.

References m_batch, and Batch::verbose.

void BatchFrame::SetLocaleAndXRC wxLocale *  locale,
wxString  xrc
 

Definition at line 1119 of file BatchFrame.cpp.

References m_locale, and m_xrcPrefix.

void BatchFrame::SetStatusInformation wxString  status,
bool  showBalloon
 

sets status message, also updates tooltip of taskbar icon

Parameters:
status text for status bar
showBalloon true if the status text should also shown in balloon

Definition at line 1190 of file BatchFrame.cpp.

References m_tray, and TaskBarBalloon::showBalloon().

Referenced by AddToList(), OnBatchInformation(), OnButtonCancel(), OnButtonPause(), and RunBatch().

void BatchFrame::SwapProject int  index  ) 
 

Definition at line 1125 of file BatchFrame.cpp.

References ProjectListBox::GetSelectedIndex(), m_batch, projListBox, ProjectListBox::Select(), Batch::SwapProject(), and ProjectListBox::SwapProject().

Referenced by OnButtonMoveDown(), and OnButtonMoveUp().

void BatchFrame::UpdateBatchVerboseStatus  ) 
 

update visibility of verbose output window depending on status of verbose checkbox

Definition at line 1240 of file BatchFrame.cpp.

References m_batch, Batch::ShowOutput(), and Batch::verbose.


Member Data Documentation

Batch* BatchFrame::m_batch [private]
 

Definition at line 163 of file BatchFrame.h.

Referenced by AddDirToList(), AddToList(), ChangePrefix(), Entry(), IsPaused(), IsRunning(), OnBatchFailed(), OnButtonAddCommand(), OnButtonAddToAssistantQueue(), OnButtonAddToStitchingQueue(), OnButtonCancel(), OnButtonChangePrefix(), OnButtonClear(), OnButtonMoveDown(), OnButtonMoveUp(), OnButtonOpenBatch(), OnButtonPause(), OnButtonRemoveComplete(), OnButtonRemoveFromList(), OnButtonReset(), OnButtonResetAll(), OnButtonRunBatch(), OnButtonSaveBatch(), OnButtonSkip(), OnCheckAutoRemove(), OnCheckAutoStitch(), OnCheckOverwrite(), OnCheckParallel(), OnCheckSaveLog(), OnCheckShutdown(), OnCheckVerbose(), OnMinimize(), OnProcessTerminate(), OnRefillListBox(), OnReloadBatch(), OnUpdateListBox(), PropagateDefaults(), RunBatch(), SetInternalVerbose(), SwapProject(), and UpdateBatchVerboseStatus().

bool BatchFrame::m_cancelled [private]
 

Definition at line 164 of file BatchFrame.h.

Referenced by OnButtonCancel(), and OnButtonClear().

bool BatchFrame::m_closeThread [private]
 

Definition at line 166 of file BatchFrame.h.

Referenced by OnClose().

wxHtmlHelpController* BatchFrame::m_help [private]
 

Definition at line 172 of file BatchFrame.h.

Referenced by OnButtonHelp().

wxLocale* BatchFrame::m_locale [private]
 

Definition at line 161 of file BatchFrame.h.

Referenced by OnButtonHelp(), and SetLocaleAndXRC().

bool BatchFrame::m_paused [private]
 

Definition at line 165 of file BatchFrame.h.

bool BatchFrame::m_startedMinimized [private]
 

Definition at line 175 of file BatchFrame.h.

Referenced by RestoreSize().

BatchTaskBarIcon* BatchFrame::m_tray [private]
 

Definition at line 174 of file BatchFrame.h.

Referenced by OnClose(), OnMinimize(), RestoreSize(), and SetStatusInformation().

wxString BatchFrame::m_xrcPrefix [private]
 

Definition at line 162 of file BatchFrame.h.

Referenced by OnBatchFailed(), OnButtonHelp(), OnButtonSearchPano(), and SetLocaleAndXRC().

ProjectListBox* BatchFrame::projListBox
 

Definition at line 158 of file BatchFrame.h.

Referenced by AddDirToList(), AddToList(), ChangePrefix(), OnButtonAddCommand(), OnButtonChangePrefix(), OnButtonClear(), OnButtonMoveDown(), OnButtonMoveUp(), OnButtonOpenBatch(), OnButtonOpenWithHugin(), OnButtonRemoveComplete(), OnButtonRemoveFromList(), OnButtonReset(), OnButtonResetAll(), OnButtonSkip(), OnRefillListBox(), OnReloadBatch(), OnUpdateListBox(), and SwapProject().


The documentation for this class was generated from the following files:
Generated on Fri May 24 01:25:45 2013 for Hugintrunk by  doxygen 1.3.9.1