commit bc445accb325e3a4696179977ec4c36113f7b2ef
parent 1f6871a4af6ba8e805efab4695d38edadd64e940
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Thu, 1 Aug 2024 19:34:01 +0200
templates for new UI classes
Diffstat:
9 files changed, 101 insertions(+), 0 deletions(-)
diff --git a/source/nord/n2x/n2xJucePlugin/CMakeLists.txt b/source/nord/n2x/n2xJucePlugin/CMakeLists.txt
@@ -3,8 +3,12 @@ cmake_minimum_required(VERSION 3.15)
project(n2xJucePlugin VERSION ${CMAKE_PROJECT_VERSION})
set(SOURCES
+ n2xArp.cpp n2xArp.h
n2xController.cpp n2xController.h
n2xEditor.cpp n2xEditor.h
+ n2xLcd.cpp n2xLcd.h
+ n2xPart.cpp n2xPart.h
+ n2xParts.cpp n2xParts.h
n2xPatchManager.cpp n2xPatchManager.h
n2xPluginEditorState.cpp n2xPluginEditorState.h
n2xPluginProcessor.cpp n2xPluginProcessor.h
diff --git a/source/nord/n2x/n2xJucePlugin/n2xArp.cpp b/source/nord/n2x/n2xJucePlugin/n2xArp.cpp
@@ -0,0 +1,8 @@
+#include "n2xArp.h"
+
+namespace n2xJucePlugin
+{
+ Arp::Arp(Editor& _editor) : m_editor(_editor)
+ {
+ }
+}
diff --git a/source/nord/n2x/n2xJucePlugin/n2xArp.h b/source/nord/n2x/n2xJucePlugin/n2xArp.h
@@ -0,0 +1,15 @@
+#pragma once
+
+namespace n2xJucePlugin
+{
+ class Editor;
+
+ class Arp
+ {
+ public:
+ explicit Arp(Editor& _editor);
+
+ private:
+ Editor& m_editor;
+ };
+}
+\ No newline at end of file
diff --git a/source/nord/n2x/n2xJucePlugin/n2xLcd.cpp b/source/nord/n2x/n2xJucePlugin/n2xLcd.cpp
@@ -0,0 +1,8 @@
+#include "n2xLcd.h"
+
+namespace n2xJucePlugin
+{
+ Lcd::Lcd(Editor& _editor): m_editor(_editor)
+ {
+ }
+}
diff --git a/source/nord/n2x/n2xJucePlugin/n2xLcd.h b/source/nord/n2x/n2xJucePlugin/n2xLcd.h
@@ -0,0 +1,15 @@
+#pragma once
+
+namespace n2xJucePlugin
+{
+ class Editor;
+
+ class Lcd
+ {
+ public:
+ explicit Lcd(Editor& _editor);
+
+ private:
+ Editor& m_editor;
+ };
+}
+\ No newline at end of file
diff --git a/source/nord/n2x/n2xJucePlugin/n2xPart.cpp b/source/nord/n2x/n2xJucePlugin/n2xPart.cpp
@@ -0,0 +1,9 @@
+#include "n2xPart.h"
+#include "n2xEditor.h"
+
+namespace n2xJucePlugin
+{
+ Part::Part(Editor& _editor, const std::string& _name, const ButtonStyle _buttonStyle) : PartButton(_editor, _name, _buttonStyle), m_editor(_editor)
+ {
+ }
+}
diff --git a/source/nord/n2x/n2xJucePlugin/n2xPart.h b/source/nord/n2x/n2xJucePlugin/n2xPart.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "jucePluginEditorLib/partbutton.h"
+
+namespace n2xJucePlugin
+{
+ class Editor;
+
+ class Part : public jucePluginEditorLib::PartButton<juce::DrawableButton>
+ {
+ public:
+ Part(Editor& _editor, const std::string& _name, ButtonStyle _buttonStyle);
+
+ private:
+ Editor& m_editor;
+ };
+}
diff --git a/source/nord/n2x/n2xJucePlugin/n2xParts.cpp b/source/nord/n2x/n2xJucePlugin/n2xParts.cpp
@@ -0,0 +1,8 @@
+#include "n2xParts.h"
+
+namespace n2xJucePlugin
+{
+ Parts::Parts(Editor& _editor): m_editor(_editor)
+ {
+ }
+}
diff --git a/source/nord/n2x/n2xJucePlugin/n2xParts.h b/source/nord/n2x/n2xJucePlugin/n2xParts.h
@@ -0,0 +1,15 @@
+#pragma once
+
+namespace n2xJucePlugin
+{
+ class Editor;
+
+ class Parts
+ {
+ public:
+ explicit Parts(Editor& _editor);
+
+ private:
+ Editor& m_editor;
+ };
+}