/****************************************************************************
** Form interface generated from reading ui file 'DockFormUserList.ui'
**
** Created: Tue Jun 9 19:15:47 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!
****************************************************************************/

#ifndef DOCKFORMUSERLIST_H
#define DOCKFORMUSERLIST_H

#include <qvariant.h>
#include <qwidget.h>
#include <qpopupmenu.h>
#include <qtimer.h>
#include "../../drtux/src/CMoteur_Base.h"
#include "Dlg_Appartenance.h"

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QPushButton;
class QLabel;
class QListView;
class QListViewItem;

class DockFormUserList : public QWidget
{
    Q_OBJECT

public:
    DockFormUserList( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
    ~DockFormUserList();

    QPushButton* pushButtonUserDelete;
    QPushButton* pushButtonNewUser;
    QPushButton* pushButton_NewWhithExistant;
    QPushButton* pushButtonSetDefault;
    QPushButton* pushButton_PlaceProfil;
    QPushButton* pushButton_Appartenance;
    QPushButton* pushButton_NewFromFileOnDisk;
    QPushButton* pushButton_SaveIdentOnDisk;
    QLabel* textLabelMessage;
    QListView* ListView_UserList;

    CMoteurBase *m_pCMoteurBase;

    virtual void init();
    virtual QListViewItem * getSignUser( QListViewItem * pQListViewItem );
    virtual QString DoPopupList( QStringList & list );
    virtual QListViewItem * SetUser( const QString & user );

public slots:
    virtual void SetUnLogged();
    virtual void SetLogged();
    virtual void timerDone();
    virtual void pushButtonSetDefault_clicked();
    virtual void ListView_UserList_selectionChanged( QListViewItem * pQListViewItem );
    virtual void ListView_UserList_LineChanged( QListViewItem * pQListViewItem );
    virtual void RestaureOldUser();
    virtual void OnMenuActivated( int id );
    virtual void GetPopupItem();
    virtual void InitUserList();
    virtual void pushButton_Appartenance_clicked();

signals:
    void Sign_UserSelected(const char*);

protected:
    QPopupMenu* m_pQPopupMenu;
    QString m_RetPopupItem;
    QString m_CurrentPopupItem;
    QListViewItem *m_pQListViewLastSelectedItem;
    QTimer *m_pFlashQTimer;
    QListViewItem *m_pQListViewItemTmp;

    QGridLayout* DockFormUserListLayout;
    QSpacerItem* spacer1;

protected slots:
    virtual void languageChange();

};

#endif // DOCKFORMUSERLIST_H
