//
// C++ Interface: PlannerWrap
//
// Description: 
//
//
// Author: Muylkens Toon <toon.muylkens@student.kuleuven.be>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
/**
 * \class PlannerWrap
 *
 * \brief Provide an example
 *
 * A Widget that controlls the Planner
 *
 *
 * \author Toon Muylkens
 *
 * \date 2007/02/13
 *
 * Contact: toon.muylkens@student.kuleuven.be
 *
 */



#ifndef PLANNERWRAP_H
#define PLANNERWRAP_H
#include "Planner.h"
#include "ui_PlannerWrap.h"
#include "ConfigFileHandlerPowerTraining.h"
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QMainWindow>
#include <QtGui/QToolBar>
#include <QtGui/QWidget>



class PlannerWrap : public QWidget
 {
     Q_OBJECT

 public:
        PlannerWrap(QWidget *parent,ConfigFileHandlerPowerTraining *filehandler);
	void loadsettings(ConfigFileHandlerPowerTraining *filehandler);
 private:
	ConfigFileHandlerPowerTraining *filehandler;
	Ui::PlannerWrap ui;
    	Planner *planner;;
	void retranslateUi();
	void fillListView();
        
private slots:
        void planTraining(Training *training, bool withsave);
	void editButtonPressed();
	void trainingChanged();
	void deleteButtonPressed();
	void showButtonPressed();
public slots:
	void planTraining();
        
signals:
        void updateTrainingInformation();

};


#endif
