/****************************************************************************
** Form implementation generated from reading ui file 'Types3DInvisibleConfigure.ui'
**
** Created: Mon Aug 1 11:57:02 2005
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.3   edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "Types3DInvisibleConfigure.h"

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

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

    QWidget* privateLayoutWidget = new QWidget( this, "layout6" );
    privateLayoutWidget->setGeometry( QRect( 20, 20, 370, 120 ) );
    layout6 = new QVBoxLayout( privateLayoutWidget, 11, 6, "layout6"); 

    textLabel1 = new QLabel( privateLayoutWidget, "textLabel1" );
    layout6->addWidget( textLabel1 );
    spacer2 = new QSpacerItem( 20, 80, QSizePolicy::Minimum, QSizePolicy::Expanding );
    layout6->addItem( spacer2 );

    typeListEdit = new QLineEdit( privateLayoutWidget, "typeListEdit" );
    layout6->addWidget( typeListEdit );
    spacer3 = new QSpacerItem( 20, 80, QSizePolicy::Minimum, QSizePolicy::Expanding );
    layout6->addItem( spacer3 );

    layout1 = new QHBoxLayout( 0, 0, 6, "layout1"); 

    okButton = new QPushButton( privateLayoutWidget, "okButton" );
    layout1->addWidget( okButton );
    spacer1 = new QSpacerItem( 21, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout1->addItem( spacer1 );

    cancelButton = new QPushButton( privateLayoutWidget, "cancelButton" );
    layout1->addWidget( cancelButton );
    layout6->addLayout( layout1 );
    languageChange();
    resize( QSize(410, 160).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

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

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Types3DInvisibleDialog::languageChange()
{
    setCaption( tr( "List of types invisible in 3D" ) );
    textLabel1->setText( tr( "List of cell types invisible in 3D" ) );
    okButton->setText( tr( "OK" ) );
    cancelButton->setText( tr( "Cancel" ) );
}

