Subversion Repositories filter_foundry

Rev

Rev 193 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 193 Rev 259
Line 1... Line 1...
1
/* from HIN 010 */
1
/* from HIN 010 */
2
// The first set of definitions are not actual coordinates, but instead are intermediate values used to derive them:
2
// The first set of definitions are not actual coordinates, but instead are intermediate values used to derive them:
3
 
3
 
4
#define A                    13    // white space between most elements
4
#define A                    13    // white space between most elements
5
#define B                    23    // white space to left and right of icon
5
#define B                    23    // white space to left and right of icon
6
#define NumTextLines          3    // number of lines of text in the alert
6
#define NumTextLines          3    // number of lines of text in the alert
7
#define LineHeight           16    // height of a single line of Chicago-12
7
#define LineHeight           16    // height of a single line of Chicago-12
8
#define ButtonHeight         20    // standard button height
8
#define ButtonHeight         20    // standard button height
9
#define LongestButtonName    41    // width of ÒCancelÓ in Chicago-12
9
#define LongestButtonName    41    // width of ÒCancelÓ in Chicago-12
10
#define ButtonWidth          59    // (LongestButtonName + 18)
10
#define ButtonWidth          59    // (LongestButtonName + 18)
11
 
11
 
12
// The rest of the definitions are actual coordinates defining the window size
12
// The rest of the definitions are actual coordinates defining the window size
13
// (AlertWidth and AlertHeight) and the icon, text, and button locations:
13
// (AlertWidth and AlertHeight) and the icon, text, and button locations:
14
 
14
 
15
#define AlertWidth          341    // chosen to make the right margin = A
15
#define AlertWidth          341    // chosen to make the right margin = A
16
 
16
 
17
#define IconLeft             20    // (B - 3)
17
#define IconLeft             20    // (B - 3)
18
#define IconRight            52    // (IconLeft + 32)
18
#define IconRight            52    // (IconLeft + 32)
19
#define IconTop              10    // (A - 3)
19
#define IconTop              10    // (A - 3)
20
#define IconBottom           42    // (IconTop + 32)
20
#define IconBottom           42    // (IconTop + 32)
21
 
21
 
22
#define TextLeft             74    // (IconRight + (B - 1))
22
#define TextLeft             74    // (IconRight + (B - 1))
23
#define TextRight           331    // (AlertWidth - (A - 3))
23
#define TextRight           331    // (AlertWidth - (A - 3))
24
#define TextTop               7    // (A - 6)
24
#define TextTop               7    // (A - 6)
25
#define TextBottom           55    // (TextTop + (NumTextLines * LineHeight))
25
#define TextBottom           55    // (TextTop + (NumTextLines * LineHeight))
26
 
26
 
27
#define ButtonTop            68    // (TextBottom + A)
27
#define ButtonTop            68    // (TextBottom + A)
28
#define ButtonBottom         88    // (ButtonTop + ButtonHeight)
28
#define ButtonBottom         88    // (ButtonTop + ButtonHeight)
29
#define ActionButtonRight   331    // (AlertWidth - (A - 3))
29
#define ActionButtonRight   331    // (AlertWidth - (A - 3))
30
#define ActionButtonLeft    272    // (ActionButtonRight - ButtonWidth)
30
#define ActionButtonLeft    272    // (ActionButtonRight - ButtonWidth)
31
#define CancelButtonRight   259    // (ActionButtonLeft - A)
31
#define CancelButtonRight   259    // (ActionButtonLeft - A)
32
#define CancelButtonLeft    200    // (CancelButtonRight - ButtonWidth)
32
#define CancelButtonLeft    200    // (CancelButtonRight - ButtonWidth)
33
 
33
 
34
#define AlertHeight          98    // (ButtonBottom + (A - 3))
34
#define AlertHeight          98    // (ButtonBottom + (A - 3))