- Close wxLogWindow automatically if it's the last remaining top level window.
- Implement clipping for wxSVGFileDC (Steve Benbow).
- Add wxDirCtrl::GetPath() (troelsk).
-- Add wxEVT_COMMAND_DIRCTRL_CHANGED event (troelsk).
+- Add wxEVT_DIRCTRL_SELECTIONCHANGED event (troelsk).
- Add wxControl::GetSizeFromTextSize() (Manuel Martin).
- Optionally allow showing tooltips for disabled ribbon buttons (wxBen).
- Add wxTL_NO_HEADER style to wxTreeListCtrl (robboto).
wxDECLARE_NO_COPY_CLASS(wxGenericDirCtrl);
};
-wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_DIRCTRL_CHANGED, wxTreeEvent );
+wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_DIRCTRL_SELECTIONCHANGED, wxTreeEvent );
-#define EVT_DIRCTRL_CHANGED(id, fn) \
- wx__DECLARE_EVT1(wxEVT_DIRCTRL_CHANGED, id, wxTreeEventHandler(fn))
+#define wx__DECLARE_DIRCTRL_EVT(evt, id, fn) \
+ wx__DECLARE_EVT1(wxEVT_DIRCTRL_ ## evt, id, wxTreeEventHandler(fn))
+
+#define EVT_DIRCTRL_SELECTIONCHANGED(id, fn) wx__DECLARE_DIRCTRL_EVT(SELECTIONCHANGED, id, fn)
//-----------------------------------------------------------------------------
// wxDirFilterListCtrl
#endif // wxUSE_DIRDLG || wxUSE_FILEDLG || wxUSE_FILECTRL
// old wxEVT_COMMAND_* constants
-#define wxEVT_COMMAND_DIRCTRL_CHANGED wxEVT_DIRCTRL_CHANGED
+#define wxEVT_COMMAND_DIRCTRL_SELECTIONCHANGED wxEVT_DIRCTRL_SELECTIONCHANGED
#endif
// _WX_DIRCTRLG_H_
@library{wxcore}
@category{ctrl}
@appearance{genericdirctrl}
- @event{EVT_DIRCTRL_CHANGED(id, func)}
+ @event{EVT_DIRCTRL_SELECTIONCHANGED(id, func)}
Selected directory has changed.
- Processes a @c wxEVT_DIRCTRL_CHANGED event type.
+ Processes a @c wxEVT_DIRCTRL_SELECTIONCHANGED event type.
Notice that this event is generated even for the changes done by the
program itself and not only those done by the user.
@since 2.9.5
void FillFilterList(const wxString& filter, int defaultFilter);
};
-wxEventType wxEVT_DIRCTRL_CHANGED;
+wxEventType wxEVT_DIRCTRL_SELECTIONCHANGED;
EVT_BUTTON(DirCtrlPage_SetPath, DirCtrlWidgetsPage::OnButtonSetPath)
EVT_CHECKBOX(wxID_ANY, DirCtrlWidgetsPage::OnCheckBox)
EVT_RADIOBOX(wxID_ANY, DirCtrlWidgetsPage::OnRadioBox)
- EVT_DIRCTRL_CHANGED(DirCtrlPage_Ctrl, DirCtrlWidgetsPage::OnSelChanged)
+ EVT_DIRCTRL_SELECTIONCHANGED(DirCtrlPage_Ctrl, DirCtrlWidgetsPage::OnSelChanged)
END_EVENT_TABLE()
// ============================================================================
// events
// ----------------------------------------------------------------------------
-wxDEFINE_EVENT( wxEVT_DIRCTRL_CHANGED, wxTreeEvent );
+wxDEFINE_EVENT( wxEVT_DIRCTRL_SELECTIONCHANGED, wxTreeEvent );
// ----------------------------------------------------------------------------
// wxGetAvailableDrives, for WINDOWS, DOS, OS2, MAC, UNIX (returns "/")
void wxGenericDirCtrl::OnTreeSelChange(wxTreeEvent &event)
{
- wxTreeEvent changedEvent(wxEVT_DIRCTRL_CHANGED, GetId());
+ wxTreeEvent changedEvent(wxEVT_DIRCTRL_SELECTIONCHANGED, GetId());
changedEvent.SetEventObject(this);
changedEvent.SetItem(event.GetItem());