summaryrefslogtreecommitdiffstats
path: root/Source/WXDialog
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-09 20:26:02 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-09 20:26:02 (GMT)
commitb431046277922ad4f1dc8a40516311641fda14d0 (patch)
tree60c78af27315b51068ed9c37af8492554150437e /Source/WXDialog
parentaef8110c36773c11283f998c38998d364be9b054 (diff)
downloadCMake-b431046277922ad4f1dc8a40516311641fda14d0.zip
CMake-b431046277922ad4f1dc8a40516311641fda14d0.tar.gz
CMake-b431046277922ad4f1dc8a40516311641fda14d0.tar.bz2
Try to add enter support
Diffstat (limited to 'Source/WXDialog')
-rw-r--r--Source/WXDialog/cmWXMainFrame.cxx7
-rw-r--r--Source/WXDialog/cmWXMainFrame.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/WXDialog/cmWXMainFrame.cxx b/Source/WXDialog/cmWXMainFrame.cxx
index c478f83..f163f45 100644
--- a/Source/WXDialog/cmWXMainFrame.cxx
+++ b/Source/WXDialog/cmWXMainFrame.cxx
@@ -214,6 +214,8 @@ cmMainFrame::cmMainFrame(const wxString& title, const wxSize& size)
(wxObjectEventFunction) &cmMainFrame::OnBinarySelected );
this->ConnectEvent( this->m_PathBinary, wxEVT_COMMAND_TEXT_UPDATED,
(wxObjectEventFunction) &cmMainFrame::OnBinaryUpdated );
+ this->ConnectEvent( this->m_PathBinary, wxEVT_COMMAND_TEXT_ENTER,
+ (wxObjectEventFunction) &cmMainFrame::OnBinaryAccepted );
this->ConnectEvent( this->m_GeneratorMenu, wxEVT_COMMAND_COMBOBOX_SELECTED,
(wxObjectEventFunction) &cmMainFrame::OnGeneratorSelected );
this->ConnectEvent( this->m_GeneratorMenu, wxEVT_COMMAND_TEXT_UPDATED,
@@ -1191,6 +1193,11 @@ void cmMainFrame::ClearCache()
}
+void cmMainFrame::OnBinaryAccepted(wxCommandEvent& event)
+{
+ std::cout << "Pressed enter in binary field" << std::endl;
+}
+
void cmMainFrame::OnBinarySelected(wxCommandEvent&)
{
if ( this->BuildDirectoryChanged() )
diff --git a/Source/WXDialog/cmWXMainFrame.h b/Source/WXDialog/cmWXMainFrame.h
index 9c92858..865530d 100644
--- a/Source/WXDialog/cmWXMainFrame.h
+++ b/Source/WXDialog/cmWXMainFrame.h
@@ -60,6 +60,7 @@ public:
void OnBrowseBinary(wxCommandEvent& event);
void OnBinarySelected(wxCommandEvent& event);
void OnBinaryUpdated(wxCommandEvent& event);
+ void OnBinaryAccepted(wxCommandEvent& event);
void OnShowAdvancedValues(wxCommandEvent& event);
void OnResize(wxSizeEvent& event);
void OnPropertyChanged(wxEvent& event);