PreferencesDialog Class Reference

hugin preferences dialog More...

#include <PreferencesDialog.h>

List of all members.

Public Member Functions

 PreferencesDialog (wxWindow *parent)
 ctor.
virtual ~PreferencesDialog ()
 dtor.
void UpdateDisplayData (int panel)
 Config to Window.
void UpdateConfigData ()
 Window to Config.

Protected Member Functions

void OnOk (wxCommandEvent &e)
void OnHelp (wxCommandEvent &e)
void OnCancel (wxCommandEvent &e)
void OnRotationCheckBox (wxCommandEvent &e)
void OnEnblendExe (wxCommandEvent &e)
void OnEnfuseExe (wxCommandEvent &e)
void OnRestoreDefaults (wxCommandEvent &e)
void OnCustomEnblend (wxCommandEvent &e)
void OnCustomEnfuse (wxCommandEvent &e)
void OnCPDetectorAdd (wxCommandEvent &e)
void OnCPDetectorEdit (wxCommandEvent &e)
void OnCPDetectorDelete (wxCommandEvent &e)
void OnCPDetectorMoveUp (wxCommandEvent &e)
void OnCPDetectorMoveDown (wxCommandEvent &e)
void OnCPDetectorDefault (wxCommandEvent &e)
void OnCPDetectorListDblClick (wxCommandEvent &e)
void OnCPDetectorLoad (wxCommandEvent &e)
 event handler for loading cp detector settings
void OnCPDetectorSave (wxCommandEvent &e)
 event handler for saving cp detector settings
void OnFileFormatChanged (wxCommandEvent &e)
 event handler if default file format was changed
void OnProcessorChanged (wxCommandEvent &e)
 event handler if processor was changed
void OnUpdateProjectFilename (wxCommandEvent &e)
 event handler to update preview for project filename
void OnUpdateOutputFilename (wxCommandEvent &e)
 event handler to update preview for project filename
void EnableRotationCtrls (bool enable)

Private Member Functions

void UpdateFileFormatControls ()
void UpdateProcessorControls ()

Private Attributes

wxListBox * m_CPDetectorList
CPDetectorConfig cpdetector_config_edit


Detailed Description

hugin preferences dialog

A simple preferences dialog, used to inspect and set the various prefs stored in the wxConfig object

Definition at line 38 of file PreferencesDialog.h.


Constructor & Destructor Documentation

PreferencesDialog::PreferencesDialog ( wxWindow *  parent  ) 

ctor.

PreferencesDialog::~PreferencesDialog (  )  [virtual]

dtor.

Definition at line 244 of file PreferencesDialog.cpp.

References DEBUG_TRACE, and StoreFramePosition().


Member Function Documentation

void PreferencesDialog::EnableRotationCtrls ( bool  enable  )  [protected]

Definition at line 327 of file PreferencesDialog.cpp.

Referenced by OnRotationCheckBox(), and UpdateDisplayData().

void PreferencesDialog::OnCancel ( wxCommandEvent &  e  )  [protected]

Definition at line 266 of file PreferencesDialog.cpp.

void PreferencesDialog::OnCPDetectorAdd ( wxCommandEvent &  e  )  [protected]

Definition at line 833 of file PreferencesDialog.cpp.

References cpdetector_config_edit, CPDetectorConfig::FillControl(), CPDetectorConfig::GetCount(), m_CPDetectorList, CPDetectorConfig::settings, and CPDetectorDialog::UpdateSettings().

void PreferencesDialog::OnCPDetectorDefault ( wxCommandEvent &  e  )  [protected]

Definition at line 915 of file PreferencesDialog.cpp.

References cpdetector_config_edit, CPDetectorConfig::FillControl(), CPDetectorConfig::GetDefaultGenerator(), m_CPDetectorList, and CPDetectorConfig::SetDefaultGenerator().

void PreferencesDialog::OnCPDetectorDelete ( wxCommandEvent &  e  )  [protected]

Definition at line 866 of file PreferencesDialog.cpp.

References cpdetector_config_edit, CPDetectorConfig::FillControl(), CPDetectorConfig::GetDefaultGenerator(), m_CPDetectorList, CPDetectorConfig::SetDefaultGenerator(), and CPDetectorConfig::settings.

void PreferencesDialog::OnCPDetectorEdit ( wxCommandEvent &  e  )  [protected]

Definition at line 845 of file PreferencesDialog.cpp.

References cpdetector_config_edit, CPDetectorConfig::FillControl(), m_CPDetectorList, CPDetectorDialog::UpdateFields(), and CPDetectorDialog::UpdateSettings().

Referenced by OnCPDetectorListDblClick().

void PreferencesDialog::OnCPDetectorListDblClick ( wxCommandEvent &  e  )  [protected]

Definition at line 926 of file PreferencesDialog.cpp.

References OnCPDetectorEdit().

void PreferencesDialog::OnCPDetectorLoad ( wxCommandEvent &  e  )  [protected]

event handler for loading cp detector settings

Definition at line 931 of file PreferencesDialog.cpp.

References cpdetector_config_edit, CPDetectorConfig::ReadFromFile(), UpdateDisplayData(), and CPDetectorConfig::Write().

void PreferencesDialog::OnCPDetectorMoveDown ( wxCommandEvent &  e  )  [protected]

Definition at line 904 of file PreferencesDialog.cpp.

References cpdetector_config_edit, CPDetectorConfig::FillControl(), m_CPDetectorList, and CPDetectorConfig::Swap().

void PreferencesDialog::OnCPDetectorMoveUp ( wxCommandEvent &  e  )  [protected]

Definition at line 893 of file PreferencesDialog.cpp.

References cpdetector_config_edit, CPDetectorConfig::FillControl(), m_CPDetectorList, and CPDetectorConfig::Swap().

void PreferencesDialog::OnCPDetectorSave ( wxCommandEvent &  e  )  [protected]

event handler for saving cp detector settings

Definition at line 946 of file PreferencesDialog.cpp.

References cpdetector_config_edit, and CPDetectorConfig::WriteToFile().

void PreferencesDialog::OnCustomEnblend ( wxCommandEvent &  e  )  [protected]

Definition at line 315 of file PreferencesDialog.cpp.

void PreferencesDialog::OnCustomEnfuse ( wxCommandEvent &  e  )  [protected]

Definition at line 321 of file PreferencesDialog.cpp.

void PreferencesDialog::OnEnblendExe ( wxCommandEvent &  e  )  [protected]

Definition at line 281 of file PreferencesDialog.cpp.

References HUGIN_ENBLEND_EXE.

void PreferencesDialog::OnEnfuseExe ( wxCommandEvent &  e  )  [protected]

Definition at line 298 of file PreferencesDialog.cpp.

References HUGIN_ENFUSE_EXE.

void PreferencesDialog::OnFileFormatChanged ( wxCommandEvent &  e  )  [protected]

event handler if default file format was changed

Definition at line 967 of file PreferencesDialog.cpp.

References UpdateFileFormatControls().

void PreferencesDialog::OnHelp ( wxCommandEvent &  e  )  [protected]

Definition at line 271 of file PreferencesDialog.cpp.

References MainFrame::DisplayHelp(), and MainFrame::Get().

void PreferencesDialog::OnOk ( wxCommandEvent &  e  )  [protected]

Definition at line 260 of file PreferencesDialog.cpp.

References UpdateConfigData().

void PreferencesDialog::OnProcessorChanged ( wxCommandEvent &  e  )  [protected]

event handler if processor was changed

Definition at line 982 of file PreferencesDialog.cpp.

References UpdateProcessorControls().

void PreferencesDialog::OnRestoreDefaults ( wxCommandEvent &  e  )  [protected]

Definition at line 578 of file PreferencesDialog.cpp.

References cpdetector_config_edit, DEBUG_TRACE, huginApp::Get(), huginApp::GetDataPath(), HUGIN_ASS_AUTO_ALIGN, HUGIN_ASS_AUTO_CPCLEAN, HUGIN_ASS_LINEFIND, HUGIN_ASS_NCONTROLPOINTS, HUGIN_ASS_PANO_DOWNSIZE_FACTOR, HUGIN_CELESTE_AUTO, HUGIN_CELESTE_FILTER, HUGIN_CELESTE_THRESHOLD, HUGIN_DEFAULT_OUTPUT_NAME, HUGIN_DEFAULT_PROJECT_NAME, HUGIN_ENBLEND_ARGS, HUGIN_ENBLEND_EXE, HUGIN_ENBLEND_EXE_CUSTOM, HUGIN_ENFUSE_ARGS, HUGIN_ENFUSE_EXE, HUGIN_ENFUSE_EXE_CUSTOM, HUGIN_FT_CORR_THRESHOLD, HUGIN_FT_CURV_THRESHOLD, HUGIN_FT_LOCAL_SEARCH_WIDTH, HUGIN_FT_ROTATION_SEARCH, HUGIN_FT_ROTATION_START_ANGLE, HUGIN_FT_ROTATION_STEPS, HUGIN_FT_ROTATION_STOP_ANGLE, HUGIN_FT_SEARCH_AREA_PERCENT, HUGIN_FT_TEMPLATE_SIZE, HUGIN_IMGCACHE_MAPPING_FLOAT, HUGIN_IMGCACHE_UPPERBOUND, HUGIN_JPEG_QUALITY, HUGIN_LANGUAGE, HUGIN_LDR_OUTPUT_FORMAT, HUGIN_PHOTOMETRIC_OPTIMIZER_NRPOINTS, HUGIN_PROCESSOR_GUI, HUGIN_PROCESSOR_OVERWRITE, HUGIN_PROCESSOR_PARALLEL, HUGIN_PROCESSOR_START, HUGIN_PROCESSOR_VERBOSE, HUGIN_SHOW_PROJECTION_HINTS, HUGIN_SMART_UNDO, HUGIN_TIFF_COMPRESSION, CPDetectorConfig::ReadFromFile(), UpdateDisplayData(), and CPDetectorConfig::Write().

void PreferencesDialog::OnRotationCheckBox ( wxCommandEvent &  e  )  [protected]

Definition at line 276 of file PreferencesDialog.cpp.

References EnableRotationCtrls().

void PreferencesDialog::OnUpdateOutputFilename ( wxCommandEvent &  e  )  [protected]

event handler to update preview for project filename

Definition at line 1020 of file PreferencesDialog.cpp.

References MainFrame::Get(), and getDefaultOutputName().

void PreferencesDialog::OnUpdateProjectFilename ( wxCommandEvent &  e  )  [protected]

event handler to update preview for project filename

Definition at line 1013 of file PreferencesDialog.cpp.

References MainFrame::Get(), and getDefaultProjectName().

void PreferencesDialog::UpdateConfigData (  ) 

Window to Config.

MISC

AUTOPANO

OUTPUT

HDR currently deactivated since HDR TIFF broken and only choice is EXR

PROCESSOR

STITCHING

ENBLEND

Definition at line 706 of file PreferencesDialog.cpp.

References cpdetector_config_edit, DEBUG_INFO, DEBUG_TRACE, HUGIN_CELESTE_THRESHOLD, HUGIN_FT_CORR_THRESHOLD, HUGIN_FT_CURV_THRESHOLD, MY_G_BOOL_VAL, MY_G_CHOICE_VAL, MY_G_SPIN_VAL, MY_G_STR_VAL, hugin_utils::stringToDouble(), UpdateDisplayData(), and CPDetectorConfig::Write().

Referenced by OnOk().

void PreferencesDialog::UpdateDisplayData ( int  panel  ) 

Config to Window.

Parameters:
panel to update (index starts with 1), use 0 to update all panels

MISC

CP Detector programs

DEFAULT OUTPUT FORMAT

HDR currently deactivated since HDR TIFF broken and only choice is EXR

PROCESSOR

NONA

ENBLEND

ENFUSE

Definition at line 332 of file PreferencesDialog.cpp.

References cpdetector_config_edit, DEBUG_DEBUG, DEBUG_WARN, hugin_utils::doubleTowxString(), EnableRotationCtrls(), CPDetectorConfig::FillControl(), HUGIN_ASS_AUTO_ALIGN, HUGIN_ASS_AUTO_CPCLEAN, HUGIN_ASS_LINEFIND, HUGIN_ASS_NCONTROLPOINTS, HUGIN_ASS_PANO_DOWNSIZE_FACTOR, HUGIN_CELESTE_AUTO, HUGIN_CELESTE_FILTER, HUGIN_CELESTE_THRESHOLD, HUGIN_DEFAULT_OUTPUT_NAME, HUGIN_DEFAULT_PROJECT_NAME, HUGIN_ENBLEND_ARGS, HUGIN_ENBLEND_EXE, HUGIN_ENBLEND_EXE_CUSTOM, HUGIN_ENFUSE_ARGS, HUGIN_ENFUSE_EXE, HUGIN_ENFUSE_EXE_CUSTOM, HUGIN_FT_CORR_THRESHOLD, HUGIN_FT_CURV_THRESHOLD, HUGIN_FT_LOCAL_SEARCH_WIDTH, HUGIN_FT_ROTATION_SEARCH, HUGIN_FT_ROTATION_START_ANGLE, HUGIN_FT_ROTATION_STEPS, HUGIN_FT_ROTATION_STOP_ANGLE, HUGIN_FT_SEARCH_AREA_PERCENT, HUGIN_FT_TEMPLATE_SIZE, HUGIN_IMGCACHE_MAPPING_FLOAT, HUGIN_IMGCACHE_UPPERBOUND, HUGIN_JPEG_QUALITY, HUGIN_LANGUAGE, HUGIN_LDR_OUTPUT_FORMAT, HUGIN_NONA_CROPPEDIMAGES, HUGIN_NONA_INTERPOLATOR, HUGIN_NONA_USEGPU, HUGIN_PHOTOMETRIC_OPTIMIZER_NRPOINTS, HUGIN_PROCESSOR_GUI, HUGIN_PROCESSOR_OVERWRITE, HUGIN_PROCESSOR_PARALLEL, HUGIN_PROCESSOR_START, HUGIN_PROCESSOR_VERBOSE, HUGIN_SHOW_PROJECTION_HINTS, HUGIN_SMART_UNDO, HUGIN_TIFF_COMPRESSION, m_CPDetectorList, MY_BOOL_VAL, MY_CHOICE_VAL, MY_SPIN_VAL, MY_STR_VAL, hugin_utils::roundi(), UpdateFileFormatControls(), and UpdateProcessorControls().

Referenced by OnCPDetectorLoad(), OnRestoreDefaults(), and UpdateConfigData().

void PreferencesDialog::UpdateFileFormatControls (  )  [private]

Definition at line 972 of file PreferencesDialog.cpp.

References MY_G_CHOICE_VAL.

Referenced by OnFileFormatChanged(), and UpdateDisplayData().

void PreferencesDialog::UpdateProcessorControls (  )  [private]

Definition at line 987 of file PreferencesDialog.cpp.

References HUGIN_PROCESSOR_PARALLEL, HUGIN_PROCESSOR_START, HUGIN_PROCESSOR_VERBOSE, and MY_G_CHOICE_VAL.

Referenced by OnProcessorChanged(), and UpdateDisplayData().


Member Data Documentation

CPDetectorConfig PreferencesDialog::cpdetector_config_edit [private]

Definition at line 94 of file PreferencesDialog.h.

Referenced by OnCPDetectorAdd(), OnCPDetectorDefault(), OnCPDetectorDelete(), OnCPDetectorEdit(), OnCPDetectorLoad(), OnCPDetectorMoveDown(), OnCPDetectorMoveUp(), OnCPDetectorSave(), OnRestoreDefaults(), UpdateConfigData(), and UpdateDisplayData().

wxListBox* PreferencesDialog::m_CPDetectorList [private]

Definition at line 93 of file PreferencesDialog.h.

Referenced by OnCPDetectorAdd(), OnCPDetectorDefault(), OnCPDetectorDelete(), OnCPDetectorEdit(), OnCPDetectorMoveDown(), OnCPDetectorMoveUp(), and UpdateDisplayData().


The documentation for this class was generated from the following files:
Generated on 25 Oct 2014 for Hugintrunk by  doxygen 1.4.7