/****************************************************************************
** Form implementation generated from reading ui file 'rpmwidget.ui'
**
** Created: Sat Mar 9 00:44:10 2002
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "rpmwidget.h"

#include <klocale.h>
#include <qcombobox.h>
#include <qframe.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qmultilineedit.h>
#include <qtabwidget.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a RPMWidget which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 */
RPMWidget::RPMWidget( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "RPM" );
    resize( 454, 339 ); 
    setMinimumSize( QSize( 450, 300 ) );
    setCaption( i18n( "RPM" ) );

    GroupBox7 = new QGroupBox( this, "GroupBox7" );
    GroupBox7->setGeometry( QRect( 0, 0, 455, 335 ) ); 
    GroupBox7->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, GroupBox7->sizePolicy().hasHeightForWidth() ) );
    GroupBox7->setFrameShape( QGroupBox::Box );
    GroupBox7->setFrameShadow( QGroupBox::Sunken );
    GroupBox7->setTitle( i18n( "RPM - Info" ) );

    TextLabel4 = new QLabel( GroupBox7, "TextLabel4" );
    TextLabel4->setGeometry( QRect( 10, 20, 95, 20 ) ); 
    TextLabel4->setText( i18n( "Distribution :" ) );

    strDistribution = new QLineEdit( GroupBox7, "strDistribution" );
    strDistribution->setGeometry( QRect( 110, 20, 335, 22 ) ); 

    strGroup = new QComboBox( FALSE, GroupBox7, "strGroup" );
    strGroup->setGeometry( QRect( 110, 50, 335, 22 ) ); 
    strGroup->setEditable( TRUE );

    strProvides = new QLineEdit( GroupBox7, "strProvides" );
    strProvides->setGeometry( QRect( 110, 80, 335, 22 ) ); 

    strRequires = new QLineEdit( GroupBox7, "strRequires" );
    strRequires->setGeometry( QRect( 110, 110, 335, 22 ) ); 

    TextLabel6 = new QLabel( GroupBox7, "TextLabel6" );
    TextLabel6->setGeometry( QRect( 10, 50, 95, 20 ) ); 
    TextLabel6->setText( i18n( "Group :" ) );

    TextLabel3 = new QLabel( GroupBox7, "TextLabel3" );
    TextLabel3->setGeometry( QRect( 10, 80, 95, 20 ) ); 
    TextLabel3->setText( i18n( "Provides :" ) );

    TextLabel1 = new QLabel( GroupBox7, "TextLabel1" );
    TextLabel1->setGeometry( QRect( 10, 110, 95, 20 ) ); 
    TextLabel1->setText( i18n( "Requires:" ) );

    TextLabel5 = new QLabel( GroupBox7, "TextLabel5" );
    TextLabel5->setGeometry( QRect( 10, 140, 95, 20 ) ); 
    TextLabel5->setText( i18n( "Vendor :" ) );

    strVendor = new QLineEdit( GroupBox7, "strVendor" );
    strVendor->setGeometry( QRect( 110, 140, 335, 22 ) ); 

    Line1 = new QFrame( GroupBox7, "Line1" );
    Line1->setGeometry( QRect( 10, 170, 435, 10 ) ); 
    Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );

    TabWidget2 = new QTabWidget( GroupBox7, "TabWidget2" );
    TabWidget2->setGeometry( QRect( 10, 180, 435, 150 ) ); 

    tab = new QWidget( TabWidget2, "tab" );

    strDescription = new QMultiLineEdit( tab, "strDescription" );
    strDescription->setGeometry( QRect( 5, 10, 420, 105 ) ); 
    strDescription->setWordWrap( QMultiLineEdit::WidgetWidth );
    TabWidget2->insertTab( tab, i18n( "Description" ) );

    tab_2 = new QWidget( TabWidget2, "tab_2" );

    strSummary = new QMultiLineEdit( tab_2, "strSummary" );
    strSummary->setGeometry( QRect( 5, 10, 420, 105 ) ); 
    strSummary->setWordWrap( QMultiLineEdit::WidgetWidth );
    TabWidget2->insertTab( tab_2, i18n( "Summary" ) );

    // tab order
    setTabOrder( strDistribution, strGroup );
    setTabOrder( strGroup, strProvides );
    setTabOrder( strProvides, strRequires );
    setTabOrder( strRequires, strVendor );
    setTabOrder( strVendor, TabWidget2 );
    setTabOrder( TabWidget2, strDescription );
    setTabOrder( strDescription, strSummary );
}

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

