Try to add enter support
This commit is contained in:
parent
aef8110c36
commit
b431046277
@ -214,6 +214,8 @@ cmMainFrame::cmMainFrame(const wxString& title, const wxSize& size)
|
|||||||
(wxObjectEventFunction) &cmMainFrame::OnBinarySelected );
|
(wxObjectEventFunction) &cmMainFrame::OnBinarySelected );
|
||||||
this->ConnectEvent( this->m_PathBinary, wxEVT_COMMAND_TEXT_UPDATED,
|
this->ConnectEvent( this->m_PathBinary, wxEVT_COMMAND_TEXT_UPDATED,
|
||||||
(wxObjectEventFunction) &cmMainFrame::OnBinaryUpdated );
|
(wxObjectEventFunction) &cmMainFrame::OnBinaryUpdated );
|
||||||
|
this->ConnectEvent( this->m_PathBinary, wxEVT_COMMAND_TEXT_ENTER,
|
||||||
|
(wxObjectEventFunction) &cmMainFrame::OnBinaryAccepted );
|
||||||
this->ConnectEvent( this->m_GeneratorMenu, wxEVT_COMMAND_COMBOBOX_SELECTED,
|
this->ConnectEvent( this->m_GeneratorMenu, wxEVT_COMMAND_COMBOBOX_SELECTED,
|
||||||
(wxObjectEventFunction) &cmMainFrame::OnGeneratorSelected );
|
(wxObjectEventFunction) &cmMainFrame::OnGeneratorSelected );
|
||||||
this->ConnectEvent( this->m_GeneratorMenu, wxEVT_COMMAND_TEXT_UPDATED,
|
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&)
|
void cmMainFrame::OnBinarySelected(wxCommandEvent&)
|
||||||
{
|
{
|
||||||
if ( this->BuildDirectoryChanged() )
|
if ( this->BuildDirectoryChanged() )
|
||||||
|
@ -60,6 +60,7 @@ public:
|
|||||||
void OnBrowseBinary(wxCommandEvent& event);
|
void OnBrowseBinary(wxCommandEvent& event);
|
||||||
void OnBinarySelected(wxCommandEvent& event);
|
void OnBinarySelected(wxCommandEvent& event);
|
||||||
void OnBinaryUpdated(wxCommandEvent& event);
|
void OnBinaryUpdated(wxCommandEvent& event);
|
||||||
|
void OnBinaryAccepted(wxCommandEvent& event);
|
||||||
void OnShowAdvancedValues(wxCommandEvent& event);
|
void OnShowAdvancedValues(wxCommandEvent& event);
|
||||||
void OnResize(wxSizeEvent& event);
|
void OnResize(wxSizeEvent& event);
|
||||||
void OnPropertyChanged(wxEvent& event);
|
void OnPropertyChanged(wxEvent& event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user