Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Types | Public Member Functions | Static Public Member Functions | List of all members
editor::component::PeoplemonSelector Class Reference

Special combobox for Peoplemon ids. More...

#include <PeoplemonSelector.hpp>

+ Inheritance diagram for editor::component::PeoplemonSelector:

Public Types

using Ptr = std::shared_ptr< PeoplemonSelector >
 

Public Member Functions

core::pplmn::Id currentPeoplemon () const
 Returns the currently selected peoplemon. More...
 
void setPeoplemon (core::pplmn::Id id)
 Sets the currently selected Peoplemon. More...
 
void refresh ()
 Refreshes the list of peoplemon. More...
 

Static Public Member Functions

static Ptr create (bool allowUnknown=false)
 Creates a new peoplemon selector. More...
 

Detailed Description

Special combobox for Peoplemon ids.

Definition at line 17 of file PeoplemonSelector.hpp.

Member Typedef Documentation

◆ Ptr

Definition at line 19 of file PeoplemonSelector.hpp.

Member Function Documentation

◆ create()

PeoplemonSelector::Ptr editor::component::PeoplemonSelector::create ( bool  allowUnknown = false)
static

Creates a new peoplemon selector.

Parameters
allowUnknownAllows Unknown/None option to be selected

Definition at line 8 of file PeoplemonSelector.cpp.

◆ currentPeoplemon()

core::pplmn::Id editor::component::PeoplemonSelector::currentPeoplemon ( ) const

Returns the currently selected peoplemon.

Definition at line 16 of file PeoplemonSelector.cpp.

◆ refresh()

void editor::component::PeoplemonSelector::refresh ( )

Refreshes the list of peoplemon.

Definition at line 37 of file PeoplemonSelector.cpp.

◆ setPeoplemon()

void editor::component::PeoplemonSelector::setPeoplemon ( core::pplmn::Id  id)

Sets the currently selected Peoplemon.

Definition at line 21 of file PeoplemonSelector.cpp.


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