/****************************************************************************
** Form interface generated from reading ui file 'hadifixconfigui.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#ifndef UI_HADIFIXCONFIGUI_H
#define UI_HADIFIXCONFIGUI_H

#include <ntqvariant.h>
#include <ntqwidget.h>
#include <tqradiobutton.h>
#include <tqpixmap.h>
#include <kurl.h>
#include <tqmap.h>

class TQVBoxLayout;
class TQHBoxLayout;
class TQGridLayout;
class TQSpacerItem;
class TQGroupBox;
class TQLabel;
class KComboBox;
class KPushButton;
class KIntSpinBox;
class TQSlider;
class KURLRequester;
class TQStringList;

class HadifixConfigUI : public TQWidget
{
    TQ_OBJECT

public:
    HadifixConfigUI( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
    ~HadifixConfigUI();

    TQGroupBox* GroupBox4;
    TQGroupBox* basicOptions;
    TQLabel* voiceLabel;
    KComboBox* voiceCombo;
    KPushButton* voiceButton;
    TQLabel* volumeLabel;
    KIntSpinBox* volumeBox;
    TQSlider* volumeSlider;
    TQLabel* timeLabel;
    KIntSpinBox* timeBox;
    TQSlider* timeSlider;
    TQLabel* frequencyLabel;
    KIntSpinBox* frequencyBox;
    TQSlider* frequencySlider;
    TQGroupBox* advancedOptions;
    TQLabel* hadifixBinLabel;
    KURLRequester* hadifixURL;
    TQLabel* mbrolaBinLabel;
    KURLRequester* mbrolaURL;
    TQLabel* characterCodingLabel;
    KComboBox* characterCodingBox;
    KPushButton* testButton;

    void addVoice( const TQString &filename, bool isMale );
    void addVoice( const TQString &filename, bool isMale, const TQString &displayname );
    void setVoice( const TQString &filename, bool isMale );
    TQString getVoiceFilename();
    bool isMaleVoice();

signals:
    void changed(bool);

protected:
    TQMap<TQString,int> maleVoices;
    TQMap<int,TQString> defaultVoices;
    TQPixmap female;
    TQPixmap male;
    TQMap<TQString,int> femaleVoices;

    int percentToSlider( int percentValue );
    int sliderToPercent( int sliderValue );

    TQGridLayout* HadifixConfigUILayout;
    TQGridLayout* GroupBox4Layout;
    TQSpacerItem* spacer1;
    TQGridLayout* basicOptionsLayout;
    TQGridLayout* advancedOptionsLayout;
    TQHBoxLayout* layout5;

protected slots:
    virtual void languageChange();

    void volumeBox_valueChanged( int percentValue );
    void timeBox_valueChanged( int percentValue );
    void frequencyBox_valueChanged( int percentValue );
    void volumeSlider_valueChanged( int sliderValue );
    void timeSlider_valueChanged( int sliderValue );
    void frequencySlider_valueChanged( int sliderValue );
    virtual void changed( const TQString & );


private:
    void init();

};

#endif // HADIFIXCONFIGUI_H
