JUCE Designer
 All Classes Functions Variables
TextWithButtonPropertyComponent Class Referenceabstract

Virtual PropertyComponent with small TextButton on the right. More...

Inheritance diagram for TextWithButtonPropertyComponent:
EnumerationPropertyComponent FilePropertyComponent JUCED_ColourPropertyComponent

Public Member Functions

 TextWithButtonPropertyComponent (const Value &ValueToControl, const String &propertyName)
 Creates a PropertyComponent with an editable Label and a TextButton on the right.
 
virtual void buttonClicked (Button *button)=0
 Virtual function called when the user clicks the TextButton.
 
void resized ()
 Called automatically to resize child components.
 

Public Attributes

TextButton * button
 Pointer to TextButton object.
 
Label * textLabel
 Pointer to Label object.
 

Detailed Description

Virtual PropertyComponent with small TextButton on the right.

This class cannot be declared directly, other classes inherits from this one.

Inherits TextPropertyComponent, Button::Listener.

Inherited by ColourPropertyComponent

Definition at line 25 of file TextWithButtonPropertyComponent.h.

Constructor & Destructor Documentation

TextWithButtonPropertyComponent::TextWithButtonPropertyComponent ( const Value &  ValueToControl,
const String &  propertyName 
)

Creates a PropertyComponent with an editable Label and a TextButton on the right.

Parameters
ValueToControlValue reference to control.
propertyNameString containing the display name for this PropertyComponent.

Definition at line 13 of file TextWithButtonPropertyComponent.cpp.

References button, resized(), and textLabel.

Member Function Documentation

virtual void TextWithButtonPropertyComponent::buttonClicked ( Button *  button)
pure virtual

Virtual function called when the user clicks the TextButton.

Implemented in EnumerationPropertyComponent, JUCED_ColourPropertyComponent, and FilePropertyComponent.

void TextWithButtonPropertyComponent::resized ( )

Called automatically to resize child components.

If reimplemented, use TextWithButtonPropertyComponent::resized() to inherit default resizing.

Definition at line 30 of file TextWithButtonPropertyComponent.cpp.

References button, and textLabel.

Referenced by TextWithButtonPropertyComponent().

Member Data Documentation

TextButton* TextWithButtonPropertyComponent::button

The documentation for this class was generated from the following files: