Audacity 3.2.0
VSTControl.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 VSTControl.h
6
7 Leland Lucius
8
9**********************************************************************/
10
11#ifndef AUDACITY_VSTCONTROL_H
12#define AUDACITY_VSTCONTROL_H
13
14#include <wx/control.h> // to inherit
15
16#include "VSTWrapper.h" // for VSTLink
17
18class VSTControlBase /* not final */ : public wxControl
19{
20public:
22 {
23 mParent = NULL;
24 mLink = NULL;
25 }
26
28 {
29 }
30
31 virtual bool Create(wxWindow *parent, VSTLink *link)
32 {
33 mParent = parent;
34 mLink = link;
35
36 if (!wxControl::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNO_BORDER | wxTAB_TRAVERSAL, wxDefaultValidator, wxEmptyString))
37 {
38 return false;
39 }
40
41 return true;
42 }
43
44protected:
45 wxWindow *mParent;
47};
48
49#endif
virtual ~VSTControlBase()
Definition: VSTControl.h:27
wxWindow * mParent
Definition: VSTControl.h:45
virtual bool Create(wxWindow *parent, VSTLink *link)
Definition: VSTControl.h:31
VSTLink * mLink
Definition: VSTControl.h:46