#include <parameterdropdown.h>
Public Member Functions | |
virtual void | setValue (const Parameter &value) override |
void | setSelectedIndex (int selectedIndex) |
int | getSelectedIndex () |
void | setItems (const std::vector< std::string > &items) |
![]() | |
const std::string | getDisplayName () const |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
Signal< int > | indexChanged |
Signal< const std::vector< std::string > & > | itemsChanged |
std::vector< std::string > | mItems |
Property: 'Items' items of this dropdown. More... | |
int | mSelectedIndex = 0 |
Property: 'SelectedIndex' selected index of this dropdown. More... | |
![]() | |
std::string | mName |
Property 'Name': The name of this property. The name is separate from the ID and doesn't have to be unique. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Parameter that acts as a dropdown menu, holds an array of string values and a selected index
int getSelectedIndex | ( | ) |
Gets the selected index
void setItems | ( | const std::vector< std::string > & | items | ) |
Sets the items of the dropdown menu
void setSelectedIndex | ( | int | selectedIndex | ) |
Sets the selected index
selectedIndex | the selected index |
|
overridevirtual |
Set the value for this parameter from another parameter
value | The parameter to set the value from |
Implements Parameter.
Signal<int> indexChanged |
Signal<const std::vector<std::string>&> itemsChanged |
std::vector<std::string> mItems |
Property: 'Items' items of this dropdown.
int mSelectedIndex = 0 |
Property: 'SelectedIndex' selected index of this dropdown.