//this file is part of eMule
//
//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

// MOD: NCFG - [NeoConfiguration] -- Loulach -->
#include "Sion/GUI/CP/SlideBar.h" // MOD: NSB - [SlideBar] <-- Loulach --
#include "Sion/GUI/CP/KCSideBannerWnd.h" // MOD: NPB - [PrefsBanner] <-- Loulach --

#include "otherfunctions.h"
#include "ListBoxST.h"

#include "PPgGeneral.h"
#include "PPgConnection.h"
#include "PPgServer.h"
#include "PPgDirectories.h"
#include "PPgFiles.h"
#include "PPgStats.h"
#include "PPgNotify.h"
#include "PPgIRC.h"
#include "PPgTweaks.h"
#include "PPgDisplay.h"
#include "PPgSecurity.h"
#include "PPgWebServer.h"
#include "PPgScheduler.h"
#include "PPgProxy.h"
#include "Sion\GUI\Modeless.h" // MOD: MLD - [ModelesDialogs] <-- Loulach --

//#include "PPgNeo.h" 
#include "PPgSources.h" 
#ifdef ARGOS // MOD: NA - [NeoArgos]
#include "PPgArgos.h"
#endif // ARGOS // MOD: NA END
#include "PPgNetwork.h" 
#include "PPgRelease.h"
#include "PPgBackup.h" // MOD: NB - [NeoBackup]
#include "PPgUpdate.h"// MOD: AU - [AutoUpdate]

#if defined(_DEBUG) || defined(USE_DEBUG_DEVICE)
#include "PPgDebug.h"
#endif


#define IDC_PREFS_SLIDEBAR	111	// MOD - [SlideBar] <-- Loulach --

class CPreferencesDlg : public CModelessPropertySheet // MOD: MLD - [ModelesDialogs] <-- Loulach --
{
	DECLARE_DYNAMIC(CPreferencesDlg)

public:
	CPreferencesDlg();
	virtual ~CPreferencesDlg();
	
	CPPgGeneral		m_wndGeneral;
	CPPgConnection	m_wndConnection;
	CPPgServer		m_wndServer;
	CPPgDirectories	m_wndDirectories;
	CPPgFiles		m_wndFiles;
	CPPgStats		m_wndStats;
	CPPgNotify		m_wndNotify;
	CPPgIRC			m_wndIRC;
	CPPgTweaks		m_wndTweaks;
	CPPgDisplay		m_wndDisplay;
	CPPgSecurity	m_wndSecurity;
	CPPgWebServer	m_wndWebServer;
	CPPgScheduler	m_wndScheduler;
	CPPgProxy		m_wndProxy;
	// MOD: NCFG - [NeoConfiguration] -- Loulach -->
//	CPPgNeo			m_wndNeo;
#ifdef ARGOS // MOD: NA - [NeoArgos]
	CPPgArgos		m_wndArgos;
#endif // ARGOS // MOD: NA END
	CPPgNetwork		m_wndNetwork;
	CPPgSources		m_wndSources;
	CPPgRelease		m_wndRelease;
	CPPgBackup		m_wndModBackup; // MOD: NB - [NeoBackup]
	CPPgUpdate		m_wndUpdate; // MOD: AU - [AutoUpdate]
	// MOD: NCFG END < -- Loulach --
#if defined(_DEBUG) || defined(USE_DEBUG_DEVICE)
	CPPgDebug		m_wndDebug;
#endif

	CImageList		ImageList;
	CSlideBar	 	m_slideBar; // MOD: NSB - [SlideBar] <-- Loulach --

	void Localize();


protected:
	INT m_nActiveWnd;

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

	DECLARE_MESSAGE_MAP()
	
	afx_msg void OnDestroy();
	afx_msg void OnBnClickedOk(); // MOD: MOD - [PrefCloseFix] <-- Loulach --
	afx_msg LRESULT	OnSlideBarSelChanged(WPARAM wParam, LPARAM lParam); // MOD: NSB - [SlideBar] <-- Loulach --
	afx_msg void OnHelp();
	afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);

	CKCSideBannerWnd m_banner; // MOD: NPB - [PrefsBanner] <-- Loulach --
};

// MOD: NCFG END <-- Loulach --
