/****************************************************************************
** Form implementation generated from reading ui file 'DlgAllergie.ui'
**
** Created: Tue Jun 9 19:14:35 2009
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "DlgAllergie.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qsplitter.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qheader.h>
#include <qlistview.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "../../MedinTuxTools/CMedicaBase.h"
#include "Global.h"
#include "CApp.h"
#include "DlgAllergie.ui.h"

/*
 *  Constructs a DlgAllergie as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
DlgAllergie::DlgAllergie( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setProperty( "name", "DlgAllergie" );
    DlgAllergieLayout = new QGridLayout( this, 1, 1, 11, 6, "DlgAllergieLayout"); 

    splitter1 = new QSplitter( this, "splitter1" );
    splitter1->setProperty( "orientation", "Horizontal" );

    QWidget* privateLayoutWidget = new QWidget( splitter1, "layout2" );
    layout2 = new QVBoxLayout( privateLayoutWidget, 11, 6, "layout2"); 

    layout1 = new QHBoxLayout( 0, 0, 6, "layout1"); 

    textLabel2 = new QLabel( privateLayoutWidget, "textLabel2" );
    textLabel2->setProperty( "maximumSize", QSize( 150, 32767 ) );
    layout1->addWidget( textLabel2 );

    lineEditNom = new QLineEdit( privateLayoutWidget, "lineEditNom" );
    layout1->addWidget( lineEditNom );
    layout2->addLayout( layout1 );

    listView_Sbce = new QListView( privateLayoutWidget, "listView_Sbce" );
    listView_Sbce->addColumn( trUtf8( "\x4c\x69\x62\x65\x6c\x6c\xc3\xa9\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
    "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
    "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" ) );
    listView_Sbce->addColumn( tr( "Code Sbce" ) );
    listView_Sbce->setProperty( "rootIsDecorated", QVariant( FALSE, 0 ) );
    layout2->addWidget( listView_Sbce );

    textLabelStatut = new QLabel( privateLayoutWidget, "textLabelStatut" );
    textLabelStatut->setProperty( "frameShape", "MenuBarPanel" );
    layout2->addWidget( textLabelStatut );

    QWidget* privateLayoutWidget_2 = new QWidget( splitter1, "layout6" );
    layout6 = new QHBoxLayout( privateLayoutWidget_2, 11, 6, "layout6"); 

    layout4 = new QVBoxLayout( 0, 0, 6, "layout4"); 
    spacer2 = new QSpacerItem( 11, 76, QSizePolicy::Minimum, QSizePolicy::Expanding );
    layout4->addItem( spacer2 );

    pushButton_AddToChoix_1 = new QPushButton( privateLayoutWidget_2, "pushButton_AddToChoix_1" );
    pushButton_AddToChoix_1->setProperty( "maximumSize", QSize( 65, 32767 ) );
    layout4->addWidget( pushButton_AddToChoix_1 );
    spacer1 = new QSpacerItem( 10, 121, QSizePolicy::Minimum, QSizePolicy::Expanding );
    layout4->addItem( spacer1 );

    pushButtonRemoveFromChoix = new QPushButton( privateLayoutWidget_2, "pushButtonRemoveFromChoix" );
    pushButtonRemoveFromChoix->setProperty( "maximumSize", QSize( 65, 32767 ) );
    layout4->addWidget( pushButtonRemoveFromChoix );
    spacer3 = new QSpacerItem( 10, 56, QSizePolicy::Minimum, QSizePolicy::Expanding );
    layout4->addItem( spacer3 );
    layout6->addLayout( layout4 );

    layout5 = new QVBoxLayout( 0, 0, 6, "layout5"); 

    textLabel1 = new QLabel( privateLayoutWidget_2, "textLabel1" );
    textLabel1->setProperty( "frameShape", "MenuBarPanel" );
    textLabel1->setProperty( "alignment", int( QLabel::AlignCenter ) );
    layout5->addWidget( textLabel1 );

    listView_Choix = new QListView( privateLayoutWidget_2, "listView_Choix" );
    listView_Choix->addColumn( trUtf8( "\x4c\x69\x62\x65\x6c\x6c\xc3\xa9\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
    "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
    "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" ) );
    listView_Choix->addColumn( tr( "Code" ) );
    listView_Choix->setProperty( "minimumSize", QSize( 250, 0 ) );
    listView_Choix->setProperty( "rootIsDecorated", QVariant( FALSE, 0 ) );
    layout5->addWidget( listView_Choix );

    pushButtonOK = new QPushButton( privateLayoutWidget_2, "pushButtonOK" );
    layout5->addWidget( pushButtonOK );
    layout6->addLayout( layout5 );

    DlgAllergieLayout->addWidget( splitter1, 0, 0 );
    languageChange();
    resize( QSize(796, 476).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( lineEditNom, SIGNAL( textChanged(const QString&) ), this, SLOT( lineEditNom_textChanged(const QString&) ) );
    connect( pushButton_AddToChoix_1, SIGNAL( clicked() ), this, SLOT( pushButton_AddToChoix_1_clicked() ) );
    connect( pushButtonRemoveFromChoix, SIGNAL( pressed() ), this, SLOT( pushButtonRemoveFromChoix_pressed() ) );
    connect( pushButtonOK, SIGNAL( clicked() ), this, SLOT( pushButtonOK_clicked() ) );
    connect( listView_Sbce, SIGNAL( clicked(QListViewItem*) ), this, SLOT( listView_Sbce_clicked(QListViewItem*) ) );
    connect( listView_Choix, SIGNAL( clicked(QListViewItem*) ), this, SLOT( listView_Choix_clicked(QListViewItem*) ) );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DlgAllergie::languageChange()
{
    setProperty( "caption", trUtf8( "\x49\x6e\x74\x6f\x6c\xc3\xa9\x72\x61\x6e\x63\x65\x73\x20\x6d\xc3\xa9\x64\x69\x63\x61"
    "\x6d\x65\x6e\x74\x65\x75\x73\x65\x73" ) );
    textLabel2->setProperty( "text", tr( "Produit :" ) );
    listView_Sbce->header()->setLabel( 0, trUtf8( "\x4c\x69\x62\x65\x6c\x6c\xc3\xa9\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
    "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
    "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" ) );
    listView_Sbce->header()->setLabel( 1, tr( "Code Sbce" ) );
    pushButton_AddToChoix_1->setProperty( "text", QString::null );
    QToolTip::add( pushButton_AddToChoix_1, trUtf8( "\x41\x6a\x6f\x75\x74\x65\x72\x20\x75\x6e\x20\xc3\xa9\x6c\xc3\xa9\x6d\x65\x6e\x74\x20"
    "\x73\xc3\xa9\x6c\x65\x63\x74\x69\x6f\x6e\x6e\xc3\xa9\x20\xc3\xa0\x20\x67\x61\x75"
    "\x63\x68\x65\x20\x64\x61\x6e\x73\x20\x6c\x61\x20\x6c\x69\x73\x74\x65\x20\x64\x65"
    "\x20\x64\x72\x6f\x69\x74\x65" ) );
    pushButtonRemoveFromChoix->setProperty( "text", QString::null );
    QToolTip::add( pushButtonRemoveFromChoix, trUtf8( "\x52\x65\x74\x69\x72\x65\x72\x20\x6c\x61\x20\x73\xc3\xa9\x6c\x65\x63\x74\x69\x6f\x6e"
    "\x20\x64\x65\x20\x67\x61\x75\x63\x68\x65" ) );
    textLabel1->setProperty( "text", trUtf8( "\x49\x6e\x74\x6f\x6c\xc3\xa9\x72\x61\x6e\x63\x65\x73\x20\x73\xc3\xa9\x6c\x65\x63\x74"
    "\x69\x6f\x6e\x6e\xc3\xa9\x65\x73" ) );
    listView_Choix->header()->setLabel( 0, trUtf8( "\x4c\x69\x62\x65\x6c\x6c\xc3\xa9\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
    "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
    "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" ) );
    listView_Choix->header()->setLabel( 1, tr( "Code" ) );
    pushButtonOK->setProperty( "text", tr( "&Valider" ) );
    pushButtonOK->setProperty( "accel", QKeySequence( tr( "Alt+V" ) ) );
}

