Skip to content

Commit

Permalink
Debug clap resize
Browse files Browse the repository at this point in the history
  • Loading branch information
asb2m10 committed Jul 6, 2024
1 parent 2f5f094 commit cc5665b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,3 +499,8 @@ void DexedAudioProcessorEditor::filesDropped (const StringArray &files, int x, i
"Related to file \'"+fn.toStdString()+"\', an unknown exception occured.");
};
}

void DexedAudioProcessorEditor::setSize(int w, int h) {
TRACE("******************** new size %d %d bound %d %d", w, h, getX(), getY());
Component::setBounds(0, 0, w, h);
}
6 changes: 4 additions & 2 deletions Source/PluginEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DexedAudioProcessorEditor : public AudioProcessorEditor, public ComboBox:
public:
DexedAudioProcessor *processor;
GlobalEditor global;

DexedAudioProcessorEditor (DexedAudioProcessor* ownerFilter);
~DexedAudioProcessorEditor();
virtual void timerCallback() override;
Expand All @@ -62,9 +62,11 @@ class DexedAudioProcessorEditor : public AudioProcessorEditor, public ComboBox:

virtual bool isInterestedInFileDrag (const StringArray &files) override;
virtual void filesDropped (const StringArray &files, int x, int y ) override;

static const int WINDOW_SIZE_X = 866;
static const int WINDOW_SIZE_Y = 674;

void setSize (int w, int h);
};


Expand Down

0 comments on commit cc5665b

Please sign in to comment.