/*
 * gui.rc - Windows resources
 *
 * Copyright (C) 2005-2026  Piotr Fusik
 *
 * This file is part of ASAP (Another Slight Atari Player),
 * see http://asap.sourceforge.net
 *
 * ASAP 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.
 *
 * ASAP 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 ASAP; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#if defined(WASAP) || defined(WINAMP) || defined(FOOBAR2000) || defined(XMPLAY)
#include <windows.h>
#define IDC_STATIC  -1
#endif

#include "../asap.h"

#ifdef WASAP

#include "wasap/wasap.h"

#define FILE_DESCRIPTION "WASAP - Windows Another Slight Atari Player"
#define INTERNAL_NAME "wasap"
#define ORIGINAL_FILENAME "wasap.exe"
#define FILE_TYPE 1

IDI_APP ICON "wasap/wasap.ico"
IDI_STOP ICON "wasap/stop.ico"
IDI_PLAY ICON "wasap/play.ico"

IDR_TRAYMENU MENU
{
	POPUP "WASAP"
	{
		MENUITEM "&Open...", IDM_OPEN
		POPUP "So&ng", GRAYED
		{
			MENUITEM "&1", IDM_SONG1
		}
		MENUITEM "&Stop", IDM_STOP, GRAYED
		MENUITEM "File &information...", IDM_FILE_INFO, GRAYED
		MENUITEM "Save as &WAV...", IDM_SAVE_WAV, GRAYED
		MENUITEM "&About WASAP...", IDM_ABOUT
		MENUITEM "&Exit", IDM_EXIT
	}
}

1 24
{
	"<?xml version=""1.0""?>"
	"<assembly xmlns=""urn:schemas-microsoft-com:asm.v1"" manifestVersion=""1.0"">"
		"<assemblyIdentity type=""win32"" name=""WASAP"" version=""" ASAPInfo_VERSION ".0"" />"
	"<dependency>"
		"<dependentAssembly>"
		"<assemblyIdentity type=""win32"" name=""Microsoft.Windows.Common-Controls"" version=""6.0.0.0"" "
			"processorArchitecture=""*"" publicKeyToken=""6595b64144ccf1df"" language=""*"" />"
		"</dependentAssembly>"
	"</dependency>"
	"<application xmlns=""urn:schemas-microsoft-com:asm.v3"">"
		"<windowsSettings>"
			"<dpiAware xmlns=""http://schemas.microsoft.com/SMI/2005/WindowsSettings"">True/PM</dpiAware>"
			"<dpiAwareness xmlns=""http://schemas.microsoft.com/SMI/2016/WindowsSettings"">PerMonitorV2,PerMonitor</dpiAwareness>"
		"</windowsSettings>"
	"</application>"
	"</assembly>"
}

#endif /* WASAP */

#if defined(WINAMP)
#  define APP_NAME "Winamp"
#  define INTERNAL_NAME "in_asap"
#elif defined(FOOBAR2000)
#  define APP_NAME "foobar2000"
#  define INTERNAL_NAME "foo_asap"
#elif defined(XMPLAY)
#  define APP_NAME "XMPlay"
#  define INTERNAL_NAME "xmp-asap"
#elif defined(BASS)
#  define INTERNAL_NAME "bass_asap"
#  define FILE_DESCRIPTION "ASAP add-on for BASS"
#elif defined(APOKEYSND)
#  define INTERNAL_NAME "apokeysnd"
#  define FILE_DESCRIPTION "Another POKEY sound emulator"
#elif defined(SHELLEX)
#  define INTERNAL_NAME "ASAPShellEx"
#  define FILE_DESCRIPTION "ASAP Windows Explorer extension"
#elif defined(VLC)
#  define APP_NAME "VLC"
#  define INTERNAL_NAME "libasap_plugin"
#endif

#ifndef FILE_DESCRIPTION
#  define FILE_DESCRIPTION "ASAP " APP_NAME " plugin"
#endif
#ifndef ORIGINAL_FILENAME
#  define ORIGINAL_FILENAME INTERNAL_NAME ".dll"
#  define FILE_TYPE 2
#endif

#if defined(WINAMP) || defined(FOOBAR2000) || defined(XMPLAY)

#include "settings_dlg.h"

IDD_SETTINGS DIALOG 0, 0, 184, 234
#ifdef FOOBAR2000
STYLE WS_CHILD
#else
STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | WS_POPUPWINDOW
CAPTION "ASAP Settings"
#endif
FONT 8, "MS Shell Dlg 2"
{
	LTEXT "Output sample rate", IDC_STATIC, 16, 6, 68, 12
	COMBOBOX IDC_SAMPLERATE, 88, 4, 32, 12, CBS_DROPDOWNLIST | WS_TABSTOP
	LTEXT "kHz", IDC_STATIC, 124, 6, 16, 12
	GROUPBOX "Songs with unspecified length", IDC_STATIC, 8, 22, 168, 64
	AUTORADIOBUTTON "Play endlessly", IDC_UNLIMITED, 16, 34, 152, 12, BS_AUTORADIOBUTTON | WS_TABSTOP | WS_GROUP
	AUTORADIOBUTTON "Finish after", IDC_LIMITED, 16, 48, 48, 12
	EDITTEXT IDC_MINUTES, 68, 48, 16, 12, ES_NUMBER | ES_RIGHT | WS_BORDER | WS_TABSTOP
	LTEXT "m", IDC_STATIC, 88, 50, 10, 12
	EDITTEXT IDC_SECONDS, 100, 48, 16, 12, ES_NUMBER | ES_RIGHT | WS_BORDER | WS_TABSTOP
	LTEXT "s", IDC_STATIC, 120, 50, 10, 12
	AUTOCHECKBOX "Finish after", IDC_SILENCE, 16, 66, 48, 12
	EDITTEXT IDC_SILSECONDS, 68, 66, 16, 12, ES_NUMBER | ES_RIGHT | WS_BORDER | WS_TABSTOP
	LTEXT "seconds of silence", IDC_STATIC, 88, 68, 64, 12
	GROUPBOX "Loops", IDC_STATIC, 8, 90, 168, 46
	AUTORADIOBUTTON "Play as above", IDC_LOOPS, 16, 102, 152, 12, BS_AUTORADIOBUTTON | WS_TABSTOP | WS_GROUP
	AUTORADIOBUTTON "Play just once", IDC_NOLOOPS, 16, 116, 152, 12
	GROUPBOX "Mute base POKEY", IDC_STATIC, 8, 140, 80, 64
	AUTOCHECKBOX "Channel 1", IDC_MUTE1, 24, 150, 48, 12
	AUTOCHECKBOX "Channel 2", IDC_MUTE1 + 1, 24, 162, 48, 12
	AUTOCHECKBOX "Channel 3", IDC_MUTE1 + 2, 24, 174, 48, 12
	AUTOCHECKBOX "Channel 4", IDC_MUTE1 + 3, 24, 186, 48, 12
	GROUPBOX "Mute extra POKEY", IDC_STATIC, 96, 140, 80, 64
	AUTOCHECKBOX "Channel 1", IDC_MUTE1 + 4, 112, 150, 48, 12
	AUTOCHECKBOX "Channel 2", IDC_MUTE1 + 5, 112, 162, 48, 12
	AUTOCHECKBOX "Channel 3", IDC_MUTE1 + 6, 112, 174, 48, 12
	AUTOCHECKBOX "Channel 4", IDC_MUTE1 + 7, 112, 186, 48, 12
#ifndef FOOBAR2000
	DEFPUSHBUTTON "OK", IDOK, 38, 212, 50, 14
	PUSHBUTTON "Cancel", IDCANCEL, 96, 212, 50, 14
#endif
}

#endif /* defined(WINAMP) || defined(FOOBAR2000) || defined(XMPLAY) */

#if defined(WASAP) || defined(WINAMP) || defined(FOOBAR2000) || defined(XMPLAY)

#include "info_dlg.h"

#ifndef _UNICODE /* TODO */

#define INFO_W  270
#ifdef PLAYING_INFO
#define INFO_Y  18
#else
#define INFO_Y  0
#endif
IDD_INFO DIALOG 0, 0, 54 + INFO_W, 214 + INFO_Y
STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | WS_POPUPWINDOW | WS_VISIBLE
CAPTION "File information"
FONT 8, "MS Shell Dlg 2"
{
#ifdef PLAYING_INFO
	AUTOCHECKBOX "Show information about the currently &playing file", IDC_PLAYING, 46, 8, 284, 12
#endif
	RTEXT "&Filename:", IDC_STATIC, 8, 10 + INFO_Y, 32, 12
	EDITTEXT IDC_FILENAME, 46, 8 + INFO_Y, INFO_W, 12, ES_LEFT | ES_AUTOHSCROLL | ES_READONLY | WS_BORDER | WS_TABSTOP
	RTEXT "&Author:", IDC_STATIC, 8, 24 + INFO_Y, 32, 12
	EDITTEXT IDC_AUTHOR, 46, 22 + INFO_Y, INFO_W, 12, ES_LEFT | ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP
	RTEXT "&Name:", IDC_STATIC, 8, 38 + INFO_Y, 32, 12
	EDITTEXT IDC_NAME, 46, 36 + INFO_Y, INFO_W, 12, ES_LEFT | ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP
	RTEXT "&Date:", IDC_STATIC, 8, 52 + INFO_Y, 32, 12
	EDITTEXT IDC_DATE, 46, 50 + INFO_Y, INFO_W - 56, 12, ES_LEFT | ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP
	PUSHBUTTON "Pick date", IDC_PICKDATE, INFO_W - 4, 49 + INFO_Y, 50, 14
	RTEXT "S&ong:", IDC_STATIC, 8, 66 + INFO_Y, 32, 12
	COMBOBOX IDC_SONGNO, 46, 64 + INFO_Y, 26, 12, CBS_DROPDOWNLIST | WS_TABSTOP
	RTEXT "&Time:", IDC_STATIC, 80, 66 + INFO_Y, 20, 12
	EDITTEXT IDC_TIME, 108, 64 + INFO_Y, 40, 12
	AUTOCHECKBOX "&Loop", IDC_LOOP, 156, 64 + INFO_Y, 40, 12
	AUTOCHECKBOX "NTSC", IDC_NTSC, INFO_W + 6, 64 + INFO_Y, 40, 12
	RTEXT "Technical:", IDC_STATIC, 8, 80 + INFO_Y, 32, 12
	EDITTEXT IDC_TECHINFO, 46, 78 + INFO_Y, INFO_W, 48, ES_LEFT | ES_AUTOVSCROLL | ES_MULTILINE | ES_READONLY | WS_BORDER | WS_TABSTOP | WS_VSCROLL
	RTEXT "STIL file:", IDC_STATIC, 8, 130 + INFO_Y, 32, 12
	EDITTEXT IDC_STILFILE, 46, 128 + INFO_Y, INFO_W, 12, ES_LEFT | ES_AUTOHSCROLL | ES_READONLY | WS_BORDER | WS_TABSTOP
	RTEXT "STIL info:", IDC_STATIC, 8, 144 + INFO_Y, 32, 12
	EDITTEXT IDC_STILINFO, 46, 142 + INFO_Y, INFO_W, 48, ES_LEFT | ES_AUTOVSCROLL | ES_MULTILINE | ES_READONLY | WS_BORDER | WS_TABSTOP | WS_VSCROLL
	DEFPUSHBUTTON "&Save", IDC_SAVE, INFO_W - 140, 194 + INFO_Y, 50, 14
	PUSHBUTTON "Save as...", IDC_SAVEAS, INFO_W - 82, 194 + INFO_Y, 70, 14
	PUSHBUTTON "Close", IDCANCEL, INFO_W - 4, 194 + INFO_Y, 50, 14
}

#endif /* _UNICODE */

#endif /* defined(WASAP) || defined(WINAMP) || defined(FOOBAR2000) || defined(XMPLAY) */

#if defined(WASAP) || defined(WINAMP)

#include <commctrl.h>

IDD_PROGRESS DIALOG 0, 0, 160, 48
STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | WS_POPUP | WS_VISIBLE
CAPTION "Please wait"
FONT 8, "MS Sans Serif"
{
#ifdef WASAP
	CTEXT "Writing WAV file", IDC_STATIC, 8, 8, 144, 12
#else
	CTEXT "Adding subsongs to the playlist", IDC_STATIC, 8, 8, 144, 12
#endif
	CONTROL "", IDC_PROGRESS, PROGRESS_CLASS, 0, 8, 24, 144, 12
}

#endif /* defined(WASAP) || defined(WINAMP) */

1 VERSIONINFO
	FILEVERSION ASAPInfo_VERSION_MAJOR, ASAPInfo_VERSION_MINOR, ASAPInfo_VERSION_MICRO, 0
	PRODUCTVERSION ASAPInfo_VERSION_MAJOR, ASAPInfo_VERSION_MINOR, ASAPInfo_VERSION_MICRO, 0
	FILEFLAGSMASK 0x3fL
	FILEFLAGS 0x0L
	FILEOS 0x40004L
	FILETYPE FILE_TYPE
	FILESUBTYPE 0x0L
{
	BLOCK "StringFileInfo"
	{
		BLOCK "040904b0"
		{
			VALUE "CompanyName", "Piotr Fusik\0"
			VALUE "FileDescription", FILE_DESCRIPTION "\0"
			VALUE "FileVersion", ASAPInfo_VERSION "\0"
			VALUE "InternalName", INTERNAL_NAME "\0"
			VALUE "LegalCopyright", "Copyleft " ASAPInfo_YEARS "\0"
			VALUE "OriginalFilename", ORIGINAL_FILENAME "\0"
			VALUE "ProductName", "ASAP\0"
			VALUE "ProductVersion", ASAPInfo_VERSION "\0"
		}
	}
	BLOCK "VarFileInfo"
	{
		VALUE "Translation", 0x409, 1200
	}
}
