JUCE Designer
 All Classes Functions Variables
EnumerationPropertyComponent Class Reference

PropertyComponent that shows a multiple selection popup. More...

Inheritance diagram for EnumerationPropertyComponent:
TextWithButtonPropertyComponent

Public Member Functions

 EnumerationPropertyComponent (const Value &ValueToControl, const String &propertyName, Array< Enumeration * > *enumerations)
 Creates a multiple selection property component from an array of Enumeration (struct) objects.
 
void buttonClicked (Button *buttonThatWasClicked)
 Called when the user clicks the button.
 
- Public Member Functions inherited from TextWithButtonPropertyComponent
 TextWithButtonPropertyComponent (const Value &ValueToControl, const String &propertyName)
 Creates a PropertyComponent with an editable Label and a TextButton on the right.
 
void resized ()
 Called automatically to resize child components.
 

Additional Inherited Members

- Public Attributes inherited from TextWithButtonPropertyComponent
TextButton * button
 Pointer to TextButton object.
 
Label * textLabel
 Pointer to Label object.
 

Detailed Description

PropertyComponent that shows a multiple selection popup.

Used to allow the user set an enum based property

Inherits TextWithButtonPropertyComponent.

Definition at line 31 of file EnumerationPropertyComponent.cpp.

Constructor & Destructor Documentation

EnumerationPropertyComponent::EnumerationPropertyComponent ( const Value &  ValueToControl,
const String &  propertyName,
Array< Enumeration * > *  enumerations 
)
inline

Creates a multiple selection property component from an array of Enumeration (struct) objects.

See Also
TextWithButtonPropertyComponent, Constructor::getEnumerationsOf, Enumeration
Parameters
ValueToControlValue reference to control.
propertyNameString containing the display name for this PropertyComponent.
enumerationsArray<Enumeration*> pointer to Enumeration list.

Definition at line 43 of file EnumerationPropertyComponent.cpp.

Member Function Documentation

void EnumerationPropertyComponent::buttonClicked ( Button *  buttonThatWasClicked)
inlinevirtual

Called when the user clicks the button.

Shows a popup containing the ticked enumerations.

Implements TextWithButtonPropertyComponent.

Definition at line 63 of file EnumerationPropertyComponent.cpp.

References TextWithButtonPropertyComponent::button, and TextWithButtonPropertyComponent::textLabel.


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