Audacity 3.2.0
PluginDataViewCtrl.h
Go to the documentation of this file.
1#pragma once
2
3#include <wx/dataview.h>
4
5class PluginDataViewCtrl final : public wxDataViewCtrl
6{
9
10 void Init();
11public:
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
29private:
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};
void OnCharEvent(wxKeyEvent &evt)
friend class PluginsDataViewCtrlAx
PluginDataViewCtrl(Args &&... args)
void SetFocus(const WindowPlacement &focus)
Set the window that accepts keyboard input.
Definition: BasicUI.h:392
STL namespace.