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

#include "PicasawebNewAlbumDialog.h"

#include <ntqvariant.h>
#include <ntqlabel.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqpushbutton.h>
#include <ntqlineedit.h>
#include <ntqdatetimeedit.h>
#include <ntqtextedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    textLabel1 = new TQLabel( this, "textLabel1" );
    textLabel1->setGeometry( TQRect( 30, 20, 111, 21 ) );

    m_accessRadioButton = new TQButtonGroup( this, "m_accessRadioButton" );
    m_accessRadioButton->setGeometry( TQRect( 160, 220, 300, 71 ) );

    m_isUnlistedRadioButton = new TQRadioButton( m_accessRadioButton, "m_isUnlistedRadioButton" );
    m_isUnlistedRadioButton->setGeometry( TQRect( 10, 40, 111, 21 ) );

    m_isPublicRadioButton = new TQRadioButton( m_accessRadioButton, "m_isPublicRadioButton" );
    m_isPublicRadioButton->setGeometry( TQRect( 10, 20, 141, 21 ) );

    m_cancelButton = new TQPushButton( this, "m_cancelButton" );
    m_cancelButton->setGeometry( TQRect( 400, 300, 71, 31 ) );

    textLabel3 = new TQLabel( this, "textLabel3" );
    textLabel3->setGeometry( TQRect( 30, 50, 71, 21 ) );

    textLabel2 = new TQLabel( this, "textLabel2" );
    textLabel2->setGeometry( TQRect( 30, 90, 91, 21 ) );

    textLabel4 = new TQLabel( this, "textLabel4" );
    textLabel4->setGeometry( TQRect( 30, 200, 121, 21 ) );

    m_titleLineEdit = new TQLineEdit( this, "m_titleLineEdit" );
    m_titleLineEdit->setGeometry( TQRect( 160, 20, 251, 21 ) );

    m_locationLineEdit = new TQLineEdit( this, "m_locationLineEdit" );
    m_locationLineEdit->setGeometry( TQRect( 160, 200, 291, 21 ) );

    m_dateAndTimeEdit = new TQDateTimeEdit( this, "m_dateAndTimeEdit" );
    m_dateAndTimeEdit->setGeometry( TQRect( 160, 50, 261, 22 ) );

    m_descriptionTextBox = new TQTextEdit( this, "m_descriptionTextBox" );
    m_descriptionTextBox->setGeometry( TQRect( 160, 90, 301, 91 ) );

    m_createAlbumButton = new TQPushButton( this, "m_createAlbumButton" );
    m_createAlbumButton->setGeometry( TQRect( 290, 300, 101, 31 ) );
    languageChange();
    resize( TQSize(504, 339).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

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

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KIPIPicasawebExportPlugin::NewAlbumDialog::languageChange()
{
    setCaption( tr2i18n( "New Album Dialog" ) );
    textLabel1->setText( tr2i18n( "Title" ) );
    m_accessRadioButton->setTitle( tr2i18n( "Access Level" ) );
    m_isUnlistedRadioButton->setText( tr2i18n( "Unlisted " ) );
    m_isPublicRadioButton->setText( tr2i18n( "Public" ) );
    m_cancelButton->setText( tr2i18n( "Cancel" ) );
    textLabel3->setText( tr2i18n( "Date" ) );
    textLabel2->setText( tr2i18n( "Description" ) );
    textLabel4->setText( tr2i18n( "Place Taken" ) );
    m_createAlbumButton->setText( tr2i18n( "Create" ) );
}

void KIPIPicasawebExportPlugin::NewAlbumDialog::creatAlbumSlot()
{
    tqWarning( "KIPIPicasawebExportPlugin::NewAlbumDialog::creatAlbumSlot(): Not implemented yet" );
}

void KIPIPicasawebExportPlugin::NewAlbumDialog::cancelWindowSlot()
{
    tqWarning( "KIPIPicasawebExportPlugin::NewAlbumDialog::cancelWindowSlot(): Not implemented yet" );
}

#include "PicasawebNewAlbumDialog.moc"
