Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ChangeImageVariableDialog.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
10 /* This is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public
12  * License as published by the Free Software Foundation; either
13  * version 2 of the License, or (at your option) any later version.
14  *
15  * This software is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public
21  * License along with this software. If not, see
22  * <http://www.gnu.org/licenses/>.
23  *
24  */
25 
26 #ifndef _PARSEIMAGEVARIABLEDIALOG_H
27 #define _PARSEIMAGEVARIABLEDIALOG_H
28 
29 #include "panoinc_WX.h"
30 #include "panoinc.h"
31 
33 class ImageVariablesExpressionDialog : public wxDialog
34 {
35 public:
37  ImageVariablesExpressionDialog(wxWindow *parent, HuginBase::Panorama* pano);
40  std::string GetExpression();
41 
42 protected:
44  void OnOk(wxCommandEvent & e);
46  void OnLoad(wxCommandEvent & e);
48  void OnSave(wxCommandEvent & e);
50  void OnDelete(wxCommandEvent & e);
52  void OnTest(wxCommandEvent & e);
54  void OnTextChange(wxCommandEvent & e);
55 private:
56  void SetExpression(const wxString& s);
58  wxChoice* m_presetsList;
59  wxTextCtrl* m_textInput;
60  wxFileConfig* m_presets;
62 };
63 
64 #endif //_PARSEIMAGEVARIABLEDIALOG_H
void OnOk(wxCommandEvent &e)
Saves current expression when closing dialog with Ok.
void OnLoad(wxCommandEvent &e)
loads the selected preset into control
include file for the hugin project
Model for a panorama.
Definition: Panorama.h:152
ImageVariablesExpressionDialog(wxWindow *parent, HuginBase::Panorama *pano)
Constructor, read from xrc ressource; restore last uses settings and position.
void OnTextChange(wxCommandEvent &e)
text change event, used to format text
~ImageVariablesExpressionDialog()
destructor, saves position
Dialog for editing expression to change image variables.
include file for the hugin project
void OnDelete(wxCommandEvent &e)
deletes the seletected preset
void OnSave(wxCommandEvent &e)
saves the current expression as preset
void OnTest(wxCommandEvent &e)
tests the current expression