ui::SoundPreview Class Reference

#include <SoundPreview.h>

Public Member Functions

 SoundPreview ()
void setSound (const std::string &soundFile)
 operator GtkWidget * ()

Private Member Functions

std::string getSelectedSoundFile ()
GtkWidgetcreateControlPanel ()

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

Detailed Description

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.


Constructor & Destructor Documentation

ui::SoundPreview::SoundPreview (  ) 

Member Function Documentation

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)

Returns:
: the filename or "" if nothing selected.
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.


Field Documentation

Definition at line 25 of file SoundPreview.h.

Definition at line 30 of file SoundPreview.h.

Definition at line 27 of file SoundPreview.h.

Definition at line 26 of file SoundPreview.h.

Definition at line 23 of file SoundPreview.h.


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

Generated by  doxygen 1.6.2