aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vst/src
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/vst/src')
-rw-r--r--externals/grill/vst/src/EditorThread.cpp61
-rw-r--r--externals/grill/vst/src/EditorThread.h60
-rw-r--r--externals/grill/vst/src/PopupWindow.cpp127
-rw-r--r--externals/grill/vst/src/PopupWindow.h53
-rw-r--r--externals/grill/vst/src/Resource.h16
-rw-r--r--externals/grill/vst/src/StdAfx.cpp8
-rw-r--r--externals/grill/vst/src/StdAfx.h42
-rw-r--r--externals/grill/vst/src/vst.h46
8 files changed, 0 insertions, 413 deletions
diff --git a/externals/grill/vst/src/EditorThread.cpp b/externals/grill/vst/src/EditorThread.cpp
deleted file mode 100644
index 1622d0ca..00000000
--- a/externals/grill/vst/src/EditorThread.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-// EditorThread.cpp : implementation file
-//
-
-#include "stdafx.h"
-#include "vst.h"
-#include "EditorThread.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CEditorThread
-
-IMPLEMENT_DYNCREATE(CEditorThread, CWinThread)
-
-CEditorThread::CEditorThread(): pop(NULL) {}
-
-CEditorThread::~CEditorThread() {}
-
-
-BOOL CEditorThread::InitInstance()
-{
- // SetThreadPriority(THREAD_PRIORITY_LOWEST);
-
- m_pMainWnd = pop = new CPopupWindow;
- pop->SetPlugin( plug); // window class, size etc. is set here!
- return TRUE;
-}
-
-int CEditorThread::ExitInstance()
-{
- // TODO: perform any per-thread cleanup here
- return CWinThread::ExitInstance();
-}
-
-BEGIN_MESSAGE_MAP(CEditorThread, CWinThread)
- //{{AFX_MSG_MAP(CEditorThread)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CEditorThread message handlers
-
-void CEditorThread::SetPlugin(VSTPlugin *p)
-{
- plug = p;
-}
-
-void CEditorThread::Close()
-{
- if(pop) pop->SendMessage(WM_CLOSE);
-}
-
-void CEditorThread::Show(bool show)
-{
- if(pop) pop->ShowWindow(show);
-} \ No newline at end of file
diff --git a/externals/grill/vst/src/EditorThread.h b/externals/grill/vst/src/EditorThread.h
deleted file mode 100644
index cb9b2209..00000000
--- a/externals/grill/vst/src/EditorThread.h
+++ /dev/null
@@ -1,60 +0,0 @@
-#if !defined(AFX_EDITORTHREAD_H__9F3ACE98_7522_400D_9404_DFD67E3D721B__INCLUDED_)
-#define AFX_EDITORTHREAD_H__9F3ACE98_7522_400D_9404_DFD67E3D721B__INCLUDED_
-
-#include "PopupWindow.h" // Added by ClassView
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-// EditorThread.h : header file
-//
-
-class VSTPLugin;
-
-/////////////////////////////////////////////////////////////////////////////
-// CEditorThread thread
-
-class CEditorThread : public CWinThread
-{
- DECLARE_DYNCREATE(CEditorThread)
-protected:
-
-// Attributes
-public:
- CEditorThread(); // protected constructor used by dynamic creation
-
-// Operations
-public:
- void SetPlugin( VSTPlugin *);
-
- void Close();
- void Show(bool show);
-
-// Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CEditorThread)
- public:
- virtual BOOL InitInstance();
- virtual int ExitInstance();
- //}}AFX_VIRTUAL
-
-// Implementation
-protected:
- virtual ~CEditorThread();
-
- VSTPlugin *plug;
- CPopupWindow *pop;
-
- // Generated message map functions
- //{{AFX_MSG(CEditorThread)
- // NOTE - the ClassWizard will add and remove member functions here.
- //}}AFX_MSG
-
- DECLARE_MESSAGE_MAP()
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_EDITORTHREAD_H__9F3ACE98_7522_400D_9404_DFD67E3D721B__INCLUDED_)
diff --git a/externals/grill/vst/src/PopupWindow.cpp b/externals/grill/vst/src/PopupWindow.cpp
deleted file mode 100644
index 92fbabd2..00000000
--- a/externals/grill/vst/src/PopupWindow.cpp
+++ /dev/null
@@ -1,127 +0,0 @@
-// PopupWindow.cpp : implementation file
-//
-
-#include "main.h"
-#include "vst.h"
-#include "PopupWindow.h"
-#include "EditorThread.h"
-#include "VstHost.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-extern CVstApp *theApp;
-
-/////////////////////////////////////////////////////////////////////////////
-// CPopupWindow
-
-IMPLEMENT_DYNCREATE(CPopupWindow, CFrameWnd)
-
-CPopupWindow::CPopupWindow():
- plug(NULL)
-{}
-
-CPopupWindow::~CPopupWindow()
-{
- plug->OnEditorClose();
-}
-
-
-BEGIN_MESSAGE_MAP(CPopupWindow, CFrameWnd)
- //{{AFX_MSG_MAP(CPopupWindow)
- ON_WM_ENTERIDLE()
- ON_WM_TIMER()
- ON_WM_MOVE()
- ON_WM_CLOSE()
- //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CPopupWindow message handlers
-
-void CPopupWindow::OnEnterIdle(UINT nWhy, CWnd* pWho)
-{
- CFrameWnd::OnEnterIdle(nWhy, pWho);
-
- // TODO: Add your message handler code here
- if(plug) plug->EditorIdle();
-}
-
-void CPopupWindow::SetPlugin(VSTPlugin *p)
-{
- plug = p;
-
- char tmp[256];
- sprintf(tmp,"vst~ - %s",plug->GetName());
-
- CreateEx( WS_EX_DLGMODALFRAME,AfxRegisterWndClass(CS_DBLCLKS),tmp,WS_CAPTION|WS_THICKFRAME|WS_POPUP|WS_SYSMENU,0,0,0,0,NULL,NULL,NULL);
-
- plug->Dispatch(effEditOpen , 0 , 0 , m_hWnd , 0.0f );
-/*
- CString str = theApp->GetProfileString( "VSTPos" , plug->GetName() , "10,10");
- int idx = str.Find(",");
- CString x = str.Left( idx );
- CString y = str.Right( idx );
- printf(" index is %d left is %s and right is %s" , idx , x , y);
-*/
-
- DoInit();
-
- RECT r = plug->GetEditorRect();
- SetWindowPos(&wndTop,plug->getX(),plug->getY(),(r.right - r.left) + 10 , r.bottom - r.top + 30 , SWP_SHOWWINDOW);
-// ShowWindow( SW_SHOW );
-// BringWindowToTop();
-// SetFocus();
-}
-
-
-//DEL BOOL CPopupWindow::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
-//DEL {
-//DEL // TODO: Add your specialized code here and/or call the base class
-//DEL
-//DEL return CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext);
-//DEL }
-
-void CPopupWindow::DoInit()
-{
-// printf("DoInit\n");
- plug->Dispatch(effEditTop,0,0, 0,0.0f);
-// printf("Dispatched to the top\n");
- SetTimer(0,25,NULL);
-}
-
-void CPopupWindow::OnTimer(UINT nIDEvent)
-{
- plug->Dispatch(effEditIdle, 0, 0, NULL, 0.0f);
- CFrameWnd::OnTimer(nIDEvent);
-}
-
-void CPopupWindow::OnMove(int x, int y)
-{
- CFrameWnd::OnMove(x, y);
- if(plug) plug->setPos(x,y);
-/*
- {
- char buf[100];
- sprintf( buf , "%d,%d" , x , y );
- theApp->WriteProfileString( "VSTPos" , plug->GetName() , buf );
- }
-*/
-}
-
-
-//DEL void CPopupWindow::OnFinalRelease()
-//DEL {
-//DEL //
-//DEL CFrameWnd::OnFinalRelease();
-//DEL }
-
-void CPopupWindow::OnClose()
-{
- // TODO: Add your message handler code here and/or call default
- plug->StopEditing();
- CFrameWnd::OnClose();
-}
diff --git a/externals/grill/vst/src/PopupWindow.h b/externals/grill/vst/src/PopupWindow.h
deleted file mode 100644
index bacdc23b..00000000
--- a/externals/grill/vst/src/PopupWindow.h
+++ /dev/null
@@ -1,53 +0,0 @@
-#if !defined(AFX_POPUPWINDOW_H__7B1E2281_5085_4F60_8002_5F79B2CAFFE3__INCLUDED_)
-#define AFX_POPUPWINDOW_H__7B1E2281_5085_4F60_8002_5F79B2CAFFE3__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-// PopupWindow.h : header file
-//
-
-class VSTPlugin;
-
-/////////////////////////////////////////////////////////////////////////////
-// CPopupWindow frame
-
-class CPopupWindow : public CFrameWnd
-{
- DECLARE_DYNCREATE(CPopupWindow)
-// Attributes
-public:
- CPopupWindow();
- virtual ~CPopupWindow();
-// Operations
-public:
- void DoInit();
- void SetPlugin(VSTPlugin *p);
-
-// Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CPopupWindow)
- public:
- //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
- VSTPlugin *plug;
-
- // Generated message map functions
- //{{AFX_MSG(CPopupWindow)
- afx_msg void OnEnterIdle(UINT nWhy, CWnd* pWho);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnMove(int x, int y);
- afx_msg void OnClose();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_POPUPWINDOW_H__7B1E2281_5085_4F60_8002_5F79B2CAFFE3__INCLUDED_)
diff --git a/externals/grill/vst/src/Resource.h b/externals/grill/vst/src/Resource.h
deleted file mode 100644
index 422efe23..00000000
--- a/externals/grill/vst/src/Resource.h
+++ /dev/null
@@ -1,16 +0,0 @@
-//{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by VST.RC
-//
-
-// Next default values for new objects
-//
-#ifdef APSTUDIO_INVOKED
-#ifndef APSTUDIO_READONLY_SYMBOLS
-
-#define _APS_NEXT_RESOURCE_VALUE 4000
-#define _APS_NEXT_CONTROL_VALUE 4000
-#define _APS_NEXT_SYMED_VALUE 4000
-#define _APS_NEXT_COMMAND_VALUE 32771
-#endif
-#endif
diff --git a/externals/grill/vst/src/StdAfx.cpp b/externals/grill/vst/src/StdAfx.cpp
deleted file mode 100644
index 68d41b4b..00000000
--- a/externals/grill/vst/src/StdAfx.cpp
+++ /dev/null
@@ -1,8 +0,0 @@
-// stdafx.cpp : source file that includes just the standard includes
-// vst.pch will be the pre-compiled header
-// stdafx.obj will contain the pre-compiled type information
-
-#include "stdafx.h"
-
-
-
diff --git a/externals/grill/vst/src/StdAfx.h b/externals/grill/vst/src/StdAfx.h
deleted file mode 100644
index 280c5d42..00000000
--- a/externals/grill/vst/src/StdAfx.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// stdafx.h : include file for standard system include files,
-// or project specific include files that are used frequently, but
-// are changed infrequently
-//
-
-#if !defined(AFX_STDAFX_H__694C13F1_369D_446F_992D_3F454A0993C6__INCLUDED_)
-#define AFX_STDAFX_H__694C13F1_369D_446F_992D_3F454A0993C6__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
-
-#include <afxwin.h> // MFC core and standard components
-#include <afxext.h> // MFC extensions
-
-#ifndef _AFX_NO_OLE_SUPPORT
-#include <afxole.h> // MFC OLE classes
-#include <afxodlgs.h> // MFC OLE dialog classes
-#include <afxdisp.h> // MFC Automation classes
-#endif // _AFX_NO_OLE_SUPPORT
-
-
-#ifndef _AFX_NO_DB_SUPPORT
-#include <afxdb.h> // MFC ODBC database classes
-#endif // _AFX_NO_DB_SUPPORT
-
-#ifndef _AFX_NO_DAO_SUPPORT
-#include <afxdao.h> // MFC DAO database classes
-#endif // _AFX_NO_DAO_SUPPORT
-
-#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
-#ifndef _AFX_NO_AFXCMN_SUPPORT
-#include <afxcmn.h> // MFC support for Windows Common Controls
-#endif // _AFX_NO_AFXCMN_SUPPORT
-
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_STDAFX_H__694C13F1_369D_446F_992D_3F454A0993C6__INCLUDED_)
diff --git a/externals/grill/vst/src/vst.h b/externals/grill/vst/src/vst.h
deleted file mode 100644
index 63b60b3e..00000000
--- a/externals/grill/vst/src/vst.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// vst.h : main header file for the VST DLL
-//
-
-#if !defined(AFX_VST_H__013CDC75_CDE8_40AD_AE29_D952471B07F5__INCLUDED_)
-#define AFX_VST_H__013CDC75_CDE8_40AD_AE29_D952471B07F5__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-#ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
-#endif
-
-#include "resource.h" // main symbols
-
-/////////////////////////////////////////////////////////////////////////////
-// CVstApp
-// See vst.cpp for the implementation of this class
-//
-
-class CVstApp : public CWinApp
-{
-public:
- CVstApp();
-
-// Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CVstApp)
- //}}AFX_VIRTUAL
-
- //{{AFX_MSG(CVstApp)
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-};
-
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_VST_H__013CDC75_CDE8_40AD_AE29_D952471B07F5__INCLUDED_)
-