Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
PreferencesDialog Class Reference

hugin preferences dialog More...

#include <PreferencesDialog.h>

Inheritance diagram for PreferencesDialog:
Inheritance graph

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 OnRotationCheckBox (wxCommandEvent &e)
 
void OnEnblendExe (wxCommandEvent &e)
 
void OnEnfuseExe (wxCommandEvent &e)
 
void OnDcrawExe (wxCommandEvent &e)
 
void OnRawTherapeeExe (wxCommandEvent &e)
 
void OnDarktableExe (wxCommandEvent &e)
 
void OnExifTool (wxCommandEvent &e)
 
void OnExifArgfileChoose (wxCommandEvent &e)
 
void OnExifArgfileEdit (wxCommandEvent &e)
 
void OnExifArgfile2Choose (wxCommandEvent &e)
 
void OnExifArgfile2Edit (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 OnUserDefinedOutputOptionsCheckBox (wxCommandEvent &e)
 
void OnChangeUserDefinedOutputOptions (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 OnBlenderChanged (wxCommandEvent &e)
 event handler if blender 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 ()
 
void UpdateBlenderControls ()
 

Private Attributes

wxListBoxm_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::PreferencesDialog ( wxWindow *  parent)

◆ ~PreferencesDialog()

PreferencesDialog::~PreferencesDialog ( )
virtual

dtor.

Definition at line 248 of file PreferencesDialog.cpp.

References DEBUG_TRACE, hugin_utils::StoreFramePosition(), and threshold().

Member Function Documentation

◆ EnableRotationCtrls()

void PreferencesDialog::EnableRotationCtrls ( bool  enable)
protected

Definition at line 550 of file PreferencesDialog.cpp.

References threshold().

Referenced by OnRotationCheckBox(), and UpdateDisplayData().

◆ OnBlenderChanged()

void PreferencesDialog::OnBlenderChanged ( wxCommandEvent &  e)
protected

event handler if blender was changed

Definition at line 1299 of file PreferencesDialog.cpp.

References UpdateBlenderControls().

Referenced by PreferencesDialog().

◆ OnChangeUserDefinedOutputOptions()

void PreferencesDialog::OnChangeUserDefinedOutputOptions ( wxCommandEvent &  e)
protected

Definition at line 1333 of file PreferencesDialog.cpp.

References threshold().

Referenced by PreferencesDialog().

◆ OnCPDetectorAdd()

void PreferencesDialog::OnCPDetectorAdd ( wxCommandEvent &  e)
protected

◆ OnCPDetectorDefault()

void PreferencesDialog::OnCPDetectorDefault ( wxCommandEvent &  e)
protected

◆ OnCPDetectorDelete()

void PreferencesDialog::OnCPDetectorDelete ( wxCommandEvent &  e)
protected

◆ OnCPDetectorEdit()

void PreferencesDialog::OnCPDetectorEdit ( wxCommandEvent &  e)
protected

◆ OnCPDetectorLoad()

void PreferencesDialog::OnCPDetectorLoad ( wxCommandEvent &  e)
protected

event handler for loading cp detector settings

Definition at line 1220 of file PreferencesDialog.cpp.

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

Referenced by PreferencesDialog().

◆ OnCPDetectorMoveDown()

void PreferencesDialog::OnCPDetectorMoveDown ( wxCommandEvent &  e)
protected

◆ OnCPDetectorMoveUp()

void PreferencesDialog::OnCPDetectorMoveUp ( wxCommandEvent &  e)
protected

◆ OnCPDetectorSave()

void PreferencesDialog::OnCPDetectorSave ( wxCommandEvent &  e)
protected

event handler for saving cp detector settings

Definition at line 1235 of file PreferencesDialog.cpp.

References cpdetector_config_edit, threshold(), and CPDetectorConfig::WriteToFile().

Referenced by PreferencesDialog().

◆ OnCustomEnblend()

void PreferencesDialog::OnCustomEnblend ( wxCommandEvent &  e)
protected

Definition at line 363 of file PreferencesDialog.cpp.

References threshold().

Referenced by PreferencesDialog().

◆ OnCustomEnfuse()

void PreferencesDialog::OnCustomEnfuse ( wxCommandEvent &  e)
protected

Definition at line 369 of file PreferencesDialog.cpp.

References threshold().

Referenced by PreferencesDialog().

◆ OnDarktableExe()

void PreferencesDialog::OnDarktableExe ( wxCommandEvent &  e)
protected

Definition at line 346 of file PreferencesDialog.cpp.

References threshold().

Referenced by PreferencesDialog().

◆ OnDcrawExe()

void PreferencesDialog::OnDcrawExe ( wxCommandEvent &  e)
protected

Definition at line 314 of file PreferencesDialog.cpp.

References threshold().

Referenced by PreferencesDialog().

◆ OnEnblendExe()

void PreferencesDialog::OnEnblendExe ( wxCommandEvent &  e)
protected

Definition at line 280 of file PreferencesDialog.cpp.

References HUGIN_ENBLEND_EXE, and threshold().

Referenced by PreferencesDialog().

◆ OnEnfuseExe()

void PreferencesDialog::OnEnfuseExe ( wxCommandEvent &  e)
protected

Definition at line 297 of file PreferencesDialog.cpp.

References HUGIN_ENFUSE_EXE, and threshold().

Referenced by PreferencesDialog().

◆ OnExifArgfile2Choose()

void PreferencesDialog::OnExifArgfile2Choose ( wxCommandEvent &  e)
protected

Definition at line 463 of file PreferencesDialog.cpp.

References threshold().

Referenced by PreferencesDialog().

◆ OnExifArgfile2Edit()

void PreferencesDialog::OnExifArgfile2Edit ( wxCommandEvent &  e)
protected

◆ OnExifArgfileChoose()

void PreferencesDialog::OnExifArgfileChoose ( wxCommandEvent &  e)
protected

Definition at line 375 of file PreferencesDialog.cpp.

References threshold().

Referenced by PreferencesDialog().

◆ OnExifArgfileEdit()

void PreferencesDialog::OnExifArgfileEdit ( wxCommandEvent &  e)
protected

◆ OnExifTool()

void PreferencesDialog::OnExifTool ( wxCommandEvent &  e)
protected

Definition at line 533 of file PreferencesDialog.cpp.

References threshold().

Referenced by PreferencesDialog(), and UpdateDisplayData().

◆ OnFileFormatChanged()

void PreferencesDialog::OnFileFormatChanged ( wxCommandEvent &  e)
protected

event handler if default file format was changed

Definition at line 1256 of file PreferencesDialog.cpp.

References UpdateFileFormatControls().

Referenced by PreferencesDialog().

◆ OnHelp()

void PreferencesDialog::OnHelp ( wxCommandEvent &  e)
protected

Definition at line 270 of file PreferencesDialog.cpp.

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

Referenced by PreferencesDialog().

◆ OnOk()

void PreferencesDialog::OnOk ( wxCommandEvent &  e)
protected

Definition at line 264 of file PreferencesDialog.cpp.

References threshold(), and UpdateConfigData().

Referenced by PreferencesDialog().

◆ OnProcessorChanged()

void PreferencesDialog::OnProcessorChanged ( wxCommandEvent &  e)
protected

event handler if processor was changed

Definition at line 1271 of file PreferencesDialog.cpp.

References UpdateProcessorControls().

Referenced by PreferencesDialog().

◆ OnRawTherapeeExe()

void PreferencesDialog::OnRawTherapeeExe ( wxCommandEvent &  e)
protected

Definition at line 330 of file PreferencesDialog.cpp.

References threshold().

Referenced by PreferencesDialog().

◆ OnRestoreDefaults()

void PreferencesDialog::OnRestoreDefaults ( wxCommandEvent &  e)
protected

◆ OnRotationCheckBox()

void PreferencesDialog::OnRotationCheckBox ( wxCommandEvent &  e)
protected

Definition at line 275 of file PreferencesDialog.cpp.

References EnableRotationCtrls().

Referenced by PreferencesDialog().

◆ OnUpdateOutputFilename()

void PreferencesDialog::OnUpdateOutputFilename ( wxCommandEvent &  e)
protected

event handler to update preview for project filename

Definition at line 1320 of file PreferencesDialog.cpp.

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

Referenced by PreferencesDialog().

◆ OnUpdateProjectFilename()

void PreferencesDialog::OnUpdateProjectFilename ( wxCommandEvent &  e)
protected

event handler to update preview for project filename

Definition at line 1313 of file PreferencesDialog.cpp.

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

Referenced by PreferencesDialog().

◆ OnUserDefinedOutputOptionsCheckBox()

void PreferencesDialog::OnUserDefinedOutputOptionsCheckBox ( wxCommandEvent &  e)
protected

Definition at line 1327 of file PreferencesDialog.cpp.

References threshold().

Referenced by PreferencesDialog(), and UpdateDisplayData().

◆ UpdateBlenderControls()

void PreferencesDialog::UpdateBlenderControls ( )
private

Definition at line 1304 of file PreferencesDialog.cpp.

References MY_G_CHOICE_VAL, and threshold().

Referenced by OnBlenderChanged(), and UpdateDisplayData().

◆ UpdateConfigData()

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 980 of file PreferencesDialog.cpp.

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

Referenced by OnOk().

◆ UpdateDisplayData()

void PreferencesDialog::UpdateDisplayData ( int  panel)

Config to Window.

Parameters
panelto 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 555 of file PreferencesDialog.cpp.

References cpdetector_config_edit, DEBUG_DEBUG, DEBUG_WARN, hugin_utils::doubleTowxString(), EnableRotationCtrls(), CPDetectorConfig::FillControl(), hugin_utils::floori(), 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_BLENDER, 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_EXIFTOOL_CREATE_GPANO, 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_START, HUGIN_PROCESSOR_VERBOSE, HUGIN_SHOW_PROJECTION_HINTS, HUGIN_SMART_UNDO, HUGIN_TIFF_COMPRESSION, HUGIN_USE_EXIFTOOL, m_CPDetectorList, MY_BOOL_VAL, MY_CHOICE_VAL, MY_SELECTED_CHOICE_VAL, MY_SPIN_VAL, MY_STR_VAL, OnExifTool(), OnUserDefinedOutputOptionsCheckBox(), hugin_utils::roundi(), SelectListValue(), threshold(), UpdateBlenderControls(), UpdateFileFormatControls(), and UpdateProcessorControls().

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

◆ UpdateFileFormatControls()

void PreferencesDialog::UpdateFileFormatControls ( )
private

Definition at line 1261 of file PreferencesDialog.cpp.

References MY_G_CHOICE_VAL, and threshold().

Referenced by OnFileFormatChanged(), and UpdateDisplayData().

◆ UpdateProcessorControls()

void PreferencesDialog::UpdateProcessorControls ( )
private

Member Data Documentation

◆ cpdetector_config_edit

CPDetectorConfig PreferencesDialog::cpdetector_config_edit
private

◆ m_CPDetectorList

wxListBox* PreferencesDialog::m_CPDetectorList
private

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