Hugintrunk
0.1
|
panel for enfuse GUI More...
#include <EnfusePanel.h>
Public Member Functions | |
~EnfusePanel () | |
destructor, save state and settings More... | |
bool | Create (wxWindow *parent, MyExecPanel *logPanel) |
creates the control and populates all controls with their settings More... | |
void | AddFile (const wxString &filename) |
adds the given file to the list More... | |
void | OnProcessFinished (wxCommandEvent &e) |
call at the end of the enfuse command, to load result back and enable buttons again More... | |
Protected Member Functions | |
void | OnSize (wxSizeEvent &e) |
event handler More... | |
void | OnAddFiles (wxCommandEvent &e) |
void | OnRemoveFile (wxCommandEvent &e) |
void | OnCreateFile (wxCommandEvent &e) |
void | OnSelectAllFiles (wxKeyEvent &e) |
void | OnFileSelectionChanged (wxCommandEvent &e) |
void | OnFileCheckStateChanged (wxCommandEvent &e) |
void | OnLoadSetting (wxCommandEvent &e) |
void | OnSaveSetting (wxCommandEvent &e) |
void | OnResetSetting (wxCommandEvent &e) |
void | OnGeneratePreview (wxCommandEvent &e) |
void | OnGenerateOutput (wxCommandEvent &e) |
void | OnZoom (wxCommandEvent &e) |
Private Member Functions | |
void | PopulateEnfuseOptions () |
fill the PropertyGrid with all enfuse options More... | |
void | ExecuteEnfuse () |
build the command line and execute enfuse command More... | |
void | ExecuteEnfuseExiftool () |
build the command line and execute enfuse and exiftool afterwards More... | |
wxString | GetEnfuseOptions () |
build string with all enfuse options from values in wxPropertyGrid this are the mainly the fusion options without the filesnames More... | |
wxString | GetEnfuseCommandLine () |
get the full commandline for enfuse without program, but with files and output options, the output filename is read from m_outputFilename More... | |
void | EnableFileButtons () |
enable/disable the file(s) remove and create buttons depending on selection of wxListCtrl More... | |
long | GetCheckedItemCount () const |
return the number of check images More... | |
void | EnableOutputButtons (bool enable) |
enable/disable output buttons More... | |
void | CleanUpTempFiles () |
delete all temporary files, to be called mainly at end More... | |
Private Attributes | |
wxListCtrl * | m_fileListCtrl = nullptr |
wxPropertyGrid * | m_enfuseOptions = nullptr |
wxArrayString | m_files |
PreviewWindow * | m_preview = nullptr |
MyExecPanel * | m_logWindow = nullptr |
wxArrayString | m_outputFilenames |
wxArrayString | m_tempFiles |
bool | m_cleanupOutput = false |
panel for enfuse GUI
Definition at line 37 of file EnfusePanel.h.
EnfusePanel::~EnfusePanel | ( | ) |
destructor, save state and settings
Definition at line 190 of file EnfusePanel.cpp.
References CleanUpTempFiles(), GetPropertyGridContent(), m_enfuseOptions, and m_fileListCtrl.
void EnfusePanel::AddFile | ( | const wxString & | filename | ) |
adds the given file to the list
Definition at line 279 of file EnfusePanel.cpp.
References EnableOutputButtons(), FormatString::GetAperture(), GetCheckedItemCount(), FormatString::GetExposureTime(), FormatString::GetIso(), HUGIN_CONV_FILENAME, m_fileListCtrl, m_files, HuginBase::SrcPanoImage::readEXIF(), and vigra_ext::srcImage().
Referenced by OnAddFiles(), OnCreateFile(), and EnfuseDropTarget::OnDropFiles().
|
private |
delete all temporary files, to be called mainly at end
Definition at line 1117 of file EnfusePanel.cpp.
References m_tempFiles.
Referenced by ~EnfusePanel().
bool EnfusePanel::Create | ( | wxWindow * | parent, |
MyExecPanel * | logPanel | ||
) |
creates the control and populates all controls with their settings
Definition at line 204 of file EnfusePanel.cpp.
References PreviewWindow::Create(), EnableFileButtons(), EnableOutputButtons(), m_enfuseOptions, m_fileListCtrl, m_logWindow, m_preview, OnAddFiles(), OnCreateFile(), OnFileCheckStateChanged(), OnFileSelectionChanged(), OnGenerateOutput(), OnGeneratePreview(), OnLoadSetting(), OnRemoveFile(), OnResetSetting(), OnSaveSetting(), OnSelectAllFiles(), OnSize(), OnZoom(), PopulateEnfuseOptions(), and SetPropertyGridContent().
Referenced by ToolboxFrame::ToolboxFrame().
|
private |
enable/disable the file(s) remove and create buttons depending on selection of wxListCtrl
Definition at line 1089 of file EnfusePanel.cpp.
References m_fileListCtrl.
Referenced by Create(), OnFileSelectionChanged(), and OnRemoveFile().
|
private |
enable/disable output buttons
Definition at line 1110 of file EnfusePanel.cpp.
Referenced by AddFile(), Create(), ExecuteEnfuse(), ExecuteEnfuseExiftool(), OnFileCheckStateChanged(), OnProcessFinished(), and OnRemoveFile().
|
private |
build the command line and execute enfuse command
Definition at line 611 of file EnfusePanel.cpp.
References MyExecPanel::AddString(), MyExecPanel::ClearOutput(), EnableOutputButtons(), MyExecPanel::ExecWithRedirect(), GetEnfuseCommandLine(), HuginQueue::GetExternalProgram(), m_logWindow, and HuginQueue::wxEscapeFilename().
Referenced by OnGeneratePreview().
|
private |
build the command line and execute enfuse and exiftool afterwards
Definition at line 624 of file EnfusePanel.cpp.
References MyExecPanel::ClearOutput(), EnableOutputButtons(), MyExecPanel::ExecQueue(), GetEnfuseCommandLine(), HuginQueue::GetExternalProgram(), m_fileListCtrl, m_files, m_logWindow, m_outputFilenames, and HuginQueue::wxEscapeFilename().
Referenced by OnGenerateOutput().
|
private |
return the number of check images
Definition at line 1096 of file EnfusePanel.cpp.
References m_fileListCtrl.
Referenced by AddFile(), OnFileCheckStateChanged(), and OnRemoveFile().
|
private |
get the full commandline for enfuse without program, but with files and output options, the output filename is read from m_outputFilename
Definition at line 1055 of file EnfusePanel.cpp.
References GetEnfuseOptions(), m_fileListCtrl, m_files, m_outputFilenames, and hugin_utils::wxQuoteFilename().
Referenced by ExecuteEnfuse(), and ExecuteEnfuseExiftool().
|
private |
build string with all enfuse options from values in wxPropertyGrid this are the mainly the fusion options without the filesnames
Definition at line 885 of file EnfusePanel.cpp.
References m_enfuseOptions.
Referenced by GetEnfuseCommandLine().
|
protected |
Definition at line 309 of file EnfusePanel.cpp.
References AddFile(), and GetFileDialogImageFilters().
Referenced by Create().
|
protected |
Definition at line 397 of file EnfusePanel.cpp.
References AddFile(), CreateBrightImgDlg::GetTempFiles(), HUGIN_CONV_FILENAME, m_fileListCtrl, m_files, m_tempFiles, and CreateBrightImgDlg::SetImage().
Referenced by Create().
|
protected |
Definition at line 457 of file EnfusePanel.cpp.
References EnableOutputButtons(), and GetCheckedItemCount().
Referenced by Create().
|
protected |
Definition at line 451 of file EnfusePanel.cpp.
References EnableFileButtons().
Referenced by Create().
|
protected |
Definition at line 652 of file EnfusePanel.cpp.
References ExecuteEnfuseExiftool(), GetMainImageFilters(), m_cleanupOutput, m_files, and m_outputFilenames.
Referenced by Create().
|
protected |
Definition at line 598 of file EnfusePanel.cpp.
References ExecuteEnfuse(), HuginQueue::GetConfigTempDir(), m_cleanupOutput, and m_outputFilenames.
Referenced by Create().
|
protected |
Definition at line 492 of file EnfusePanel.cpp.
References hugin_utils::GetUserAppDataDir(), m_enfuseOptions, ReadIni(), and SetPropertyGridContent().
Referenced by Create().
void EnfusePanel::OnProcessFinished | ( | wxCommandEvent & | e | ) |
call at the end of the enfuse command, to load result back and enable buttons again
Definition at line 750 of file EnfusePanel.cpp.
References EnableOutputButtons(), m_cleanupOutput, m_outputFilenames, m_preview, and PreviewWindow::setImage().
Referenced by ToolboxFrame::OnQueueProgress().
|
protected |
Definition at line 364 of file EnfusePanel.cpp.
References EnableFileButtons(), EnableOutputButtons(), GetCheckedItemCount(), m_fileListCtrl, and m_files.
Referenced by Create().
|
protected |
|
protected |
Definition at line 517 of file EnfusePanel.cpp.
References GetPropertyGridContent(), hugin_utils::GetUserAppDataDir(), m_enfuseOptions, and ReadIni().
Referenced by Create().
|
protected |
|
protected |
|
protected |
Definition at line 716 of file EnfusePanel.cpp.
References DEBUG_ERROR, m_preview, and PreviewWindow::setScale().
Referenced by Create().
|
private |
fill the PropertyGrid with all enfuse options
Definition at line 768 of file EnfusePanel.cpp.
References m_enfuseOptions.
Referenced by Create().
|
private |
Definition at line 94 of file EnfusePanel.h.
Referenced by OnGenerateOutput(), OnGeneratePreview(), and OnProcessFinished().
|
private |
Definition at line 88 of file EnfusePanel.h.
Referenced by Create(), GetEnfuseOptions(), OnLoadSetting(), OnResetSetting(), OnSaveSetting(), PopulateEnfuseOptions(), and ~EnfusePanel().
|
private |
Definition at line 87 of file EnfusePanel.h.
Referenced by AddFile(), Create(), EnableFileButtons(), ExecuteEnfuseExiftool(), GetCheckedItemCount(), GetEnfuseCommandLine(), OnCreateFile(), OnRemoveFile(), OnSelectAllFiles(), and ~EnfusePanel().
|
private |
Definition at line 89 of file EnfusePanel.h.
Referenced by AddFile(), ExecuteEnfuseExiftool(), GetEnfuseCommandLine(), OnCreateFile(), OnGenerateOutput(), and OnRemoveFile().
|
private |
Definition at line 91 of file EnfusePanel.h.
Referenced by Create(), ExecuteEnfuse(), and ExecuteEnfuseExiftool().
|
private |
Definition at line 92 of file EnfusePanel.h.
Referenced by ExecuteEnfuseExiftool(), GetEnfuseCommandLine(), OnGenerateOutput(), OnGeneratePreview(), and OnProcessFinished().
|
private |
Definition at line 90 of file EnfusePanel.h.
Referenced by Create(), OnProcessFinished(), and OnZoom().
|
private |
Definition at line 93 of file EnfusePanel.h.
Referenced by CleanUpTempFiles(), and OnCreateFile().