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

#include "caleventsbase.h"

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

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

    textLabel1 = new TQLabel( this, "textLabel1" );
    TQFont textLabel1_font(  textLabel1->font() );
    textLabel1_font.setBold( true );
    textLabel1->setFont( textLabel1_font ); 
    Form1Layout->addWidget( textLabel1 );

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

    ohFileEdit = new KLineEdit( this, "ohFileEdit" );
    ohFileEdit->setMinimumSize( TQSize( 300, 0 ) );
    layout6->addWidget( ohFileEdit );

    ohBtn = new TQPushButton( this, "ohBtn" );
    layout6->addWidget( ohBtn );
    Form1Layout->addLayout( layout6 );

    textLabel2 = new TQLabel( this, "textLabel2" );
    TQFont textLabel2_font(  textLabel2->font() );
    textLabel2_font.setItalic( true );
    textLabel2->setFont( textLabel2_font ); 
    textLabel2->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    Form1Layout->addWidget( textLabel2 );

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

    textLabel1_2 = new TQLabel( this, "textLabel1_2" );
    TQFont textLabel1_2_font(  textLabel1_2->font() );
    textLabel1_2_font.setBold( true );
    textLabel1_2->setFont( textLabel1_2_font ); 
    Form1Layout->addWidget( textLabel1_2 );

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

    fhFileEdit = new KLineEdit( this, "fhFileEdit" );
    fhFileEdit->setMinimumSize( TQSize( 300, 0 ) );
    layout7->addWidget( fhFileEdit );

    fhBtn = new TQPushButton( this, "fhBtn" );
    fhBtn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, fhBtn->sizePolicy().hasHeightForWidth() ) );
    layout7->addWidget( fhBtn );
    Form1Layout->addLayout( layout7 );

    textLabel2_2 = new TQLabel( this, "textLabel2_2" );
    TQFont textLabel2_2_font(  textLabel2_2->font() );
    textLabel2_2_font.setItalic( true );
    textLabel2_2->setFont( textLabel2_2_font ); 
    textLabel2_2->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    Form1Layout->addWidget( textLabel2_2 );
    spacer1 = new TQSpacerItem( 41, 140, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Form1Layout->addItem( spacer1 );
    languageChange();
    resize( TQSize(427, 455).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( fhBtn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( fhChooseSlot() ) );
    connect( ohBtn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( ohChooseSlot() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void CalEventsBase::languageChange()
{
    setCaption( tr2i18n( "CalEventBaseWidget" ) );
    textLabel1->setText( tr2i18n( "Select an optional calendar file with the official holidays" ) );
    ohBtn->setText( TQString::null );
    textLabel2->setText( tr2i18n( "You can download a calendar for your country from http://www.icalshare.com/ or other sites.\n"
"This is fully optional. All the events from this calendar will be printed red." ) );
    textLabel1_2->setText( tr2i18n( "Select an optional calendar file with your \"family holidays\"" ) );
    fhBtn->setText( TQString::null );
    textLabel2_2->setText( tr2i18n( "You can create such a calendar using KOrganizer or any other calendar program.\n"
"This is fully optional. All the events from this calendar will be printed green." ) );
}

void CalEventsBase::fhChooseSlot()
{
    tqWarning( "CalEventsBase::fhChooseSlot(): Not implemented yet" );
}

void CalEventsBase::ohChooseSlot()
{
    tqWarning( "CalEventsBase::ohChooseSlot(): Not implemented yet" );
}

#include "caleventsbase.moc"
