#include <kdialog.h>
#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './embedview.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "embedview.h"

#include <ntqvariant.h>
#include <klineedit.h>
#include <kpushbutton.h>
#include <ntqlabel.h>
#include <ntqgroupbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a EmbedView as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
EmbedView::EmbedView( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "Form1" );
    Form1Layout = new TQVBoxLayout( this, 11, 6, "Form1Layout"); 

    layout1 = new TQGridLayout( 0, 1, 1, 0, 6, "layout1"); 

    textLabel3 = new TQLabel( this, "textLabel3" );

    layout1->addWidget( textLabel3, 2, 0 );

    m_dept = new KLineEdit( this, "m_dept" );

    layout1->addWidget( m_dept, 1, 1 );

    m_name = new KLineEdit( this, "m_name" );

    layout1->addWidget( m_name, 0, 1 );

    textLabel2 = new TQLabel( this, "textLabel2" );

    layout1->addWidget( textLabel2, 1, 0 );

    textLabel1 = new TQLabel( this, "textLabel1" );

    layout1->addWidget( textLabel1, 0, 0 );

    m_title = new KLineEdit( this, "m_title" );

    layout1->addWidget( m_title, 2, 1 );
    Form1Layout->addLayout( layout1 );

    m_customOptions = new TQGroupBox( this, "m_customOptions" );
    m_customOptions->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 1, 1, m_customOptions->sizePolicy().hasHeightForWidth() ) );
    Form1Layout->addWidget( m_customOptions );

    layout3 = new TQHBoxLayout( 0, 0, 6, "layout3"); 

    m_console = new KPushButton( this, "m_console" );
    m_console->setProperty( "stdItem", 0 );
    layout3->addWidget( m_console );
    spacer1 = new TQSpacerItem( 280, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout3->addItem( spacer1 );

    m_ok = new KPushButton( this, "m_ok" );
    m_ok->setProperty( "stdItem", 1 );
    layout3->addWidget( m_ok );

    m_cancel = new KPushButton( this, "m_cancel" );
    m_cancel->setProperty( "stdItem", 2 );
    layout3->addWidget( m_cancel );
    Form1Layout->addLayout( layout3 );
    languageChange();
    resize( TQSize(600, 480).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_ok, TQ_SIGNAL( clicked() ), this, TQ_SLOT( okClicked() ) );
    connect( m_cancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( cancelClicked() ) );
    connect( m_console, TQ_SIGNAL( clicked() ), this, TQ_SLOT( consoleClicked() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void EmbedView::languageChange()
{
    textLabel3->setText( tr2i18n( "Title:" ) );
    textLabel2->setText( tr2i18n( "Department:" ) );
    textLabel1->setText( tr2i18n( "Name:" ) );
    m_customOptions->setTitle( tr2i18n( "Custom Options" ) );
    m_console->setText( tr2i18n( "Console" ) );
    m_ok->setText( tr2i18n( "&OK" ) );
    m_cancel->setText( tr2i18n( "&Cancel" ) );
}

void EmbedView::okClicked()
{
    tqWarning( "EmbedView::okClicked(): Not implemented yet" );
}

void EmbedView::cancelClicked()
{
    tqWarning( "EmbedView::cancelClicked(): Not implemented yet" );
}

void EmbedView::consoleClicked()
{
    tqWarning( "EmbedView::consoleClicked(): Not implemented yet" );
}

#include "embedview.moc"
