openshot-audio
0.1.6
|
#include <juce_TextPropertyComponent.h>
Classes | |
class | LabelComp |
Public Types | |
enum | ColourIds { backgroundColourId = 0x100e401, textColourId = 0x100e402, outlineColourId = 0x100e403 } |
![]() | |
enum | ColourIds { backgroundColourId = 0x1008300, labelTextColourId = 0x1008301 } |
Public Member Functions | |
TextPropertyComponent (const Value &valueToControl, const String &propertyName, int maxNumChars, bool isMultiLine) | |
~TextPropertyComponent () | |
virtual void | setText (const String &newText) |
virtual String | getText () const |
void | refresh () |
![]() | |
PropertyComponent (const String &propertyName, int preferredHeight=25) | |
~PropertyComponent () | |
int | getPreferredHeight () const noexcept |
void | setPreferredHeight (int newHeight) noexcept |
void | paint (Graphics &) override |
void | resized () override |
void | enablementChanged () override |
![]() | |
virtual | ~SettableTooltipClient () |
virtual void | setTooltip (const String &newTooltip) |
virtual String | getTooltip () |
![]() | |
virtual | ~TooltipClient () |
Protected Member Functions | |
TextPropertyComponent (const String &propertyName, int maxNumChars, bool isMultiLine) | |
![]() | |
SettableTooltipClient () | |
Friends | |
class | LabelComp |
Additional Inherited Members | |
![]() | |
int | preferredHeight |
A PropertyComponent that shows its value as editable text.
A set of colour IDs to use to change the colour of various aspects of the component.
These constants can be used either via the Component::setColour(), or LookAndFeel::setColour() methods.
|
protected |
Creates a text property component.
The maxNumChars is used to set the length of string allowable, and isMultiLine sets whether the text editor allows carriage returns.
TextPropertyComponent::TextPropertyComponent | ( | const Value & | valueToControl, |
const String & | propertyName, | ||
int | maxNumChars, | ||
bool | isMultiLine | ||
) |
Creates a text property component.
The maxNumChars is used to set the length of string allowable, and isMultiLine sets whether the text editor allows carriage returns.
TextPropertyComponent::~TextPropertyComponent | ( | ) |
Destructor.
|
virtual |
Returns the text that should be shown in the text editor.
|
virtual |
Updates the property component if the item it refers to has changed.
A subclass must implement this method, and other objects may call it to force it to refresh itself.
The subclass should be economical in the amount of work is done, so for example it should check whether it really needs to do a repaint rather than just doing one every time this method is called, as it may be called when the value being displayed hasn't actually changed.
Implements PropertyComponent.
Called when the user edits the text.
Your subclass must use this callback to change the value of whatever item this property component represents.
|
friend |