7#ifndef __HDI_CORE_LIST_ENTRY__
8#define __HDI_CORE_LIST_ENTRY__
68 const std::string& id_,
69 const std::string& value_,
217 friend pui::BaseEntryData* __accessImpl(
const ListEntry&);
229 void* __impl()
const;
232 typedef std::unique_ptr<ListEntry> ListEntryUP;
233 typedef std::shared_ptr<ListEntry> ListEntrySP;
234 typedef std::weak_ptr<ListEntry> ListEntryWP;
236 extern pui::BaseEntryData* __accessImpl(
const ListEntry&);
Allows combo boxes, popups, and lists to store more data than simply strings and indices.
Definition: hdicoreListEntry.h:25
virtual void *const userData() const
Gets the custom data of an entry.
virtual bool operator==(const ListEntry &rhs_) const
Tests whether a given ListEntry object is the same as another.
virtual ListEntry & operator=(const ListEntry &rhs_)
Assigns one ListEntry object to another.
virtual bool editable() const
Gets the editability of the entry (whether the user can edit it inline)
virtual std::string entryID() const
Gets the ID string of an entry.
ListEntry()
Constructs an empty ListEntry object.
virtual ~ListEntry()
Destructs a ListEntry object.
ListEntry(const std::string &id_, const std::string &value_, void *userData_, const bool enabled_, const bool editable_)
Constructs a ListEntry object with some custom data.
virtual std::string value() const
Gets the string value of an entry (what the user sees in the popup/list/etc.)
virtual bool enabled() const
Gets whether the entry should be enabled (selectable by the user in the popup/list/etc....
virtual void setEditable(const bool editable_)
Sets the editability of the entry (whether the user can edit it inline)
virtual void setValue(const std::string &value_)
Sets the string value of an entry (what the user sees in the popup/list/etc.)
ListEntry(const ListEntry &e_)
Constructs a new ListEntry object from an existing ListEntry object (copy constructor)
virtual bool operator!=(const ListEntry &rhs_) const
Tests whether a given ListEntry object is not the same as another.
virtual void setUserData(void *data_)
Sets the custom data of an entry.
virtual void setEnabled(const bool enabled_)
Sets whether the entry should be enabled (selectable by the user in the popup/list/etc....
virtual void setEntryID(const std::string &id_)
Sets the ID string of an entry.
static const char * separatorValue
When you want a separator in a container widget, create a ListEntry object with this as its value.
Definition: hdicoreListEntry.h:31
virtual bool isEmpty() const
Gets whether the target ListEntry object is empty (constructed with the default ctor)
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.