#pragma once
#include "afxwin.h"
#include "TreeOptionsCtrlEx.h"
#include "Preferences.h"

class CPPgSomTamMod : public CPropertyPage
{
	DECLARE_DYNAMIC(CPPgSomTamMod)

public:
	CPPgSomTamMod();
	virtual ~CPPgSomTamMod();
	void Localize(void);
	void LoadSettings();


// Dialog Data
	enum { IDD = IDD_PPG_SOMTAMMOD };



CTreeOptionsCtrlEx m_ctrlTreeOptions;
	bool m_bInitializedTreeOpts;
	bool m_bUseSlotFocus; //>>> WiZaRd::SlotFocus


	//>Matrik
    HTREEITEM m_htiSomTamMod; 
  	HTREEITEM m_AdditionalTweaks;
	HTREEITEM m_htiEnableDownloadInBold; //MORPH - Added by SiRoB, show download in Bold
	HTREEITEM m_UploadTweaks;
	HTREEITEM m_htiUseSlotFocus; //>>> WiZaRd::SlotFocus
  	
    // Tux: Feature: Automatic shared files updater [start]
	HTREEITEM   m_htiDirWatcher;
	bool        m_bDirWatcher;
	// Tux: Feature: Automatic shared files updater [end]
	bool m_bShowSpeedMeter; // High resulution speedmeter on toolbar [eFMod/Stulle] - Stulle
	HTREEITEM m_htiShowSpeedMeter; // High resulution speedmeter on toolbar [eFMod/Stulle] - Stulle

	//>>> JvA::SLS [enkeyDEV]
	HTREEITEM	m_htiSLSGroup;
	HTREEITEM	m_htiSLSCheck;
	HTREEITEM	m_htiSLSActivationLimit;
	HTREEITEM	m_htiSLSSaveValue;
	bool		m_bSLSCheck;
	int			m_iSLSActivationLimit;
	int			m_iSLSSaveValue;
//<<< JvA::SLS [enkeyDEV]

	//>>> WiZaRd::Small File Slot
	HTREEITEM	m_htiSmallFileSize;
	int		    m_uiSmallFileSize;
//<<< WiZaRd::Small File Slot

	// Added by MoNKi [ SlugFiller: -lowIdRetry- ]
	HTREEITEM	m_htiLowIdRetry;
	int			m_iLowIdRetry;
	// End SlugFiller

	//>>> WiZaRd::ConChecker [eWombat]
	HTREEITEM	m_htiConcheckerGroup;
	HTREEITEM	m_htiConcheckerActive;
	HTREEITEM	m_htiConcheckerPingtypeRadio;
	HTREEITEM	m_htiConcheckerPingICMP;
	HTREEITEM	m_htiConcheckerPingRAW;
	HTREEITEM	m_htiConcheckerTTL;
	HTREEITEM	m_htiConcheckerPingtimeout;
	bool		m_bConcheckerActive;
	int			m_iConcheckerPingtype;
	int			m_iConcheckerTTL;
	int			m_iConcheckerPingtimeout;
//<<< WiZaRd::ConChecker [eWombat]

    //>Matrik >Show Icon Preview When is Ready
	HTREEITEM   m_htiShowIconPreview;
	bool        m_bShowIconPreview; //Matrik
	//<Matrik
	
	
			
	virtual void DoDataExchange(CDataExchange* pDX);

	afx_msg void OnDestroy();
	afx_msg void OnSettingsChange()					{ SetModified(); }
	

protected:

	bool m_bEnableDownloadInBold; //MORPH - Added by SiRoB, show download in Bold



	DECLARE_MESSAGE_MAP()
	//afx_msg void OnHelp();
	//afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
	afx_msg LRESULT OnTreeOptsCtrlNotify(WPARAM wParam, LPARAM lParam);
	//afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);

	virtual BOOL OnInitDialog();
	virtual BOOL OnApply();
	virtual BOOL OnKillActive();
	//virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
	




};

class PPgSomTam
{
public:
	PPgSomTam(void);
	~PPgSomTam(void);
};
