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

tbwidg_basic_base.cc

/****************************************************************************
** Form implementation generated from reading ui file 'ui/tbwidg_basic_base.ui'
**
** Created: Mon May 27 13:23:03 2002
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "tbwidg_basic_base.h"

#include <qvariant.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qframe.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "color.h"
static const char* const image0_data[] = { 
"22 22 2 1",
". c None",
"# c #a4c610",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};


/* 
 *  Constructs a TWBasicBase which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 */
TWBasicBase::TWBasicBase( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    QPixmap image0( ( const char** ) image0_data );
    if ( !name )
      setName( "TWBasicBase" );
    resize( 375, 96 ); 
    setCaption( trUtf8( "Form1" ) );
    TWBasicBaseLayout = new QGridLayout( this, 1, 1, 2, 2, "TWBasicBaseLayout"); 

    interlaced = new QCheckBox( this, "interlaced" );
    interlaced->setText( trUtf8( "Interlaced" ) );

    TWBasicBaseLayout->addWidget( interlaced, 1, 3 );

    color = new ColorButton( this, "color" );

    TWBasicBaseLayout->addWidget( color, 2, 1 );

    TextLabel1_4_5_2_2_2_2 = new QLabel( this, "TextLabel1_4_5_2_2_2_2" );
    TextLabel1_4_5_2_2_2_2->setText( trUtf8( "Texture Height:" ) );

    TWBasicBaseLayout->addWidget( TextLabel1_4_5_2_2_2_2, 0, 0 );

    bevel = new QComboBox( FALSE, this, "bevel" );
    bevel->insertItem( trUtf8( "Bevel1" ) );
    bevel->insertItem( trUtf8( "Bevel2" ) );

    TWBasicBaseLayout->addWidget( bevel, 3, 3 );

    color_to = new ColorButton( this, "color_to" );

    TWBasicBaseLayout->addWidget( color_to, 3, 1 );

    texture_type = new QComboBox( FALSE, this, "texture_type" );
    texture_type->insertItem( trUtf8( "Gradient" ) );
    texture_type->insertItem( trUtf8( "Solid" ) );
    texture_type->insertItem( trUtf8( "ParentRelative" ) );

    TWBasicBaseLayout->addWidget( texture_type, 0, 3 );

    TextLabel1_4_3_4_2_2_2_2_2 = new QLabel( this, "TextLabel1_4_3_4_2_2_2_2_2" );
    TextLabel1_4_3_4_2_2_2_2_2->setText( trUtf8( "Color:" ) );

    TWBasicBaseLayout->addWidget( TextLabel1_4_3_4_2_2_2_2_2, 2, 0 );

    texture_height = new QComboBox( FALSE, this, "texture_height" );
    texture_height->insertItem( trUtf8( "Sunken" ) );
    texture_height->insertItem( trUtf8( "Raised" ) );
    texture_height->insertItem( trUtf8( "Flat" ) );

    TWBasicBaseLayout->addWidget( texture_height, 0, 1 );

    Line17 = new QFrame( this, "Line17" );
    Line17->setProperty( "frameShape", (int)QFrame::HLine );
    Line17->setFrameShadow( QFrame::Sunken );
    Line17->setFrameShape( QFrame::HLine );

    TWBasicBaseLayout->addMultiCellWidget( Line17, 1, 1, 0, 1 );

    TextLabel1_4_2_2_3_2_2_2_2 = new QLabel( this, "TextLabel1_4_2_2_3_2_2_2_2" );
    TextLabel1_4_2_2_3_2_2_2_2->setText( trUtf8( "Gradient:" ) );

    TWBasicBaseLayout->addWidget( TextLabel1_4_2_2_3_2_2_2_2, 2, 2 );

    gradient = new QComboBox( FALSE, this, "gradient" );
    gradient->insertItem( trUtf8( "Horizontal" ) );
    gradient->insertItem( trUtf8( "Vertical" ) );
    gradient->insertItem( trUtf8( "Diagonal" ) );
    gradient->insertItem( trUtf8( "CrossDiagonal" ) );
    gradient->insertItem( trUtf8( "Rectangle" ) );
    gradient->insertItem( trUtf8( "Pyramid" ) );
    gradient->insertItem( trUtf8( "PipeCross" ) );
    gradient->insertItem( trUtf8( "Elliptic" ) );

    TWBasicBaseLayout->addWidget( gradient, 2, 3 );

    TextLabel1_4_2_2_2_3_2_2_2_2 = new QLabel( this, "TextLabel1_4_2_2_2_3_2_2_2_2" );
    TextLabel1_4_2_2_2_3_2_2_2_2->setText( trUtf8( "Bevel:" ) );

    TWBasicBaseLayout->addWidget( TextLabel1_4_2_2_2_3_2_2_2_2, 3, 2 );

    TextLabel1_4_3_5_2_2_2_2 = new QLabel( this, "TextLabel1_4_3_5_2_2_2_2" );
    TextLabel1_4_3_5_2_2_2_2->setText( trUtf8( "Color To:" ) );

    TWBasicBaseLayout->addWidget( TextLabel1_4_3_5_2_2_2_2, 3, 0 );

    TextLabel1_4_2_4_2_2_2_2 = new QLabel( this, "TextLabel1_4_2_4_2_2_2_2" );
    TextLabel1_4_2_4_2_2_2_2->setText( trUtf8( "Texture Type:" ) );

    TWBasicBaseLayout->addWidget( TextLabel1_4_2_4_2_2_2_2, 0, 2 );

    // signals and slots connections
    connect( texture_height, SIGNAL( activated(int) ), this, SLOT( modified() ) );
    connect( interlaced, SIGNAL( clicked() ), this, SLOT( modified() ) );
    connect( gradient, SIGNAL( activated(int) ), this, SLOT( modified() ) );
    connect( bevel, SIGNAL( activated(int) ), this, SLOT( modified() ) );
    connect( color, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( color_to, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( texture_type, SIGNAL( activated(const QString&) ), this, SLOT( texture_changed(const QString&) ) );
    connect( texture_type, SIGNAL( activated(int) ), this, SLOT( modified() ) );

    // tab order
    setTabOrder( texture_height, color );
    setTabOrder( color, color_to );
    setTabOrder( color_to, texture_type );
    setTabOrder( texture_type, interlaced );
    setTabOrder( interlaced, gradient );
    setTabOrder( gradient, bevel );
}

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

void TWBasicBase::modified()
{
    qWarning( "TWBasicBase::modified(): Not implemented yet!" );
}

void TWBasicBase::texture_changed(const QString&)
{
    qWarning( "TWBasicBase::texture_changed(const QString&): Not implemented yet!" );
}


Generated by  Doxygen 1.6.0   Back to index