/****************************************************************************
** Form implementation generated from reading ui file './srcctl.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 "srcctl_p.h"

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

/* 
 *  Constructs a SourceControl 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.
 */
SourceControl::SourceControl( QWidget* parent,  const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "SourceControl" );
    //resize( 547, 73 );
    setCaption( tr( "Source control" ) );

    QGridLayout* gl = new QGridLayout( this );
    gl->setSpacing( 6 );
    gl->setMargin( 6 );

    Slider1 = new QSlider( this, "Slider1" );
    Slider1->setOrientation( QSlider::Horizontal );
    Slider1->setTickmarks( QSlider::Right);

    gl->addMultiCellWidget( Slider1, 0, 0, 0, 9 );


    ToolButton1 = new QToolButton( this, "ToolButton1" );
    ToolButton1->setText( tr( "<" ) );
    gl->addWidget( ToolButton1, 1, 0 );

    ToolButton1_6 = new QToolButton( this, "ToolButton1_6" );
    ToolButton1_6->setText( tr( ">" ) );
    gl->addWidget( ToolButton1_6, 1, 1 );


    ToolButton1_2 = new QToolButton( this, "ToolButton1_2" );
    ToolButton1_2->setText( tr( "<<" ) );
    gl->addWidget( ToolButton1_2, 1, 2 );
    ToolButton1_5 = new QToolButton( this, "ToolButton1_5" );
    ToolButton1_5->setText( tr( ">>" ) );
    gl->addWidget( ToolButton1_5, 1, 3 );


    ToolButton1_3 = new QToolButton( this, "ToolButton1_3" );
    ToolButton1_3->setText( tr( "<<<" ) );
    gl->addWidget( ToolButton1_3, 1, 4 );

    ToolButton1_4 = new QToolButton( this, "ToolButton1_4" );
    ToolButton1_4->setText( tr( ">>>" ) );
    gl->addWidget( ToolButton1_4, 1, 5 );


    QToolButton* TB_PrevKeyFrame = new QToolButton( this, "TB_PrevKeyFrame" );
    TB_PrevKeyFrame->setText( tr( "KF<" ) );
    gl->addWidget( TB_PrevKeyFrame, 1, 6 );

    QToolButton* TB_NextKeyFrame = new QToolButton( this, "TB_NextKeyFrame" );
    TB_NextKeyFrame->setText( tr( ">KF" ) );
    gl->addWidget( TB_NextKeyFrame, 1, 7 );

    gl->setColStretch(8, 1);


    TextLabel3 = new QLabel( this, "TextLabel3" );
    TextLabel3->setText( tr( "Frame 408" ) );
    TextLabel3->setAlignment( QLabel::AlignCenter );

    gl->addWidget( TextLabel3, 1, 9 );

    gl->setRowStretch(2, 1);

    // signals and slots connections
    connect( Slider1, SIGNAL( sliderReleased() ), this, SLOT( pos_changed() ) );
    //connect( Slider1, SIGNAL( sliderMoved(int) ), this, SLOT( moved_func(int) ) );
    //connect( Slider1, SIGNAL( valueChanged(int) ), this, SLOT( moved_func(int) ) );
    connect( ToolButton1, SIGNAL( clicked() ), this, SLOT( left_frame() ) );
    connect( ToolButton1_3, SIGNAL( clicked() ), this, SLOT( left_twenty_frames() ) );
    connect( ToolButton1_6, SIGNAL( clicked() ), this, SLOT( right_frame() ) );
    connect( ToolButton1_5, SIGNAL( clicked() ), this, SLOT( right_five_frames() ) );
    connect( ToolButton1_4, SIGNAL( clicked() ), this, SLOT( right_twenty_frames() ) );
    connect( ToolButton1_2, SIGNAL( clicked() ), this, SLOT( left_five_frames() ) );
    connect( TB_NextKeyFrame, SIGNAL( clicked() ), this, SLOT( next_key_frame() ) );
    connect( TB_PrevKeyFrame, SIGNAL( clicked() ), this, SLOT( prev_key_frame() ) );
}

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

void SourceControl::left_five_frames()
{
    qWarning( "SourceControl::left_five_frames(): Not implemented yet!" );
}

void SourceControl::left_frame()
{
    qWarning( "SourceControl::left_frame(): Not implemented yet!" );
}

void SourceControl::left_twenty_frames()
{
    qWarning( "SourceControl::left_twenty_frames(): Not implemented yet!" );
}

void SourceControl::pos_changed()
{
    qWarning( "SourceControl::pos_changed(): Not implemented yet!" );
}

void SourceControl::moved_func(int)
{
    qWarning( "SourceControl::moved_func(): Not implemented yet!" );
}

void SourceControl::right_five_frames()
{
    qWarning( "SourceControl::right_five_frames(): Not implemented yet!" );
}

void SourceControl::right_frame()
{
    qWarning( "SourceControl::right_frame(): Not implemented yet!" );
}

void SourceControl::right_twenty_frames()
{
    qWarning( "SourceControl::right_twenty_frames(): Not implemented yet!" );
}

void SourceControl::prev_key_frame()
{
    qWarning( "SourceControl::prev_key_frame(): Not implemented yet!" );
}

void SourceControl::next_key_frame()
{
    qWarning( "SourceControl::prev_key_frame(): Not implemented yet!" );
}
