kalarm
sounddlg.cpp
Go to the documentation of this file.
58 SoundDlg::SoundDlg(const QString& file, float volume, float fadeVolume, int fadeSeconds, int repeatPause,
178 mFileEdit->setWhatsThis(i18nc("@info:whatsthis", "Enter the name or URL of a sound file to play."));
204 mRepeatGroupBox->setWhatsThis(i18nc("@info:whatsthis", "If checked, the sound file will be played repeatedly for as long as the message is displayed."));
214 label = new QLabel(i18nc("@label:spinbox Length of time to pause between repetitions", "Pause between repetitions:"), box);
223 box->setWhatsThis(i18nc("@info:whatsthis", "Enter how many seconds to pause between repetitions."));
245 mVolumeCheckbox->setWhatsThis(i18nc("@info:whatsthis", "Select to choose the volume for playing the sound file."));
252 mVolumeSlider->setWhatsThis(i18nc("@info:whatsthis", "Choose the volume for playing the sound file."));
260 mFadeCheckbox->setWhatsThis(i18nc("@info:whatsthis", "Select to fade the volume when the sound file first starts to play."));
268 label = new QLabel(i18nc("@label:spinbox Time period over which to fade the sound", "Fade time:"), mFadeBox);
277 mFadeBox->setWhatsThis(i18nc("@info:whatsthis", "Enter how many seconds to fade the sound before reaching the set volume."));
292 mFadeVolumeBox->setWhatsThis(i18nc("@info:whatsthis", "Choose the initial volume for playing the sound file."));
306 void SoundWidget::set(const QString& file, float volume, float fadeVolume, int fadeSeconds, int repeatPause)
440 mFilePlay->setIcon(SmallIcon(QLatin1String("media-playback-stop"))); // change the play button to a stop button
521 && KAlarm::showFileErrMessage(file, err, KAlarm::FileErr_BlankPlay, const_cast<SoundWidget*>(this)))
QLayout * layout() const
void changed()
virtual void setReadOnly(bool readOnly)
void getVolume(float &volume, float &fadeVolume, int &fadeSeconds) const
Definition: sounddlg.cpp:366
virtual QSize sizeHint() const
virtual void setText(const QString &str)
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
void setFocusWidget(QWidget *widget, bool enable=true)
void play()
virtual QSize sizeHint() const
virtual void setReadOnly(bool readOnly, bool noHighlight=false)
bool isReadable() const
MediaObject * createPlayer(Phonon::Category category, const MediaSource &source)
QString homePath()
QString text() const
void setIcon(const QIcon &icon)
static QString browseFile(QString &initialDir, const QString &initialFile=QString())
Display a dialog to choose a sound file, initially highlighting initialFile if non-null.
Definition: soundpicker.cpp:321
void setSpacing(int spacing)
uint count() const
void clear()
void setBuddy(QWidget *buddy)
SoundDlg(const QString &file, float volume, float fadeVolume, int fadeSeconds, int repeatPause, const QString &caption, QWidget *parent)
Definition: sounddlg.cpp:58
QSize size() const
SoundWidget(bool showPlay, bool showRepeat, QWidget *parent)
Definition: sounddlg.cpp:141
void set(const QString &file, float volume, float fadeVolume=-1, int fadeSeconds=0, int repeatPause=-1)
Definition: sounddlg.cpp:306
void setFilter(QFlags< QDir::Filter > filters)
void setEnabled(bool)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
virtual void showEvent(QShowEvent *event)
int count(const T &value) const
void setChecked(bool checked)
bool isEmpty() const
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
Definition: sounddlg.h:41
virtual void setReadOnly(bool readOnly)
void setTickPosition(TickPosition position)
void setMargin(int margin)
void setSizePolicy(QSizePolicy)
Path createPath(MediaNode *source, MediaNode *sink)
const QSize & size() const
void setParent(QObject *parent)
void setReadOnly(bool r)
void setFixedSize(const QSize &s)
void setCurrentSource(const MediaSource &source)
void setValue(int)
void setChecked(bool)
void setWhatsThis(const QString &)
virtual QSize sizeHint() const
miscellaneous functions
void setColumnStretch(int column, int stretch)
void setValue(int val)
void setCheckable(bool checkable)
void setColumnMinimumWidth(int column, int minSize)
virtual QSize sizeHint() const
int height() const
void setTickInterval(int ti)
void setToolTip(const QString &)
virtual void resizeEvent(QResizeEvent *event)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setSpacing(int spacing)
virtual void setReadOnly(bool readOnly)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.