/************************************************************************/
/* Ex Nihlo Engine by Hermanns Christophe								*/
/************************************************************************/
/* This program is free software; you can redistribute it and/or		*/
/* modify it under the terms of the GNU General Public License			*/
/* as published by the Free Software Foundation; either version 2		*/
/* of the License, or (at your option) any later version.				*/
/*																		*/
/* This program is distributed in the hope that it will be useful,		*/
/* but WITHOUT ANY WARRANTY; without even the implied warranty of		*/
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.					*/
/*																		*/
/* See the GNU General Public License for more details.					*/
/*																		*/
/* You should have received a copy of the GNU General Public License	*/
/* along with this program; if not, write to the Free Software			*/
/* Foundation, Inc., 59 Temple Place - Suite 330,						*/
/* Boston, MA  02111-1307, USA.											*/
/*																		*/
/* If you use a important part of this code please send me a mail		*/
/* I just want to see where my code go thks :)							*/
/************************************************************************/

/************************************************************************/
/* Contact                                                              */  
/************************************************************************/
/* ExNihilo Website :www.ploksoftware.org                               */
/*                                                                      */
/* Hermanns Christophe ExNihilo creator and main programmer             */
/*                                                                      */
/* Mail             : Data@ploksoftware.org								*/
/* ICQ              : 8030901											*/
/* MSN Messenger    : Data_7@hotmail.com								*/
/*                                                                      */
/* Benjamin Michotte Linux port, webmaster                              */
/*                                                                      */
/* Mail             :binny@ploksoftware.org                             */
/*                                                                      */
/************************************************************************/

/************************************************************************/
/* File Description             										*/
/************************************************************************/
/* File Name   :ExCWindowMessageBoxQuestion.h												*/
/*																		*/
/* Star Date   :03/21/2003												*/
/*																		*/
/* Last Update :                                                        */

/*																		*/
/* File Description :													*/
/*                                                                      */
/* For update of this file check : www.ploksoftware.org                 */
/************************************************************************/

#ifndef __EXCWINDOWMESSAGEBOXQUESTION_H__
#define __EXCWINDOWMESSAGEBOXQUESTION_H__
//--------------------------------
// File to include
//--------------------------------
#include "ExDefine.h"
#include "Math/ExMath.h"
#include "Manager/ManagerObject/ExManagerTexture.h"
#include "Manager/ExManagerWindow.h"
#include "Object/Object2D/WindowObject/ExCWindow.h"
#include "Object/Object2D/WindowObject/ExCWindowButton.h"
//--------------------------------
class ExCWindowMessageBoxQuestion :public ExCWindow
{
//--------------------------------
// Variable
//--------------------------------
protected:
	ExCWindowButton *m_YesButton;
	ExCWindowButton *m_NoButton;
	std::string	m_Message;
	ExCAction m_YesAction;
	ExCAction m_NoAction;
	bool			m_CurrentSelection;
public:
	
//--------------------------------
// Constructor // Destructor
//--------------------------------
	ExCWindowMessageBoxQuestion(void);
	ExCWindowMessageBoxQuestion(std::string Message,ExCAction Yes,ExCAction No);
	~ExCWindowMessageBoxQuestion(void);
//--------------------------------
// Methode
//--------------------------------
	void Init(void);
	void Draw(void);
	virtual ExCAction InputAction(ExCAction Action);
	virtual ExCAction InputCommand(ExCCommand Command);
	inline void SetYesAction(ExCAction Action){m_YesAction=Action;}
	inline void SetNoAction(ExCAction Action){m_NoAction=Action;}

};
#endif //__EXCWINDOWMESSAGEBOXQUESTION_H__
