dialogs.h

Go to the documentation of this file.
00001 
00002 /*  $Id: dialogs.h 1254 2006-04-12 20:27:14Z sethdill $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #ifndef dialogsinclude
00029 #define dialogsinclude /*so other includes can tell if we've been loaded*/
00030 
00031 #define okitem 1 /*can be used by any dialog if something more specific isn't needed*/
00032 #define cancelitem 2
00033 
00034 #define quitdialogid 254 /*standard “quit” dialog (shares items with Save)*/
00035 
00036 #define savedialogid 256 /*standard “save” dialog*/
00037 #define saveyesitem 1
00038 #define savecancelitem 2
00039 #define savenoitem 3
00040 #define savefileprompt 4
00041 #define savequitprompt 5
00042 
00043 // #define replacedialogid 257 /* 2005-09-26 creedon - replaced the single occurrence use of this dialog with call to threewaydialog */
00044 #define replacereplaceitem 1
00045 #define replaceduplicateitem 2
00046 #define replacecancelitem 3
00047 
00048 #define askdialogid 262 /*standard “ask” dialog for UserLand language*/
00049 #define askokitem 1
00050 #define askcancelitem 2
00051 #define askpromptitem 3
00052 #define askansweritem 4
00053 
00054 #define msgdialogid 263 /*standard “msg” dialog for UserLand language*/
00055 #define msgokitem 1
00056 #define msgcancelitem 2
00057 #define msgmsgitem 3
00058 
00059 #define twowaydialogid 263 /*standard “msg” dialog for UserLand language*/
00060 #define twowayokitem 1
00061 #define twowaycancelitem 2
00062 #define twowaymsgitem 3
00063 
00064 #define threewaydialogid 264 /*standard “msg” dialog for UserLand language*/
00065 #define threewayyesitem 1
00066 #define threewaynoitem 2
00067 #define threewaycancelitem 3
00068 #define threewaymsgitem 4
00069 
00070 #define intdialogid 265 /*dialog for prompting for a single number*/
00071 #define intokitem 1
00072 #define intcancelitem 2
00073 #define intpromptitem 3
00074 #define intintitem 4
00075 
00076 #define chardialogid 266 /*dialog for prompting for a single character*/
00077 #define charokitem 1
00078 #define charcancelitem 2
00079 #define charpromptitem 3
00080 #define charvalitem 4
00081 
00082 #define sferrordialogid 260 /*error while std file is up*/
00083 
00084 #define alertdialogid 261 /*standard “alert” dialog for UserLand language*/
00085 #define alertokitem 1
00086 #define alertmsgitem 3
00087 
00088 #define revertdialogid 269 /*standard “revert” dialog for UserLand language*/
00089 #define revertokitem 1
00090 
00091 #define newvaluedialogid 255 /*zooming unknown value*/
00092 #define valuenameitem 4
00093 #define firstkinditem 5
00094 #define lastkinditem 10
00095 
00096 /* dialog button text */
00097 
00098 #ifdef MACVERSION
00099     #define cancelbuttontext BIGSTRING ("\x06" "Cancel")
00100     #define duplicatebuttontext BIGSTRING ("\x09" "Duplicate")
00101     #define replacebuttontext BIGSTRING ("\x07" "Replace")
00102 #endif
00103 
00104 #ifdef WIN95VERSION
00105     #define cancelbuttontext BIGSTRING ("\x07" "&Cancel")
00106     #define duplicatebuttontext BIGSTRING ("\x0a" "&Duplicate")
00107     #define replacebuttontext BIGSTRING ("\x08" "&Replace")
00108 #endif
00109 
00110 
00111 typedef boolean (*dialogcallback) (DialogPtr, short);
00112 
00113 
00114 /*function prototypes*/
00115 
00116 extern short dialogcountitems (DialogPtr);
00117 
00118 extern void boldenbutton (DialogPtr, short);
00119 
00120 extern void positiondialogwindow (DialogPtr);
00121 
00122 extern void disabledialogitem (DialogPtr, short);
00123 
00124 extern void enabledialogitem (DialogPtr, short);
00125 
00126 extern void hidedialogitem (DialogPtr, short);
00127 
00128 extern void showdialogitem (DialogPtr, short);
00129 
00130 extern void setdefaultitem (DialogPtr, short);
00131 
00132 extern boolean dialogitemisbutton (DialogPtr, short);
00133 
00134 extern DialogPtr newmodaldialog (short, short);
00135 
00136 extern void disposemodaldialog (DialogPtr);
00137 
00138 extern void setdialogcheckbox (DialogPtr, short, boolean);
00139 
00140 extern boolean getdialogcheckbox (DialogPtr, short);
00141 
00142 extern void toggledialogcheckbox (DialogPtr, short);
00143 
00144 extern boolean setdialogradiovalue (DialogPtr, short, short, short);
00145 
00146 extern short getdialogradiovalue (DialogPtr, short, short);
00147 
00148 extern void setdialogicon (DialogPtr, short, short);
00149 
00150 extern void setdialogtext (DialogPtr, short, bigstring);
00151 
00152 extern void getdialogtext (DialogPtr, short, bigstring);
00153 
00154 extern void selectdialogtext (DialogPtr, short);
00155 
00156 extern short getdialogint (DialogPtr, short);
00157 
00158 extern void setdialogint (DialogPtr, short, short);
00159 
00160 extern OSType getdialogostype (DialogPtr, short);
00161 
00162 extern void setdialogostype (DialogPtr, short, OSType);
00163 
00164 extern void setdialogbutton (DialogPtr, short, bigstring);
00165 
00166 extern void dialoggetobjectrect (DialogPtr, short, Rect *);
00167 
00168 extern void dialogsetobjectrect (DialogPtr, short, Rect);
00169 
00170 extern boolean dialogsetfontsize (DialogPtr, short, short);
00171 
00172 extern boolean ptinuseritem (Point, DialogPtr, short);
00173 
00174 extern boolean setuseritemdrawroutine (DialogPtr, short, dialogcallback);
00175 
00176 extern pascal boolean modaldialogcallback (DialogPtr, EventRecord *, short *);
00177 
00178 extern void dialogupdate (EventRecord *, DialogPtr);
00179 
00180 extern boolean dialogevent (EventRecord *, DialogPtr, short *);
00181 
00182 extern boolean dialogidle (DialogPtr);
00183 
00184 extern boolean dialogactivate (DialogPtr, boolean);
00185 
00186 extern boolean dialogsetselect (DialogPtr, short, short);
00187 
00188 extern boolean dialogselectall (DialogPtr);
00189 
00190 extern boolean dialoggetselect (DialogPtr, short *, short *);
00191 
00192 extern short savedialog (bigstring);
00193 
00194 extern short replacevariabledialog (bigstring);
00195 
00196 extern boolean revertdialog (bigstring);
00197 
00198 extern boolean askdialog (bigstring, bigstring);
00199 
00200 extern boolean askpassword (bigstring, bigstring);
00201 
00202 extern boolean twowaydialog (bigstring, bigstring, bigstring);
00203 
00204 extern short threewaydialog (bigstring, bigstring, bigstring, bigstring);
00205 
00206 extern boolean initdialogs (void);
00207 
00208 extern boolean intdialog (bigstring, short *);
00209 
00210 extern boolean chardialog (bigstring, short *);
00211 
00212 extern boolean msgdialog (bigstring);
00213 
00214 extern boolean alertdialog (bigstring);
00215 
00216 extern boolean alertstring (short);
00217 
00218 extern short customalert (short, bigstring);
00219 
00220 extern boolean customdialog (short, short, dialogcallback);
00221 
00222 #ifdef WIN95VERSION
00223     extern boolean userinfodialog (bigstring username, bigstring userinitials, bigstring userorg, bigstring email);
00224 
00225     extern void centerdialog (HWND hwndDlg);
00226 #else
00227     char X0_p2cstrcpy(char *dst, StringPtr src);
00228 #endif
00229 
00230 #endif
00231 
00232 
00233 

Generated on Wed May 31 18:19:46 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6