//////////////////////////////////////////////////////////////////////////////////////// // // Nestopia - NES/Famicom emulator written in C++ // // Copyright (C) 2003-2008 Martin Freij // // This file is part of Nestopia. // // Nestopia 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. // // Nestopia 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 Nestopia; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // //////////////////////////////////////////////////////////////////////////////////////// #include #include "NstIoLog.hpp" #include "NstWindowUser.hpp" #include "NstWindowParam.hpp" #include "NstResourceString.hpp" #include "NstManagerPaths.hpp" #include "NstApplicationInstance.hpp" #include "NstDialogPaletteEditor.hpp" #include "NstDialogVideoDecoder.hpp" #include "NstDialogVideo.hpp" namespace Nestopia { namespace Window { NST_COMPILE_ASSERT ( IDC_VIDEO_NTSC_TOP == IDC_VIDEO_NTSC_LEFT + 1 && IDC_VIDEO_NTSC_RIGHT == IDC_VIDEO_NTSC_LEFT + 2 && IDC_VIDEO_NTSC_BOTTOM == IDC_VIDEO_NTSC_LEFT + 3 && IDC_VIDEO_PAL_LEFT == IDC_VIDEO_NTSC_LEFT + 4 && IDC_VIDEO_PAL_TOP == IDC_VIDEO_NTSC_LEFT + 5 && IDC_VIDEO_PAL_RIGHT == IDC_VIDEO_NTSC_LEFT + 6 && IDC_VIDEO_PAL_BOTTOM == IDC_VIDEO_NTSC_LEFT + 7 ); NST_COMPILE_ASSERT ( IDC_VIDEO_32_BIT == IDC_VIDEO_16_BIT + 1 ); NST_COMPILE_ASSERT ( IDC_VIDEO_PALETTE_YUV == IDC_VIDEO_PALETTE_AUTO + 1 && IDC_VIDEO_PALETTE_RGB == IDC_VIDEO_PALETTE_AUTO + 2 && IDC_VIDEO_PALETTE_CUSTOM == IDC_VIDEO_PALETTE_AUTO + 3 && IDC_VIDEO_PALETTE_PATH == IDC_VIDEO_PALETTE_AUTO + 4 && IDC_VIDEO_PALETTE_BROWSE == IDC_VIDEO_PALETTE_AUTO + 5 && IDC_VIDEO_PALETTE_CLEAR == IDC_VIDEO_PALETTE_AUTO + 6 && IDC_VIDEO_PALETTE_EDITOR == IDC_VIDEO_PALETTE_AUTO + 7 ); NST_COMPILE_ASSERT ( Nes::Video::MIN_BRIGHTNESS == -100 && Nes::Video::DEFAULT_BRIGHTNESS == 0 && Nes::Video::MAX_BRIGHTNESS == +100 && Nes::Video::MIN_SATURATION == -100 && Nes::Video::DEFAULT_SATURATION == 0 && Nes::Video::MAX_SATURATION == +100 && Nes::Video::MIN_CONTRAST == -100 && Nes::Video::DEFAULT_CONTRAST == 0 && Nes::Video::MAX_CONTRAST == +100 ); struct Video::Handlers { static const MsgHandler::Entry