MCPcopy Create free account
hub / github.com/audacity/audacity / TreeCtrlAx

Class TreeCtrlAx

src/prefs/PrefsDialog.cpp:106–171  ·  view source on GitHub ↗

Define a custom class

Source from the content-addressed store, hash-verified

104
105// Define a custom class
106class TreeCtrlAx final
107 : public WindowAccessible
108{
109public:
110 TreeCtrlAx(wxTreeCtrl * ctrl);
111 virtual ~ TreeCtrlAx();
112
113 wxAccStatus GetChild(int childId, wxAccessible** child) override;
114
115 wxAccStatus GetChildCount(int* childCount) override;
116
117 wxAccStatus GetDefaultAction(int childId, wxString *actionName) override;
118
119 // Returns the description for this object or a child.
120 wxAccStatus GetDescription(int childId, wxString *description) override;
121
122 // Gets the window with the keyboard focus.
123 // If childId is 0 and child is NULL, no object in
124 // this subhierarchy has the focus.
125 // If this object has the focus, child should be 'this'.
126 wxAccStatus GetFocus(int *childId, wxAccessible **child) override;
127
128 // Returns help text for this object or a child, similar to tooltip text.
129 wxAccStatus GetHelpText(int childId, wxString *helpText) override;
130
131 // Returns the keyboard shortcut for this object or child.
132 // Return e.g. ALT+K
133 wxAccStatus GetKeyboardShortcut(int childId, wxString *shortcut) override;
134
135 // Returns the rectangle for this object (id = 0) or a child element (id > 0).
136 // rect is in screen coordinates.
137 wxAccStatus GetLocation(wxRect& rect, int elementId) override;
138
139 // Gets the name of the specified object.
140 wxAccStatus GetName(int childId, wxString *name) override;
141
142 // Returns a role constant.
143 wxAccStatus GetRole(int childId, wxAccRole *role) override;
144
145 // Gets a variant representing the selected children
146 // of this object.
147 // Acceptable values:
148 // - a null variant (IsNull() returns TRUE)
149 // - a list variant (GetType() == wxT("list"))
150 // - an integer representing the selected child element,
151 // or 0 if this object is selected (GetType() == wxT("long"))
152 // - a "void*" pointer to a wxAccessible child object
153 //wxAccStatus GetSelections(wxVariant *selections) override;
154 // leave unimplemented
155
156 // Returns a state constant.
157 wxAccStatus GetState(int childId, long* state) override;
158
159 // Returns a localized string representing the value for the object
160 // or child.
161 wxAccStatus GetValue(int childId, wxString* strValue) override;
162
163 // Navigates from fromId to toId/toObject

Callers 1

PrefsDialogMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected