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

Dialog for editing expression to change image variables. More...

#include <ChangeImageVariableDialog.h>

Inheritance diagram for ImageVariablesExpressionDialog:
Inheritance graph

Public Member Functions

 ImageVariablesExpressionDialog (wxWindow *parent, HuginBase::Panorama *pano)
 Constructor, read from xrc ressource; restore last uses settings and position.
 
 ~ImageVariablesExpressionDialog ()
 destructor, saves position
 
std::string GetExpression ()
 

Protected Member Functions

void OnOk (wxCommandEvent &e)
 Saves current expression when closing dialog with Ok.
 
void OnLoad (wxCommandEvent &e)
 loads the selected preset into control
 
void OnSave (wxCommandEvent &e)
 saves the current expression as preset
 
void OnDelete (wxCommandEvent &e)
 deletes the seletected preset
 
void OnTest (wxCommandEvent &e)
 tests the current expression
 
void OnTextChange (wxCommandEvent &e)
 text change event, used to format text
 

Private Member Functions

void SetExpression (const wxString &s)
 

Private Attributes

HuginBase::Panoramam_pano
 
wxChoicem_presetsList
 
wxTextCtrl * m_textInput
 
wxFileConfigm_presets
 
wxTextAttr m_textAttrInactive
 
wxTextAttr m_textAttrDefault
 

Detailed Description

Dialog for editing expression to change image variables.

Definition at line 33 of file ChangeImageVariableDialog.h.

Constructor & Destructor Documentation

◆ ImageVariablesExpressionDialog()

ImageVariablesExpressionDialog::ImageVariablesExpressionDialog ( wxWindow *  parent,
HuginBase::Panorama pano 
)

◆ ~ImageVariablesExpressionDialog()

ImageVariablesExpressionDialog::~ImageVariablesExpressionDialog ( )

destructor, saves position

Definition at line 77 of file ChangeImageVariableDialog.cpp.

References m_presets, and hugin_utils::StoreFramePosition().

Member Function Documentation

◆ GetExpression()

std::string ImageVariablesExpressionDialog::GetExpression ( )

Definition at line 99 of file ChangeImageVariableDialog.cpp.

References m_textInput, and threshold().

Referenced by OnTest().

◆ OnDelete()

void ImageVariablesExpressionDialog::OnDelete ( wxCommandEvent &  e)
protected

deletes the seletected preset

Definition at line 170 of file ChangeImageVariableDialog.cpp.

References m_presets, m_presetsList, and threshold().

Referenced by ImageVariablesExpressionDialog().

◆ OnLoad()

void ImageVariablesExpressionDialog::OnLoad ( wxCommandEvent &  e)
protected

loads the selected preset into control

Definition at line 113 of file ChangeImageVariableDialog.cpp.

References m_presets, m_presetsList, SetExpression(), and threshold().

Referenced by ImageVariablesExpressionDialog().

◆ OnOk()

void ImageVariablesExpressionDialog::OnOk ( wxCommandEvent &  e)
protected

Saves current expression when closing dialog with Ok.

Definition at line 104 of file ChangeImageVariableDialog.cpp.

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

Referenced by ImageVariablesExpressionDialog().

◆ OnSave()

void ImageVariablesExpressionDialog::OnSave ( wxCommandEvent &  e)
protected

saves the current expression as preset

Definition at line 133 of file ChangeImageVariableDialog.cpp.

References hugin_utils::HuginMessageBox(), m_presets, m_presetsList, m_textInput, and threshold().

Referenced by ImageVariablesExpressionDialog().

◆ OnTest()

void ImageVariablesExpressionDialog::OnTest ( wxCommandEvent &  e)
protected

◆ OnTextChange()

void ImageVariablesExpressionDialog::OnTextChange ( wxCommandEvent &  e)
protected

text change event, used to format text

Definition at line 213 of file ChangeImageVariableDialog.cpp.

References m_textAttrDefault, m_textAttrInactive, m_textInput, and threshold().

Referenced by ImageVariablesExpressionDialog(), and SetExpression().

◆ SetExpression()

void ImageVariablesExpressionDialog::SetExpression ( const wxString s)
private

Definition at line 83 of file ChangeImageVariableDialog.cpp.

References m_textInput, OnTextChange(), and threshold().

Referenced by ImageVariablesExpressionDialog(), and OnLoad().

Member Data Documentation

◆ m_pano

HuginBase::Panorama* ImageVariablesExpressionDialog::m_pano
private

Definition at line 57 of file ChangeImageVariableDialog.h.

Referenced by ImageVariablesExpressionDialog(), and OnTest().

◆ m_presets

wxFileConfig* ImageVariablesExpressionDialog::m_presets
private

◆ m_presetsList

wxChoice* ImageVariablesExpressionDialog::m_presetsList
private

◆ m_textAttrDefault

wxTextAttr ImageVariablesExpressionDialog::m_textAttrDefault
private

Definition at line 61 of file ChangeImageVariableDialog.h.

Referenced by ImageVariablesExpressionDialog(), and OnTextChange().

◆ m_textAttrInactive

wxTextAttr ImageVariablesExpressionDialog::m_textAttrInactive
private

Definition at line 61 of file ChangeImageVariableDialog.h.

Referenced by ImageVariablesExpressionDialog(), and OnTextChange().

◆ m_textInput

wxTextCtrl* ImageVariablesExpressionDialog::m_textInput
private

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