///////////////////////////////////////////////////////////
// File:			wksp_simplefeature.h
//
// Author:			Stefan Liersch
// Contact:			stefan.liersch@googlemail.com,
//					stefan.liersch@ufz.de
//
// Date:			2008-04-05
// last modified:	2008-09-29
//
//---------------------------------------------------------
// DESCRIPTION
//---------------------------------------------------------
//
//---------------------------------------------------------
// ToDo
//---------------------------------------------------------
// 
//
///////////////////////////////////////////////////////////

//---------------------------------------------------------
#ifndef _HEADER_INCLUDED__SAGA_GUI__WKSP_SimpleFeature_H
#define _HEADER_INCLUDED__SAGA_GUI__WKSP_SimpleFeature_H

#include "wksp_shapes.h"

//---------------------------------------------------------

class CWKSP_SimpleFeature : public CWKSP_Shapes
{
public:
	CWKSP_SimpleFeature(CSG_SimpleFeature *pSimpleFeature);
	
	~CWKSP_SimpleFeature(void);
	//---------------------------------------------------------

	virtual TWKSP_Item			Get_Type				(void)	{	return( WKSP_ITEM_SimpleFeatures );	}

	virtual wxString			Get_Description			(void);

	virtual wxMenu *			Get_Menu				(void);

	virtual bool				On_Command				(int Cmd_ID);
	virtual bool				On_Command_UI			(wxUpdateUIEvent &event);

	virtual void				On_Create_Parameters	(void);

	virtual void _AttributeList_Set(CSG_Parameter *pFields, bool bAddNoField);

	CSG_SimpleFeature*			Get_Shapes				(void)	{	return( m_pSimpleFeature );	}

	//---------------------------------------------------------
	bool						Get_Station_Data		(void);
	wxString					_Select_LU_Table		(int &PK_ColumnNumber, wxString &PK_ColumnName);
	wxString					_Get_LU_Tables_Only		(void);
	wxString					_Get_Column_Names		(void);
	wxArrayString				_Get_Station_TableName	(wxString PK_Value, wxString LU_TableName, wxString PK_ColumnName);
	void						_ImportTable			(wxString tablename);
	//---------------------------------------------------------

	//---------------------------------------------------------
	// Soil Salinity
	void						Open_SoilSalinity_Dlg		(CSG_SimpleFeature* pSimpleFeature);
	void						Load_SoilSalinityData		(CSG_SimpleFeature* pSimpleFeature);
	void						Create_SoilSalinity_Report	(CSG_SimpleFeature* pSimpleFeature);
	void						Compare_SoilSalinity_Maps	(CSG_SimpleFeature* pSimpleFeature);

	//void						Open_SoilSalinityRisk_Dlg(CSG_SimpleFeature* pSimpleFeature);
	//void						Load_SoilSalinityRiskData(CSG_SimpleFeature* pSimpleFeature);
	//---------------------------------------------------------

protected:

	//void						_LUT_Create				(void);


	virtual wxMenu *			On_Edit_Get_Menu		(void);

	CSG_SimpleFeature*			m_pSimpleFeature;

	class CWKSP_Table			*m_pTable;
};



#endif /* _HEADER_INCLUDED__SAGA_GUI__WKSP_SimpleFeature_H */