//this file is part of eMule beba
//Copyright (C)2005-2008 RaJiL( RaJiL@planetarajil.com / http://planetarajil.com)
//
//This program is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published by the Free Software Foundation; either
//version 2 of the License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
//GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with this program; if not, write to the Free Software
//Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#pragma once
#include "Preferences.h"
#include "TreeOptionsCtrlEx.h"
#include "OtherFunctions.h"

// CPPG_RAJIL dialog

class CPPG_RAJIL : public CPropertyPage
{
	DECLARE_DYNAMIC(CPPG_RAJIL)

public:
	CPPG_RAJIL();
	virtual ~CPPG_RAJIL();
	

// Dialog Data
	enum { IDD = IDD_PPG_RAJIL };

	void Localize(void);

protected:

	CTreeOptionsCtrlEx m_ctrlTreeOptions;
	bool m_bInitializedTreeOpts;

	// General groups
	HTREEITEM m_htiUploadTweaks;
	HTREEITEM m_htiDownloadTweaks;

	// << [RaJiL:-Slot Focus-]
	HTREEITEM m_htiGfocus;
	HTREEITEM m_htiSlotFocusDisable; 
	HTREEITEM m_htiSlotFocusEnable;
	int m_iSlotFocus;
	// >> [RaJiL:-Slot Focus-]

	//<< [RaJiL:-Payback First-]
	HTREEITEM m_htiPaybackFirstRadio;
	HTREEITEM m_htiPaybackDisabled;
	HTREEITEM m_htiPaybackConst;
	HTREEITEM m_htiPaybackAuto;
	HTREEITEM	m_htiPaybackVar;
	int			m_iPaybackFirst;
	//>> [RaJiL:-Payback First-]

	//<< [RaJiL:-Reask sources after IP change-]
	HTREEITEM m_htiReaskTweaks; 
	HTREEITEM m_htiReaskSrcAfterIPChange;
	HTREEITEM m_htiReaskFileSrc;
	bool m_bReaskSrcAfterIPChange;
	int m_iReaskFileSrc;
	//>> [RaJiL:-Reask sources after IP change-]

	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	virtual BOOL OnApply();

	

	DECLARE_MESSAGE_MAP()
	afx_msg LRESULT OnTreeOptsCtrlNotify(WPARAM wParam, LPARAM lParam);
	afx_msg void OnDestroy();


};
