#include <SoundPreview.h>
Public Member Functions | |
SoundPreview () | |
void | setSound (const std::string &soundFile) |
operator GtkWidget * () | |
Private Member Functions | |
std::string | getSelectedSoundFile () |
GtkWidget * | createControlPanel () |
Static Private Member Functions | |
static void | onPlay (GtkButton *button, SoundPreview *self) |
static void | onStop (GtkButton *button, SoundPreview *self) |
Private Attributes | |
GtkWidget * | _widget |
GtkWidget * | _playButton |
GtkWidget * | _stopButton |
GtkWidget * | _statusLabel |
std::string | _soundFile |
greebo: This class provides the UI elements to inspect a given soundfile with playback option.
Use the GtkWidget* cast operator to pack this into a parent container.
Definition at line 20 of file SoundPreview.h.
ui::SoundPreview::SoundPreview | ( | ) |
GtkWidget* ui::SoundPreview::createControlPanel | ( | ) | [private] |
greebo: Creates the control widgets (play button) and such.
std::string ui::SoundPreview::getSelectedSoundFile | ( | ) | [private] |
greebo: Returns the currently selected sound file (file list)
static void ui::SoundPreview::onPlay | ( | GtkButton * | button, | |
SoundPreview * | self | |||
) | [static, private] |
static void ui::SoundPreview::onStop | ( | GtkButton * | button, | |
SoundPreview * | self | |||
) | [static, private] |
ui::SoundPreview::operator GtkWidget * | ( | ) |
greebo: Operator cast to GtkWidget to pack this into a parent container widget.
void ui::SoundPreview::setSound | ( | const std::string & | soundFile | ) |
greebo: Sets the soundfile to preview.
GtkWidget* ui::SoundPreview::_playButton [private] |
Definition at line 25 of file SoundPreview.h.
std::string ui::SoundPreview::_soundFile [private] |
Definition at line 30 of file SoundPreview.h.
GtkWidget* ui::SoundPreview::_statusLabel [private] |
Definition at line 27 of file SoundPreview.h.
GtkWidget* ui::SoundPreview::_stopButton [private] |
Definition at line 26 of file SoundPreview.h.
GtkWidget* ui::SoundPreview::_widget [private] |
Definition at line 23 of file SoundPreview.h.