#ifndef __CONDITIONALDIALOG_H__
#define __CONDITIONALDIALOG_H__

class CConditionalDialog : public wxDialog
{
public:
	enum Modes
	{
		ok,
		yesno
	};

	enum DialogType
	{
		rawcommand_quote,
		viewhidden,
		confirmexit,
		sitemanager_confirmdelete
	};

	CConditionalDialog(wxWindow* parent, enum DialogType type, enum Modes mode, bool checked = false);

	void AddText(const wxString &text);

	bool Run();

protected:
	enum DialogType m_type;

	wxSizer* m_pTextSizer;

	DECLARE_EVENT_TABLE();
	void OnButton(wxCommandEvent& event);
};

#endif //__CONDITIONALDIALOG_H__


syntax highlighted by Code2HTML, v. 0.9.1