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 56 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 1107 of file BatchFrame.cpp.

Referenced by PropagateDefaults().

bool BatchFrame::GetCheckAutoStitch ( )

return if auto stitch checkbox is checked

Definition at line 1112 of file BatchFrame.cpp.

Referenced by PropagateDefaults().

bool BatchFrame::GetCheckOverwrite ( )

return if overwrite checkbox is checked

Definition at line 1097 of file BatchFrame.cpp.

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

bool BatchFrame::GetCheckSaveLog ( )

return if always save log is checked

Definition at line 1117 of file BatchFrame.cpp.

bool BatchFrame::GetCheckVerbose ( )

return if verbose checkbox is checked

Definition at line 1102 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 1092 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 159 of file BatchFrame.h.

References m_HelpController.

Referenced by OnButtonHelp(), and PTBatcherGUI::OnInit().

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 149 of file BatchFrame.h.

References m_startedMinimized.

Referenced by PTBatcherGUI::OnInit().

void BatchFrame::OnBatchFailed ( wxCommandEvent &  event)
private

called when batch was finished and there are failed projects

Definition at line 1348 of file BatchFrame.cpp.

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

Referenced by BatchFrame().

void BatchFrame::OnBatchInformation ( wxCommandEvent &  e)
private

called when batch wants to show some progress message

Definition at line 1361 of file BatchFrame.cpp.

References m_iconNormal, m_tray, and SetStatusInformation().

Referenced by BatchFrame().

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

Definition at line 360 of file BatchFrame.cpp.

References AddDirToList().

Referenced by BatchFrame().

void BatchFrame::OnButtonAddToAssistantQueue ( wxCommandEvent &  event)

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

Definition at line 441 of file BatchFrame.cpp.

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

Referenced by BatchFrame().

void BatchFrame::OnButtonAddToStitchingQueue ( wxCommandEvent &  event)

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

Definition at line 413 of file BatchFrame.cpp.

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

Referenced by BatchFrame().

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

Definition at line 675 of file BatchFrame.cpp.

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

Referenced by BatchFrame().

void BatchFrame::OnButtonGenerateSequence ( wxCommandEvent &  e)

generate a sequence of panoramas

Definition at line 380 of file BatchFrame.cpp.

References m_xrcPrefix.

Referenced by BatchFrame().

void BatchFrame::OnButtonHelp ( wxCommandEvent &  event)

Definition at line 694 of file BatchFrame.cpp.

References DEBUG_TRACE, and GetHelpController().

Referenced by BatchFrame().

void BatchFrame::OnButtonMoveDown ( wxCommandEvent &  event)
void BatchFrame::OnButtonMoveUp ( wxCommandEvent &  event)
void BatchFrame::OnButtonOpenBatch ( wxCommandEvent &  event)

Definition at line 728 of file BatchFrame.cpp.

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

Referenced by BatchFrame().

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 961 of file BatchFrame.cpp.

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

Referenced by BatchFrame().

void BatchFrame::OnButtonSaveBatch ( wxCommandEvent &  event)

Definition at line 974 of file BatchFrame.cpp.

References m_batch, and Batch::SaveBatchFile().

Referenced by BatchFrame().

void BatchFrame::OnButtonSearchPano ( wxCommandEvent &  e)

Definition at line 374 of file BatchFrame.cpp.

References m_xrcPrefix.

Referenced by BatchFrame().

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

event handler called when auto remove checkbox was changed

Definition at line 1168 of file BatchFrame.cpp.

References Batch::autoremove, and m_batch.

Referenced by BatchFrame().

void BatchFrame::OnCheckAutoStitch ( wxCommandEvent &  event)

event handler called when auto stitch checkbox was changed

Definition at line 1183 of file BatchFrame.cpp.

References Batch::autostitch, and m_batch.

Referenced by BatchFrame().

void BatchFrame::OnCheckOverwrite ( wxCommandEvent &  event)

Definition at line 1122 of file BatchFrame.cpp.

References m_batch, and Batch::overwrite.

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

void BatchFrame::OnCheckSaveLog ( wxCommandEvent &  event)

event handler called when always save log checkbox was changed

Definition at line 1198 of file BatchFrame.cpp.

References m_batch, and Batch::saveLog.

Referenced by BatchFrame().

void BatchFrame::OnCheckVerbose ( wxCommandEvent &  event)

Definition at line 1146 of file BatchFrame.cpp.

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

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

void BatchFrame::OnChoiceEnd ( wxCommandEvent &  event)

Definition at line 1138 of file BatchFrame.cpp.

References Batch::atEnd, m_batch, and m_endChoice.

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

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

Definition at line 256 of file BatchFrame.cpp.

References m_progStatusBar.

void BatchFrame::OnMinimize ( wxIconizeEvent &  e)

handle when minimize or restore image

Definition at line 1422 of file BatchFrame.cpp.

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

Referenced by BatchFrame().

void BatchFrame::OnMinimizeTrayMenu ( wxCommandEvent &  e)

Definition at line 1477 of file BatchFrame.cpp.

References UpdateTrayIcon().

Referenced by BatchFrame().

void BatchFrame::OnProcessTerminate ( wxProcessEvent &  event)
private

Definition at line 1311 of file BatchFrame.cpp.

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

Referenced by BatchFrame().

void BatchFrame::OnProgress ( wxCommandEvent &  event)

event handler for update progress controls

Definition at line 1392 of file BatchFrame.cpp.

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

Referenced by BatchFrame().

void BatchFrame::OnRefillListBox ( wxCommandEvent &  e)
private

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

Definition at line 1457 of file BatchFrame.cpp.

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

Referenced by BatchFrame().

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

Definition at line 340 of file BatchFrame.cpp.

Referenced by BatchFrame().

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

Definition at line 1324 of file BatchFrame.cpp.

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

Referenced by PTBatcherGUI::OnInit().

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

sets the current verbose status, does not update the checkbox

Definition at line 1163 of file BatchFrame.cpp.

References m_batch, and Batch::verbose.

Referenced by PTBatcherGUI::OnInit().

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

Definition at line 1285 of file BatchFrame.cpp.

References m_locale, and m_xrcPrefix.

Referenced by BatchFrame().

void BatchFrame::SetStatusInformation ( wxString  status)

sets status message, also updates tooltip of taskbar icon

Parameters
statustext for status bar

Definition at line 1371 of file BatchFrame.cpp.

References m_tray, and TaskBarBalloon::showBalloon().

Referenced by AddToList(), OnBatchInformation(), OnButtonCancel(), OnButtonPause(), PTBatcherGUI::OnInit(), 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 1451 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 1398 of file BatchFrame.cpp.

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

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

void BatchFrame::UpdateTrayIcon ( const bool  createTrayIcon)
private

create or destroy the tray icon

Definition at line 1485 of file BatchFrame.cpp.

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

Referenced by BatchFrame(), and OnMinimizeTrayMenu().

Member Data Documentation

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

Definition at line 168 of file BatchFrame.h.

Referenced by BatchFrame(), OnButtonCancel(), and OnButtonClear().

wxChoice* BatchFrame::m_endChoice
private

Definition at line 170 of file BatchFrame.h.

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

wxHelpController BatchFrame::m_HelpController
private

Definition at line 172 of file BatchFrame.h.

Referenced by GetHelpController().

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

Definition at line 177 of file BatchFrame.h.

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

wxIcon BatchFrame::m_iconRunning
private

Definition at line 176 of file BatchFrame.h.

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

wxLocale* BatchFrame::m_locale
private

Definition at line 165 of file BatchFrame.h.

Referenced by SetLocaleAndXRC().

bool BatchFrame::m_paused
private

Definition at line 169 of file BatchFrame.h.

ProgressStatusBar* BatchFrame::m_progStatusBar
private

Definition at line 174 of file BatchFrame.h.

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

bool BatchFrame::m_startedMinimized
private

Definition at line 180 of file BatchFrame.h.

Referenced by IsStartedMinimized(), and RestoreSize().

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

Definition at line 179 of file BatchFrame.h.

Referenced by BatchFrame(), OnClose(), and OnUpdateListBox().

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

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