|
|
|
@@ -41,7 +41,7 @@ public: |
|
|
|
|
|
|
|
bool isInterestedInFileDrag (const StringArray&) override
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
return interestedInFileDrag;
|
|
|
|
}
|
|
|
|
|
|
|
|
void filesDropped (const StringArray& files, int, int) override
|
|
|
|
@@ -77,10 +77,16 @@ public: |
|
|
|
repaint();
|
|
|
|
}
|
|
|
|
|
|
|
|
void setInterestedInFileDrag (bool isInterested)
|
|
|
|
{
|
|
|
|
interestedInFileDrag = isInterested;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
TextPropertyComponent& owner;
|
|
|
|
int maxChars;
|
|
|
|
bool isMultiline;
|
|
|
|
bool interestedInFileDrag = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
@@ -169,3 +175,9 @@ void TextPropertyComponent::colourChanged() |
|
|
|
PropertyComponent::colourChanged();
|
|
|
|
textEditor->updateColours();
|
|
|
|
}
|
|
|
|
|
|
|
|
void TextPropertyComponent::setInterestedInFileDrag (bool isInterested)
|
|
|
|
{
|
|
|
|
if (textEditor != nullptr)
|
|
|
|
textEditor->setInterestedInFileDrag (isInterested);
|
|
|
|
}
|