/****************************************************************************
** Form implementation generated from reading ui file './capwindow.ui'
**
** Created: Sun Sep 17 10:08:13 2000
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "capwindow_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 Form1 which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 */
Form1::Form1( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "Form1" );
    resize( 388, 388 ); 
    setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0 ) );
    setBackgroundOrigin( QWidget::WidgetOrigin );
    setMouseTracking( TRUE );
    setFocusPolicy( QWidget::NoFocus );
    setCaption( tr( "video capture"  ) );
    setMinimumSize( QSize( 388, 388 ) );
    setMaximumSize( QSize( 388, 388 ) );

    m_pStatus = new QLabel( this, "m_pStatus" );
    m_pStatus->setGeometry( QRect( 9, 335, 370, 20 ) ); 
    m_pStatus->setText( tr( ""  ) );
    m_pStatus->setFrameShape( QLabel::StyledPanel );
    m_pStatus->setFrameShadow( QLabel::Sunken );
    m_pStatus->setTextFormat( QLabel::PlainText );

    Frame4 = new QFrame( this, "Frame4" );
    Frame4->setGeometry( QRect( 6, 389, 381, 86 ) ); 
    Frame4->setFrameShadow( QFrame::Sunken );
    Frame4->setFrameShape( QFrame::StyledPanel );

    QWidget* Layout4 = new QWidget( Frame4, "Layout4" );
    Layout4->setGeometry( QRect( 17, 4, 348, 78 ) ); 
    grid = new QGridLayout( Layout4 ); 
    grid->setSpacing( 6 );
    grid->setMargin( 0 );

    Brightness_2 = new QLabel( Layout4, "Brightness_2" );
    Brightness_2->setFrameShadow( QLabel::Plain );
    Brightness_2->setFrameShape( QLabel::NoFrame );
    Brightness_2->setText( tr( "Contrast"  ) );

    grid->addWidget( Brightness_2, 1, 0 );

    m_pBrightness = new QSlider( Layout4, "m_pBrightness" );
    m_pBrightness->setOrientation( QSlider::Horizontal );
    m_pBrightness->setMinValue( -128 );
    m_pBrightness->setMaxValue( 127 );
    m_pBrightness->setTickmarks( QSlider::Right );

    grid->addWidget( m_pBrightness, 0, 1 );

    m_pHue = new QSlider( Layout4, "m_pHue" );
    m_pHue->setOrientation( QSlider::Horizontal );
    m_pHue->setMinValue( -128 );
    m_pHue->setMaxValue( 127 );
    m_pHue->setTickmarks( QSlider::Right );

    grid->addWidget( m_pHue, 1, 3 );

    m_pContrast = new QSlider( Layout4, "m_pContrast" );
    m_pContrast->setOrientation( QSlider::Horizontal );
    m_pContrast->setMinValue( 0 );
    m_pContrast->setMaxValue( 511 );
    m_pContrast->setTickmarks( QSlider::Right );
    m_pContrast->setValue( 256 );

    grid->addWidget( m_pContrast, 1, 1 );

    m_pColor = new QSlider( Layout4, "m_pColor" );
    m_pColor->setOrientation( QSlider::Horizontal );
    m_pColor->setMinValue( 0 );
    m_pColor->setMaxValue( 511 );
    m_pColor->setTickmarks( QSlider::Right );
    m_pColor->setValue( 256 );

    grid->addWidget( m_pColor, 0, 3 );

    Brightness = new QLabel( Layout4, "Brightness" );
    Brightness->setText( tr( "Brightness"  ) );

    grid->addWidget( Brightness, 0, 0 );

    Brightness_2_2 = new QLabel( Layout4, "Brightness_2_2" );
    Brightness_2_2->setText( tr( "Hue"  ) );

    grid->addWidget( Brightness_2_2, 1, 2 );

    Brightness_2_3 = new QLabel( Layout4, "Brightness_2_3" );
    Brightness_2_3->setText( tr( "Color"  ) );

    grid->addWidget( Brightness_2_3, 0, 2 );

    m_pPicProp = new QPushButton( this, "m_pPicProp" );
    m_pPicProp->setGeometry( QRect( 8, 360, 189, 24 ) );
    m_pPicProp->setText( tr( "Picture properties >>>"  ) );
    m_pPicProp->setToggleButton( TRUE );

    m_pConfig = new QPushButton( this, "m_pConfig" );
    m_pConfig->setGeometry( QRect( 305, 302, 80, 26 ) ); 
    m_pConfig->setText( tr( "Configure"  ) );

    Frame3 = new QFrame( this, "Frame3" );
    Frame3->setGeometry( QRect( 2, 4, 384, 288 ) ); 
    Frame3->setFrameShadow( QFrame::Plain );
    Frame3->setFrameShape( QFrame::StyledPanel );

    QWidget* Layout3 = new QWidget( this, "Layout3" );
    Layout3->setGeometry( QRect( 7, 300, 254, 28 ) ); 
    hbox = new QHBoxLayout( Layout3 ); 
    hbox->setSpacing( 6 );
    hbox->setMargin( 0 );

    m_pBtn = new QPushButton( Layout3, "m_pBtn" );
    m_pBtn->setText( tr( "Start"  ) );
    hbox->addWidget( m_pBtn );

    m_pSegment = new QPushButton( Layout3, "m_pSegment" );
    m_pSegment->setText( tr( "Segment"  ) );
    m_pSegment->setEnabled( FALSE );
    hbox->addWidget( m_pSegment );

    m_pPause = new QPushButton( Layout3, "m_pPause" );
    m_pPause->setText( tr( "Pause"  ) );
    m_pPause->setEnabled( FALSE );
    hbox->addWidget( m_pPause );

    // tab order
    setTabOrder( m_pBrightness, m_pContrast );
    setTabOrder( m_pContrast, m_pConfig );
    setTabOrder( m_pConfig, m_pPicProp );
    setTabOrder( m_pPicProp, m_pBtn );
    setTabOrder( m_pBtn, m_pColor );
    setTabOrder( m_pColor, m_pHue );
}

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

