33 class SoundPicker : public TQFrame
44 enum Type { NONE = 0, BEEP, PLAY_FILE, SPEAK };
49 explicit SoundPicker(TQWidget* parent, const char* name = 0);
68 void set(Type type, const TQString& filename, float volume, float fadeVolume, int fadeSeconds, bool repeat);
70 bool isReadOnly() const { return mReadOnly; }
74 void setReadOnly( bool readOnly);
78 void showSpeak( bool show);
84 TQString file() const;
90 float volume( float& fadeVolume, int& fadeSeconds) const;
96 TQString fileSetting() const { return mFile; }
98 bool repeatSetting() const { return mRepeat; }
107 static TQString browseFile(TQString& initialDir, const TQString& initialFile = TQString());
109 static TQString i18n_Sound();
110 static TQString i18n_None();
111 static TQString i18n_Beep();
112 static TQString i18n_Speak();
113 static TQString i18n_File();
117 void slotTypeSelected( int id);
122 ComboBox* mTypeCombo;
124 PushButton* mFilePicker;
125 TQString mDefaultDir;
|