ChangeImageVariableDialog.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00010 /*  This is free software; you can redistribute it and/or
00011  *  modify it under the terms of the GNU General Public
00012  *  License as published by the Free Software Foundation; either
00013  *  version 2 of the License, or (at your option) any later version.
00014  *
00015  *  This software is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  *  Lesser General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU General Public
00021  *  License along with this software. If not, see
00022  *  <http://www.gnu.org/licenses/>.
00023  *
00024  */
00025 
00026 #ifndef _PARSEIMAGEVARIABLEDIALOG_H
00027 #define _PARSEIMAGEVARIABLEDIALOG_H
00028 
00029 #include "panoinc_WX.h"
00030 #include "panoinc.h"
00031 
00033 class ImageVariablesExpressionDialog : public wxDialog
00034 {
00035 public:
00037     ImageVariablesExpressionDialog(wxWindow *parent, HuginBase::Panorama* pano);
00039     ~ImageVariablesExpressionDialog();
00040     std::string GetExpression();
00041 
00042 protected:
00044     void OnOk(wxCommandEvent & e);
00046     void OnLoad(wxCommandEvent & e);
00048     void OnSave(wxCommandEvent & e);
00050     void OnDelete(wxCommandEvent & e);
00052     void OnTest(wxCommandEvent & e);
00054     void OnTextChange(wxCommandEvent & e);
00055 private:
00056     void SetExpression(const wxString& s);
00057     HuginBase::Panorama* m_pano;
00058     wxChoice* m_presetsList;
00059     wxTextCtrl* m_textInput;
00060     wxFileConfig* m_presets;
00061     wxTextAttr m_textAttrInactive, m_textAttrDefault;
00062 
00063     DECLARE_EVENT_TABLE()
00064 };
00065 
00066 #endif //_PARSEIMAGEVARIABLEDIALOG_H

Generated on 23 Apr 2018 for Hugintrunk by  doxygen 1.4.7