/* This file is part of icoformat, a Windows Icon (ICO) File Format plugin for Adobe Photoshop Copyright (C) 2002-2010 Toby Thain, toby@telegraphics.com.au 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #define SystemSevenOrLater 1 #include "dialogs.r" #include "menus.r" #include "controls.r" #include "controldefinitions.r" #include "ui_defs.h" #include "version.h" // ---------- About box resource 'alrx' (ID_ABOUTDLG, purgeable){ versionZero { 0,0,kUseThemeWindow,"" } }; resource 'ALRT' (ID_ABOUTDLG, purgeable) { {0, 0, 232, 360}, ID_ABOUTDLG, silentStages, alertPositionMainScreen }; resource 'DITL' (ID_ABOUTDLG, purgeable) { { {16, 20, 96, 340}, StaticText { disabled, "ICO (Windows Icon) Format, version " VERSION_STR "\nCopyright (C) 2002-2011 Toby Thain ." "\nLatest version available from\nhttp://www.telegraphics.com.au/sw/" }, {104, 20, 216, 340}, StaticText { disabled, "If you use this program and like it, please use www.paypal.com to send the author" " what you think it is worth (US$5 suggested)." "\nPlease contact the author with any bug reports, suggestions or comments." } } }; // ---------- Pick icon dialog resource 'dlgx' (ID_PICKICONDLG, purgeable){ versionZero { kDialogFlagsUseThemeBackground } }; resource 'DLOG' (ID_PICKICONDLG, purgeable) { {0, 0, 152, 320}, dBoxProc, visible, noGoAway, 0x0, ID_PICKICONDLG, "Windows Icon (ICO) Format: Choose Icon", alertPositionMainScreen }; resource 'MENU' (ID_ICONMENU){ ID_ICONMENU,textMenuProc,~0,enabled,"",{ } }; resource 'CNTL' (ID_ICONMENU){ {0,0,19,280},popupTitleLeftJust,visible,0,ID_ICONMENU,popupMenuCDEFproc,0,"" }; resource 'DITL' (ID_PICKICONDLG, purgeable) { { {116, 230, 136, 300}, Button { enabled, "OK" }, {116, 140, 136, 210}, Button { enabled, "Cancel" }, {16, 20, 48, 300}, StaticText { disabled, "\"%s\" contains %d icons." }, {56, 20, 72, 106}, StaticText { disabled, "Read icon:" }, {77, 20, 96, 300}, control { enabled, ID_ICONMENU } } }; // ---------- Choose format (standard/PNG) resource 'dlgx' (ID_FORMATDLG, purgeable){ versionZero { kDialogFlagsUseThemeBackground } }; resource 'DLOG' (ID_FORMATDLG, purgeable) { {0, 0, 152, 340}, dBoxProc, visible, noGoAway, 0x0, ID_FORMATDLG, "Windows Icon (ICO) Format: Choose format", alertPositionMainScreen }; resource 'DITL' (ID_FORMATDLG, purgeable) { { {116, 250, 136, 320}, Button { enabled, "OK" }, {116, 160, 136, 230}, Button { enabled, "Cancel" }, {16, 20, 48, 320}, StaticText { disabled, "Choose icon format:" }, {48, 20, 64, 320}, RadioButton { enabled, "Standard ICO (use for favicon.ico)" }, {68, 20, 84, 320}, RadioButton { enabled, "PNG (Vista), not compatible with all software" }, } }; // ---------- Warning alert /* top,left,bottom,right*/ resource 'alrx' (ID_WARNTYPEDLG, purgeable){ versionZero { 0,0,kUseThemeWindow,"" } }; resource 'ALRT' (ID_WARNTYPEDLG, purgeable) { {0, 0, 148, 320}, ID_WARNTYPEDLG, silentStages, alertPositionMainScreen }; resource 'DITL' (ID_WARNTYPEDLG, purgeable) { { /* array DITLarray: 11 elements */ /* [1] */ {112, 230, 132, 300}, Button { enabled, "OK" }, /* [2] */ {112, 140, 132, 210}, Button { enabled, "Cancel" }, {10, 70, 110, 300}, StaticText { disabled, "^0\n\nContinue?" }, } };