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

#include "galleryalbumdialog.h"

#include <ntqvariant.h>
#include <ntqlabel.h>
#include <ntqframe.h>
#include <ntqlineedit.h>
#include <ntqpushbutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KIPIGalleryExportPlugin::GalleryAlbumDialog as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
KIPIGalleryExportPlugin::GalleryAlbumDialog::GalleryAlbumDialog( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "GalleryAlbumDialog" );
    setSizeGripEnabled( false );
    GalleryAlbumDialogLayout = new TQVBoxLayout( this, 10, 5, "GalleryAlbumDialogLayout"); 

    header = new TQLabel( this, "header" );
    GalleryAlbumDialogLayout->addWidget( header );

    hline1 = new TQFrame( this, "hline1" );
    hline1->setFrameShape( TQFrame::HLine );
    hline1->setFrameShadow( TQFrame::Sunken );
    hline1->setFrameShape( TQFrame::HLine );
    GalleryAlbumDialogLayout->addWidget( hline1 );

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

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

    layout3->addWidget( titleLabel, 0, 0 );

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

    layout3->addWidget( nameLabel, 1, 0 );

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

    layout3->addWidget( captionLabel, 2, 0 );

    titleEdit = new TQLineEdit( this, "titleEdit" );

    layout3->addWidget( titleEdit, 0, 1 );

    nameEdit = new TQLineEdit( this, "nameEdit" );

    layout3->addWidget( nameEdit, 1, 1 );

    captionEdit = new TQLineEdit( this, "captionEdit" );

    layout3->addWidget( captionEdit, 2, 1 );
    GalleryAlbumDialogLayout->addLayout( layout3 );

    hline2 = new TQFrame( this, "hline2" );
    hline2->setFrameShape( TQFrame::HLine );
    hline2->setFrameShadow( TQFrame::Sunken );
    hline2->setFrameShape( TQFrame::HLine );
    GalleryAlbumDialogLayout->addWidget( hline2 );

    Layout1 = new TQHBoxLayout( 0, 0, 6, "Layout1"); 
    Horizontal_Spacing2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout1->addItem( Horizontal_Spacing2 );

    buttonOk = new TQPushButton( this, "buttonOk" );
    buttonOk->setAutoDefault( true );
    buttonOk->setDefault( true );
    Layout1->addWidget( buttonOk );

    buttonCancel = new TQPushButton( this, "buttonCancel" );
    buttonCancel->setAutoDefault( true );
    Layout1->addWidget( buttonCancel );
    GalleryAlbumDialogLayout->addLayout( Layout1 );
    languageChange();
    resize( TQSize(342, 180).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    connect( buttonCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KIPIGalleryExportPlugin::GalleryAlbumDialog::languageChange()
{
    setCaption( tr2i18n( "MyDialog" ) );
    header->setText( tr2i18n( "<h3>Enter New Album Name</h3>" ) );
    titleLabel->setText( tr2i18n( "Title (optional):" ) );
    nameLabel->setText( tr2i18n( "Name (optional):" ) );
    captionLabel->setText( tr2i18n( "Caption (optional):" ) );
    buttonOk->setText( tr2i18n( "&OK" ) );
    buttonCancel->setText( tr2i18n( "&Cancel" ) );
}

#include "galleryalbumdialog.moc"
