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

The playlist editor and chooser. More...

#include <PlaylistEditorWindow.hpp>

Public Types

using SelectedCb = std::function< void(const std::string &)>
 
using CancelCb = std::function< void()>
 

Public Member Functions

 PlaylistEditorWindow (const SelectedCb &onSelect, const CancelCb &onCancel)
 Creates the playlist editor. More...
 
void open (bl::gui::GUI *gui, const std::string &plist)
 Opens the window with an optional file to load. More...
 

Detailed Description

The playlist editor and chooser.

Definition at line 16 of file PlaylistEditorWindow.hpp.

Member Typedef Documentation

◆ CancelCb

Definition at line 19 of file PlaylistEditorWindow.hpp.

◆ SelectedCb

using editor::component::PlaylistEditorWindow::SelectedCb = std::function<void(const std::string&)>

Definition at line 18 of file PlaylistEditorWindow.hpp.

Constructor & Destructor Documentation

◆ PlaylistEditorWindow()

editor::component::PlaylistEditorWindow::PlaylistEditorWindow ( const SelectedCb onSelect,
const CancelCb onCancel 
)

Creates the playlist editor.

Parameters
onSelectCalled when a playlist is selected
onCancelCalled when the window is closed with no selection

Definition at line 12 of file PlaylistEditorWindow.cpp.

Member Function Documentation

◆ open()

void editor::component::PlaylistEditorWindow::open ( bl::gui::GUI *  gui,
const std::string &  plist 
)

Opens the window with an optional file to load.

Parameters
guiThe main gui object
plistThe playlist to load

Definition at line 88 of file PlaylistEditorWindow.cpp.


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