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

freqform.cpp

/****************************************************************************
** Form implementation generated from reading ui file './freqform.ui'
**
** Created: Sun Dec 19 16:10:20 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 "freqform.h"

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

/*
 *  Constructs a freqForm 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.
 */
freqForm::freqForm( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
      setName( "freqForm" );
    freqFormLayout = new QVBoxLayout( this, 11, 6, "freqFormLayout"); 

    Layout9 = new QHBoxLayout( 0, 0, 6, "Layout9"); 
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout9->addItem( spacer );

    Layout1 = new QVBoxLayout( 0, 0, 6, "Layout1"); 

    frequencyLabel = new QLabel( this, "frequencyLabel" );
    QFont frequencyLabel_font(  frequencyLabel->font() );
    frequencyLabel_font.setPointSize( 10 );
    frequencyLabel_font.setBold( TRUE );
    frequencyLabel->setFont( frequencyLabel_font ); 
    Layout1->addWidget( frequencyLabel );

    frequencySpinBox = new QSpinBox( this, "frequencySpinBox" );
    QFont frequencySpinBox_font(  frequencySpinBox->font() );
    frequencySpinBox_font.setPointSize( 10 );
    frequencySpinBox_font.setBold( TRUE );
    frequencySpinBox->setFont( frequencySpinBox_font ); 
    frequencySpinBox->setMaxValue( 2500 );
    frequencySpinBox->setMinValue( 300 );
    frequencySpinBox->setValue( 1200 );
    Layout1->addWidget( frequencySpinBox );
    Layout9->addLayout( Layout1 );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout9->addItem( spacer_2 );

    Layout2 = new QVBoxLayout( 0, 0, 6, "Layout2"); 

    durationLabel = new QLabel( this, "durationLabel" );
    QFont durationLabel_font(  durationLabel->font() );
    durationLabel_font.setPointSize( 10 );
    durationLabel_font.setBold( TRUE );
    durationLabel->setFont( durationLabel_font ); 
    Layout2->addWidget( durationLabel );

    durationSpinBox = new QSpinBox( this, "durationSpinBox" );
    QFont durationSpinBox_font(  durationSpinBox->font() );
    durationSpinBox_font.setPointSize( 10 );
    durationSpinBox_font.setBold( TRUE );
    durationSpinBox->setFont( durationSpinBox_font ); 
    durationSpinBox->setMaxValue( 700 );
    durationSpinBox->setMinValue( 1 );
    durationSpinBox->setValue( 10 );
    Layout2->addWidget( durationSpinBox );
    Layout9->addLayout( Layout2 );
    QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout9->addItem( spacer_3 );
    freqFormLayout->addLayout( Layout9 );

    Layout6 = new QHBoxLayout( 0, 0, 6, "Layout6"); 
    QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout6->addItem( spacer_4 );

    okButton = new QPushButton( this, "okButton" );
    QFont okButton_font(  okButton->font() );
    okButton_font.setPointSize( 10 );
    okButton_font.setBold( TRUE );
    okButton->setFont( okButton_font ); 
    Layout6->addWidget( okButton );

    cancelButton = new QPushButton( this, "cancelButton" );
    QFont cancelButton_font(  cancelButton->font() );
    cancelButton_font.setPointSize( 10 );
    cancelButton_font.setBold( TRUE );
    cancelButton->setFont( cancelButton_font ); 
    Layout6->addWidget( cancelButton );
    QSpacerItem* spacer_5 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout6->addItem( spacer_5 );
    freqFormLayout->addLayout( Layout6 );
    QSpacerItem* spacer_6 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    freqFormLayout->addItem( spacer_6 );
    languageChange();
    resize( QSize(249, 139).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

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

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void freqForm::languageChange()
{
    setCaption( tr( "Form1" ) );
    frequencyLabel->setText( tr( "Frequency" ) );
    durationLabel->setText( tr( "Duration (sec)" ) );
    okButton->setText( tr( "OK" ) );
    cancelButton->setText( tr( "Cancel" ) );
}

#include "freqform.moc"

Generated by  Doxygen 1.6.0   Back to index