/*  $Id: messagebox_generic.h,v 1.14 2003/10/14 15:52:13 mbn Exp $
	
	ClanGUI, copyrights by various people. Have a look in the CREDITS file.
	
	This sourcecode is distributed using the Library GNU Public Licence,
	version 2 or (at your option) any later version. Please read LICENSE
	for details.
*/

#ifndef header_dialog_generic
#define header_dialog_generic

#if _MSC_VER > 1000
#pragma once
#endif

#include "API/GUI/messagebox.h"
#include "API/GUI/button.h"
#include "API/GUI/label.h"

class CL_Font;

class CL_MessageBox_Generic
{
public:
	CL_MessageBox_Generic(
		CL_MessageBox *self,
		const std::string &title,
		const std::string &text,
		const std::string &button1,
		const std::string &button2,
		const std::string &button3);

	CL_MessageBox_Generic::~CL_MessageBox_Generic();

	std::string text;

	CL_MessageBox *messagebox;

	CL_Font * font;
	CL_Button *button[3];
	int button_count;

	CL_Slot slot_button[3];
	CL_Slot slot_end_paint;
	void on_button(int button);
	void on_end_paint();

	int result_button;
};

#endif
