Logo Search packages:      
Sourcecode: qsstv version File versions  Download package

recform.cpp

/****************************************************************************
** Form implementation generated from reading ui file './recform.ui'
**
** Created: Sun Dec 19 16:10:18 2004
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.2.1   edited May 19 14:22 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "recform.h"

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

/*
 *  Constructs a recorderForm as 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.
 */
recorderForm::recorderForm( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
      setName( "recorderForm" );

    timeLabel = new QLabel( this, "timeLabel" );
    timeLabel->setGeometry( QRect( 40, 10, 120, 31 ) );
    QFont timeLabel_font(  timeLabel->font() );
    timeLabel_font.setBold( TRUE );
    timeLabel->setFont( timeLabel_font ); 

    cancelButton = new QPushButton( this, "cancelButton" );
    cancelButton->setGeometry( QRect( 110, 90, 80, 30 ) );

    startButton = new QPushButton( this, "startButton" );
    startButton->setGeometry( QRect( 10, 90, 80, 30 ) );
    startButton->setToggleButton( TRUE );
    startButton->setToggleButton( TRUE );

    timeLineEdit = new QLineEdit( this, "timeLineEdit" );
    timeLineEdit->setGeometry( QRect( 40, 40, 120, 31 ) );
    timeLineEdit->setAlignment( int( QLineEdit::AlignRight ) );
    languageChange();
    resize( QSize(197, 143).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( startButton, SIGNAL( toggled(bool) ), this, SLOT( slotStartClicked(bool) ) );
    connect( cancelButton, SIGNAL( clicked() ), this, SLOT( slotCancelClicked() ) );

    // tab order
    setTabOrder( timeLineEdit, startButton );
    setTabOrder( startButton, cancelButton );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void recorderForm::languageChange()
{
    setCaption( tr( "Recorder" ) );
    timeLabel->setText( tr( "Duration (sec)" ) );
    cancelButton->setText( tr( "Cancel" ) );
    startButton->setText( tr( "Start" ) );
    timeLineEdit->setText( tr( "30" ) );
}

void recorderForm::slotCancelClicked()
{
    qWarning( "recorderForm::slotCancelClicked(): Not implemented yet" );
}

void recorderForm::slotStartClicked(bool)
{
    qWarning( "recorderForm::slotStartClicked(bool): Not implemented yet" );
}

#include "recform.moc"

Generated by  Doxygen 1.6.0   Back to index