Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
BatchFrame Class Reference

#include <BatchFrame.h>

Inheritance diagram for BatchFrame:
Inheritance graph

Public Member Functions

 BatchFrame (wxLocale *locale, wxString xrc)
 
wxStatusBar * OnCreateStatusBar (int number, long style, wxWindowID id, const wxString &name)
 
void OnUserExit (wxCommandEvent &event)
 
void OnButtonAddCommand (wxCommandEvent &event)
 
void OnButtonAddDir (wxCommandEvent &event)
 
void OnButtonSearchPano (wxCommandEvent &e)
 
void OnButtonGenerateSequence (wxCommandEvent &e)
 generate a sequence of panoramas More...
 
void OnButtonAddToStitchingQueue (wxCommandEvent &event)
 let the user select a project file which should be added to the stitching queue More...
 
void OnButtonAddToAssistantQueue (wxCommandEvent &event)
 let the user select a project file which should be added to the stitching queue More...
 
void OnButtonCancel (wxCommandEvent &event)
 
void OnButtonChangePrefix (wxCommandEvent &event)
 
void OnButtonChangeUserDefinedSequence (wxCommandEvent &event)
 
void OnButtonClear (wxCommandEvent &event)
 
void OnMinimizeTrayMenu (wxCommandEvent &e)
 
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 OnChoiceEnd (wxCommandEvent &event)
 
void OnCheckVerbose (wxCommandEvent &event)
 
void OnCheckAutoRemove (wxCommandEvent &event)
 event handler called when auto remove checkbox was changed More...
 
void OnCheckAutoStitch (wxCommandEvent &event)
 event handler called when auto stitch checkbox was changed More...
 
void OnCheckSaveLog (wxCommandEvent &event)
 event handler called when always save log checkbox was changed More...
 
void OnProgress (wxCommandEvent &event)
 event handler for update progress controls More...
 
void OnClose (wxCloseEvent &event)
 
void OnMinimize (wxIconizeEvent &e)
 handle when minimize or restore image More...
 
void PropagateDefaults ()
 
void SetCheckboxes ()
 
void RunBatch ()
 
void SetLocaleAndXRC (wxLocale *locale, wxString xrc)
 
void SwapProject (int index, bool down)
 
Batch::EndTask GetEndTask ()
 return which task should be executed at end More...
 
bool GetCheckOverwrite ()
 return if overwrite checkbox is checked More...
 
bool GetCheckVerbose ()
 return if verbose checkbox is checked More...
 
bool GetCheckAutoRemove ()
 return if auto remove checkbox is checked More...
 
bool GetCheckAutoStitch ()
 return if auto stitch checkbox is checked More...
 
bool GetCheckSaveLog ()
 return if always save log is checked More...
 
void RestoreSize ()
 
void AddToList (wxString aFile, Project::Target target=Project::STITCHING, wxString userDefined=wxEmptyString)
 
void AddArrayToList (const wxArrayString &fileList, Project::Target target)
 
void AddDirToList (wxString aDir)
 
void ChangePrefix (int index, wxString newPrefix)
 
void ChangeUserDefined (int index, wxString newUserDefined)
 
bool IsRunning ()
 returns true, if batch is running More...
 
bool IsPaused ()
 returns true, if batch is paused More...
 
void SetStatusInformation (wxString status)
 sets status message, also updates tooltip of taskbar icon More...
 
void UpdateBatchVerboseStatus ()
 update visibility of verbose output window depending on status of verbose checkbox More...
 
bool IsStartedMinimized ()
 returns true, if last session was finished minimized More...
 
void SetInternalVerbose (bool newVerbose)
 sets the current verbose status, does not update the checkbox More...
 
void UpdateTaskBarProgressBar ()
 update the progress bar in the task bar More...
 
wxHelpController & GetHelpController ()
 return help controller for open help More...
 

Public Attributes

ProjectListBoxprojListBox
 

Private Member Functions

void OnProcessTerminate (wxProcessEvent &event)
 
void OnUpdateListBox (wxTimerEvent &event)
 called by thread to update listbox More...
 
void OnBatchFailed (wxCommandEvent &event)
 called when batch was finished and there are failed projects More...
 
void OnBatchInformation (wxCommandEvent &e)
 called when batch wants to show some progress message More...
 
void OnRefillListBox (wxCommandEvent &e)
 called if the project box needs to be updated, because projects were added or deleted More...
 
void UpdateTrayIcon (const bool createTrayIcon)
 create or destroy the tray icon More...
 

Private Attributes

wxLocale * m_locale
 
wxString m_xrcPrefix
 
Batchm_batch
 
bool m_cancelled
 
bool m_paused
 
wxChoice * m_endChoice
 
wxHelpController m_HelpController
 
BatchTaskBarIconm_tray
 
ProgressStatusBarm_progStatusBar
 
wxIcon m_iconNormal
 
wxIcon m_iconRunning
 
wxIcon m_iconPaused
 
wxTimer * m_updateProjectsTimer
 
bool m_startedMinimized
 

Detailed Description

Definition at line 60 of file BatchFrame.h.

Constructor & Destructor Documentation

BatchFrame::BatchFrame ( wxLocale *  locale,
wxString  xrc 
)

Member Function Documentation

void BatchFrame::AddArrayToList ( const wxArrayString &  fileList,
Project::Target  target 
)
void BatchFrame::AddDirToList ( wxString  aDir)
void BatchFrame::AddToList ( wxString  aFile,
Project::Target  target = Project::STITCHING,
wxString  userDefined = wxEmptyString 
)
void BatchFrame::ChangePrefix ( int  index,
wxString  newPrefix 
)
void BatchFrame::ChangeUserDefined ( int  index,
wxString  newUserDefined 
)
bool BatchFrame::GetCheckAutoRemove ( )

return if auto remove checkbox is checked

Definition at line 1106 of file BatchFrame.cpp.

Referenced by PropagateDefaults().

bool BatchFrame::GetCheckAutoStitch ( )

return if auto stitch checkbox is checked

Definition at line 1111 of file BatchFrame.cpp.

Referenced by PropagateDefaults().

bool BatchFrame::GetCheckOverwrite ( )

return if overwrite checkbox is checked

Definition at line 1096 of file BatchFrame.cpp.

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

bool BatchFrame::GetCheckSaveLog ( )

return if always save log is checked

Definition at line 1116 of file BatchFrame.cpp.

bool BatchFrame::GetCheckVerbose ( )

return if verbose checkbox is checked

Definition at line 1101 of file BatchFrame.cpp.

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

Batch::EndTask BatchFrame::GetEndTask ( )

return which task should be executed at end

Definition at line 1091 of file BatchFrame.cpp.

References m_endChoice.

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

wxHelpController& BatchFrame::GetHelpController ( )
inline

return help controller for open help

Definition at line 163 of file BatchFrame.h.

References m_HelpController.

Referenced by OnButtonHelp().

bool BatchFrame::IsPaused ( )

returns true, if batch is paused

Definition at line 266 of file BatchFrame.cpp.

References Batch::IsPaused(), and m_batch.

bool BatchFrame::IsRunning ( )

returns true, if batch is running

Definition at line 261 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 153 of file BatchFrame.h.

References m_startedMinimized.

void BatchFrame::OnBatchFailed ( wxCommandEvent &  event)
private

called when batch was finished and there are failed projects

Definition at line 1351 of file BatchFrame.cpp.

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

void BatchFrame::OnBatchInformation ( wxCommandEvent &  e)
private

called when batch wants to show some progress message

Definition at line 1364 of file BatchFrame.cpp.

References m_iconNormal, m_tray, and SetStatusInformation().

void BatchFrame::OnButtonAddCommand ( wxCommandEvent &  event)
void BatchFrame::OnButtonAddDir ( wxCommandEvent &  event)

Definition at line 358 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 439 of file BatchFrame.cpp.

References AddToList(), Project::DETECTING, 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 411 of file BatchFrame.cpp.

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

void BatchFrame::OnButtonCancel ( wxCommandEvent &  event)
void BatchFrame::OnButtonChangePrefix ( wxCommandEvent &  event)
void BatchFrame::OnButtonChangeUserDefinedSequence ( wxCommandEvent &  event)
void BatchFrame::OnButtonClear ( wxCommandEvent &  event)

Definition at line 667 of file BatchFrame.cpp.

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

void BatchFrame::OnButtonGenerateSequence ( wxCommandEvent &  e)

generate a sequence of panoramas

Definition at line 378 of file BatchFrame.cpp.

References m_xrcPrefix.

void BatchFrame::OnButtonHelp ( wxCommandEvent &  event)

Definition at line 686 of file BatchFrame.cpp.

References DEBUG_TRACE, and GetHelpController().

void BatchFrame::OnButtonMoveDown ( wxCommandEvent &  event)
void BatchFrame::OnButtonMoveUp ( wxCommandEvent &  event)
void BatchFrame::OnButtonOpenBatch ( wxCommandEvent &  event)
void BatchFrame::OnButtonOpenWithHugin ( wxCommandEvent &  event)
void BatchFrame::OnButtonPause ( wxCommandEvent &  event)
void BatchFrame::OnButtonRemoveComplete ( wxCommandEvent &  event)
void BatchFrame::OnButtonRemoveFromList ( wxCommandEvent &  event)
void BatchFrame::OnButtonReset ( wxCommandEvent &  event)
void BatchFrame::OnButtonResetAll ( wxCommandEvent &  event)
void BatchFrame::OnButtonRunBatch ( wxCommandEvent &  event)

Definition at line 960 of file BatchFrame.cpp.

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

void BatchFrame::OnButtonSaveBatch ( wxCommandEvent &  event)

Definition at line 973 of file BatchFrame.cpp.

References m_batch, and Batch::SaveBatchFile().

void BatchFrame::OnButtonSearchPano ( wxCommandEvent &  e)

Definition at line 372 of file BatchFrame.cpp.

References m_xrcPrefix.

void BatchFrame::OnButtonSkip ( wxCommandEvent &  event)
void BatchFrame::OnCheckAutoRemove ( wxCommandEvent &  event)

event handler called when auto remove checkbox was changed

Definition at line 1167 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 1182 of file BatchFrame.cpp.

References Batch::autostitch, and m_batch.

void BatchFrame::OnCheckOverwrite ( wxCommandEvent &  event)

Definition at line 1121 of file BatchFrame.cpp.

References m_batch, and Batch::overwrite.

Referenced by BatchIPCConnection::OnRequest().

void BatchFrame::OnCheckSaveLog ( wxCommandEvent &  event)

event handler called when always save log checkbox was changed

Definition at line 1197 of file BatchFrame.cpp.

References m_batch, and Batch::saveLog.

void BatchFrame::OnCheckVerbose ( wxCommandEvent &  event)

Definition at line 1145 of file BatchFrame.cpp.

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

Referenced by BatchIPCConnection::OnRequest().

void BatchFrame::OnChoiceEnd ( wxCommandEvent &  event)

Definition at line 1137 of file BatchFrame.cpp.

References Batch::atEnd, m_batch, and m_endChoice.

Referenced by BatchIPCConnection::OnRequest().

void BatchFrame::OnClose ( wxCloseEvent &  event)
wxStatusBar * BatchFrame::OnCreateStatusBar ( int  number,
long  style,
wxWindowID  id,
const wxString &  name 
)

Definition at line 254 of file BatchFrame.cpp.

References m_progStatusBar.

void BatchFrame::OnMinimize ( wxIconizeEvent &  e)

handle when minimize or restore image

Definition at line 1425 of file BatchFrame.cpp.

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

void BatchFrame::OnMinimizeTrayMenu ( wxCommandEvent &  e)

Definition at line 1480 of file BatchFrame.cpp.

References UpdateTrayIcon().

void BatchFrame::OnProcessTerminate ( wxProcessEvent &  event)
private

Definition at line 1310 of file BatchFrame.cpp.

References Batch::GetRunningCount(), m_batch, m_iconNormal, and m_tray.

void BatchFrame::OnProgress ( wxCommandEvent &  event)

event handler for update progress controls

Definition at line 1395 of file BatchFrame.cpp.

References m_progStatusBar, ProgressStatusBar::SetProgress(), and UpdateTaskBarProgressBar().

void BatchFrame::OnRefillListBox ( wxCommandEvent &  e)
private

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

Definition at line 1460 of file BatchFrame.cpp.

References ProjectListBox::Fill(), ProjectListBox::GetIndex(), Batch::GetProject(), ProjectListBox::GetSelectedProjects(), Project::id, m_batch, projListBox, and ProjectListBox::Select().

void BatchFrame::OnUpdateListBox ( wxTimerEvent &  event)
private
void BatchFrame::OnUserExit ( wxCommandEvent &  event)

Definition at line 338 of file BatchFrame.cpp.

void BatchFrame::PropagateDefaults ( )
void BatchFrame::RestoreSize ( )

Definition at line 1323 of file BatchFrame.cpp.

References m_startedMinimized, m_tray, celeste::max(), and celeste::min().

void BatchFrame::RunBatch ( )
void BatchFrame::SetCheckboxes ( )
void BatchFrame::SetInternalVerbose ( bool  newVerbose)

sets the current verbose status, does not update the checkbox

Definition at line 1162 of file BatchFrame.cpp.

References m_batch, and Batch::verbose.

void BatchFrame::SetLocaleAndXRC ( wxLocale *  locale,
wxString  xrc 
)

Definition at line 1284 of file BatchFrame.cpp.

References m_locale, and m_xrcPrefix.

void BatchFrame::SetStatusInformation ( wxString  status)

sets status message, also updates tooltip of taskbar icon

Parameters
statustext for status bar

Definition at line 1374 of file BatchFrame.cpp.

References m_tray, and TaskBarBalloon::showBalloon().

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

void BatchFrame::SwapProject ( int  index,
bool  down 
)
void BatchFrame::UpdateBatchVerboseStatus ( )

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

Definition at line 1454 of file BatchFrame.cpp.

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

void BatchFrame::UpdateTaskBarProgressBar ( )

update the progress bar in the task bar

Definition at line 1401 of file BatchFrame.cpp.

References ProgressStatusBar::GetProgress(), Batch::IsPaused(), m_batch, and m_progStatusBar.

Referenced by OnButtonPause(), OnMinimize(), and OnProgress().

void BatchFrame::UpdateTrayIcon ( const bool  createTrayIcon)
private

create or destroy the tray icon

Definition at line 1488 of file BatchFrame.cpp.

References Batch::IsPaused(), Batch::IsRunning(), m_batch, m_iconNormal, m_iconPaused, m_iconRunning, and m_tray.

Referenced by OnMinimizeTrayMenu().

Member Data Documentation

Batch* BatchFrame::m_batch
private
bool BatchFrame::m_cancelled
private

Definition at line 172 of file BatchFrame.h.

Referenced by OnButtonCancel(), and OnButtonClear().

wxChoice* BatchFrame::m_endChoice
private

Definition at line 174 of file BatchFrame.h.

Referenced by GetEndTask(), OnChoiceEnd(), and SetCheckboxes().

wxHelpController BatchFrame::m_HelpController
private

Definition at line 176 of file BatchFrame.h.

Referenced by GetHelpController().

wxIcon BatchFrame::m_iconNormal
private
wxIcon BatchFrame::m_iconPaused
private

Definition at line 181 of file BatchFrame.h.

Referenced by OnButtonPause(), and UpdateTrayIcon().

wxIcon BatchFrame::m_iconRunning
private

Definition at line 180 of file BatchFrame.h.

Referenced by OnButtonPause(), RunBatch(), and UpdateTrayIcon().

wxLocale* BatchFrame::m_locale
private

Definition at line 169 of file BatchFrame.h.

Referenced by SetLocaleAndXRC().

bool BatchFrame::m_paused
private

Definition at line 173 of file BatchFrame.h.

ProgressStatusBar* BatchFrame::m_progStatusBar
private

Definition at line 178 of file BatchFrame.h.

Referenced by OnCreateStatusBar(), OnProgress(), and UpdateTaskBarProgressBar().

bool BatchFrame::m_startedMinimized
private

Definition at line 184 of file BatchFrame.h.

Referenced by IsStartedMinimized(), and RestoreSize().

BatchTaskBarIcon* BatchFrame::m_tray
private
wxTimer* BatchFrame::m_updateProjectsTimer
private

Definition at line 183 of file BatchFrame.h.

Referenced by OnClose(), and OnUpdateListBox().

wxString BatchFrame::m_xrcPrefix
private
ProjectListBox* BatchFrame::projListBox

The documentation for this class was generated from the following files: