kalarm
SoundPicker Class Reference
List of all members.Detailed Description
Definition at line 33 of file soundpicker.h.
Public Types | |
enum | Type { NONE = 0, BEEP, PLAY_FILE, SPEAK } |
Public Member Functions | |
SoundPicker (QWidget *parent, const char *name=0) | |
void | set (Type type, const QString &filename, float volume, float fadeVolume, int fadeSeconds, bool repeat) |
bool | isReadOnly () const |
void | setReadOnly (bool readOnly) |
void | showSpeak (bool show) |
Type | sound () const |
QString | file () const |
float | volume (float &fadeVolume, int &fadeSeconds) const |
bool | repeat () const |
QString | fileSetting () const |
bool | repeatSetting () const |
Static Public Member Functions | |
static QString | browseFile (QString &initialDir, const QString &initialFile=QString::null) |
static QString | i18n_Sound () |
static QString | i18n_None () |
static QString | i18n_Beep () |
static QString | i18n_Speak () |
static QString | i18n_File () |
Member Enumeration Documentation
|
Sound options which can be selected for when the alarm is displayed.
Definition at line 43 of file soundpicker.h. |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 58 of file soundpicker.cpp. |
Member Function Documentation
|
Display a dialogue to choose a sound file, initially highlighting
Definition at line 265 of file soundpicker.cpp. |
|
If the 'file' option is selected, returns the URL of the chosen file. Otherwise returns a null string. Definition at line 144 of file soundpicker.cpp. |
|
Returns the current file URL regardless of whether the 'file' option is selected.
Definition at line 95 of file soundpicker.h. |
|
Returns true if the widget is read only for the user.
Definition at line 69 of file soundpicker.h. |
|
Returns true if a sound file is to be played repeatedly. If the 'file' option is not selected, returns false. Definition at line 173 of file soundpicker.cpp. |
|
Returns the current file repetition setting regardless of whether the 'file' option is selected.
Definition at line 97 of file soundpicker.h. |
|
Initialises the widget's state.
|
|
Sets whether the widget can be changed the user.
Definition at line 97 of file soundpicker.cpp. |
|
Show or hide the 'speak' option. If it is to be hidden and it is currently selected, sound is turned off. Definition at line 109 of file soundpicker.cpp. |
|
Returns the selected option.
Definition at line 135 of file soundpicker.cpp. |
|
Returns the volume and fade characteristics for playing a sound file.
Definition at line 153 of file soundpicker.cpp. |
The documentation for this class was generated from the following files: