| 3 | #include <wx/dataview.h> |
| 4 | |
| 5 | class PluginDataViewCtrl final : public wxDataViewCtrl |
| 6 | { |
| 7 | friend class PluginsDataViewCtrlAx; |
| 8 | friend class PluginDataViewRenderer; |
| 9 | |
| 10 | void Init(); |
| 11 | public: |
| 12 | template<typename... Args> |
| 13 | PluginDataViewCtrl(Args&&... args) |
| 14 | : wxDataViewCtrl(std::forward<Args>(args)...) |
| 15 | { |
| 16 | Init(); |
| 17 | } |
| 18 | |
| 19 | #if defined(wxHAS_GENERIC_DATAVIEWCTRL) |
| 20 | int GetFirstVisibleRow() const; |
| 21 | int GetLastVisibleRow() const; |
| 22 | int GetRowAt(const wxPoint& point) const; |
| 23 | #endif |
| 24 | |
| 25 | #if wxUSE_ACCESSIBILITY |
| 26 | wxAccessible* CreateAccessible() override; |
| 27 | #endif |
| 28 | |
| 29 | private: |
| 30 | #if defined(wxHAS_GENERIC_DATAVIEWCTRL) |
| 31 | void OnTableCharHook(wxKeyEvent& evt); |
| 32 | |
| 33 | void SetFocus() override; |
| 34 | #endif |
| 35 | |
| 36 | void OnCharEvent(wxKeyEvent& evt); |
| 37 | |
| 38 | |
| 39 | DECLARE_EVENT_TABLE() |
| 40 | }; |