/****************************************************************************
** Form interface generated from reading ui file 'FormGlossaire.ui'
**
** Created: mer nov 19 01:37:40 2008
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#ifndef FORMGLOSSAIRE_H
#define FORMGLOSSAIRE_H

#include <qvariant.h>
#include <qpixmap.h>
#include <qwidget.h>
#include "CMoteurGlo.h"
#include "Rubriques.h"
#include "../../MedinTuxTools/ThemePopup.h"

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class CW_EditText;
class QPushButton;
class QSplitter;
class QListView;
class QListViewItem;

class FormGlossaire : public QWidget
{
    Q_OBJECT

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

    QPushButton* pushButtonHome;
    QPushButton* pushButtonLocalise;
    QPushButton* pushButtonBack;
    QPushButton* pushButtonEdit;
    QSplitter* splitter2;
    QListView* ListView_Glossaire;
    CW_EditText* textEditView;

    virtual QString GetCurrentFileName();
    virtual ThemePopup * DoGlossairePopupMenu( QString filepath );

public slots:
    virtual void setInterfaceOnPermisions( const QString & droits );
    virtual void OnGlossaireRubriqueActived( QWidget * pQwdgRub );
    virtual void ListView_Glossaire_clicked( QListViewItem * qlistViewItem );
    virtual void Slot_RestaureConnection();
    virtual void Slot_GlossaireRefresh();
    virtual void Slot_SetCurrentPath( QString path );
    virtual void pushButtonBack_clicked();
    virtual void pushButtonHome_clicked();
    virtual void ListView_Glossaire_doubleClicked( QListViewItem * qlistViewItem );
    virtual void ListView_Glossaire_returnPressed( QListViewItem * qlistViewItem );
    virtual void ListView_Glossaire_selectionChanged( QListViewItem * qlistViewItem );
    virtual void pushButtonEdit_clicked();
    virtual void ListView_Glossaire_contextMenuRequested( QListViewItem * pQListViewItem, const QPoint &, int );
    virtual void Slot_PopupActionDumy();
    virtual void Slot_PopupActionNewModele();
    virtual void Slot_PopupActionNewDoc();
    virtual void Slot_PopupActionAddDoc();
    virtual void Slot_PopupActionReplaceDoc();
    virtual void Slot_PopupActionEditDoc();
    virtual void Slot_PopupActionRenameDoc();
    virtual void Slot_PopupActionDeleteDoc();
    virtual void OnMenuActivated( int id );
    virtual void OnMenuHighlighted( int id );
    virtual void OnMenuAboutToHide();

signals:
    void Sign_FileSelected(const char*, int);
    void Sign_FileToEdit(QString, QString, int);
    void Sign_FileChanged(const char*, int);

protected:
    CMoteurGlo *m_pCMoteurGlo;
    ThemePopup* m_pThemePopup;
    QString m_PopupItem;
    QString m_PopupFilePath;

    QGridLayout* FormGlossaireLayout;
    QGridLayout* layout3;
    QSpacerItem* spacer1;

protected slots:
    virtual void languageChange();

private:
    QPixmap image0;

    void init();
    void destroy();

};

#endif // FORMGLOSSAIRE_H
