/****************************************************************************
** Form implementation generated from reading ui file './genctl.ui'
**
** Created: Sun Sep 24 03:34:27 2000
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "genctl_p.h"

#include <qbuttongroup.h>
#include <qcombobox.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qlistbox.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a QtRecompressor which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 */
QtRecompressor::QtRecompressor( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "QtRecompressor" );
    resize( 565, 339 ); 
    setCaption( tr( "Recompressor"  ) );

    GroupBox3 = new QGroupBox( this, "GroupBox3" );
    GroupBox3->setGeometry( QRect( 12, 88, 547, 96 ) ); 
    GroupBox3->setFrameShadow( QGroupBox::Sunken );
    GroupBox3->setFrameShape( QGroupBox::Box );
    GroupBox3->setTitle( tr( "Recompress options"  ) );

    TextLabel4 = new QLabel( GroupBox3, "TextLabel4" );
    TextLabel4->setGeometry( QRect( 14, 16, 81, 17 ) ); 
    TextLabel4->setText( tr( "Stream:"  ) );

    _bgStreamMode = new QButtonGroup( GroupBox3, "_bgStreamMode" );
    _bgStreamMode->setGeometry( QRect( 122, 8, 98, 76 ) ); 
    _bgStreamMode->setTitle( tr( ""  ) );
    _bgStreamMode->setLineWidth( 0 );

    RadioButton55 = new QRadioButton( _bgStreamMode, "RadioButton55" );
    RadioButton55->setGeometry( QRect( 10, 9, 79, 17 ) ); 
    RadioButton55->setText( tr( "Remove"  ) );

    RadioButton55_2 = new QRadioButton( _bgStreamMode, "RadioButton55_2" );
    RadioButton55_2->setGeometry( QRect( 10, 34, 79, 17 ) ); 
    RadioButton55_2->setText( tr( "Copy"  ) );

    RadioButton55_3 = new QRadioButton( _bgStreamMode, "RadioButton55_3" );
    RadioButton55_3->setGeometry( QRect( 10, 58, 79, 17 ) ); 
    RadioButton55_3->setText( tr( "Recompress"  ) );

    _comboStreams = new QComboBox( FALSE, GroupBox3, "_comboStreams" );
    _comboStreams->setGeometry( QRect( 15, 34, 97, 20 ) ); 

    _pushStreamDetails = new QPushButton( GroupBox3, "_pushStreamDetails" );
    _pushStreamDetails->setGeometry( QRect( 15, 57, 94, 22 ) ); 
    _pushStreamDetails->setText( tr( "Details..."  ) );

    QWidget* Layout27 = new QWidget( GroupBox3, "Layout27" );
    Layout27->setGeometry( QRect( 251, 15, 217, 74 ) ); 
    grid = new QGridLayout( Layout27 ); 
    grid->setSpacing( 6 );
    grid->setMargin( 0 );

    TextLabel5 = new QLabel( Layout27, "TextLabel5" );
    TextLabel5->setText( tr( "to"  ) );

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

    _lineLowSec = new QLineEdit( Layout27, "_lineLowSec" );

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

    TextLabel5_2 = new QLabel( Layout27, "TextLabel5_2" );
    TextLabel5_2->setText( tr( "to"  ) );

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

    _lineLowFrames = new QLineEdit( Layout27, "_lineLowFrames" );

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

    TextLabel6_3 = new QLabel( Layout27, "TextLabel6_3" );
    TextLabel6_3->setText( tr( "frames"  ) );

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

    _lineHighSec = new QLineEdit( Layout27, "_lineHighSec" );

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

    _lineHighFrames = new QLineEdit( Layout27, "_lineHighFrames" );

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

    TextLabel6 = new QLabel( Layout27, "TextLabel6" );
    TextLabel6->setText( tr( "s"  ) );

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

    _bgLimits = new QButtonGroup( GroupBox3, "_bgLimits" );
    _bgLimits->setGeometry( QRect( 221, 10, 27, 79 ) ); 
    _bgLimits->setTitle( tr( ""  ) );
    _bgLimits->setLineWidth( 0 );

    RadioButton5 = new QRadioButton( _bgLimits, "RadioButton5" );
    RadioButton5->setGeometry( QRect( 9, 16, 17, 17 ) ); 
    RadioButton5->setText( tr( ""  ) );

    RadioButton5_2 = new QRadioButton( _bgLimits, "RadioButton5_2" );
    RadioButton5_2->setGeometry( QRect( 10, 51, 18, 20 ) ); 
    RadioButton5_2->setText( tr( ""  ) );

    _pushFormat = new QPushButton( GroupBox3, "_pushFormat" );
    _pushFormat->setGeometry( QRect( 478, 66, 63, 23 ) ); 
    _pushFormat->setText( tr( "Format..."  ) );
    _pushFormat->setEnabled( FALSE );

    GroupBox5 = new QGroupBox( this, "GroupBox5" );
    GroupBox5->setGeometry( QRect( 11, 187, 547, 138 ) ); 
    GroupBox5->setTitle( tr( "Filters"  ) );

    QWidget* Layout30 = new QWidget( GroupBox5, "Layout30" );
    Layout30->setGeometry( QRect( 16, 16, 164, 112 ) ); 
    grid_2 = new QGridLayout( Layout30 ); 
    grid_2->setSpacing( 6 );
    grid_2->setMargin( 0 );

    TextLabel8 = new QLabel( Layout30, "TextLabel8" );
    TextLabel8->setText( tr( "Available filters:"  ) );

    grid_2->addWidget( TextLabel8, 0, 0 );

    _lbAllFilters = new QListBox( Layout30, "_lbAllFilters" );
    _lbAllFilters->insertItem( tr( "New Item" ) );

    grid_2->addMultiCellWidget( _lbAllFilters, 1, 1, 0, 1 );

    _pushAboutFilter = new QPushButton( Layout30, "_pushAboutFilter" );
    _pushAboutFilter->setText( tr( "About"  ) );

    grid_2->addWidget( _pushAboutFilter, 0, 1 );

    QWidget* Layout28 = new QWidget( GroupBox5, "Layout28" );
    Layout28->setGeometry( QRect( 211, 17, 233, 109 ) ); 
    grid_3 = new QGridLayout( Layout28 ); 
    grid_3->setSpacing( 6 );
    grid_3->setMargin( 0 );

    _pushRemoveFilter = new QPushButton( Layout28, "_pushRemoveFilter" );
    _pushRemoveFilter->setText( tr( "Remove"  ) );

    grid_3->addWidget( _pushRemoveFilter, 0, 1 );

    _pushAddFilter = new QPushButton( Layout28, "_pushAddFilter" );
    _pushAddFilter->setText( tr( "Add"  ) );

    grid_3->addWidget( _pushAddFilter, 0, 0 );

    _lbFilters = new QListBox( Layout28, "_lbFilters" );
    _lbFilters->insertItem( tr( "New Item" ) );

    grid_3->addMultiCellWidget( _lbFilters, 1, 1, 0, 1 );

    _pushConfigFilter = new QPushButton( GroupBox5, "_pushConfigFilter" );
    _pushConfigFilter->setGeometry( QRect( 450, 17, 80, 26 ) ); 
    _pushConfigFilter->setText( tr( "Configure"  ) );

    _pushUpFilter = new QPushButton( GroupBox5, "_pushUpFilter" );
    _pushUpFilter->setGeometry( QRect( 452, 62, 42, 21 ) ); 
    _pushUpFilter->setText( tr( "Up"  ) );

    _pushDownFilter = new QPushButton( GroupBox5, "_pushDownFilter" );
    _pushDownFilter->setGeometry( QRect( 451, 87, 44, 22 ) ); 
    _pushDownFilter->setText( tr( "Down"  ) );

    GroupBox2 = new QGroupBox( this, "GroupBox2" );
    GroupBox2->setGeometry( QRect( 9, 5, 550, 78 ) ); 
    GroupBox2->setTitle( tr( "Source and destination"  ) );

    _pushOpen = new QPushButton( GroupBox2, "_pushOpen" );
    _pushOpen->setGeometry( QRect( 9, 20, 82, 20 ) ); 
    _pushOpen->setText( tr( "Source file..."  ) );

    _pushSaveAs = new QPushButton( GroupBox2, "_pushSaveAs" );
    _pushSaveAs->setGeometry( QRect( 10, 45, 81, 21 ) ); 
    _pushSaveAs->setText( tr( "Destination..."  ) );

    _txtSrc = new QLabel( GroupBox2, "_txtSrc" );
    _txtSrc->setGeometry( QRect( 106, 22, 138, 20 ) ); 
    _txtSrc->setText( tr( ""  ) );
    _txtSrc->setFrameShadow( QLabel::Sunken );
    _txtSrc->setFrameShape( QLabel::Box );

    _txtDst = new QLabel( GroupBox2, "_txtDst" );
    _txtDst->setGeometry( QRect( 105, 46, 138, 21 ) ); 
    _txtDst->setFrameShadow( QLabel::Sunken );
    _txtDst->setFrameShape( QLabel::Box );

    _pushLoadCfg = new QPushButton( GroupBox2, "_pushLoadCfg" );
    _pushLoadCfg->setGeometry( QRect( 251, 22, 82, 20 ) ); 
    _pushLoadCfg->setText( tr( "Load config..."  ) );

    _pushSaveCfg = new QPushButton( GroupBox2, "_pushSaveCfg" );
    _pushSaveCfg->setGeometry( QRect( 252, 45, 81, 21 ) ); 
    _pushSaveCfg->setText( tr( "Save config..."  ) );

    _txtConfig = new QLabel( GroupBox2, "_txtConfig" );
    _txtConfig->setGeometry( QRect( 348, 32, 121, 23 ) ); 
    _txtConfig->setFrameShadow( QLabel::Sunken );
    _txtConfig->setFrameShape( QLabel::Box );

    _pushStart = new QPushButton( GroupBox2, "_pushStart" );
    _pushStart->setGeometry( QRect( 479, 24, 63, 34 ) ); 
    _pushStart->setText( tr( "Go!"  ) );

    // signals and slots connections
    connect( _pushOpen, SIGNAL( clicked() ), this, SLOT( src_file_clicked() ) );
    connect( _pushSaveAs, SIGNAL( clicked() ), this, SLOT( dest_file_clicked() ) );
    connect( _pushLoadCfg, SIGNAL( clicked() ), this, SLOT( load_config_clicked() ) );
    connect( _pushSaveCfg, SIGNAL( clicked() ), this, SLOT( save_config_clicked() ) );
    connect( _pushStreamDetails, SIGNAL( clicked() ), this, SLOT( details_clicked() ) );
    connect( _pushAddFilter, SIGNAL( clicked() ), this, SLOT( add_filter_clicked() ) );
    connect( _pushRemoveFilter, SIGNAL( clicked() ), this, SLOT( remove_filter_clicked() ) );
    connect( _pushConfigFilter, SIGNAL( clicked() ), this, SLOT( config_filter_clicked() ) );
    connect( _pushUpFilter, SIGNAL( clicked() ), this, SLOT( up_filter_clicked() ) );
    connect( _pushDownFilter, SIGNAL( clicked() ), this, SLOT( down_filter_clicked() ) );
    connect( _bgStreamMode, SIGNAL( clicked(int) ), this, SLOT( stream_mode_changed(int) ) );
    connect( _bgLimits, SIGNAL( clicked(int) ), this, SLOT( stream_limit_mode_changed(int) ) );
    connect( _pushFormat, SIGNAL( clicked() ), this, SLOT( stream_format_clicked() ) );
    connect( _comboStreams, SIGNAL( activated(int) ), this, SLOT( stream_selected(int) ) );
    connect( _pushStart, SIGNAL( clicked() ), this, SLOT( start_recompress() ) );
}

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

void QtRecompressor::start_recompress()
{
    qWarning( "QtRecompressor::start_recompress(): Not implemented yet!" );
}

void QtRecompressor::add_filter_clicked()
{
    qWarning( "QtRecompressor::add_filter_clicked(): Not implemented yet!" );
}

void QtRecompressor::config_filter_clicked()
{
    qWarning( "QtRecompressor::config_filter_clicked(): Not implemented yet!" );
}

void QtRecompressor::dest_file_clicked()
{
    qWarning( "QtRecompressor::dest_file_clicked(): Not implemented yet!" );
}

void QtRecompressor::details_clicked()
{
    qWarning( "QtRecompressor::details_clicked(): Not implemented yet!" );
}

void QtRecompressor::down_filter_clicked()
{
    qWarning( "QtRecompressor::down_filter_clicked(): Not implemented yet!" );
}

void QtRecompressor::load_config_clicked()
{
    qWarning( "QtRecompressor::load_config_clicked(): Not implemented yet!" );
}

void QtRecompressor::remove_filter_clicked()
{
    qWarning( "QtRecompressor::remove_filter_clicked(): Not implemented yet!" );
}

void QtRecompressor::save_config_clicked()
{
    qWarning( "QtRecompressor::save_config_clicked(): Not implemented yet!" );
}

void QtRecompressor::src_file_clicked()
{
    qWarning( "QtRecompressor::src_file_clicked(): Not implemented yet!" );
}

void QtRecompressor::stream_format_clicked()
{
    qWarning( "QtRecompressor::stream_format_clicked(): Not implemented yet!" );
}

void QtRecompressor::stream_limit_mode_changed(int)
{
    qWarning( "QtRecompressor::stream_limit_mode_changed(int): Not implemented yet!" );
}

void QtRecompressor::stream_mode_changed(int)
{
    qWarning( "QtRecompressor::stream_mode_changed(int): Not implemented yet!" );
}

void QtRecompressor::stream_selected(int)
{
    qWarning( "QtRecompressor::stream_selected(int): Not implemented yet!" );
}

void QtRecompressor::up_filter_clicked()
{
    qWarning( "QtRecompressor::up_filter_clicked(): Not implemented yet!" );
}
