/****************************************************************************
** Form implementation generated from reading ui file 'picprop.ui'
**
** Created: Sun May 20 02:19:53 2001
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "picprop_p.h"

#include <qframe.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qslider.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a PicPropDialog which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
PicPropDialog::PicPropDialog( QWidget* parent,  const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "PicPropDialog" );
    resize( 340, 230 ); 
    setSizeGripEnabled( TRUE );
    setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, sizePolicy().hasHeightForWidth() ) );
    setMouseTracking( TRUE );
    setMinimumSize( QSize( 340, 230 ) );
    setCaption( tr( "Picture Properties" ) );

    CloseButton = new QPushButton( this, "CloseButton" );
    CloseButton->setGeometry( QRect( 10, 197, 322, 30 ) ); 
    CloseButton->setText( tr( "Close" ) );

    Frame5 = new QFrame( this, "Frame5" );
    Frame5->setGeometry( QRect( 8, 9, 322, 181 ) ); 
    Frame5->setFrameShadow( QFrame::Sunken );
    Frame5->setFrameShape( QFrame::WinPanel );

    BrightnessSlider = new QSlider( Frame5, "BrightnessSlider" );
    BrightnessSlider->setGeometry( QRect( 22, 18, 189, 29 ) ); 
    BrightnessSlider->setOrientation( QSlider::Horizontal );
    BrightnessSlider->setMinValue( -128 );
    BrightnessSlider->setMaxValue( 128 );
    BrightnessSlider->setTickmarks( QSlider::Right );

    ContrastSlider = new QSlider( Frame5, "ContrastSlider" );
    ContrastSlider->setGeometry( QRect( 22, 55, 190, 29 ) ); 
    ContrastSlider->setOrientation( QSlider::Horizontal );
    ContrastSlider->setMinValue( -128 );
    ContrastSlider->setMaxValue( 128 );
    ContrastSlider->setTickmarks( QSlider::Right );

    SaturationSlider = new QSlider( Frame5, "SaturationSlider" );
    SaturationSlider->setGeometry( QRect( 22, 92, 190, 29 ) ); 
    SaturationSlider->setOrientation( QSlider::Horizontal );
    SaturationSlider->setMinValue( -128 );
    SaturationSlider->setMaxValue( 128 );
    SaturationSlider->setTickmarks( QSlider::Right );

    HueSlider = new QSlider( Frame5, "HueSlider" );
    HueSlider->setGeometry( QRect( 22, 129, 190, 29 ) ); 
    HueSlider->setOrientation( QSlider::Horizontal );
    HueSlider->setMinValue( -128 );
    HueSlider->setMaxValue( 128 );
    HueSlider->setTickmarks( QSlider::Right );

    ContrastText = new QLabel( Frame5, "ContrastText" );
    ContrastText->setGeometry( QRect( 218, 52, 81, 29 ) ); 
    ContrastText->setText( tr( "Contrast: 0" ) );

    HueText = new QLabel( Frame5, "HueText" );
    HueText->setGeometry( QRect( 218, 126, 72, 29 ) ); 
    HueText->setText( tr( "Hue: 0" ) );

    BrightnessText = new QLabel( Frame5, "BrightnessText" );
    BrightnessText->setGeometry( QRect( 218, 15, 97, 29 ) ); 
    BrightnessText->setText( tr( "Brightness: 0" ) );

    SaturationText = new QLabel( Frame5, "SaturationText" );
    SaturationText->setGeometry( QRect( 218, 89, 96, 29 ) ); 
    SaturationText->setText( tr( "Saturation: 0" ) );

    // signals and slots connections
    connect( CloseButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
}

/*  
 *  Destroys the object and frees any allocated resources
 */
PicPropDialog::~PicPropDialog()
{
    // no need to delete child widgets, Qt does it all for us
}

