#ifndef PANEL_CHARGES_H
#define PANEL_CHARGES_H

#ifndef TEXT_H
#include "Text.h"
#endif

#ifndef DYNAMIC_SINGLETON_H
#include "Dynamic_singleton.h"
#endif

#ifndef PANEL_H
#include "Panel.h"
#endif

#ifndef UI_PANEL_CHARGES_H
#include "ui_Panel_charges.h"
#endif

#ifndef MODEL_SINGLETON_VIEW_H
#include "Model_singleton_view.h"
#endif

#include <QTimer>

namespace MM
{

class Panel_charges
:
    public Panel,
    public Ui_Panel_charges,
    public Model_singleton_view,
    public Dynamic_singleton <Panel_charges>
{
    Q_OBJECT

    QTimer  timer_;

    void            select   (bool on);

public:    
    Panel_charges ();

    void            renew_current_model (Model &);
    void            renew (Model_event::Hint);

public slots:
    void            renew    ();
    void            select   ();
    void            deselect ();
    void            set      ();
    void            add      ();
};

}//MM

#endif//PANEL_CHARGES_H
