home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / applic / ncsa / Mac / Telnet2.6 / prerelease / d4 / Telnet2.6.1d4.src.sit.hqx / Telnet 2.6.1d4 source / source / resrcdefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-21  |  16.7 KB  |  385 lines

  1. /*    Resource Defines */
  2.  
  3. #define    kNCSACreatorSignature     'NCSA'        /* Creator signature for "saved set" files */
  4. #define    kNCSASetFileType        'CONF'        /* Filetype for "saved set" files */
  5.  
  6. /* ----------------- Defines for translation routines -------------------------------*/
  7. #define    MY_TRSL                'TRSL'    /* resource type for translation */
  8. #define    TRSL_DEFAULT_TABLE    256        /* The default table */
  9. #define    TRSL_FTP_TABLE        257        /* The MAC->ISO, ISO->MAC table for FTP */
  10.  
  11. #define    USER_TRSL    'taBL'    /* User translation tables resource type */
  12.                             /* 256 bytes of in table followed by 256 bytes of out table */
  13.                             
  14. #define GetStrRes(x)    (Str255 **)GetResource('STR ',(x));        /* Get string resource */
  15.  
  16. /*================================================================================*/
  17. /* Defines for the Menu related resources */
  18.  
  19. #define    NMENUS    13            /*    We have NMENUS menus right now */
  20.  
  21. #define    appleMenu    1        /*    Apple Menu ID */
  22. #define    NfileMenu    512        /*    File Menu Resource ID */
  23. #define    NeditMenu    513        /*    Edit Menu Resource ID */
  24. #define NtermMenu    514        /*    Emulation Menu Resource ID */
  25. #define    NconnMenu    515        /*    Connection Menu Resource ID */
  26. #define NnetMenu    516        /*    Network Menu Resource ID */
  27.  
  28. #define    fileMenu    256        /*    File Menu ID */
  29. #define    editMenu    257        /*    Edit Menu ID */
  30. #define termMenu    258        /*    Emulation Menu ID */
  31. #define    connMenu    259        /*    Connection Menu ID */
  32. #define netMenu        260        /*    Network Menu Resource ID */
  33. #define fontMenu    128        /*  Font Menu Resource ID */
  34. #define sizeMenu    129        /*    Size Menu Resource ID */
  35. #define opspecMenu    130        /*    Open Special Sub-Menu Resource ID */
  36. #define prefsMenu    131        /*    Preferences Sub-Menu Resource ID */
  37. #define    transMenu    132        /*    Translation Sub-Menu Resource ID */
  38. #define keyMenu        1000    /*    Baylor -- Keypad menu */
  39. #define funcMenu    1002    /*    Baylor -- Function key menu */
  40.  
  41. #define    Fil            1        /*    File Menu's Position */
  42. #define Edit        2        /*  Edit Menu's Position */
  43. #define    Emul        3        /*    Emulation Menu's position */
  44. #define Net            4        /*    Network Menu's position */
  45. #define Conn        5        /*    Connection Menu's position */
  46. #define Font        6        /*    Font Menu's position */
  47. #define Sizem        7        /*  Size Menu's position */
  48. #define OpSpec        8        /*    Open Special Sub-Menu's position */
  49. #define PrefsSub    9        /*    Preferences Sub-Menu position */
  50. #define    National    10        /*    Translation Sub-Menu's postition */
  51. #define Keypad        11        /*    Baylor -- Keypad menu's position */
  52. #define Function    12        /*    Baylor -- Function menu's position */
  53.  
  54. /* ----------------- The File Menu ---------------------- */
  55. #define FLopen        1        /* File Menu: Open Connection */
  56. #define FLopenspec    2        /* File Menu: Open Special */
  57. #define    FLclose        3        /* File Menu: Close Connection */
  58. #define    FLload        5        /* File Menu: Load Set */
  59. #define    FLsave        6        /* File Menu: Save Set */
  60. #define FLbin        8        /* File Menu: MacBinary on */
  61. #define FLlog        10        /* File Menu: ftp log on */
  62. #define FLprint        12        /* File Menu: Print Selection */
  63. #define FLpset        13        /* File Menu: Page Setup */
  64. #define FLquit        15        /* File Menu: Quit */
  65.  
  66. /* ----------------- The Edit Menu ---------------------- */
  67. #define    EDundo        1
  68. #define EDcut        3
  69. #define EDcopy        4        /* Edit Menu: Copy */
  70. #define EDpaste        5        /* Edit Menu: Paste */
  71. #define EDclear        6        /* Edit Menu: Clear */
  72. #define EDcopyt        7        /* Edit Menu: Copy Table */
  73. #define EDmacros    9        /* Edit Menu: Macros */
  74. #define EDprefs        10        /* Edit Menu: Preferences */
  75.  
  76. /* ----------------- The Session Menu ---------------------- */
  77. #define EMbs        1        /* Emulation Menu: backspace */
  78. #define EMdel        2        /* Emulation Menu: delete */
  79. #define EMecho        4        /* Emulation Menu: echo */
  80. #define EMwrap      5       /* Emulation Menu: Wrap mode on/off */
  81. #define EMarrowmap    6        /* JMB - Emulation Menu: Turn EMACS mapping off/on */
  82. #define EMpgupdwn    7        /* JMB - Emulation Menu: Turn local PgUp/PgDwn/etc. on/off */
  83. #define EMnational    8        /* LU */
  84. #define EMscroll    9        /* Emulation Menu: Clear Screen Saves Lines */
  85. #define EMreset     10        /* Emulation Menu: Reset Terminal */
  86. #define EMjump        11        /* Emulation Menu: Jump Scroll */
  87. #define EMpage        12        /* Emulation Menu: TEK Page command */
  88. #define EMclear        13        /* BYU 2.4.8 - Emulation Menu: TEK Page clears screen */
  89. #define EMscreensize 15        /* NCSA: SB - new screen dimensions dialog */
  90. #define EMsetup     17      /* BYU 2.4.8 - Emulation Menu: Setup keys */
  91. #define EMfont        18        /* BYU 2.4.8 - Emulation Menu: Font */
  92. #define EMsize        19        /* BYU 2.4.8 - Emulation Menu: Size */
  93. #define EMcolor        20        /* BYU 2.4.8 - Emulation Menu: Color */
  94. #define EMcapture    22        /* BYU 2.4.18 - Emulation Menu: Capture to file */
  95.  
  96. /* ----------------- The Network Menu ---------------------- */
  97. /* #define NEcommand    19    Emulation Menu: Command Keys */
  98. #define    NEftp        1        /* Emulation Menu: Send ftp command */
  99. #define    NEip        2        /* Emulation Menu: Send IP # */
  100. #define NEayt        4        /* Emulation Menu: Send "Are You There" */
  101. #define NEao        5        /* Emulation Menu: Send "Abort Output" */
  102. #define NEinter        6        /* Emulation Menu: Send "Interrupt Process" */
  103. #define NEec        7        /* Emulation Menu: Send "Erase Character" */
  104. #define NEel        8        /* Emulation Menu: Send "Erase Line" */
  105. #define NEscroll    10        /* Network Menu: Scroll Lock */
  106. #define NEnet        12        /* Network Menu: Show Net #'s */
  107.  
  108. /* ----------------- The Connection Menu ---------------------- */
  109. #define COnext            1    /* Connection Menu: Next Session... */
  110. #define    COtitle            2    /* Change window title */
  111. #define    FIRST_CNXN_ITEM    4    /* The first slot for connections in the menu */
  112.  
  113. /* ----------------- The Preferences Menu --------------------- */
  114. #define    prfGlobal    1
  115. #define    prfTerm        2
  116. #define    prfSess        3
  117. #define    prfFTP        4
  118. #define prfFTPUser    5
  119.  
  120. /* Baylor ----------------- The Keypad Menu ---------------------        */
  121. #define    KPFind            1        /*    Baylor -- Edit Key "Find"            */
  122. #define    KPInsertHere    2        /*    Baylor -- Edit Key "Insert here"    */
  123. #define    KPRemove        3        /*    Baylor -- Edit Key "Remove"            */
  124. #define    KPSelect        4        /*    Baylor -- Edit Key "Select"            */
  125. #define KPPrevScreen    5        /*    Baylor -- Edit Key "Prev Screen"    */
  126. #define    KPNextScreen    6        /*    Baylor -- Edit Key "Next Screen"    */
  127. #define KPUp            7        /*    Baylor -- Edit Key "Up arrow"        */
  128. #define KPLeft            8        /*    Baylor -- Edit Key "Left arrow"        */
  129. #define    KPDown            9        /*    Baylor -- Edit Key "Down arrow"        */
  130. #define KPRight            10        /*    Baylor -- Edit Key "Right arrow"    */
  131. #define KPPF1            11        /*    Baylor -- Keypad "PF1"                */
  132. #define KPPF2            12        /*    Baylor -- Keypad "PF2"                */
  133. #define KPPF3            13        /*    Baylor -- Keypad "PF3"                */
  134. #define KPPF4            14        /*    Baylor -- Keypad "PF4"                */
  135. #define KPKP7            15        /*    Baylor -- Keypad "7"                */
  136. #define KPKP8            16        /*    Baylor -- Keypad "8"                */
  137. #define KPKP9            17        /*    Baylor -- Keypad "9"                */
  138. #define KPKPMinus        18        /*    Baylor -- Keypad "Minus"            */
  139. #define KPKP4            19        /*    Baylor -- Keypad "4"                */
  140. #define KPKP5            20        /*    Baylor -- Keypad "5"                */
  141. #define KPKP6            21        /*    Baylor -- Keypad "6"                */
  142. #define KPKPComma        22        /*    Baylor -- Keypad "Comma"            */
  143. #define KPKP1            23        /*    Baylor -- Keypad "1"                */
  144. #define KPKP2            24        /*    Baylor -- Keypad "2"                */
  145. #define KPKP3            25        /*    Baylor -- Keypad "3"                */
  146. #define KPKEnter        26        /*    Baylor -- Keypad "Enter"            */
  147. #define KPKP0            27        /*    Baylor -- Keypad "0"                */
  148. #define KPKPPeriod        28        /*    Baylor -- Keypad "Period"            */
  149.  
  150. /* Baylor ----------------- The Keypad Menu ---------------------        */
  151. #define    FKF6            1        /*    Baylor -- Function Key "F6"            */
  152. #define    FKF7            2        /*    Baylor -- Function Key "F7"            */
  153. #define    FKF8            3        /*    Baylor -- Function Key "F8"            */
  154. #define    FKF9            4        /*    Baylor -- Function Key "F9"            */
  155. #define    FKF10            5        /*    Baylor -- Function Key "F10"        */
  156. #define    FKF11            6        /*    Baylor -- Function Key "F11"        */
  157. #define    FKF12            7        /*    Baylor -- Function Key "F12"        */
  158. #define    FKF13            8        /*    Baylor -- Function Key "F13"        */
  159. #define    FKF14            9        /*    Baylor -- Function Key "F14"        */
  160. #define    FKHelp            10        /*    Baylor -- Function Key "Help"        */
  161. #define    FKDo            11        /*    Baylor -- Function Key "Do"            */
  162. #define    FKF17            12        /*    Baylor -- Function Key "F17"        */
  163. #define    FKF18            13        /*    Baylor -- Function Key "F18"        */
  164. #define    FKF19            14        /*    Baylor -- Function Key "F19"        */
  165. #define    FKF20            15        /*    Baylor -- Function Key "F20"        */
  166. /*================================================================================*/
  167. /*    Cursor resource related defines */
  168.  
  169. #define    rPOSCURS        256
  170. #define rBeamCursor        1
  171. #define rCrossCursor     2
  172. #define rPlusCursor      3
  173. #define rWatchCursor      4
  174. #define    rGINCURS        257
  175. #define    rDbugCURS        268
  176. #define    rXferCURS        290
  177. #define leftcrsr        130        /* cursors to display encryption state */
  178. #define rightcrsr        129        /* cursors to display encryption state */
  179. #define lockcrsr        131        /* cursors to display encryption state */
  180. /*================================================================================*/
  181. /*    WIND resources for remembering the position of our windows */
  182. #define    FTPlogWIND    257
  183.  
  184. /*================================================================================*/
  185. /* String resource related #defines */
  186. #define SAVE_SET_STRINGS_ID        23239        /* NCSA Telnet-save-set keywords */
  187. #define SAVE_SET_STRINGS_COUNT     40
  188. #define AFF_WORDS_ID            23240        /* NCSA save-set file, affirmatives */
  189. #define AFF_WORDS_COUNT            13
  190. #define MSG_RESOURCE_ID         23227        /* ftp strings of interest */
  191.  
  192. #define NETERROR_RESOURCE_ID     23250        /* network errors */
  193. #define NETERROR_RESOURCE_COUNT 17            /* number of network errors */
  194. #define MEMERROR_RESOURCE_ID     23251        /* memory errors */
  195. #define MEMERROR_RESOURCE_COUNT 7            
  196. #define RESERROR_RESOURCE_ID     23253        /* resource errors */
  197. #define RESERROR_RESOURCE_COUNT 7    
  198.         
  199. #define    GENERAL_MESSAGES_ID        2000        // Misc. messages
  200. #define    PREFERENCES_PROBLEM        1            // Problem w/Prefs, should I attempt fix?
  201. #define RESOURCE_PROBLEM        2            // Vital resource missing from Telnet
  202. #define    NUKED_PREFS                3            // Unable to repair the prefs file
  203. #define    PREFS_ARE_NEWER_ID        4            // Prefs on disk are newer than those in memory
  204. #define    CANT_OPEN_MACTCP        5            // Error occured after OpenDriver("\p.IPP");
  205. #define REALLY_QUIT_QUESTION    6            // Really quit w/open connections?
  206. #define    CANT_CREATE_PREFS        7            // Error creating prefs file
  207. #define    NEED_HFS_ERR            8            // Telnet requires HFS
  208. #define    SYS_ENVIRON_ERR            9            // Wrong SysEnvirons version
  209. #define    SYSTEM_VERS_ERR            10            // Telnet requires at least System 6.0
  210. #define    ROM_VERS_ERR            11            // Telnet requires at least 128k ROMS
  211. #define    AE_PROBLEM_ERR            12            // Problem installing AppleEvent handlers
  212.  
  213. #define    OPFAILED_MESSAGES_ID    2001        // General messages when an operation fails
  214. #define    CANT_CREATE_FILE        1            // Can't create a file for some reason
  215. #define    CANT_OPEN_FILE            2            // Can't open a file
  216. #define    OUT_OF_MEMORY            3            // Not enough memory
  217. #define    BAD_SET_ERR                4            // Invalid keyword in set file
  218.  
  219. #define    MISC_STRINGS            2002        // Misc. internal strings
  220. #define    CAPTFILENAME            1            // Name of default capture file
  221. #define    MISC_NEWSESSION            2            // Default name for new session
  222. #define    MISC_NEWTERM            3            // Default name for new terminal
  223. #define    MISC_USERPRMPT            4            // For URL generated connections
  224. #define    MISC_PSWDPRMPT            5            // For URL generated connections
  225. #define    DNR_MESSAGES_ID            2004        // DNR error messages
  226.  
  227. /*================================================================================*/
  228. /*    #defines for ALRT and DITL resources */
  229.  
  230. #define    MemoryLowAlert    200    // Preloaded, unpurgable alert to tell the user memory is tight
  231.  
  232. /*    #defines for the DLOG and DITL resources */
  233.  
  234. #define    DLOGOk        1
  235. #define DLOGCancel    2
  236.  
  237. #define RESOLVERERROR    128
  238.  
  239. #define    kItemDLOG    150
  240. #define    kRemove        2
  241. #define    kChange        3
  242. #define    kNew        4
  243. #define    kItemList    5
  244.  
  245. #define    FATALCANCEL_ID    160        // Fatal Cancel Alert
  246. #define    FATAL_ID        170        // Fatal Alert
  247. #define OPFAILED_ID        175        // Operation Failed Alert
  248. #define    ASKUSER_ID        180        // Ask user an OK/CANCEL question ALERT
  249.  
  250. #define    WinTitlDLOG        190        // Change window title DLOG
  251. #define    kWinNameTE        3        // Window Name TextEdit
  252.  
  253. #define    DNRErrorDLOG    195        // DNR error occurred.
  254.  
  255. #define    MyIPDLOG        259
  256.  
  257. #define    StatusDLOG        270        // "Machine" is currently being "opened/looked up"
  258.  
  259. #define SetupDLOG        273        /*  Setup keys interface */
  260. #define killbox            4
  261. #define stopbox            5
  262. #define startbox        6
  263.  
  264. #define    NewCnxnDLOG        280
  265. #define    NCconnect        1
  266. #define    NCcancel        2
  267. #define    NChostname        4
  268. #define    NCwindowname    6
  269. #define    NCsesspopup        7
  270. #define NCauthenticate    8
  271. #define NCencrypt        9
  272.  
  273. #define    ConnFalDLOG        303
  274. #define MacroDLOG        500        /* The Macros dialog */
  275. #define    AboutDLOG        501
  276. #define OopsDLOG        640
  277. #define    FirstDLOG        1023
  278.  
  279. #define    ColorDLOG        1001    /* Connection color selection dialog */
  280. #define    ColorNF            3
  281. #define    ColorNB            4
  282. #define    ColorBF            5
  283. #define    ColorBB            6
  284.  
  285. #define    CloseDLOG        2001    /* The Close Confirmation Dialog */
  286.  
  287. #define WDSET_DLOG        4001
  288.  
  289. #define    SizeDLOG        5500    /* The number of lines config dialog ----------- */
  290. #define    ColumnsNumber    4        /* NCSA: SB - User given # of columns */
  291. #define    LinesNumber        6        /* User given # of lines */
  292.  
  293. #define    PrefDLOG    7001            /* The Preferences Dialog        ---------------- */
  294. #define PrefDClose                3    /* Don't close the window on "Close" */
  295. #define PrefStag                4    /* Staggered Windows? */
  296. #define PrefCMDkey                5    /* Command keys */
  297. #define PrefTMap                6    /* Shall we map the tilde? */
  298. #define    PrefKeyFuncMenus        7    /* Show Keypad and Function menus? */
  299. #define PrefBlink               8    /* Blink the cursor? */
  300. #define PrefBlockCursor           9    /* Display a block cursor? */
  301. #define PrefUnderscoreCursor    10    /* Display an underscore cursor? */
  302. #define PrefVerticalCursor        11    /* Display a vertical line cursor? */
  303. #define PrefCTt                    14    /* Copy table threshold */
  304. #define PrefTimeSlice            15    /* Multifinder Time Slice TxtEdit */
  305. #define PrefCaptCreat            16    /* Capture File Creator Button */
  306. #define    PrefCaptTE                18    /* Capture File Creator TE */
  307.  
  308. #define FTPDLOG        7002            /* The FTP config Dialog        ---------------- */
  309. #define    FTPServerOff            3    /* FTP server off button */
  310. #define FTPServerUnsecure        4    /* FTP server ON Unsecure button */
  311. #define FTPServerPswdPlease        5    /* FTP server Passwords Required */
  312. #define FTPShowFTPlog            6    /* FTP show FTP log on startup */
  313. #define FTPrevDNS                7    /* FTP reverse DNS IP of connection hosts */
  314. #define FTPUseMacBinaryII        8    /* FTP Use Macbinary II */
  315. #define FTPResetMacBinary        9    /* FTP Reset Macbinary after each ftp */
  316. #define FTPISO                    10    /* FTP ISO checkbox */
  317. #define FTPbintypeTE            11    /* FTP binary filetype TextEdit */
  318. #define FTPbincreatTE            12    /* FTP binary creator type TextEdit */
  319. #define FTPbinexamplebutton        13    /* FTP binary example file selection button */
  320. #define FTPtextcreatTE            14    /* FTP text creator type TextEdit */ 
  321. #define FTPtextcreatorbutton    15    /* FTP TEXT file creator selection button */
  322.  
  323. #define TermDLOG    7003            /* The Terminal Config Dialog    ---------------- */
  324. #define TermANSI                3    /* ANSI escape sequences checkbox */
  325. #define TermXterm                4    /* Xterm escape sequences checkbox */
  326. #define Termvtwrap                5    /* Use vtwrap mode checkbox*/
  327. #define Termmeta                6    /* Use emacs meta key checkbox */
  328. #define Termarrow                7    /* Use emacs arrow keys checkbox */
  329. #define TermMAT                    8    /* Map pgup, etc. checkbox */
  330. #define Termeightbit            9    /* Eight bit connection */
  331. #define Termclearsave            10    /* Clear screen saves lines */
  332. #define TermVT100                11    /* VT-100 emulation radio button */
  333. #define TermVT220                12    /* VT-220 emulation radio button */
  334. #define TermName                13    /* Terminal configuration name TE */
  335. #define TermWidth                14    /* Terminal width TE */
  336. #define TermHeight                15    /* Terminal height TE */
  337. #define TermFontSize            16    /* Font size TE */
  338. #define TermScrollback            17    /* Scrollback TE */
  339. #define TermAnswerback            18    /* Answerback TE */
  340. #define TermNFcolor                19    /* NF color user item */
  341. #define TermNBcolor                20    /* NB color user item */
  342. #define TermBFcolor                21    /* BF color user item */
  343. #define TermBBcolor                22    /* BB color user item */
  344. //#define TermUFcolor                23    /* UF color user item */
  345. //#define TermUBcolor                24    /* UB color user item */
  346. #define    TermFontPopup            23    /* Font menu popup item */
  347. #define    TermNameStatText        24
  348. #define    TermSafeItem            24
  349.  
  350. #define SessionConfigDLOG    7004    /* The Session Config Dialog    ---------------- */
  351. #define    SessTEKinhib            3    /* Inhibit TEK radio button */
  352. #define SessTEK4014                4    /* TEK 4014 radio button */
  353. #define    SessTEK4105                5    /* TEK 4105 radio button */
  354. #define    SessPasteQuick            6
  355. #define    SessPasteBlock            7
  356. #define    SessDeleteDel            8
  357. #define    SessDeleteBS            9
  358. #define    SessForceSave            10
  359. #define    SessBezerkeley            11
  360. #define    SessLinemode            12
  361. #define    SessTEKclear            13
  362. #define    SessHalfDuplex            14
  363. #define    SessLowLevelErrs        15
  364. #define SessAuthenticate        16
  365. #define SessEncrypt                17
  366. #define    SessLocalEcho            18
  367. #define SessAlias                19
  368. #define    SessHostName            20
  369. #define SessPort                21
  370. #define    SessBlockSize            22
  371. #define    SessInterrupt            23
  372. #define    SessSuspend                24
  373. #define    SessResume                25
  374. #define    SessTermPopup            26
  375. #define    SessTransTablePopup        27
  376. #define    SessAliasStatText        29
  377. #define    SessSafeItem            28
  378.  
  379. #define FTPUserDLOG            7005    /* The FTP User Config Dialog   ---------------- */
  380. #define    FTPUcanchangeCWD        3    /* User can change WD checkbox */
  381. #define FTPUusername            4    /* Username TE */
  382. #define FTPUpassword            5    /* User's password */
  383. #define    FTPUDfltDirDsply        6    /* User's default dir path display */
  384. #define    FTPUDfltDirButton        7    /* Button to change user's default dir */
  385.