You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeaccessibility/kttsd/plugins/hadifix/hadifixconfigui.ui

693 lines
34 KiB

<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>HadifixConfigUI</class>
<widget class="TQWidget">
<property name="name">
<cstring>HadifixConfigUI</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>578</width>
<height>388</height>
</rect>
</property>
<property name="caption">
<string>Hadifix Configuration</string>
</property>
<property name="whatsThis" stdset="0">
<string>This is the configuration dialog for the Hadifix (txt2pho and Mbrola) speech synthesizer.</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>GroupBox4</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Had&amp;ifix Configuration</string>
</property>
<property name="whatsThis" stdset="0">
<string>This is the configuration dialog for the Hadifix (txt2pho and Mbrola) speech synthesizer.</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQGroupBox" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>basicOptions</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>Box</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<property name="title">
<string>&amp;Basic Options</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>voiceLabel</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;Voice file:</string>
</property>
<property name="buddy" stdset="0">
<cstring>voiceCombo</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>Select a voice for speaking text. If no voices are listed, check your Mbrola configuration. You must install at least one voice.</string>
</property>
</widget>
<widget class="KComboBox" row="0" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>voiceCombo</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="whatsThis" stdset="0">
<string>Select a voice for speaking text. If no voices are listed, check your Mbrola configuration. You must install at least one voice.</string>
</property>
</widget>
<widget class="KPushButton" row="0" column="3">
<property name="name">
<cstring>voiceButton</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;Select...</string>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>volumeLabel</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Volume &amp;ratio:</string>
</property>
<property name="buddy" stdset="0">
<cstring>volumeBox</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>Adjusts the volume of speech. Slide to left for softer speech; to the right for louder.</string>
</property>
</widget>
<widget class="KIntSpinBox" row="1" column="1">
<property name="name">
<cstring>volumeBox</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="suffix">
<string> %</string>
</property>
<property name="maxValue">
<number>200</number>
</property>
<property name="minValue">
<number>50</number>
</property>
<property name="value">
<number>100</number>
</property>
<property name="whatsThis" stdset="0">
<string>Adjusts the volume of speech. Slide to left for softer speech; to the right for louder.</string>
</property>
</widget>
<widget class="TQSlider" row="1" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>volumeSlider</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="focusPolicy">
<enum>NoFocus</enum>
</property>
<property name="minValue">
<number>0</number>
</property>
<property name="maxValue">
<number>1000</number>
</property>
<property name="lineStep">
<number>10</number>
</property>
<property name="pageStep">
<number>100</number>
</property>
<property name="value">
<number>500</number>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="tickmarks">
<enum>NoMarks</enum>
</property>
<property name="whatsThis" stdset="0">
<string>Adjusts the volume of speech. Slide to left for softer speech; to the right for louder.</string>
</property>
</widget>
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>timeLabel</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Speed:</string>
</property>
<property name="buddy" stdset="0">
<cstring>timeBox</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>Adjusts the speed of speech. Slide to left for slower speech; to the right for faster.</string>
</property>
</widget>
<widget class="KIntSpinBox" row="2" column="1">
<property name="name">
<cstring>timeBox</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="suffix">
<string> %</string>
</property>
<property name="maxValue">
<number>200</number>
</property>
<property name="minValue">
<number>50</number>
</property>
<property name="value">
<number>100</number>
</property>
<property name="whatsThis" stdset="0">
<string>Adjusts the speed of speech. Slide to left for slower speech; to the right for faster.</string>
</property>
</widget>
<widget class="TQSlider" row="2" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>timeSlider</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="focusPolicy">
<enum>NoFocus</enum>
</property>
<property name="maxValue">
<number>1000</number>
</property>
<property name="lineStep">
<number>10</number>
</property>
<property name="pageStep">
<number>100</number>
</property>
<property name="value">
<number>500</number>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="whatsThis" stdset="0">
<string>Adjusts the speed of speech. Slide to left for slower speech; to the right for faster.</string>
</property>
</widget>
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>frequencyLabel</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;Pitch:</string>
</property>
<property name="buddy" stdset="0">
<cstring>frequencyBox</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>Adjusts the pitch (tone) of speech. Slide to left for lower speech; to the right for higher.</string>
</property>
</widget>
<widget class="KIntSpinBox" row="3" column="1">
<property name="name">
<cstring>frequencyBox</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="suffix">
<string> %</string>
</property>
<property name="maxValue">
<number>200</number>
</property>
<property name="minValue">
<number>50</number>
</property>
<property name="value">
<number>100</number>
</property>
<property name="whatsThis" stdset="0">
<string>Adjusts the pitch (tone) of speech. Slide to left for lower speech; to the right for higher.</string>
</property>
</widget>
<widget class="TQSlider" row="3" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>frequencySlider</cstring>
</property>
<property name="focusPolicy">
<enum>NoFocus</enum>
</property>
<property name="maxValue">
<number>1000</number>
</property>
<property name="lineStep">
<number>10</number>
</property>
<property name="pageStep">
<number>100</number>
</property>
<property name="value">
<number>500</number>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="whatsThis" stdset="0">
<string>Adjusts the pitch (tone) of speech. Slide to left for lower speech; to the right for higher.</string>
</property>
</widget>
</grid>
</widget>
<widget class="TQGroupBox" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>advancedOptions</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>&amp;Advanced Options</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>hadifixBinLabel</cstring>
</property>
<property name="text">
<string>txt2pho e&amp;xecutable:</string>
</property>
<property name="buddy" stdset="0">
<cstring>hadifixURL</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>If the txt2pho program is in your PATH environment variable, simply enter "txt2pho", otherwise specify the full path to the txt2pho executable program.</string>
</property>
</widget>
<widget class="KURLRequester" row="0" column="1">
<property name="name">
<cstring>hadifixURL</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="whatsThis" stdset="0">
<string>If the txt2pho program is in your PATH environment variable, simply enter "txt2pho", otherwise specify the full path to the txt2pho executable program.</string>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>mbrolaBinLabel</cstring>
</property>
<property name="text">
<string>&amp;Mbrola executable:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mbrolaURL</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>If the Mbrola program is in your PATH environment variable, simply enter "mbrola", otherwise specify the full path to the Mbrola executable program.</string>
</property>
</widget>
<widget class="KURLRequester" row="1" column="1">
<property name="name">
<cstring>mbrolaURL</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="whatsThis" stdset="0">
<string>If the Mbrola program is in your PATH environment variable, simply enter "mbrola", otherwise specify the full path to the Mbrola executable program.</string>
</property>
</widget>
<widget class="TQLayoutWidget" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLabel">
<property name="name">
<cstring>characterCodingLabel</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Character &amp;encoding:</string>
</property>
<property name="buddy" stdset="0">
<cstring>characterCodingBox</cstring>
</property>
</widget>
<widget class="KComboBox">
<property name="name">
<cstring>characterCodingBox</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="whatsThis" stdset="0">
<string>This combo box specifies which character encoding is used for passing the text. For most western languages, use ISO-8859-1. For Hungarian, use ISO-8859-2.</string>
</property>
</widget>
</hbox>
</widget>
</grid>
</widget>
<spacer row="2" column="0">
<property name="name">
<cstring>spacer1</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Preferred</enum>
</property>
<property name="tqsizeHint">
<size>
<width>240</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="KPushButton" row="2" column="1">
<property name="name">
<cstring>testButton</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;Test</string>
</property>
<property name="whatsThis" stdset="0">
<string>Click to test the configuration. You should hear a spoken sentence.</string>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
<customwidgets>
</customwidgets>
<connections>
<connection>
<sender>volumeBox</sender>
<signal>valueChanged(int)</signal>
<receiver>HadifixConfigUI</receiver>
<slot>volumeBox_valueChanged(int)</slot>
</connection>
<connection>
<sender>volumeSlider</sender>
<signal>valueChanged(int)</signal>
<receiver>HadifixConfigUI</receiver>
<slot>volumeSlider_valueChanged(int)</slot>
</connection>
<connection>
<sender>timeBox</sender>
<signal>valueChanged(int)</signal>
<receiver>HadifixConfigUI</receiver>
<slot>timeBox_valueChanged(int)</slot>
</connection>
<connection>
<sender>timeSlider</sender>
<signal>valueChanged(int)</signal>
<receiver>HadifixConfigUI</receiver>
<slot>timeSlider_valueChanged(int)</slot>
</connection>
<connection>
<sender>frequencyBox</sender>
<signal>valueChanged(int)</signal>
<receiver>HadifixConfigUI</receiver>
<slot>frequencyBox_valueChanged(int)</slot>
</connection>
<connection>
<sender>frequencySlider</sender>
<signal>valueChanged(int)</signal>
<receiver>HadifixConfigUI</receiver>
<slot>frequencySlider_valueChanged(int)</slot>
</connection>
<connection>
<sender>voiceCombo</sender>
<signal>activated(const TQString&amp;)</signal>
<receiver>HadifixConfigUI</receiver>
<slot>changed(const TQString&amp;)</slot>
</connection>
<connection>
<sender>volumeBox</sender>
<signal>valueChanged(const TQString&amp;)</signal>
<receiver>HadifixConfigUI</receiver>
<slot>changed(const TQString&amp;)</slot>
</connection>
<connection>
<sender>timeBox</sender>
<signal>valueChanged(const TQString&amp;)</signal>
<receiver>HadifixConfigUI</receiver>
<slot>changed(const TQString&amp;)</slot>
</connection>
<connection>
<sender>frequencyBox</sender>
<signal>valueChanged(const TQString&amp;)</signal>
<receiver>HadifixConfigUI</receiver>
<slot>changed(const TQString&amp;)</slot>
</connection>
<connection>
<sender>hadifixURL</sender>
<signal>textChanged(const TQString&amp;)</signal>
<receiver>HadifixConfigUI</receiver>
<slot>changed(const TQString&amp;)</slot>
</connection>
<connection>
<sender>mbrolaURL</sender>
<signal>textChanged(const TQString&amp;)</signal>
<receiver>HadifixConfigUI</receiver>
<slot>changed(const TQString&amp;)</slot>
</connection>
</connections>
<includes>
<include location="global" impldecl="in declaration">tqradiobutton.h</include>
<include location="global" impldecl="in declaration">tqpixmap.h</include>
<include location="global" impldecl="in declaration">kurl.h</include>
<include location="global" impldecl="in declaration">tqmap.h</include>
<include location="global" impldecl="in implementation">kglobal.h</include>
<include location="global" impldecl="in implementation">tqstringlist.h</include>
<include location="global" impldecl="in implementation">math.h</include>
<include location="global" impldecl="in implementation">kiconloader.h</include>
</includes>
<forwards>
<forward>class TQStringList;</forward>
</forwards>
<variables>
<variable>TQMap&lt;TQString,int&gt; maleVoices;</variable>
<variable>TQMap&lt;int,TQString&gt; defaultVoices;</variable>
<variable>TQPixmap female;</variable>
<variable>TQPixmap male;</variable>
<variable>TQMap&lt;TQString,int&gt; femaleVoices;</variable>
</variables>
<Q_SIGNALS>
<signal>changed(bool)</signal>
</Q_SIGNALS>
<Q_SLOTS>
<slot access="protected" specifier="non virtual">volumeBox_valueChanged( int percentValue )</slot>
<slot access="protected" specifier="non virtual">timeBox_valueChanged( int percentValue )</slot>
<slot access="protected" specifier="non virtual">frequencyBox_valueChanged( int percentValue )</slot>
<slot access="protected" specifier="non virtual">volumeSlider_valueChanged( int sliderValue )</slot>
<slot access="protected" specifier="non virtual">timeSlider_valueChanged( int sliderValue )</slot>
<slot access="protected" specifier="non virtual">frequencySlider_valueChanged( int sliderValue )</slot>
<slot access="protected">changed( const TQString &amp; )</slot>
</Q_SLOTS>
<functions>
<function access="protected" specifier="non virtual" returnType="int">percentToSlider( int percentValue )</function>
<function access="protected" specifier="non virtual" returnType="int">sliderToPercent( int sliderValue )</function>
<function access="private" specifier="non virtual">init()</function>
<function specifier="non virtual">addVoice( const TQString &amp;filename, bool isMale )</function>
<function specifier="non virtual">addVoice( const TQString &amp;filename, bool isMale, const TQString &amp;displayname )</function>
<function specifier="non virtual">setVoice( const TQString &amp;filename, bool isMale )</function>
<function specifier="non virtual" returnType="TQString">getVoiceFilename()</function>
<function specifier="non virtual" returnType="bool">isMaleVoice()</function>
</functions>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kcombobox.h</includehint>
<includehint>kpushbutton.h</includehint>
<includehint>knuminput.h</includehint>
<includehint>knuminput.h</includehint>
<includehint>knuminput.h</includehint>
<includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint>
<includehint>kpushbutton.h</includehint>
<includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint>
<includehint>kpushbutton.h</includehint>
<includehint>kcombobox.h</includehint>
<includehint>kpushbutton.h</includehint>
</includehints>
</UI>