26 #include <kdialogbase.h>
30 class KArtsDispatcher;
31 namespace KDE { class PlayObject; }
39 class SoundDlg : public KDialogBase
44 SoundDlg( const TQString& file, float volume, float fadeVolume, int fadeSeconds, bool repeat,
45 const TQString& caption, TQWidget* parent, const char* name = 0);
47 void setReadOnly( bool);
48 bool isReadOnly() const { return mReadOnly; }
49 TQString getFile() const { return mFileName; }
50 bool getSettings( float& volume, float& fadeVolume, int& fadeSeconds) const;
51 TQString defaultDir() const { return mDefaultDir; }
53 static TQString i18n_SetVolume();
54 static TQString i18n_v_SetVolume();
55 static TQString i18n_Repeat();
56 static TQString i18n_p_Repeat();
59 virtual void showEvent(TQShowEvent*);
60 virtual void resizeEvent(TQResizeEvent*);
63 virtual void slotOk();
67 void slotVolumeToggled( bool on);
68 void slotFadeToggled( bool on);
70 void checkAudioPlay();
76 TQPushButton* mFilePlay;
78 PushButton* mFileBrowseButton;
79 CheckBox* mRepeatCheckbox;
80 CheckBox* mVolumeCheckbox;
81 Slider* mVolumeSlider;
82 CheckBox* mFadeCheckbox;
85 TQHBox* mFadeVolumeBox;
91 KArtsDispatcher* mArtsDispatcher;
92 KDE::PlayObject* mPlayObject;
94 TQString mLocalAudioFile;
|