/* This file is part of WebPFormat, a File Format plugin for Adobe Photoshop Copyright (C) 2002-2011 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" // ---------- Encode Options dialog ---------- resource 'CNTL' (ID_QUALITYCTL){ {0, 0, 26, 280}, 11, /* # of ticks */ visible, 100, /* max */ 0, /* min */ kControlSliderProc|kControlSliderHasTickMarks|kControlSliderPointsUpOrLeft, 0, "" }; resource 'CNTL' (ID_DENOISINGCTL){ {0, 0, 26, 280}, 7, /* # of ticks */ visible, 6, /* max */ 0, /* min */ kControlSliderProc|kControlSliderHasTickMarks|kControlSliderPointsUpOrLeft, 0, "" }; resource 'CNTL' (ID_SHARPNESSCTL){ {0, 0, 26, 280}, 8, /* # of ticks */ visible, 7, /* max */ 0, /* min */ kControlSliderProc|kControlSliderHasTickMarks|kControlSliderPointsUpOrLeft, 0, "" }; resource 'dlgx' (ID_OPTIONSDLG, purgeable){ versionZero { kDialogFlagsUseThemeBackground } }; resource 'DLOG' (ID_OPTIONSDLG, purgeable) { {0, 0, 248, 560}, movableDBoxProc, visible, noGoAway, 0x0, ID_OPTIONSDLG, "WebP Format", alertPositionMainScreen }; /* top,left,bottom,right*/ resource 'DITL' (ID_OPTIONSDLG, purgeable) { { {208, 470, 228, 540}, Button { enabled, "OK" }, {208, 380, 228, 450}, Button { enabled, "Cancel" }, { 37, 20, 53, 160}, StaticText { disabled, "Encoding Quality:" }, { 37, 480, 53, 514}, EditText { enabled, "000" }, { 37, 530, 53, 550}, StaticText { disabled, "%" }, { 16, 170, 32, 256}, StaticText { disabled, "Lowest" }, { 16, 402, 32, 455}, StaticText { disabled, "Highest" }, { 37, 170, 63, 450}, control { enabled, ID_QUALITYCTL }, { 77, 20, 93, 160}, StaticText { disabled, "Filtering Profile:" }, { 77, 370, 93, 470}, RadioButton { enabled, "Strong" }, { 77, 270, 93, 370}, RadioButton { enabled, "Simple" }, { 77, 170, 93, 270}, RadioButton { enabled, "None" }, {117, 20, 133, 160}, StaticText { disabled, "Denoising Strength:" }, {117, 170, 143, 450}, control { enabled, ID_DENOISINGCTL }, {157, 20, 173, 160}, StaticText { disabled, "Sharpness Level:" }, {157, 170, 183, 450}, control { enabled, ID_SHARPNESSCTL }, } }; // ---------- 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, "WebP Format, version " VERSION_STR "\nCopyright (C) 2010-2013 Toby Thain ." "\nlibvpx and libwebp are Copyright (c) 2010-2013, Google Inc. All rights reserved." "\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." } } };