branch: 2012.0
details: http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/hgroot/hugin/hugin/rev/d1f59973b64c
changeset: 5974:d1f59973b64c
user: tmodes
date: Sun Aug 26 12:58:21 2012 +0200
description:
Added TextKillFocusHandler to projection parameter text fields
diffstat:
src/hugin1/hugin/GLPreviewFrame.cpp | 5 +++++
src/hugin1/hugin/PreviewFrame.cpp | 6 ++++++
2 files changed, 11 insertions(+), 0 deletions(-)
diffs (52 lines):
diff -r 917b114fe3bd -r d1f59973b64c src/hugin1/hugin/GLPreviewFrame.cpp
--- a/src/hugin1/hugin/GLPreviewFrame.cpp Sun Aug 26 12:18:38 2012 +0200
+++ b/src/hugin1/hugin/GLPreviewFrame.cpp Sun Aug 26 12:58:21 2012 +0200
@@ -655,6 +655,7 @@
5); // border width
m_projParamTextCtrl[i] = new wxTextCtrl(m_projection_panel, PROJ_PARAM_VAL_ID+i, _("0"),
wxDefaultPosition, wxSize(35,-1), wxTE_PROCESS_ENTER);
+ m_projParamTextCtrl[i]->PushEventHandler(new TextKillFocusHandler(this));
m_projParamSizer->Add(m_projParamTextCtrl[i],
0, // not vertically strechable
wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, // draw border all around
@@ -810,6 +811,10 @@
m_ToggleButtons[i]->PopEventHandler(true);
m_GroupToggleButtons[i]->PopEventHandler(true);
}
+ for (int i=0; i < PANO_PROJECTION_MAX_PARMS; i++)
+ {
+ m_projParamTextCtrl[i]->PopEventHandler(true);
+ };
m_pano.removeObserver(this);
// deinitialize the frame manager
diff -r 917b114fe3bd -r d1f59973b64c src/hugin1/hugin/PreviewFrame.cpp
--- a/src/hugin1/hugin/PreviewFrame.cpp Sun Aug 26 12:18:38 2012 +0200
+++ b/src/hugin1/hugin/PreviewFrame.cpp Sun Aug 26 12:58:21 2012 +0200
@@ -44,6 +44,7 @@
#include "hugin/PreviewPanel.h"
#include "hugin/ImagesPanel.h"
#include "hugin/CommandHistory.h"
+#include "hugin/TextKillFocusHandler.h"
#include <vigra_ext/ImageTransforms.h>
@@ -314,6 +315,7 @@
5); // border width
m_projParamTextCtrl[i] = new wxTextCtrl(this, PROJ_PARAM_VAL_ID+i, wxT("0"),
wxDefaultPosition, wxSize(35,-1), wxTE_PROCESS_ENTER);
+ m_projParamTextCtrl[i]->PushEventHandler(new TextKillFocusHandler(this));
m_projParamSizer->Add(m_projParamTextCtrl[i],
0, // not vertically strechable
wxALL | wxALIGN_CENTER_VERTICAL, // draw border all around
@@ -406,6 +408,10 @@
bool checked = m_ToolBar->GetToolState(XRCID("preview_auto_update_tool"));
config->Write(wxT("/PreviewFrame/autoUpdate"), checked ? 1l: 0l);
config->Write(wxT("/PreviewFrame/blendMode"), m_BlendModeChoice->GetSelection());
+ for (int i=0; i < PANO_PROJECTION_MAX_PARMS; i++)
+ {
+ m_projParamTextCtrl[i]->PopEventHandler(true);
+ };
m_pano.removeObserver(this);
DEBUG_TRACE("dtor end");
}
|