#ifndef FEN_SETTING_H
#define FEN_SETTING_H

#include <QtWidgets>
#include <QObject>
#include <QApplication>
#include "fen_acceuil.h"
#include <QDialog>
#include <QComboBox>
#include <QTabWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QLabel>
#include <QString>
#include <QLabel>
#include <QPushButton>
#include <QPalette>
#include <QFile>
#include <QTextStream>
#include <QSettings>
#include <QMessageBox>
#include <QGroupBox>
#include <QCheckBox>

class fen_setting : public QDialog
{
    Q_OBJECT

public:
    fen_setting(QWidget *parent);

public slots:
    void bout_loc_annee();
    void bout_loc_carnet_de_bord();
    void bout_loc_annu();
    void bout_loc_123_note();
    void bout_loc_resum();
    void bout_save();
    void remplir_lignes_loc();
    void click_uk();
    void click_fr();
    void change_toolbar_file();
    void remplir_check_toolbar_file();
    void change_toolbar_consult();
    void remplir_check_toolbar_consult();
    void change_toolbar_other();
    void remplir_check_toolbar_other();
    void open_Wfile_annee();
    void open_Wfile_carnet_de_bord();
    void open_Wfile_annu();
    void open_Wfile_123_note();
    void open_Wfile_resum();

private:
    QTabWidget *m_tab;
    QVBoxLayout *m_layout_general;
//**********************************
    QWidget *widget_emplacement_fichiers;
    QVBoxLayout *m_lay1;

    QPushButton *m_bout_annee;
    QHBoxLayout *lay1;
    QPushButton *m_Wfile_annee;

    QPushButton *m_bout_carnet_de_bord;
    QHBoxLayout *lay2;
    QPushButton *m_Wfile_carnet_de_bord;

    QPushButton *m_bout_annu;
    QHBoxLayout *lay3;
    QPushButton *m_Wfile_annu;

    QPushButton *m_bout_123_note;
    QHBoxLayout *lay4;
    QPushButton *m_Wfile_123_note;

    QPushButton *m_bout_resum;
    QHBoxLayout *lay5;
    QPushButton *m_Wfile_resum;

    QPushButton *m_save;

    QString *m_loc_annee_compare;
    QString *m_loc_carnet_compare;
    QString *m_loc_annu_compare;
    QString *m_loc_123_compare;
    QString *m_loc_resum_compare;
//********************************
    QSettings *setting;
//*********************************
    QWidget *widget_langue_toolbar;
    QVBoxLayout *m_lay2;

    QGroupBox *m_groupbox_langue;
    QPushButton *m_bout_uk;
    QPushButton *m_bout_fr;
    QHBoxLayout *m_layout_langue_group;

    QGroupBox *m_groupbox_toolbar_file;
    QHBoxLayout *m_layout_file123;
    QHBoxLayout *m_layout_file45;
    QVBoxLayout *m_layout_group;
    QCheckBox *m_check_add;
    QCheckBox *m_1A;
    QCheckBox *m_2A;
    QCheckBox *m_3A;
    QCheckBox *m_extranet;


    QGroupBox *m_groupbox_toolbar_consult;
    QHBoxLayout *m_layout_consult123;
    QHBoxLayout *m_layout_consult456;
    QVBoxLayout *m_layout_group_consult;
    QCheckBox *m_check_notes;
    QCheckBox *m_check_moyenne;
    QCheckBox *m_check_coeff;
    QCheckBox *m_check_carnet;
    QCheckBox *m_check_carnet_stage;
    QCheckBox *m_check_annu;

    QGroupBox *m_groupbox_toolbar_other;
    QHBoxLayout *m_layout_group_other;
    QCheckBox *m_check_about;
    QCheckBox *m_check_set;
    QCheckBox *m_check_exit;

};

#endif // FEN_SETTING_H
