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

#include <qvariant.h>
#include <qdir.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <qheader.h>
#include <qlistview.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "Wdg_User.ui.h"

/*
 *  Constructs a Wdg_User as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
Wdg_User::Wdg_User( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setProperty( "name", "Wdg_User" );
    setProperty( "paletteBackgroundColor", QColor( 93, 139, 236 ) );
    Wdg_UserLayout = new QGridLayout( this, 1, 1, 1, 1, "Wdg_UserLayout"); 

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

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

    textLabelMessage = new QLabel( this, "textLabelMessage" );
    textLabelMessage->setProperty( "paletteBackgroundColor", QColor( 255, 253, 205 ) );
    textLabelMessage->setProperty( "frameShape", "PopupPanel" );
    textLabelMessage->setProperty( "lineWidth", 5 );
    textLabelMessage->setProperty( "textFormat", "RichText" );
    textLabelMessage->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignVCenter ) );
    layout2->addWidget( textLabelMessage );

    comboBoxUserTyp = new QComboBox( FALSE, this, "comboBoxUserTyp" );
    comboBoxUserTyp->setProperty( "maximumSize", QSize( 120, 32767 ) );
    layout2->addWidget( comboBoxUserTyp );

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

    pushButtonCPS = new QPushButton( this, "pushButtonCPS" );
    pushButtonCPS->setProperty( "minimumSize", QSize( 60, 45 ) );
    pushButtonCPS->setProperty( "maximumSize", QSize( 60, 45 ) );
    layout2->addWidget( pushButtonCPS );

    Wdg_UserLayout->addLayout( layout2, 0, 0 );

    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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
    "\x20\x20\x20\x20" ) );
    ListView_UserList->addColumn( tr( "ID" ) );
    ListView_UserList->addColumn( tr( "GUID" ) );
    ListView_UserList->setProperty( "paletteBackgroundColor", QColor( 255, 255, 255 ) );
    ListView_UserList->setProperty( "acceptDrops", QVariant( TRUE, 0 ) );
    ListView_UserList->setProperty( "frameShape", "StyledPanel" );
    ListView_UserList->setProperty( "frameShadow", "Sunken" );
    ListView_UserList->setProperty( "rootIsDecorated", QVariant( TRUE, 0 ) );

    Wdg_UserLayout->addWidget( ListView_UserList, 1, 0 );
    languageChange();
    resize( QSize(349, 378).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( pushButtonEditUser, SIGNAL( clicked() ), this, SLOT( pushButtonEditUser_clicked() ) );
    connect( pushButtonCPS, SIGNAL( clicked() ), this, SLOT( pushButtonCPS_clicked() ) );
    connect( ListView_UserList, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( ListView_UserList_selectionChanged(QListViewItem*) ) );
    connect( pushButtonSetDefault, SIGNAL( clicked() ), this, SLOT( pushButtonSetDefault_clicked() ) );
    connect( comboBoxUserTyp, SIGNAL( activated(const QString&) ), this, SLOT( comboBoxUserTyp_activated(const QString&) ) );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Wdg_User::languageChange()
{
    setProperty( "caption", tr( "Invisible string" ) );
    pushButtonEditUser->setProperty( "text", QString::null );
    QToolTip::add( pushButtonEditUser, trUtf8( "\x45\x64\x69\x74\x65\x72\x20\x65\x74\x20\x6d\x6f\x64\x69\x66\x69\x65\x72\x20\x6c\x65"
    "\x73\x20\x63\x61\x72\x61\x63\x74\xc3\xa9\x72\x69\x73\x74\x69\x71\x75\x65\x73\x20"
    "\x64\x65\x73\x20\x75\x74\x69\x6c\x69\x73\x61\x74\x65\x75\x72\x73\x2e" ) );
    QWhatsThis::add( pushButtonEditUser, trUtf8( "\x45\x64\x69\x74\x65\x72\x20\x65\x74\x20\x6d\x6f\x64\x69\x66\x69\x65\x72\x20\x6c\x65"
    "\x73\x20\x63\x61\x72\x61\x63\x74\xc3\xa9\x72\x69\x73\x74\x69\x71\x75\x65\x73\x20"
    "\x64\x65\x73\x20\x75\x74\x69\x6c\x69\x73\x61\x74\x65\x75\x72\x73\x2e" ) );
    textLabelMessage->setProperty( "text", 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" ) );
    QToolTip::add( comboBoxUserTyp, trUtf8( "\x53\xc3\xa9\x6c\x65\x63\x74\x69\x6f\x6e\x6e\x65\x7a\x20\x6c\x61\x20\x73\x70\xc3\xa9"
    "\x63\x69\x61\x6c\x69\x74\xc3\xa9\x20\x64\x6f\x6e\x74\x20\x76\x6f\x75\x73\x20\x73"
    "\x6f\x75\x68\x61\x69\x74\x65\x7a\x20\x76\x6f\x69\x72\x20\x6c\x65\x73\x20\x6d\xc3"
    "\xa9\x64\x65\x63\x69\x6e\x73\x2e" ) );
    QWhatsThis::add( comboBoxUserTyp, trUtf8( "\x3c\x62\x3e\x3c\x75\x3e\x4c\x69\x73\x74\x65\x20\x64\x65\x73\x20\x73\x70\xc3\xa9\x63"
    "\x69\x61\x6c\x69\x74\xc3\xa9\x73\x20\x64\x65\x73\x20\x6d\xc3\xa9\x64\x65\x63\x69"
    "\x6e\x73\x20\x75\x74\x69\x6c\x69\x73\x61\x74\x65\x75\x72\x73\x3c\x2f\x75\x3e\x3c"
    "\x2f\x62\x3e\x3c\x62\x72\x3e\xa\x43\x68\x6f\x69\x73\x69\x73\x73\x65\x7a\x20\x6c"
    "\x65\x20\x74\x79\x70\x65\x20\x64\x65\x20\x73\x70\xc3\xa9\x63\x69\x61\x6c\x69\x74"
    "\xc3\xa9\x20\x64\x6f\x6e\x74\x20\x76\x6f\x75\x73\x20\x73\x6f\x75\x68\x61\x69\x74"
    "\x65\x7a\x20\x61\x66\x66\x69\x63\x68\x65\x72\x3c\x62\x72\x3e\xa\x6c\x61\x20\x6c"
    "\x69\x73\x74\x65\x20\x64\x65\x73\x20\x6d\xc3\xa9\x64\x65\x63\x69\x6e\x73\x20\x73"
    "\x27\x79\x20\x72\x61\x70\x70\x6f\x72\x74\x61\x6e\x74\x2e" ) );
    pushButtonSetDefault->setProperty( "text", QString::null );
    QToolTip::add( pushButtonSetDefault, trUtf8( "\x50\x6f\x73\x69\x74\x69\x6f\x6e\x6e\x65\x72\x20\x6c\x27\x75\x74\x69\x6c\x69\x73\x61"
    "\x74\x65\x75\x72\x20\x61\x76\x65\x63\x20\x6c\x65\x71\x75\x65\x6c\x20\x64\xc3\xa9"
    "\x6d\x61\x72\x72\x65\x72\x20\x6c\x65\x20\x70\x72\x6f\x67\x72\x61\x6d\x6d\x65\x2e"
    "" ) );
    QWhatsThis::add( pushButtonSetDefault, trUtf8( "\x50\x6f\x73\x69\x74\x69\x6f\x6e\x6e\x65\x72\x20\x6c\x27\x75\x74\x69\x6c\x69\x73\x61"
    "\x74\x65\x75\x72\x20\x61\x76\x65\x63\x20\x6c\x65\x71\x75\x65\x6c\x20\x64\xc3\xa9"
    "\x6d\x61\x72\x72\x65\x72\x20\x6c\x65\x20\x70\x72\x6f\x67\x72\x61\x6d\x6d\x65\x2e"
    "" ) );
    pushButtonCPS->setProperty( "text", QString::null );
    QToolTip::add( pushButtonCPS, trUtf8( "\x53\xc3\xa9\x6c\x65\x63\x74\x69\x6f\x6e\x6e\x65\x20\x75\x6e\x20\x75\x74\x69\x6c\x69"
    "\x73\x61\x74\x65\x75\x72\x20\xc3\xa0\x20\x6c\x27\x61\x69\x64\x65\x20\x64\x65\x20"
    "\x6c\x61\x20\x63\x61\x72\x74\x65\x20\x43\x50\x53" ) );
    QWhatsThis::add( pushButtonCPS, trUtf8( "\x53\xc3\xa9\x6c\x65\x63\x74\x69\x6f\x6e\x6e\x65\x20\x75\x6e\x20\x75\x74\x69\x6c\x69"
    "\x73\x61\x74\x65\x75\x72\x20\xc3\xa0\x20\x6c\x27\x61\x69\x64\x65\x20\x64\x65\x20"
    "\x6c\x61\x20\x63\x61\x72\x74\x65\x20\x43\x50\x53" ) );
    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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
    "\x20\x20\x20\x20" ) );
    ListView_UserList->header()->setLabel( 3, tr( "ID" ) );
    ListView_UserList->header()->setLabel( 4, tr( "GUID" ) );
    QToolTip::add( ListView_UserList, trUtf8( "\x53\xc3\xa9\x6c\x65\x63\x74\x69\x6f\x6e\x6e\x65\x7a\x20\x6c\x27\x75\x74\x69\x6c\x69"
    "\x73\x61\x74\x65\x75\x72\x20\x65\x6e\x20\x63\x6f\x75\x72\x73\x2e" ) );
    QWhatsThis::add( ListView_UserList, tr( "Cliquez sur un des utilisateurs pour changer." ) );
}

