/****************************************************************************
** Form implementation generated from reading ui file 'DockFormUserListDoc.ui'
**
** Created: Tue Jun 9 19:16:01 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 "DockFormUserListDoc.h"

#include <qvariant.h>
#include <qheader.h>
#include <qlistview.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "DockFormUserListDoc.ui.h"

/*
 *  Constructs a DockFormUserListDoc as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
DockFormUserListDoc::DockFormUserListDoc( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setProperty( "name", "DockFormUserListDoc" );
    DockFormUserListDocLayout = new QGridLayout( this, 1, 1, 2, 2, "DockFormUserListDocLayout"); 

    ListView_Doc = new QListView( this, "ListView_Doc" );
    ListView_Doc->addColumn( tr( "            Documents                                  " ) );
    ListView_Doc->addColumn( tr( "type" ) );
    ListView_Doc->addColumn( tr( "PrimKey" ) );
    ListView_Doc->setProperty( "paletteBackgroundColor", QColor( 170, 255, 255 ) );
    ListView_Doc->setProperty( "acceptDrops", QVariant( TRUE, 0 ) );
    ListView_Doc->setProperty( "frameShape", "StyledPanel" );
    ListView_Doc->setProperty( "frameShadow", "Sunken" );
    ListView_Doc->setProperty( "rootIsDecorated", QVariant( FALSE, 0 ) );

    DockFormUserListDocLayout->addMultiCellWidget( ListView_Doc, 1, 1, 0, 4 );

    pushButtonDelete = new QPushButton( this, "pushButtonDelete" );
    pushButtonDelete->setProperty( "maximumSize", QSize( 32, 32 ) );

    DockFormUserListDocLayout->addWidget( pushButtonDelete, 0, 0 );

    pushButton_InportProfil = new QPushButton( this, "pushButton_InportProfil" );
    pushButton_InportProfil->setProperty( "maximumSize", QSize( 32, 32 ) );

    DockFormUserListDocLayout->addWidget( pushButton_InportProfil, 0, 3 );

    pushButton_ExportProfil = new QPushButton( this, "pushButton_ExportProfil" );
    pushButton_ExportProfil->setProperty( "maximumSize", QSize( 32, 32 ) );

    DockFormUserListDocLayout->addWidget( pushButton_ExportProfil, 0, 2 );
    spacer1 = new QSpacerItem( 30, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    DockFormUserListDocLayout->addItem( spacer1, 0, 4 );

    pushButtonNewDoc = new QPushButton( this, "pushButtonNewDoc" );
    pushButtonNewDoc->setProperty( "maximumSize", QSize( 32, 32 ) );

    DockFormUserListDocLayout->addWidget( pushButtonNewDoc, 0, 1 );
    languageChange();
    resize( QSize(195, 335).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( ListView_Doc, SIGNAL( clicked(QListViewItem*) ), this, SLOT( ListView_Doc_clicked(QListViewItem*) ) );
    connect( pushButtonNewDoc, SIGNAL( clicked() ), this, SLOT( pushButtonNewDoc_clicked() ) );
    connect( pushButtonDelete, SIGNAL( clicked() ), this, SLOT( pushButtonDelete_clicked() ) );
    connect( ListView_Doc, SIGNAL( currentChanged(QListViewItem*) ), this, SLOT( ListView_Doc_currentChanged(QListViewItem*) ) );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DockFormUserListDoc::languageChange()
{
    setProperty( "caption", tr( "Documents utilisateurs" ) );
    ListView_Doc->header()->setLabel( 0, tr( "            Documents                                  " ) );
    ListView_Doc->header()->setLabel( 1, tr( "type" ) );
    ListView_Doc->header()->setLabel( 2, tr( "PrimKey" ) );
    pushButtonDelete->setProperty( "text", QString::null );
    QToolTip::add( pushButtonDelete, tr( "Effacer un document de la liste" ) );
    pushButton_InportProfil->setProperty( "text", QString::null );
    QToolTip::add( pushButton_InportProfil, tr( "Importer un profil ..." ) );
    pushButton_ExportProfil->setProperty( "text", QString::null );
    QToolTip::add( pushButton_ExportProfil, tr( "Exporter le profil en cours..." ) );
    pushButtonNewDoc->setProperty( "text", QString::null );
    QToolTip::add( pushButtonNewDoc, trUtf8( "\x41\x6a\x6f\x75\x74\x65\x72\x20\x75\x6e\x20\x64\x6f\x63\x75\x6d\x65\x6e\x74\x20\xc3"
    "\xa0\x20\x6c\x61\x20\x6c\x69\x73\x74\x65" ) );
}

