Audacity 3.2.0
Classes | Enumerations | Functions
VSTEditor.cpp File Reference
#include "VSTEditor.h"
#include "VSTInstance.h"
#include <wx/app.h>
#include <wx/dialog.h>
#include <wx/file.h>
#include <wx/recguard.h>
#include <wx/sizer.h>
#include <wx/scrolwin.h>
#include <wx/stattext.h>
#include <wx/timer.h>
#include "ShuttleGui.h"
#include "../../widgets/NumericTextCtrl.h"
#include "VSTControlMSW.h"
Include dependency graph for VSTEditor.cpp:

Go to the source code of this file.

Classes

class  VSTTimer
 

Enumerations

enum  { ID_Duration = 20000 , ID_Sliders = 21000 }
 

Functions

 wxDEFINE_EVENT (EVT_SIZEWINDOW, wxCommandEvent)
 
 DEFINE_LOCAL_EVENT_TYPE (EVT_UPDATEDISPLAY)
 
static void OnSize (wxSizeEvent &evt)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_Duration 
ID_Sliders 

Definition at line 79 of file VSTEditor.cpp.

80{
81 ID_Duration = 20000,
82 ID_Sliders = 21000,
83};
@ ID_Duration
Definition: VSTEditor.cpp:81
@ ID_Sliders
Definition: VSTEditor.cpp:82

Function Documentation

◆ DEFINE_LOCAL_EVENT_TYPE()

DEFINE_LOCAL_EVENT_TYPE ( EVT_UPDATEDISPLAY  )

◆ OnSize()

static void OnSize ( wxSizeEvent &  evt)
static

Definition at line 224 of file VSTEditor.cpp.

225{
226 evt.Skip();
227
228 // Once the parent dialog reaches its final size as indicated by
229 // a non-default minimum size, we set the maximum size to match.
230 // This is a bit of a hack to prevent VSTs GUI windows from resizing
231 // there's no real reason to allow it. But, there should be a better
232 // way of handling it.
233 wxWindow *w = (wxWindow *) evt.GetEventObject();
234 wxSize sz = w->GetMinSize();
235
236 if (sz != wxDefaultSize)
237 {
238 w->SetMaxSize(sz);
239 }
240}

Referenced by VSTEditor::BuildFancy(), and DependencyDialog::OnSize().

Here is the caller graph for this function:

◆ wxDEFINE_EVENT()

wxDEFINE_EVENT ( EVT_SIZEWINDOW  ,
wxCommandEvent   
)