Subversion Repositories filter_foundry

Rev

Rev 122 | Rev 130 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. /*
  2.     This file is part of "Filter Foundry", a filter plugin for Adobe Photoshop
  3.     Copyright (C) 2003-7 Toby Thain, toby@telegraphics.com.au
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18. */
  19.  
  20. /* Main dialog */
  21. #define OPENITEM 3
  22. #define PARAMAUTHORITEM 3
  23. #define SAVEITEM 4
  24. #define PARAMCOPYITEM 4
  25. #define MAKEITEM 5
  26.  
  27. #define PREVIEWITEM 6
  28. #define ZOOMINITEM 7
  29. #define ZOOMOUTITEM 8
  30. #define ZOOMLEVELITEM 9
  31.  
  32. #define FIRSTCTLLABELITEM 10  /* 10-17 */
  33. #define FIRSTCTLITEM 18       /* 18-25 */
  34. #define FIRSTCTLTEXTITEM 26   /* 26-33 */
  35. #define FIRSTLABELITEM 34
  36. #define FIRSTICONITEM 38
  37. #define FIRSTEXPRITEM 42
  38.  
  39. /* Build dialog */
  40. #define CATEGORYITEM 3
  41. #define TITLEITEM 4
  42. #define COPYRIGHTITEM 5
  43. #define AUTHORITEM 6
  44. #define FIRSTMAPNAMEITEM 7
  45. #define FIRSTCTLNAMEITEM 11
  46. #define FIRSTMAPCHECKITEM 19
  47. #define FIRSTCTLCHECKITEM 23
  48. #define PROTECTITEM 31
  49. #define OBFUSCITEM 32
  50.  
  51. #define SLIDERPAGE 16
  52.  
  53. #define ID_ABOUTDLG 16000
  54. #define ID_ABOUTSTANDALONEDLG 16005
  55. #define ID_MAINDLG 16001
  56. #define ID_SYNTAXALERT 16002
  57. #define ID_BUILDDLG 16003
  58. #define ID_PARAMDLG 16004
  59.  
  60. #define ID_SLIDERCTL 16000
  61. #define ID_TEXTCTL 16001
  62.  
  63. #define ID_CAUTIONPICT 16000
  64. #define ID_ZOOMINPICT 16001
  65. #define ID_ZOOMOUTPICT 16002
  66. #define ID_HANDCURSOR 16000
  67.  
  68. #define IDC_FF_HAND_OPEN 1001
  69. #define IDC_FF_HAND_GRAB 1002
  70. #define IDC_FF_HAND_QUESTION 1003
  71.  
  72. /* --- constants for terminology (scripting) resource */
  73. #define AETE_ID                 16000
  74. #define vendorName              "Telegraphics"
  75. #define plugInSuiteID   'tELE'
  76. #define plugInClassID   'fiFo'
  77. #define plugInEventID   plugInClassID //typeNull // must be this
  78.  
  79. #define PARAM_R_KEY             'xprR'
  80. #define PARAM_G_KEY             'xprG'
  81. #define PARAM_B_KEY             'xprB'
  82. #define PARAM_A_KEY             'xprA'
  83.  
  84. #define PARAM_CTL0_KEY  'cTl0'  // some naughty parts of the code assume
  85. #define PARAM_CTL1_KEY  'cTl1'  // these are numerically sequential
  86. #define PARAM_CTL2_KEY  'cTl2'
  87. #define PARAM_CTL3_KEY  'cTl3'
  88. #define PARAM_CTL4_KEY  'cTl4'
  89. #define PARAM_CTL5_KEY  'cTl5'
  90. #define PARAM_CTL6_KEY  'cTl6'
  91. #define PARAM_CTL7_KEY  'cTl7'
  92. /* --- */
  93.  
  94. #ifndef RC_INVOKED
  95. #ifndef Rez
  96.  
  97.         #include "PIAbout.h"
  98.         #include "PIFilter.h"
  99.  
  100.         #include "ui_compat.h"
  101.  
  102.         enum{
  103.                 MAXEXPR = 1024,
  104.         };
  105.  
  106.         void DoAbout(AboutRecordPtr prec);
  107.         Boolean maindialog(FilterRecordPtr pb);
  108.         Boolean builddialog(FilterRecordPtr pb);
  109.         Boolean simplealert(char *s);
  110.  
  111.         // platform independent
  112.         Boolean alertuser(char *err,char *more);
  113.         void maindlginit(DIALOGREF dp);
  114.         Boolean maindlgitem(DIALOGREF dp,int item);
  115.         void maindlgupdate(DIALOGREF dp);
  116.         void slidermoved(DIALOGREF dp,int item);
  117.         Boolean checksliders(int exprs,int ctlflags[],int mapflags[]);
  118.  
  119.         void builddlginit(DIALOGREF dp);
  120.         Boolean builddlgitem(DIALOGREF dp,int item);
  121.  
  122. #endif
  123. #endif
  124.