class EE::UI::WidgetCommandExecuter

#include <widgetcommandexecuter.hpp>

class WidgetCommandExecuter {
public:
    // typedefs

    typedef std::function<void()> CommandCallback;

    // construction

    WidgetCommandExecuter(const KeyBindings& keybindings);

    // methods

    void setCommand(const std::string& name, const CommandCallback& cb);
    bool hasCommand(const std::string& name) const;
    void execute(const std::string& command);
    size_t commandCount() const;
    KeyBindings& getKeyBindings();
    const std::vector<std::string>& getCommandList() const;
};