openshot-audio  0.1.7
Public Member Functions | List of all members
ButtonPropertyComponent Class Referenceabstract

#include <juce_ButtonPropertyComponent.h>

Inheritance diagram for ButtonPropertyComponent:
Button::Listener

Public Member Functions

 ButtonPropertyComponent (const String &propertyName, bool triggerOnMouseDown)
 
 ~ButtonPropertyComponent ()
 
virtual void buttonClicked ()=0
 
virtual String getButtonText () const =0
 
void refresh ()
 
void buttonClicked (Button *)
 

Detailed Description

A PropertyComponent that contains a button.

This type of property component can be used if you need a button to trigger some kind of action.

See Also
PropertyComponent

Constructor & Destructor Documentation

ButtonPropertyComponent::ButtonPropertyComponent ( const String propertyName,
bool  triggerOnMouseDown 
)

Creates a button component.

Parameters
propertyNamethe property name to be passed to the PropertyComponent
triggerOnMouseDownthis is passed to the Button::setTriggeredOnMouseDown() method
ButtonPropertyComponent::~ButtonPropertyComponent ( )

Destructor.

Member Function Documentation

virtual void ButtonPropertyComponent::buttonClicked ( )
pure virtual

Called when the user clicks the button.

void ButtonPropertyComponent::buttonClicked ( Button )
virtual

Called when the button is clicked.

Implements Button::Listener.

virtual String ButtonPropertyComponent::getButtonText ( ) const
pure virtual

Returns the string that should be displayed in the button.

If you need to change this string, call refresh() to update the component.

void ButtonPropertyComponent::refresh ( )

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