Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
2.5 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: espenum.h
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. //
  9. //-----------------------------------------------------------------------------
  10. #ifndef ESPENUM_H
  11. #define ESPENUM_H
  12. extern const LTAPIENTRY CString ftDescUnknown; //Description for unknown file types
  13. class LTAPIENTRY CIconType
  14. {
  15. public:
  16. // Special note: these enum value sequence is of vital importance to
  17. // the GUI components. Please preserve them.
  18. enum IconType
  19. {
  20. None = 0,
  21. Project, // project root icon
  22. Directory, // Part of project structure
  23. File, // File object in the project
  24. Expandable, // Generic Expandable node in a file.
  25. // Special note: Any value up to Expandable is
  26. // currently display as a folder in prj window
  27. Bitmap, // Bitmap
  28. Dialog, // Dialog like items
  29. Icon, // Icon resource
  30. Version, // Version stamping resources
  31. String, // String resources
  32. Accel, // Accelerator
  33. Cursor, // Cursor resource
  34. Menu, // Menu resources
  35. Custom, // Custom resources
  36. Reference, // icon for reference glossary
  37. RRIProject, // RRI project root icon
  38. RRIFile, // RRI file
  39. RRIFileParsed, // RRI file after being parsed
  40. };
  41. NOTHROW static const TCHAR * GetIconName(CIconType::IconType);
  42. NOTHROW static HBITMAP GetIconBitmap(CIconType::IconType);
  43. static void Enumerate(CEnumCallback &);
  44. private:
  45. static const TCHAR *const m_szIconNames[];
  46. CIconType();
  47. };
  48. typedef CIconType CIT;
  49. class LTAPIENTRY CLocStatus
  50. {
  51. public:
  52. enum LocStatus
  53. {
  54. InvalidLocStatus = 0,
  55. NotLocalized,
  56. Updated,
  57. Obsolete_AutoTranslated, // Don't use this! Obsolete!
  58. Localized = 4,
  59. NotApplicable,
  60. InvalidLocStatus2 // used by edbval to determine a invalid status
  61. // a new "valid" status must be entered before this.
  62. };
  63. NOTHROW static const TCHAR * GetStatusText(CLocStatus::LocStatus);
  64. NOTHROW static const TCHAR * GetStatusShortText(CLocStatus::LocStatus);
  65. NOTHROW static CLocStatus::LocStatus MapShortTextToEnum(const TCHAR *);
  66. NOTHROW static CLocStatus::LocStatus MapCharToEnum(const TCHAR);
  67. NOTHROW static CLocStatus::LocStatus MapLongTextToEnum(const TCHAR *szLongName);
  68. static void Enumerate(CEnumCallback &);
  69. private:
  70. struct StatusInfo
  71. {
  72. const TCHAR *szStatusShortText;
  73. const TCHAR *szStatusText;
  74. };
  75. static const StatusInfo m_Info[];
  76. CLocStatus();
  77. };
  78. typedef CLocStatus CLS;
  79. #endif // ESPENUM_H