#include "simapi.h"
/****************************************************************************
** Form implementation generated from reading ui file './filtercfgbase.ui'
**
** Created: вт мар 30 16:54:45 2004
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "filtercfgbase.h"

#include <qvariant.h>
#include <qwidget.h>
#include <qcheckbox.h>
#include <qlabel.h>
#include <qmultilineedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

static const char* const img0_filtercfgbase[] = { 
"22 22 2 1",
". c None",
"# c #a4c610",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};


/* 
 *  Constructs a FilterConfigBase as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 */
FilterConfigBase::FilterConfigBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl ),
      image0( (const char **) img0_filtercfgbase )
{
    if ( !name )
	setName( "FilterConfig" );
    FilterConfigLayout = new QVBoxLayout( this, 11, 6, "FilterConfigLayout"); 

    chkFromList = new QCheckBox( this, "chkFromList" );
    FilterConfigLayout->addWidget( chkFromList );

    lblFilter = new QLabel( this, "lblFilter" );
    lblFilter->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
    FilterConfigLayout->addWidget( lblFilter );

    edtFilter = new QMultiLineEdit( this, "edtFilter" );
    FilterConfigLayout->addWidget( edtFilter );

    TextLabel1 = new QLabel( this, "TextLabel1" );
    TextLabel1->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
    FilterConfigLayout->addWidget( TextLabel1 );
    languageChange();
    resize( QSize(353, 253).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void FilterConfigBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    chkFromList->setProperty( "text", i18n( "&Receive message only from contacts from list" ) );
    lblFilter->setProperty( "text", i18n( "Reject messages from unknown users contains this words or phrases:" ) );
    TextLabel1->setProperty( "text", i18n( "Words are divided by any separators (space, comma, i.e.)\n"
"A phrase can be specified using quotation marks\n"
"Words can contain wildcards:\n"
"* - any amount of symbols (or is empty)\n"
"? - any symbol" ) );
}

#include "filtercfgbase.moc"
