Initial work on VST editor UI

This commit is contained in:
Jack Andersen
2016-06-10 14:47:02 -10:00
parent fd0dd8922a
commit 6f7a7405d7
6 changed files with 304 additions and 29 deletions

View File

@@ -1,7 +1,11 @@
#ifndef __AMUSE_VSTEDITOR_HPP__
#define __AMUSE_VSTEDITOR_HPP__
#include <vst36/aeffeditor.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <commctrl.h>
#include "aeffeditor.h"
namespace amuse
{
@@ -11,12 +15,38 @@ class VSTBackend;
class VSTEditor : public AEffEditor
{
VSTBackend& m_backend;
ERect m_windowRect = {10, 10, 410, 520};
ERect m_windowRect = {0, 0, 520, 800};
HWND m_rootView;
HWND m_collectionListView;
HWND m_groupFileListView;
HWND m_groupListView;
HWND m_pageListView;
static LRESULT CALLBACK WindowProc(
_In_ HWND hwnd,
_In_ UINT uMsg,
_In_ WPARAM wParam,
_In_ LPARAM lParam
);
static LRESULT CALLBACK ColHeaderWindowProc(
_In_ HWND hwnd,
_In_ UINT uMsg,
_In_ WPARAM wParam,
_In_ LPARAM lParam
);
public:
VSTEditor(VSTBackend& backend);
bool getRect(ERect** rect);
bool open(void* ptr);
void close();
void update();
void selectCollection(int idx);
void selectGroupFile(int idx);
void selectGroup(int idx);
void selectPage(int idx);
};
}