Choices 7.69 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
/* Copyright 1997 Acorn Computers Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/***************************************************/
/* File   : Choices.h                              */
/*                                                 */
/* Purpose: Functions relating to the Choices      */
/*          dialogue box and related sub windows.  */
/*                                                 */
/* Author : D.T.A.Brown                            */
/*                                                 */
/* History: 23-Sep-97: Created.                    */
/***************************************************/

/* Choices main dialogue component IDs */

28 29 30 31 32
#define CDSet                 0x2600
#define CDCancel              0x2601
#define CDSaveButton          0x2602
#define CDFirstSubRadio       0x2603
#define CDPlaceHolder         0x260f
33 34 35

/* Choices main dialogue and menu event codes */

36 37 38
#define ECDSet                0x2600
#define ECDCancel             0x2601
#define ECDSaveButton         0x2602
39

40 41 42 43 44 45 46 47
#define ECDToBeShown          0x27ff
#define ECDHidden             0x27fe
#define ECDRG2                0x27fd
#define ECDSaveMenuClick      0x27fc
#define ECDDispMenuClick      0x27fb
#define ECDPlugMenuClick      0x27fa
#define ECDTimeMenuClick      0x27f9
#define ECDBordMenuClick      0x27f8
48
#define ECDHiRadioClick       0x27f7
49 50 51

/* Choices subwindows event codes */

52
#define ECD_EncodingMenuBt    0x2656
53

54
#define ECD_ColourButton      0x2690
55

56
#define ECD_FontButton        0x26b0
57

58 59
#define ECD_HlSaveBt          0x26d1
#define ECD_HlDispBt          0x26d3
60

61 62
#define ECD_HiSaveBt          0x26f1
#define ECD_HiDispBt          0x26f3
63

64 65 66 67 68 69
#define ECD_HiAgeTypeBt       0x26f8

#define ECD_ObjPlugBt         0x26c2

#define ECD_TabInnerBordBt    0x26c7
#define ECD_TabOuterBordBt    0x26ca
70

71 72
/* Choices subwindows */

73 74
#define CDSubNone             -1
#define CDNoSubwindows        9
75 76 77

/* Choices Subwindow component ids */

78 79 80
/* In all cases there may only be one of each */
/* of these components.                       */

81 82
/* In BrowseDefaults sub window: */

83 84 85 86 87 88 89
#define CD_Homepage           0x2650
#define CD_UnderlineLinks     0x2651
#define CD_UseDocColours      0x2652
#define CD_ShowForeground     0x2653
#define CD_ShowBackground     0x2654
#define CD_EncodingDisply     0x2655
#define CD_EncodingMenuBt     0x2656
90 91 92

/* In Windows sub window: */

93 94 95 96
#define CD_URLBar             0x2670
#define CD_StatusBar          0x2671
#define CD_ButtonBar          0x2672
#define CD_FullScreen         0x2673
97

98 99 100
#define CD_ClientPull         0x2674
#define CD_NetscapeEmu        0x2675
#define CD_FramesSupport      0x2676
101 102 103

/* In colours sub window: */

104
/* The colour display button MUST have a component id */
105 106
/* one less than it's equivalent menu button and      */
/* be in the same subwindow.                          */
107

108 109 110 111 112 113 114 115 116 117 118 119
#define CD_BackColour         0x2690
#define CD_BackColourBt       0x2691
#define CD_TextColour         0x2692
#define CD_TextColourBt       0x2693
#define CD_LinkColour         0x2694
#define CD_LinkColourBt       0x2695
#define CD_UsedColour         0x2696
#define CD_UsedColourBt       0x2697
#define CD_FolwColour         0x2698
#define CD_FolwColourBt       0x2699
#define CD_SlctColour         0x269a
#define CD_SlctColourBt       0x269b
120 121 122 123

/* The window in which the fake page button resides */
/* must not be auto redraw.                         */

124
#define CD_FakePage           0x269c
125 126

/* In fonts subwindow */
127

128 129 130 131
/* The display fields must have component id one */
/* less than their equivalent menu buttons and   */
/* be in the same subwindow.                     */

132 133 134 135 136 137 138 139 140 141 142 143 144 145
#define CD_FontsTF1Disp       0x26b0
#define CD_FontsTF1Bt         0x26b1
#define CD_FontsTF2Disp       0x26b2
#define CD_FontsTF2Bt         0x26b3
#define CD_FontsTF3Disp       0x26b4
#define CD_FontsTF3Bt         0x26b5
#define CD_FontsSize          0x26b6
#define CD_FontsSystem        0x26b7
#define CD_FontsTF1Labl       0x26b8
#define CD_FontsTF2Labl       0x26b9
#define CD_FontsTF3Labl       0x26ba
#define CD_FontsSzLabl1       0x26bb
#define CD_FontsSzLabl2       0x26bc
#define CD_FontsGroup1        0x26bd
146
#define CD_FontsAspect        0x26be
147 148
#define CD_FontsAspectLabl1   0x26bf
#define CD_FontsAspectLabl2   0x2730
149

150 151
/* In hotlist subwindow */

152
/* The Display fields must have component id one */
153 154
/* less than their equivalent menu buttons and   */
/* be in the same subwindow.                     */
155

156 157 158 159 160 161
#define CD_HlSaveDisp         0x26d0
#define CD_HlSaveBt           0x26d1
#define CD_HlDispDisp         0x26d2
#define CD_HlDispBt           0x26d3
#define CD_HlAutoOpen         0x26d4
#define CD_HlAutoScroll       0x26d5
162

163 164
/* In history subwindow */

165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
#define CD_HiSaveDisp         0x26f0
#define CD_HiSaveBt           0x26f1
#define CD_HiDispDisp         0x26f2
#define CD_HiDispBt           0x26f3

#define CD_HiDontAge          0x26f4
#define CD_HiExpiryAgeLabl    0x26f5
#define CD_HiExpiryAge        0x26f6
#define CD_HiAgeTypeDisp      0x26f7
#define CD_HiAgeTypeBt        0x26f8

#define CD_HiDontSize         0x26f9
#define CD_HiMaxSizeLabl1     0x26fa
#define CD_HiMaxSize          0x26fb
#define CD_HiMaxSizeLabl2     0x26fc
180

181 182 183 184 185 186 187 188 189 190 191 192 193 194
#define CD_HiImDontAge        0x26fd
#define CD_HiImExpiryAgeLabl  0x26fe
#define CD_HiImExpiryAge      0x26ff
#define CD_HiImAgeTypeDisp    0x2720
#define CD_HiImAgeTypeBt      0x2721

#define CD_HiImDontSize       0x2722
#define CD_HiImMaxSizeLabl1   0x2723
#define CD_HiImMaxSize        0x2724
#define CD_HiImMaxSizeLabl2   0x2725

#define CD_HiRadPage          0x2726
#define CD_HiRadImage         0x2727

195 196 197 198 199
/* In Objects subwindow */

/* The ObjPlugDisp component must have a component id */
/* one less than the ObjPlugBt component.             */

200 201 202 203 204 205 206 207 208 209 210 211 212 213
#define CD_ObjHandle          0x26c0
#define CD_ObjPlugDisp        0x26c1
#define CD_ObjPlugBt          0x26c2
#define CD_ObjPlugLabl        0x26c3

/* Tables stuff (currently in objects window)         */

#define CD_TabSupport         0x26c4
#define CD_TabInnerBordLabl   0x26c5
#define CD_TabInnerBordDisp   0x26c6
#define CD_TabInnerBordBt     0x26c7
#define CD_TabOuterBordLabl   0x26c8
#define CD_TabOuterBordDisp   0x26c9
#define CD_TabOuterBordBt     0x26ca
214

David Brown's avatar
David Brown committed
215 216
/* In network subwindow */

217 218 219
#define CD_NetUseProxy        0x2700
#define CD_NetProxyAddr       0x2701
#define CD_NetProxyLabl       0x2702
David Brown's avatar
David Brown committed
220
#define CD_NetLaunchProxy     0x2703
David Brown's avatar
David Brown committed
221
#define CD_NetMaxImageFetch   0x2704
David Brown's avatar
David Brown committed
222

223 224
/* Display menu: */

225 226
#define CD_DispDesc           0x0000
#define CD_DispURL            0x0001
227 228 229

/* Save menu: */

230 231 232
#define CD_SaveNever          0x0000
#define CD_SaveOnExit         0x0001
#define CD_SaveAlways         0x0002
233

234 235
/* Plugin menu: */

236 237 238 239 240 241 242 243 244 245 246
#define CD_PlugDont           0x0000
#define CD_PlugRedraw         0x0001
#define CD_PlugASAP           0x0002

/* Time menu: */

#define CD_TimeMinutes        0x0000
#define CD_TimeHours          0x0001
#define CD_TimeDays           0x0002
#define CD_TimeWeeks          0x0003
#define CD_TimeMonths         0x0004
247

248 249 250 251 252 253
extern global_choices * new_choices;
extern ObjectId         choices_windowid;

int               choices_to_be_shown        (int eventcode, ToolboxEvent * event, IdBlock * idb, void * handle);
int               choices_hidden             (int eventcode, ToolboxEvent * event, IdBlock * idb, void * handle);
_kernel_oserror * choices_set_encoding_field (void);
254
_kernel_oserror * choices_mode_change        (void);