/****************************************************************************
** Form implementation generated from reading ui file 'DockFormUserList.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 "DockFormUserList.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qheader.h>
#include <qlistview.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "CApp.h"
#include "DockFormUserList.ui.h"

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

    pushButtonUserDelete = new QPushButton( this, "pushButtonUserDelete" );
    pushButtonUserDelete->setMaximumSize( QSize( 32, 32 ) );

    DockFormUserListLayout->addWidget( pushButtonUserDelete, 0, 0 );

    pushButtonNewUser = new QPushButton( this, "pushButtonNewUser" );
    pushButtonNewUser->setMaximumSize( QSize( 32, 32 ) );

    DockFormUserListLayout->addWidget( pushButtonNewUser, 0, 1 );

    pushButton_NewWhithExistant = new QPushButton( this, "pushButton_NewWhithExistant" );
    pushButton_NewWhithExistant->setMaximumSize( QSize( 32, 32 ) );

    DockFormUserListLayout->addWidget( pushButton_NewWhithExistant, 0, 2 );
    spacer1 = new QSpacerItem( 10, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    DockFormUserListLayout->addItem( spacer1, 0, 8 );

    pushButtonSetDefault = new QPushButton( this, "pushButtonSetDefault" );
    pushButtonSetDefault->setMaximumSize( QSize( 32, 32 ) );

    DockFormUserListLayout->addWidget( pushButtonSetDefault, 0, 7 );

    pushButton_PlaceProfil = new QPushButton( this, "pushButton_PlaceProfil" );
    pushButton_PlaceProfil->setMaximumSize( QSize( 32, 32 ) );

    DockFormUserListLayout->addWidget( pushButton_PlaceProfil, 0, 6 );

    pushButton_Appartenance = new QPushButton( this, "pushButton_Appartenance" );
    pushButton_Appartenance->setMaximumSize( QSize( 32, 32 ) );

    DockFormUserListLayout->addWidget( pushButton_Appartenance, 0, 5 );

    pushButton_NewFromFileOnDisk = new QPushButton( this, "pushButton_NewFromFileOnDisk" );
    pushButton_NewFromFileOnDisk->setMaximumSize( QSize( 32, 32 ) );

    DockFormUserListLayout->addWidget( pushButton_NewFromFileOnDisk, 0, 3 );

    pushButton_SaveIdentOnDisk = new QPushButton( this, "pushButton_SaveIdentOnDisk" );
    pushButton_SaveIdentOnDisk->setMaximumSize( QSize( 32, 32 ) );

    DockFormUserListLayout->addWidget( pushButton_SaveIdentOnDisk, 0, 4 );

    textLabelMessage = new QLabel( this, "textLabelMessage" );
    textLabelMessage->setPaletteBackgroundColor( QColor( 255, 253, 205 ) );
    textLabelMessage->setFrameShape( QLabel::PopupPanel );
    textLabelMessage->setLineWidth( 5 );
    textLabelMessage->setTextFormat( QLabel::RichText );
    textLabelMessage->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) );

    DockFormUserListLayout->addMultiCellWidget( textLabelMessage, 1, 1, 0, 8 );

    ListView_UserList = new QListView( this, "ListView_UserList" );
    ListView_UserList->addColumn( tr( "Login" ) );
    ListView_UserList->addColumn( tr( "Nom                  " ) );
    ListView_UserList->addColumn( trUtf8( "\x50\x72\xc3\xa9\x6e\x6f\x6d" ) );
    ListView_UserList->addColumn( tr( "ID" ) );
    ListView_UserList->addColumn( tr( "GUID" ) );
    ListView_UserList->setPaletteBackgroundColor( QColor( 115, 195, 195 ) );
    ListView_UserList->setAcceptDrops( TRUE );
    ListView_UserList->setFrameShape( QListView::StyledPanel );
    ListView_UserList->setFrameShadow( QListView::Sunken );
    ListView_UserList->setRootIsDecorated( FALSE );

    DockFormUserListLayout->addMultiCellWidget( ListView_UserList, 2, 2, 0, 8 );
    languageChange();
    resize( QSize(259, 293).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( pushButtonSetDefault, SIGNAL( clicked() ), this, SLOT( pushButtonSetDefault_clicked() ) );
    connect( ListView_UserList, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( ListView_UserList_selectionChanged(QListViewItem*) ) );
    connect( pushButton_Appartenance, SIGNAL( clicked() ), this, SLOT( pushButton_Appartenance_clicked() ) );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DockFormUserList::languageChange()
{
    setCaption( tr( "Liste des utilisateurs" ) );
    pushButtonUserDelete->setText( QString::null );
    QToolTip::add( pushButtonUserDelete, trUtf8( "\x52\x65\x74\x69\x72\x65\x72\x20\x6c\x27\x75\x74\x69\x6c\x69\x73\x61\x74\x65\x75\x72"
    "\x20\x73\xc3\xa9\x6c\x65\x63\x74\x69\x6f\x6e\x6e\xc3\xa9\x20\x64\x65\x73\x20\x75"
    "\x74\x69\x6c\x69\x73\x61\x74\x65\x75\x72\x73\x20\x64\x65\x20\x4d\x65\x64\x69\x6e"
    "\x54\x75\x78" ) );
    pushButtonNewUser->setText( QString::null );
    QToolTip::add( pushButtonNewUser, trUtf8( "\x43\x72\xc3\xa9\x65\x72\x20\x75\x6e\x20\x6e\x6f\x75\x76\x65\x6c\x20\x75\x74\x69\x6c"
    "\x69\x73\x61\x74\x65\x75\x72\x2e" ) );
    pushButton_NewWhithExistant->setText( QString::null );
    QToolTip::add( pushButton_NewWhithExistant, trUtf8( "\x43\x72\xc3\xa9\x65\x72\x20\x75\x6e\x20\x75\x74\x69\x6c\x69\x73\x61\x74\x65\x75\x72"
    "\x20\xc3\xa0\x20\x70\x61\x72\x74\x69\x72\x20\x64\x65\x20\x6c\x61\x20\x6c\x69\x73"
    "\x74\x65\x20\x64\x65\x73\x20\x63\x6f\x72\x72\x65\x73\x70\x6f\x6e\x64\x61\x6e\x74"
    "\x73\x20\x65\x78\x69\x73\x74\x61\x6e\x74\x73\x2e\x2e\x2e" ) );
    pushButtonSetDefault->setText( QString::null );
    QToolTip::add( pushButtonSetDefault, trUtf8( "\x44\xc3\xa9\x66\x69\x6e\x69\x72\x20\x6c\x27\x75\x74\x69\x6c\x69\x73\x61\x74\x65\x75"
    "\x72\x20\x70\x61\x72\x20\x64\xc3\xa9\x66\x61\x75\x74\x2e" ) );
    pushButton_PlaceProfil->setText( QString::null );
    QToolTip::add( pushButton_PlaceProfil, tr( "Placer le profil en cours sur d'autres utilisateurs ... ..." ) );
    pushButton_Appartenance->setText( QString::null );
    QToolTip::add( pushButton_Appartenance, trUtf8( "\x44\xc3\xa9\x66\x69\x6e\x69\x72\x20\x6c\x65\x73\x20\x61\x70\x70\x61\x72\x74\x65\x6e"
    "\x61\x6e\x63\x65\x73\x20\x64\x65\x20\x6c\x27\x75\x74\x69\x6c\x69\x73\x61\x74\x65"
    "\x75\x72\x2e\x2e\x2e" ) );
    pushButton_NewFromFileOnDisk->setText( QString::null );
    QToolTip::add( pushButton_NewFromFileOnDisk, trUtf8( "\x49\x6d\x70\x6f\x72\x74\x65\x72\x20\x75\x6e\x65\x20\x69\x64\x65\x6e\x74\x69\x74\xc3"
    "\xa9\x20\x65\x74\x20\x73\x6f\x6e\x20\x70\x72\x6f\x66\x69\x6c\x20\x64\x65\x20\x64"
    "\x6f\x63\x75\x6d\x65\x6e\x74\x73\x20\xc3\xa0\x20\x70\x61\x72\x74\x69\x72\x20\x64"
    "\x27\x75\x6e\x20\x66\x69\x63\x68\x69\x65\x72\x2e\x2e" ) );
    pushButton_SaveIdentOnDisk->setText( QString::null );
    QToolTip::add( pushButton_SaveIdentOnDisk, trUtf8( "\x45\x78\x70\x6f\x72\x74\x65\x72\x20\x6c\x27\x69\x64\x65\x6e\x74\x69\x74\xc3\xa9\x20"
    "\x64\x27\x75\x6e\x20\x75\x74\x69\x6c\x69\x73\x61\x74\x65\x75\x72\x20\x65\x74\x20"
    "\x73\x6f\x6e\x20\x70\x72\x6f\x66\x69\x6c\x20\x64\x65\x20\x64\x6f\x63\x75\x6d\x65"
    "\x6e\x74\x73\x20\x64\x61\x6e\x73\x20\x75\x6e\x20\x66\x69\x63\x68\x69\x65\x72\x20"
    "\x74\x65\x78\x74\x65\x2e\x2e\x2e" ) );
    textLabelMessage->setText( trUtf8( "\x3c\x70\x20\x61\x6c\x69\x67\x6e\x3d\x22\x63\x65\x6e\x74\x65\x72\x22\x3e\x3c\x66\x6f"
    "\x6e\x74\x20\x63\x6f\x6c\x6f\x72\x3d\x22\x23\x30\x30\x30\x30\x37\x66\x22\x3e\x50"
    "\x6f\x75\x72\x20\x64\xc3\xa9\x6d\x61\x72\x72\x65\x72\x2c\x20\x76\x65\x75\x69\x6c"
    "\x6c\x65\x7a\x20\x76\x6f\x75\x73\x20\x69\x64\x65\x6e\x74\x69\x66\x69\x65\x72\x20"
    "\x65\x6e\x20\x73\xc3\xa9\x6c\x65\x63\x74\x69\x6f\x6e\x6e\x61\x6e\x74\x20\x75\x6e"
    "\x20\x75\x74\x69\x6c\x69\x73\x61\x74\x65\x75\x72\x20\x64\x65\x20\x6c\x61\x20\x6c"
    "\x69\x73\x74\x65\x20\x63\x69\x2d\x64\x65\x73\x73\x6f\x75\x73\x3c\x2f\x66\x6f\x6e"
    "\x74\x3e\x3c\x2f\x70\x3e" ) );
    ListView_UserList->header()->setLabel( 0, tr( "Login" ) );
    ListView_UserList->header()->setLabel( 1, tr( "Nom                  " ) );
    ListView_UserList->header()->setLabel( 2, trUtf8( "\x50\x72\xc3\xa9\x6e\x6f\x6d" ) );
    ListView_UserList->header()->setLabel( 3, tr( "ID" ) );
    ListView_UserList->header()->setLabel( 4, tr( "GUID" ) );
    QToolTip::add( ListView_UserList, trUtf8( "\x4c\x69\x73\x74\x65\x20\x64\x65\x73\x20\x75\x74\x69\x6c\x69\x73\x61\x74\x65\x75\x72"
    "\x73\x20\x61\x75\x74\x6f\x72\x69\x73\xc3\xa9\x73\x20\xc3\xa0\x20\x73\x65\x20\x73"
    "\x65\x72\x76\x69\x72\x20\x64\x65\x20\x4d\x65\x64\x69\x6e\x54\x75\x78\x2e" ) );
}

