#include <SoundChooser.h>
Public Member Functions | |
SoundChooser () | |
std::string | chooseSound () |
Private Member Functions | |
GtkWidget * | createTreeView () |
GtkWidget * | createButtons () |
Static Private Member Functions | |
static gboolean | _onDelete (GtkWidget *w, GdkEvent *e, SoundChooser *self) |
static void | _onOK (GtkWidget *, SoundChooser *) |
static void | _onCancel (GtkWidget *, SoundChooser *) |
static void | _onSelectionChange (GtkTreeSelection *, SoundChooser *) |
Private Attributes | |
GtkWidget * | _widget |
GtkTreeStore * | _treeStore |
GtkTreeSelection * | _treeSelection |
SoundPreview | _preview |
std::string | _selectedSound |
Dialog for listing and selection of sound shaders.
Definition at line 14 of file SoundChooser.h.
ui::SoundChooser::SoundChooser | ( | ) |
Constructor creates widgets.
The parent window.
static void ui::SoundChooser::_onCancel | ( | GtkWidget * | , | |
SoundChooser * | ||||
) | [static, private] |
static gboolean ui::SoundChooser::_onDelete | ( | GtkWidget * | w, | |
GdkEvent * | e, | |||
SoundChooser * | self | |||
) | [static, private] |
static void ui::SoundChooser::_onOK | ( | GtkWidget * | , | |
SoundChooser * | ||||
) | [static, private] |
static void ui::SoundChooser::_onSelectionChange | ( | GtkTreeSelection * | , | |
SoundChooser * | ||||
) | [static, private] |
std::string ui::SoundChooser::chooseSound | ( | ) |
Display the dialog and return the selection.
Referenced by SoundAttribute::browse().
GtkWidget* ui::SoundChooser::createButtons | ( | ) | [private] |
GtkWidget* ui::SoundChooser::createTreeView | ( | ) | [private] |
SoundPreview ui::SoundChooser::_preview [private] |
Definition at line 18 of file SoundChooser.h.
std::string ui::SoundChooser::_selectedSound [private] |
Definition at line 21 of file SoundChooser.h.
GtkTreeSelection* ui::SoundChooser::_treeSelection [private] |
Definition at line 15 of file SoundChooser.h.
GtkTreeStore* ui::SoundChooser::_treeStore [private] |
Definition at line 14 of file SoundChooser.h.
GtkWidget* ui::SoundChooser::_widget [private] |
Definition at line 11 of file SoundChooser.h.