Commit b4310462 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

Try to add enter support

parent aef8110c
......@@ -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() )
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment