/*
 * PtokaX - hub server for Direct Connect peer to peer network.

 * Copyright (C) 2004-2015  Petr Kozelka, PPK at PtokaX dot org

 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3
 * as published by the Free Software Foundation.

 * 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, see <http://www.gnu.org/licenses/>.
 */

//------------------------------------------------------------------------------
#ifndef SettingDialogH
#define SettingDialogH
//------------------------------------------------------------------------------
#include "SettingPage.h"
//---------------------------------------------------------------------------

// alex82 ... Размеры окна
#define SETTINGS_TREEVIEW_WIDTH	190
#define SETTTINGS_DIALOG_WIDTH	468+SETTINGS_TREEVIEW_WIDTH
#define SETTTINGS_DIALOG_HEIGHT 560

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

class clsSettingDialog {
public:
    static clsSettingDialog * mPtr;

    HWND hWndWindowItems[4];

    enum enmWindowItems {
        WINDOW_HANDLE,
        TV_TREE,
        BTN_OK,
        BTN_CANCEL
    };

    clsSettingDialog();
    ~clsSettingDialog();

    static LRESULT CALLBACK StaticSettingDialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);

	void DoModal(HWND hWndParent);
private:
    SettingPage * SettingPages[12];

    clsSettingDialog(const clsSettingDialog&);
    const clsSettingDialog& operator=(const clsSettingDialog&);

    LRESULT SettingDialogProc(UINT uMsg, WPARAM wParam, LPARAM lParam);

    void OnSelChanged();
};
//------------------------------------------------------------------------------

#endif
