///////////////////////////////////////////////////////////
// Author:			Stefan Liersch
// Contact:			stefan.liersch@googlemail.com,
//					stefan.liersch@ufz.de
//
// Date:			2008-09-18
// last modified:	2008-09-18
//
//---------------------------------------------------------
// DESCRIPTION
//---------------------------------------------------------
//
//---------------------------------------------------------
// ToDo
//---------------------------------------------------------
//	- 
///////////////////////////////////////////////////////////

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

#ifndef __pg_soil_salinity_weights_dlg_h_
#define __pg_soil_salinity_weights_dlg_h_

// Include wxWidgets' headers
#ifndef WX_PRECOMP
    #include <wx/wx.h>
#endif

#include "pg_soil_salinity_dlg_base.h"

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

enum cmd_id_ssw {
	ID_CMD_SSW_SLIDER_SOIL_COLOUR_LOCAL = 11000,
	ID_CMD_SSW_SLIDER_nLeaching,
	ID_CMD_SSW_SLIDER_WQ_Leaching,
	ID_CMD_SSW_SLIDER_WQ_Irrigation,
	ID_CMD_SSW_SLIDER_WV_Irrigation,
	ID_CMD_SSW_SLIDER_Evenness,
	ID_CMD_SSW_SLIDER_Morphology,
	ID_CMD_SSW_SLIDER_SOIL_TEXTURE,
	ID_CMD_SSW_SLIDER_PLANT_GROWTH,
	ID_CMD_SSW_SLIDER_GW_SALINITY,
	ID_CMD_SSW_SLIDER_GW_LEVEL,
	ID_CMD_SSW_SLIDER_nCHANNELS,
	ID_CMD_SSW_SLIDER_DISTANCE,
	ID_CMD_SSW_SLIDER_MAINTANANCE,
	ID_CMD_SSW_BUTTON_LOAD_DEFAULT,
	ID_CMD_SSW_BUTTON_SAVE
};
//---------------------------------------------------------------------

class CSoilSalinityParameterWeightsDlg : public wxDialog, public CSoilSalinityDlgBase 
{
	
public:
	CSoilSalinityParameterWeightsDlg( CSoilSalinityMap* pSSMap, wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString );

	~CSoilSalinityParameterWeightsDlg();

private:

	void					_CreateDialog();

	void					_Load_Settings_From_DB();

	void					_On_Button_Load_Default(wxCommandEvent& event);
	void					_On_Button_Save(wxCommandEvent& event);

	//bool					_Delete_TableContent_Weights();
	void					_Save_Settings();

	//-----------------------------------------------------------------
	//
	//	DIALOG CONTROLS
	//
	//-----------------------------------------------------------------
	wxSlider*				m_pSlider_SoilColour_local;
	
	wxSlider*				m_pSlider_nLeaching;
	
	wxSlider*				m_pSlider_WQ_Leaching;
	
	wxSlider*				m_pSlider_WQ_Irrigation;
	
	wxSlider*				m_pSlider_WV_Irrigation;
	
	wxSlider*				m_pSlider_Evenness;
	
	wxSlider*				m_pSlider_Morphology;
	
	wxSlider*				m_pSlider_SoilTexture;
	
	wxSlider*				m_pSlider_PlantGrowth;

	wxSlider*				m_pSlider_GW_Salinity;

	wxSlider*				m_pSlider_GW_Level;
	
	wxSlider*				m_pSlider_nChannels;
	
	wxSlider*				m_pSlider_Distance;
	
	wxSlider*				m_pSlider_Maintanance;
	
	wxButton*				m_pButton_LoadDefault;
	
	wxButton*				m_pButtonSave;
	
	wxButton*				m_pButtonCancel;


	DECLARE_EVENT_TABLE()
};

#endif /* __pg_soil_salinity_weights_dlg_h_ */
