ImageVariablesExpressionDialog Class Reference

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

#include <ChangeImageVariableDialog.h>

List of all members.

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
wxChoice * m_presetsList
wxTextCtrl * m_textInput
wxFileConfig * m_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 ( wxWindow *  parent,
HuginBase::Panorama pano 
)

Constructor, read from xrc ressource; restore last uses settings and position.

ImageVariablesExpressionDialog::~ImageVariablesExpressionDialog (  ) 

destructor, saves position

Definition at line 85 of file ChangeImageVariableDialog.cpp.

References m_presets, and StoreFramePosition().


Member Function Documentation

std::string ImageVariablesExpressionDialog::GetExpression (  ) 

Definition at line 107 of file ChangeImageVariableDialog.cpp.

References m_textInput.

Referenced by PanoOperation::ImageVariablesExpressionOperation::GetInternalCommand(), and OnTest().

void ImageVariablesExpressionDialog::OnDelete ( wxCommandEvent &  e  )  [protected]

deletes the seletected preset

Definition at line 183 of file ChangeImageVariableDialog.cpp.

References m_presets, and m_presetsList.

void ImageVariablesExpressionDialog::OnLoad ( wxCommandEvent &  e  )  [protected]

loads the selected preset into control

Definition at line 121 of file ChangeImageVariableDialog.cpp.

References m_presets, m_presetsList, and SetExpression().

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

Saves current expression when closing dialog with Ok.

Definition at line 112 of file ChangeImageVariableDialog.cpp.

References m_textInput, and StoreFramePosition().

void ImageVariablesExpressionDialog::OnSave ( wxCommandEvent &  e  )  [protected]

saves the current expression as preset

Definition at line 141 of file ChangeImageVariableDialog.cpp.

References m_presets, m_presetsList, and m_textInput.

void ImageVariablesExpressionDialog::OnTest ( wxCommandEvent &  e  )  [protected]

tests the current expression

Definition at line 199 of file ChangeImageVariableDialog.cpp.

References HuginBase::Panorama::duplicate(), GetExpression(), m_pano, Parser::PanoParseExpression(), RestoreFramePosition(), and StoreFramePosition().

void ImageVariablesExpressionDialog::OnTextChange ( wxCommandEvent &  e  )  [protected]

text change event, used to format text

Definition at line 225 of file ChangeImageVariableDialog.cpp.

References m_textAttrDefault, m_textAttrInactive, and m_textInput.

Referenced by SetExpression().

void ImageVariablesExpressionDialog::SetExpression ( const wxString &  s  )  [private]

Definition at line 91 of file ChangeImageVariableDialog.cpp.

References m_textInput, and OnTextChange().

Referenced by OnLoad().


Member Data Documentation

HuginBase::Panorama* ImageVariablesExpressionDialog::m_pano [private]

Definition at line 57 of file ChangeImageVariableDialog.h.

Referenced by OnTest().

wxFileConfig* ImageVariablesExpressionDialog::m_presets [private]

Definition at line 60 of file ChangeImageVariableDialog.h.

Referenced by OnDelete(), OnLoad(), OnSave(), and ~ImageVariablesExpressionDialog().

wxChoice* ImageVariablesExpressionDialog::m_presetsList [private]

Definition at line 58 of file ChangeImageVariableDialog.h.

Referenced by OnDelete(), OnLoad(), and OnSave().

wxTextAttr ImageVariablesExpressionDialog::m_textAttrDefault [private]

Definition at line 61 of file ChangeImageVariableDialog.h.

Referenced by OnTextChange().

wxTextAttr ImageVariablesExpressionDialog::m_textAttrInactive [private]

Definition at line 61 of file ChangeImageVariableDialog.h.

Referenced by OnTextChange().

wxTextCtrl* ImageVariablesExpressionDialog::m_textInput [private]

Definition at line 59 of file ChangeImageVariableDialog.h.

Referenced by GetExpression(), OnOk(), OnSave(), OnTextChange(), and SetExpression().


The documentation for this class was generated from the following files:
Generated on 20 Apr 2018 for Hugintrunk by  doxygen 1.4.7