summaryrefslogtreecommitdiffstats
path: root/Source/WXDialog/cmWXMainFrame.cxx
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/cmWXMainFrame.cxx
parentaef8110c36773c11283f998c38998d364be9b054 (diff)
downloadCMake-b431046277922ad4f1dc8a40516311641fda14d0.zip
CMake-b431046277922ad4f1dc8a40516311641fda14d0.tar.gz
CMake-b431046277922ad4f1dc8a40516311641fda14d0.tar.bz2
Try to add enter support
Diffstat (limited to 'Source/WXDialog/cmWXMainFrame.cxx')
-rw-r--r--Source/WXDialog/cmWXMainFrame.cxx7
1 files changed, 7 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() )