/***************************************************************************
                          ckvdrcfg.h  -  description
                             -------------------
    begin                : Fri Aug 11 2000
    copyright            : (C) 2000 by Guido
    email                : gfiala@s.netic.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef CKVDRCFG_H
#define CKVDRCFG_H

//Generated area. DO NOT EDIT!!!(begin)
#include <qwidget.h>
#include <qgroupbox.h>
#include <qlineedit.h>
#include <qslider.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qcombobox.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qspinbox.h>
//Generated area. DO NOT EDIT!!!(end)

#include <qdialog.h>
#include <kaccel.h>
#include <klocale.h>

/**
  *@author Guido
  */

class ckvdrcfg : public QDialog  {
   Q_OBJECT
public: 
	ckvdrcfg(QWidget *parent=0, const char *name=0);
	~ckvdrcfg();
  void show();

protected: 
	void initDialog();
	//Generated area. DO NOT EDIT!!!(begin)
	QGroupBox *QGroupBox_9;
	QGroupBox *QGroupBox_4;
	QGroupBox *QGroupBox_3;
	QGroupBox *QGroupBox_2;
	QGroupBox *QGroupBox_1;
	QLineEdit *GrabWidth;
	QLineEdit *GrabHeight;
	QLineEdit *JpgQuality;
	QLineEdit *BaseDir;
	QLineEdit *InitialWidth;
	QLineEdit *InitialHeight;
	QSlider *BrightnessSlider;
	QSlider *ColourSlider;
	QSlider *HueSlider;
	QSlider *ContrastSlider;
	QButtonGroup *QButtonGroupNorm;
	QRadioButton *QRadioButton_1;
	QRadioButton *QRadioButton_2;
	QButtonGroup *QButtonGroupAR;
	QRadioButton *QRadioButton_4_3;
	QRadioButton *QRadioButton_16_9;
	QSpinBox *QSpinBox_VidDev;
	QSlider *VolumeSlider;
	QSlider *FrontRearSlider;
	QComboBox *MixerChannel;
	QLineEdit *VdrPort;
	QPushButton *CreditsButton;
	QPushButton *ApplyButton;
	QPushButton *StoreButton;
	QPushButton *CancelButton;
	QLabel *QLabel_1;
	QLabel *QLabel_2;
	QLabel *QLabel_3;
	QLabel *QLabel_4;
	QLabel *QLabel_5;
	QLabel *QLabel_7;
	QLabel *QLabel_8;
	QLabel *QLabel_9;
	QLabel *QLabel_10;
	QLabel *QLabel_11;
	QLabel *QLabel_12;
	QLabel *QLabel_13;
	QLabel *QLabel_14;
	QLabel *QLabel_15;
	QLabel *VdrPortLabel;
	//Generated area. DO NOT EDIT!!!(end)
private:
  QWidget *p;
	bool dISPAL;
	float dVideoAspectRatio;
	int dInitialWidth,dInitialHeight,dGrabHeight,dGrabWidth,dJpgQuality,dVdrPort;
	int dVolume,dFrontRear,dColour,dBrightness,dHue,dContrast,dMixerChannel;
	int dVidDev;
	QString dBaseDir;
  KAccel *userKeys;	
protected slots:
	void ApplyButtonClicked();
	void CancelButtonClicked();
	void StoreButtonClicked();
	void CreditsButtonClicked();
	void QButtonGroupNormClicked(int i);
	void QButtonGroupARClicked(int i);
	void InitialWidthChanged();
	void InitialHeightChanged();
	void GrabHeightChanged();
	void GrabWidthChanged();
	void BaseDirChanged();
	void JpgQualityChanged();
	void VdrPortChanged();
  void VolumeSliderValueChanged(int i);
  void FrontRearSliderValueChanged(int i);
  void ColourSliderValueChanged(int i);
  void BrightnessSliderValueChanged(int i);
  void HueSliderValueChanged(int i);
  void ContrastSliderValueChanged(int i);
  void MixerChannelItemActivated(int i);
	void QSpinBox_VidDev_Changed(int);
	int CheckNumber(const char* s,int min,int max);
};

#endif
