mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-02 03:20:06 +00:00
Added an alpha setting to Components with Component::setAlpha(). Removed Component::fadeOutComponent method and instead refactored the ComponentAnimator class to provide fading in and out of the alpha level. Added a method Desktop::getAnimator() that provides a global instance of a ComponentAnimator so that there's no need to create your own.
This commit is contained in:
parent
e299011789
commit
4e1c66b02e
58 changed files with 1088 additions and 1054 deletions
|
|
@ -34,10 +34,6 @@ BEGIN_JUCE_NAMESPACE
|
|||
//==============================================================================
|
||||
class TextPropLabel : public Label
|
||||
{
|
||||
TextPropertyComponent& owner;
|
||||
int maxChars;
|
||||
bool isMultiline;
|
||||
|
||||
public:
|
||||
TextPropLabel (TextPropertyComponent& owner_,
|
||||
const int maxChars_, const bool isMultiline_)
|
||||
|
|
@ -52,14 +48,9 @@ public:
|
|||
setColour (outlineColourId, findColour (ComboBox::outlineColourId));
|
||||
}
|
||||
|
||||
~TextPropLabel()
|
||||
{
|
||||
}
|
||||
|
||||
TextEditor* createEditorComponent()
|
||||
{
|
||||
TextEditor* const textEditor = Label::createEditorComponent();
|
||||
|
||||
textEditor->setInputRestrictions (maxChars);
|
||||
|
||||
if (isMultiline)
|
||||
|
|
@ -75,6 +66,11 @@ public:
|
|||
{
|
||||
owner.textWasEdited();
|
||||
}
|
||||
|
||||
private:
|
||||
TextPropertyComponent& owner;
|
||||
int maxChars;
|
||||
bool isMultiline;
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -99,7 +95,6 @@ TextPropertyComponent::TextPropertyComponent (const Value& valueToControl,
|
|||
|
||||
TextPropertyComponent::~TextPropertyComponent()
|
||||
{
|
||||
deleteAllChildren();
|
||||
}
|
||||
|
||||
void TextPropertyComponent::setText (const String& newText)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue