-
Notifications
You must be signed in to change notification settings - Fork 0
/
DFMLoadWaveWinCustom.rc
76 lines (61 loc) · 2.94 KB
/
DFMLoadWaveWinCustom.rc
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/* DFMLoadWaveWinCustom.rc -- resources for DFMLoadWave on Windows
This file is compiled by the resource compiler and creates XOP-specific
resources that IGOR looks for in an XOP module.
*/
#include "XOPResources.h" // Defines XOP-specific symbols.
/* Custom error messages */
1100 STR#
BEGIN
"This is not a DFM binary file\0", // IMPROPER_FILE_TYPE
"There is no data in file\0", // NO_DATA
"Expected name of general binary file\0", // EXPECTED_GB_FILE
"Expected base name for new waves\0", // EXPECTED_BASENAME
"Expected file type\0", // EXPECTED_FILETYPE
"Too many file types (4 allowed)\0", // TOO_MANY_FILETYPES
"Data length in bits must be 8, 16, 32 or 64\0", // BAD_DATA_LENGTH
"Number of arrays must be >= 1\0", // BAD_NUM_WAVES
"File contains too few bytes for specified number of bytes/point, points and arrays\0", // NOT_ENOUGH_BYTES
"Bad data type value\0", // BAD_DATA_TYPE
"DFMLoadWave requires Igor version 3.12 or later\0", // OLD_IGOR
"Valid floating point formats are 1 (IEEE) and 2 (VAX)\0", // BAD_FP_FORMAT_CODE
"\0" // NOTE: NULL required to terminate the resource.
END
1101 STR# // Misc strings that Igor looks for.
BEGIN
"-1\0", // -1 means we don't want to add a menu item via STR# 1101. We add it via the XMI1 reource.
"---\0", // IGOR ignores item 2 because item 1 is -1.
"DFMLoadWave Help\0", // Name of XOP's help file.
"\0" // NOTE: NULL required to terminate the resource.
END
/* Menu specification for XOP */
1100 XMI1 // Describes simple menu items added by XOP to built-in IGOR menus.
BEGIN
50, // IGOR menu ID (Data:Load Data submenu).
"Load DFM Binary File...\0", // Text of item to add to IGOR menu.
0, // Resource ID of 'MENU' resource in XOP for submenu to be attached to menu item or 0 for no submenu.
0, // Menu item flags.
// More sets of ID/text/ID/flags can appear here.
0, // NOTE: 0 required to terminate the resource.
END
1 STR# // Status line help for first item in XMI1 resource.
BEGIN
// The first string is displayed when the menu item is enabled.
"Loads data from DFM binary files into Igor waves.\0",
// The second string is displayed when the menu item is disabled.
"Loads data from DFM binary files into Igor waves.\0",
"\0" // NOTE: Null required to terminate the resource.
END
1100 XOPI // XOPI - Describes general XOP properties to IGOR.
BEGIN
XOP_VERSION, // Version number of host XOP system.
DEV_SYS_CODE, // Code for development system used to make XOP.
0, // Obsolete - set to zero.
0, // Obsolete - set to zero.
XOP_TOOLKIT_VERSION // XOP Toolkit version.
END
1100 XOPC // Describes operations that the XOP adds to IGOR.
BEGIN
"DFMLoadWave\0",
utilOp | XOPOp | compilableOp,
"\0" // NOTE: NULL required to terminate the resource.
END