mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
FrmLog change.
In detail mode, the window does not close, but switches to group mode.
This commit is contained in:
parent
65eef54d6a
commit
615f2b13cb
2 changed files with 13 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ EVT_BUTTON(ID_DEL_UFilter, frmLog::OnDelUFilter)
|
|||
EVT_COMBOBOX(ID_CBOX_UFilter, frmLog::OnChangeUFilter)
|
||||
EVT_COMBOBOX(ID_CBOX_SMART, frmLog::OnChangeSmart)
|
||||
EVT_SET_FOCUS(frmLog::OnSetFocus)
|
||||
EVT_CLOSE(frmLog::OnClose)
|
||||
EVT_KILL_FOCUS(frmLog::OnKillFocus)
|
||||
EVT_ACTIVATE(frmLog::OnActivate)
|
||||
wxEND_EVENT_TABLE()
|
||||
|
|
@ -68,6 +69,17 @@ void frmLog::OnKillFocus(wxFocusEvent& event) {
|
|||
seticon(false);
|
||||
|
||||
}
|
||||
void frmLog::OnClose(wxCloseEvent& event) {
|
||||
if (event.CanVeto()&& detail->IsChecked())
|
||||
{
|
||||
my_view->setGroupMode(true);
|
||||
detail->SetValue(false);
|
||||
//detail->Enable(event.IsChecked());
|
||||
event.Veto();
|
||||
return;
|
||||
}
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
// Class declarations
|
||||
void frmLog::OnClearAllFilter(wxCommandEvent& event) {
|
||||
|
|
|
|||
|
|
@ -130,6 +130,7 @@ private:
|
|||
|
||||
void OnSetFocus(wxFocusEvent& event);
|
||||
void OnKillFocus(wxFocusEvent& event);
|
||||
void OnClose(wxCloseEvent& event);
|
||||
void OnActivate(wxActivateEvent& event);
|
||||
void OnTimer(wxTimerEvent& event);
|
||||
void seticon(bool errflag);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue