Skip to content

Commit

Permalink
minor debugging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vsicurella committed Jul 8, 2024
1 parent a30bfb7 commit 43439c4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Source/LumatoneEditorState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ LumatoneEditorState::LumatoneEditorState(juce::ValueTree stateIn, LumatoneFirmwa
: LumatoneApplicationState(stateIn, driverIn, undoManagerIn)
, editSelectionState(name + "_EditSelection", state)
{
// DBG(name + " LumatoneEditorState created");
appFonts = std::make_shared<LumatoneEditorFontLibrary>();
lookAndFeel = std::make_shared<LumatoneEditorLookAndFeel>(*appFonts, true);

Expand All @@ -68,11 +69,13 @@ LumatoneEditorState::LumatoneEditorState(juce::String name, const LumatoneEditor
, propertiesFile(stateIn.propertiesFile)
, colourPalettes(stateIn.colourPalettes)
{
// DBG(name + " LumatoneEditorState created");
}

LumatoneEditorState::LumatoneEditorState(const LumatoneEditorState &stateIn)
: LumatoneEditorState(stateIn.name + "Copy", stateIn)
{
// DBG(name + " LumatoneEditorState created");
}

LumatoneEditorState::~LumatoneEditorState()
Expand All @@ -84,6 +87,8 @@ LumatoneEditorState::~LumatoneEditorState()
propertiesFile = nullptr;
lookAndFeel = nullptr;
appFonts = nullptr;

// DBG(name + " LumatoneEditorState deleted");
}

float LumatoneEditorState::getRoundedRectCornerSize() const
Expand Down
2 changes: 2 additions & 0 deletions Source/data/LumatoneEditSelectionState.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
Created: 6 June 2024
Author: Vito
Holds the key property values that are active in a key assignment controller
==============================================================================
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/mapping_editors/KeySelectionController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "../actions/KeySelectionControlActions.h"

KeySelectionController::KeySelectionController(const LumatoneEditorState &stateIn, LumatoneKeyboardComponent *keyboardComponentIn)
: LumatoneEditorState(stateIn)
: LumatoneEditorState("LumatoneKeySelectionController", stateIn)
, LumatoneEditorState::Controller(static_cast<LumatoneEditorState&>(*this))
, keyboardComponent(keyboardComponentIn)
{
Expand Down

0 comments on commit 43439c4

Please sign in to comment.