Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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. More...
 
 ~ImageVariablesExpressionDialog ()
 destructor, saves position More...
 
std::string GetExpression ()
 

Protected Member Functions

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

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 
)
ImageVariablesExpressionDialog::~ImageVariablesExpressionDialog ( )

destructor, saves position

Definition at line 83 of file ChangeImageVariableDialog.cpp.

References m_presets, and StoreFramePosition().

Member Function Documentation

std::string ImageVariablesExpressionDialog::GetExpression ( )
void ImageVariablesExpressionDialog::OnDelete ( wxCommandEvent &  e)
protected

deletes the seletected preset

Definition at line 181 of file ChangeImageVariableDialog.cpp.

References m_presets, and m_presetsList.

Referenced by ImageVariablesExpressionDialog().

void ImageVariablesExpressionDialog::OnLoad ( wxCommandEvent &  e)
protected

loads the selected preset into control

Definition at line 119 of file ChangeImageVariableDialog.cpp.

References m_presets, m_presetsList, and SetExpression().

Referenced by ImageVariablesExpressionDialog().

void ImageVariablesExpressionDialog::OnOk ( wxCommandEvent &  e)
protected

Saves current expression when closing dialog with Ok.

Definition at line 110 of file ChangeImageVariableDialog.cpp.

References m_textInput, and StoreFramePosition().

Referenced by ImageVariablesExpressionDialog().

void ImageVariablesExpressionDialog::OnSave ( wxCommandEvent &  e)
protected

saves the current expression as preset

Definition at line 139 of file ChangeImageVariableDialog.cpp.

References m_presets, m_presetsList, and m_textInput.

Referenced by ImageVariablesExpressionDialog().

void ImageVariablesExpressionDialog::OnTest ( wxCommandEvent &  e)
protected
void ImageVariablesExpressionDialog::OnTextChange ( wxCommandEvent &  e)
protected

text change event, used to format text

Definition at line 224 of file ChangeImageVariableDialog.cpp.

References m_textAttrDefault, m_textAttrInactive, and m_textInput.

Referenced by ImageVariablesExpressionDialog(), and SetExpression().

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

Definition at line 89 of file ChangeImageVariableDialog.cpp.

References m_textInput, and OnTextChange().

Referenced by ImageVariablesExpressionDialog(), and OnLoad().

Member Data Documentation

HuginBase::Panorama* ImageVariablesExpressionDialog::m_pano
private

Definition at line 57 of file ChangeImageVariableDialog.h.

Referenced by ImageVariablesExpressionDialog(), and OnTest().

wxFileConfig* ImageVariablesExpressionDialog::m_presets
private
wxChoice* ImageVariablesExpressionDialog::m_presetsList
private
wxTextAttr ImageVariablesExpressionDialog::m_textAttrDefault
private

Definition at line 61 of file ChangeImageVariableDialog.h.

Referenced by ImageVariablesExpressionDialog(), and OnTextChange().

wxTextAttr ImageVariablesExpressionDialog::m_textAttrInactive
private

Definition at line 61 of file ChangeImageVariableDialog.h.

Referenced by ImageVariablesExpressionDialog(), and OnTextChange().

wxTextCtrl* ImageVariablesExpressionDialog::m_textInput
private

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