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

#include <qvariant.h>
#include <qcursor.h>
#include <qpushbutton.h>
#include <qsplitter.h>
#include <qheader.h>
#include <qlistview.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "Dlg_Appartenance.ui.h"

/*
 *  Constructs a Dlg_Appartenance 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.
 */
Dlg_Appartenance::Dlg_Appartenance( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setProperty( "name", "Dlg_Appartenance" );
    Dlg_AppartenanceLayout = new QGridLayout( this, 1, 1, 11, 6, "Dlg_AppartenanceLayout"); 

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

    pushButtonOk = new QPushButton( splitter1, "pushButtonOk" );
    QFont pushButtonOk_font(  pushButtonOk->font() );
    pushButtonOk_font.setPointSize( 9 );
    pushButtonOk_font.setBold( TRUE );
    pushButtonOk->setFont( pushButtonOk_font ); 

    pushButtonAnnuler = new QPushButton( splitter1, "pushButtonAnnuler" );
    QFont pushButtonAnnuler_font(  pushButtonAnnuler->font() );
    pushButtonAnnuler_font.setPointSize( 9 );
    pushButtonAnnuler_font.setBold( TRUE );
    pushButtonAnnuler->setFont( pushButtonAnnuler_font ); 

    Dlg_AppartenanceLayout->addWidget( splitter1, 4, 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" ) );
    ListView_UserList->addColumn( trUtf8( "\x44\x72\x6f\x69\x74\x73\x20\x64\xc3\xa9\x6c\xc3\xa9\x67\x75\xc3\xa9\x73" ) );
    ListView_UserList->addColumn( tr( "ID" ) );
    ListView_UserList->addColumn( tr( "GUID" ) );
    ListView_UserList->addColumn( tr( "permsPk" ) );
    ListView_UserList->setProperty( "paletteBackgroundColor", QColor( 115, 195, 195 ) );
    ListView_UserList->setProperty( "acceptDrops", QVariant( TRUE, 0 ) );
    ListView_UserList->setProperty( "frameShape", "StyledPanel" );
    ListView_UserList->setProperty( "frameShadow", "Sunken" );
    ListView_UserList->setProperty( "selectionMode", "Extended" );
    ListView_UserList->setProperty( "rootIsDecorated", QVariant( FALSE, 0 ) );

    Dlg_AppartenanceLayout->addWidget( ListView_UserList, 3, 0 );

    buttonGroup1 = new QButtonGroup( this, "buttonGroup1" );
    buttonGroup1->setProperty( "margin", 0 );
    buttonGroup1->setColumnLayout(0, Qt::Vertical );
    buttonGroup1->layout()->setSpacing( 0 );
    buttonGroup1->layout()->setMargin( 0 );
    buttonGroup1Layout = new QGridLayout( buttonGroup1->layout() );
    buttonGroup1Layout->setAlignment( Qt::AlignTop );

    radioButtonCommence = new QRadioButton( buttonGroup1, "radioButtonCommence" );
    QFont radioButtonCommence_font(  radioButtonCommence->font() );
    radioButtonCommence_font.setFamily( "Helvetica" );
    radioButtonCommence_font.setPointSize( 9 );
    radioButtonCommence->setFont( radioButtonCommence_font ); 

    buttonGroup1Layout->addWidget( radioButtonCommence, 0, 0 );

    radioButtonContient = new QRadioButton( buttonGroup1, "radioButtonContient" );
    QFont radioButtonContient_font(  radioButtonContient->font() );
    radioButtonContient_font.setFamily( "Helvetica" );
    radioButtonContient_font.setPointSize( 9 );
    radioButtonContient->setFont( radioButtonContient_font ); 

    buttonGroup1Layout->addWidget( radioButtonContient, 1, 0 );

    Dlg_AppartenanceLayout->addWidget( buttonGroup1, 1, 0 );

    lineEditNom = new QLineEdit( this, "lineEditNom" );

    Dlg_AppartenanceLayout->addWidget( lineEditNom, 2, 0 );

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

    textLabel_icone = new QLabel( this, "textLabel_icone" );
    textLabel_icone->setProperty( "minimumSize", QSize( 32, 32 ) );
    textLabel_icone->setProperty( "maximumSize", QSize( 32, 32 ) );
    layout1->addWidget( textLabel_icone );

    textLabel_info = new QLabel( this, "textLabel_info" );
    textLabel_info->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, textLabel_info->sizePolicy().hasHeightForWidth() ) );
    QFont textLabel_info_font(  textLabel_info->font() );
    textLabel_info_font.setPointSize( 9 );
    textLabel_info->setFont( textLabel_info_font ); 
    textLabel_info->setProperty( "frameShape", "WinPanel" );
    textLabel_info->setProperty( "frameShadow", "Plain" );
    textLabel_info->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignCenter ) );
    layout1->addWidget( textLabel_info );

    Dlg_AppartenanceLayout->addLayout( layout1, 0, 0 );
    languageChange();
    resize( QSize(586, 462).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( pushButtonOk, SIGNAL( clicked() ), this, SLOT( pushButtonOk_clicked() ) );
    connect( pushButtonAnnuler, SIGNAL( clicked() ), this, SLOT( pushButtonAnnuler_clicked() ) );
    connect( lineEditNom, SIGNAL( textChanged(const QString&) ), this, SLOT( lineEditNom_textChanged(const QString&) ) );
    connect( ListView_UserList, SIGNAL( contextMenuRequested(QListViewItem*,const QPoint&,int) ), this, SLOT( ListView_UserList_contextMenuRequested(QListViewItem*,const QPoint&,int) ) );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Dlg_Appartenance::languageChange()
{
    setProperty( "caption", trUtf8( "\x53\xc3\xa9\x6c\x65\x63\x74\x69\x6f\x6e\x20\x64\x65\x73\x20\x75\x74\x69\x6c\x69\x73"
    "\x61\x74\x65\x75\x72\x73\x20\x64\x27\x61\x70\x70\x61\x72\x74\x65\x6e\x61\x6e\x63"
    "\x65" ) );
    pushButtonOk->setProperty( "text", tr( "&Confirmer" ) );
    pushButtonOk->setProperty( "accel", QKeySequence( tr( "Alt+C" ) ) );
    pushButtonAnnuler->setProperty( "text", tr( "&Annuler" ) );
    pushButtonAnnuler->setProperty( "accel", QKeySequence( tr( "Alt+A" ) ) );
    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, trUtf8( "\x44\x72\x6f\x69\x74\x73\x20\x64\xc3\xa9\x6c\xc3\xa9\x67\x75\xc3\xa9\x73" ) );
    ListView_UserList->header()->setLabel( 4, tr( "ID" ) );
    ListView_UserList->header()->setLabel( 5, tr( "GUID" ) );
    ListView_UserList->header()->setLabel( 6, tr( "permsPk" ) );
    buttonGroup1->setProperty( "title", QString::null );
    radioButtonCommence->setProperty( "text", tr( "Co&mmence par" ) );
    radioButtonCommence->setProperty( "accel", QKeySequence( tr( "Alt+M" ) ) );
    radioButtonContient->setProperty( "text", tr( "Con&tient" ) );
    radioButtonContient->setProperty( "accel", QKeySequence( tr( "Alt+T" ) ) );
    textLabel_icone->setProperty( "text", QString::null );
    textLabel_info->setProperty( "text", QString::null );
}

