#ifndef __compilerfiletypespage__
#define __compilerfiletypespage__

/**
@file
Subclass of CompilerFileTypesBase, which is generated by wxFormBuilder.
*/

#include "compiler_pages.h"
#include "advanced_settings.h"
#include "compiler.h"

/** Implementing CompilerFileTypesBase */
class CompilerFileTypePage : public CompilerFileTypesBase, public ICompilerSubPage
{
	wxString m_cmpname;
	long m_selectedFileType;
protected:
	// Handlers for CompilerFileTypesBase events.
	void OnFileTypeActivated( wxListEvent& event );
	void OnFileTypeDeSelected( wxListEvent& event );
	void OnFileTypeSelected( wxListEvent& event );
	void OnNewFileType( wxCommandEvent& event );
	void OnDeleteFileType( wxCommandEvent& event );

	void InitFileTypes();
public:
	/** Constructor */
	CompilerFileTypePage( wxWindow* parent, const wxString &cmpname );
	virtual void Save(CompilerPtr cmp);
};

#endif // __compilerfiletypespage__
