/****************************************************************************
** Form implementation generated from reading ui file 'RubDocuments.ui'
**
** Created: mer nov 19 01:38:57 2008
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "RubDocuments.h"

#include <qvariant.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "RubDocuments.ui.h"

/*
 *  Constructs a FormRubDocuments as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
FormRubDocuments::FormRubDocuments( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setProperty( "name", "FormRubDocuments" );
    setProperty( "minimumSize", QSize( 0, 32 ) );
    setProperty( "maximumSize", QSize( 32767, 32767 ) );
    FormRubDocumentsLayout = new QGridLayout( this, 1, 1, 0, 0, "FormRubDocumentsLayout"); 

    layout2 = new QHBoxLayout( 0, 0, 0, "layout2"); 

    textLabel_NbRub = new QLabel( this, "textLabel_NbRub" );
    textLabel_NbRub->setProperty( "minimumSize", QSize( 30, 0 ) );
    textLabel_NbRub->setProperty( "maximumSize", QSize( 30, 20 ) );
    QFont textLabel_NbRub_font(  textLabel_NbRub->font() );
    textLabel_NbRub->setFont( textLabel_NbRub_font ); 
    textLabel_NbRub->setProperty( "frameShape", "LineEditPanel" );
    textLabel_NbRub->setProperty( "frameShadow", "Sunken" );
    textLabel_NbRub->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignVCenter ) );
    layout2->addWidget( textLabel_NbRub );

    comboBox_RubName = new QComboBox( FALSE, this, "comboBox_RubName" );
    comboBox_RubName->setProperty( "minimumSize", QSize( 200, 22 ) );
    comboBox_RubName->setProperty( "maximumSize", QSize( 32767, 22 ) );
    QFont comboBox_RubName_font(  comboBox_RubName->font() );
    comboBox_RubName->setFont( comboBox_RubName_font ); 
    comboBox_RubName->setProperty( "sizeLimit", 20 );
    layout2->addWidget( comboBox_RubName );

    pushButtonRubDateChange = new QPushButton( this, "pushButtonRubDateChange" );
    pushButtonRubDateChange->setProperty( "minimumSize", QSize( 22, 22 ) );
    pushButtonRubDateChange->setProperty( "maximumSize", QSize( 22, 22 ) );
    layout2->addWidget( pushButtonRubDateChange );

    textLabel1 = new QLabel( this, "textLabel1" );
    textLabel1->setProperty( "minimumSize", QSize( 55, 22 ) );
    textLabel1->setProperty( "maximumSize", QSize( 55, 22 ) );
    QFont textLabel1_font(  textLabel1->font() );
    textLabel1->setFont( textLabel1_font ); 
    layout2->addWidget( textLabel1 );

    textLabel_UserName = new QLabel( this, "textLabel_UserName" );
    textLabel_UserName->setProperty( "minimumSize", QSize( 100, 22 ) );
    textLabel_UserName->setProperty( "maximumSize", QSize( 115, 22 ) );
    QFont textLabel_UserName_font(  textLabel_UserName->font() );
    textLabel_UserName->setFont( textLabel_UserName_font ); 
    textLabel_UserName->setProperty( "frameShape", "StyledPanel" );
    textLabel_UserName->setProperty( "frameShadow", "Sunken" );
    textLabel_UserName->setProperty( "scaledContents", QVariant( FALSE, 0 ) );
    textLabel_UserName->setProperty( "alignment", int( QLabel::AlignCenter ) );
    layout2->addWidget( textLabel_UserName );

    pushButtonSave = new QPushButton( this, "pushButtonSave" );
    pushButtonSave->setProperty( "maximumSize", QSize( 35, 30 ) );
    layout2->addWidget( pushButtonSave );

    pushButtonPrint = new QPushButton( this, "pushButtonPrint" );
    pushButtonPrint->setProperty( "maximumSize", QSize( 35, 30 ) );
    layout2->addWidget( pushButtonPrint );

    pushButtonDelete = new QPushButton( this, "pushButtonDelete" );
    pushButtonDelete->setProperty( "maximumSize", QSize( 35, 30 ) );
    layout2->addWidget( pushButtonDelete );

    pushButtonAdd = new QPushButton( this, "pushButtonAdd" );
    pushButtonAdd->setProperty( "maximumSize", QSize( 35, 30 ) );
    layout2->addWidget( pushButtonAdd );

    pushButtonExporter = new QPushButton( this, "pushButtonExporter" );
    pushButtonExporter->setProperty( "maximumSize", QSize( 35, 30 ) );
    layout2->addWidget( pushButtonExporter );

    FormRubDocumentsLayout->addLayout( layout2, 0, 0 );
    languageChange();
    resize( QSize(839, 148).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( comboBox_RubName, pushButtonRubDateChange );
    setTabOrder( pushButtonRubDateChange, pushButtonSave );
    setTabOrder( pushButtonSave, pushButtonPrint );
    setTabOrder( pushButtonPrint, pushButtonDelete );
    setTabOrder( pushButtonDelete, pushButtonExporter );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void FormRubDocuments::languageChange()
{
    setProperty( "caption", tr( "InvisibleStringFormPrescription" ) );
    textLabel_NbRub->setProperty( "text", tr( "txtLab_NbRub" ) );
    pushButtonRubDateChange->setProperty( "text", QString::null );
    QToolTip::add( pushButtonRubDateChange, trUtf8( "\x4d\x6f\x64\x69\x66\x69\x65\x72\x20\x6c\x61\x20\x64\x61\x74\x65\x20\x65\x74\x20\x6c\x27\x69\x6e\x74\x69\x74\x75\x6c\xc3\xa9\x20\x64\x75\x20\x64\x6f\x63\x75\x6d\x65\x6e\x74" ) );
    textLabel1->setProperty( "text", tr( "vu par :" ) );
    textLabel_UserName->setProperty( "text", tr( "Utilisateur" ) );
    pushButtonSave->setProperty( "text", QString::null );
    QToolTip::add( pushButtonSave, tr( "Enregistrer tout le dossier" ) );
    pushButtonPrint->setProperty( "text", QString::null );
    QToolTip::add( pushButtonPrint, trUtf8( "\x49\x6d\x70\x72\x69\x6d\x65\x72\x20\x63\x65\x74\x74\x65\x20\x66\x65\x6e\xc3\xaa\x74\x72\x65" ) );
    pushButtonDelete->setProperty( "text", QString::null );
    QToolTip::add( pushButtonDelete, trUtf8( "\x50\x6c\x61\x63\x65\x72\x20\x6c\x65\x20\x64\x6f\x63\x75\x6d\x65\x6e\x74\x20\x65\x6e\x20\x63\x6f\x75\x72\x73\x20\x63\x6f\x6d\x6d\x65\x20\x64\x6f\x63\x75\x6d\x65\x6e\x74\x20\xc3\xa0\x20\x65\x66\x66\x61\x63\x65\x72\x20\x28\x6e\x65\x20\x73\x65\x72\x61\x20\x65\x66\x66\x61\x63\xc3\xa9\x20\x71\x75\x27\x61\x70\x72\xc3\xa8\x73\x20\x65\x6e\x72\x65\x67\x69\x73\x74\x72\x65\x6d\x65\x6e\x74\x29" ) );
    pushButtonAdd->setProperty( "text", QString::null );
    QToolTip::add( pushButtonAdd, tr( "Charger une image..." ) );
    pushButtonExporter->setProperty( "text", QString::null );
    QToolTip::add( pushButtonExporter, tr( "Exporter cette image..." ) );
}

