resource.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. //stamp:0939443d7045d82f
  2. /*<------------------------------------------------------------------------------------------------->*/
  3. /*该文件由uiresbuilder生成,请不要手动修改*/
  4. /*<------------------------------------------------------------------------------------------------->*/
  5. #pragma once
  6. #include <res.mgr/snamedvalue.h>
  7. #define ROBJ_IN_CPP \
  8. namespace SOUI \
  9. {\
  10. const _R R;\
  11. const _UIRES UIRES;\
  12. }
  13. namespace SOUI
  14. {
  15. class _UIRES{
  16. public:
  17. class _UIDEF{
  18. public:
  19. _UIDEF(){
  20. XML_INIT = _T("UIDEF:XML_INIT");
  21. }
  22. const TCHAR * XML_INIT;
  23. }UIDEF;
  24. class _LAYOUT{
  25. public:
  26. _LAYOUT(){
  27. XML_MAINWND = _T("LAYOUT:XML_MAINWND");
  28. XML_LOGIN = _T("LAYOUT:XML_LOGIN");
  29. }
  30. const TCHAR * XML_MAINWND;
  31. const TCHAR * XML_LOGIN;
  32. }LAYOUT;
  33. class _values{
  34. public:
  35. _values(){
  36. string = _T("values:string");
  37. color = _T("values:color");
  38. skin = _T("values:skin");
  39. }
  40. const TCHAR * string;
  41. const TCHAR * color;
  42. const TCHAR * skin;
  43. }values;
  44. class _IMG{
  45. public:
  46. _IMG(){
  47. bg_login_png = _T("IMG:bg-login_png");
  48. bg_home_png = _T("IMG:bg-home_png");
  49. bg_user_png = _T("IMG:bg-user_png");
  50. }
  51. const TCHAR * bg_login_png;
  52. const TCHAR * bg_home_png;
  53. const TCHAR * bg_user_png;
  54. }IMG;
  55. class _ICON{
  56. public:
  57. _ICON(){
  58. ICON_LOGO = _T("ICON:ICON_LOGO");
  59. }
  60. const TCHAR * ICON_LOGO;
  61. }ICON;
  62. };
  63. const SNamedID::NAMEDVALUE namedXmlID[]={
  64. {L"_name_start",65535},
  65. {L"btn_close",65536} };
  66. class _R{
  67. public:
  68. class _name{
  69. public:
  70. _name(){
  71. _name_start = namedXmlID[0].strName;
  72. btn_close = namedXmlID[1].strName;
  73. }
  74. const wchar_t * _name_start;
  75. const wchar_t * btn_close;
  76. }name;
  77. class _id{
  78. public:
  79. const static int _name_start = 65535;
  80. const static int btn_close = 65536;
  81. }id;
  82. class _string{
  83. public:
  84. const static int title = 0;
  85. const static int ver = 1;
  86. }string;
  87. class _color{
  88. public:
  89. const static int blue = 0;
  90. const static int gray = 1;
  91. const static int green = 2;
  92. const static int red = 3;
  93. const static int white = 4;
  94. }color;
  95. };
  96. #ifdef R_IN_CPP
  97. extern const _R R;
  98. extern const _UIRES UIRES;
  99. #else
  100. extern const __declspec(selectany) _R & R = _R();
  101. extern const __declspec(selectany) _UIRES & UIRES = _UIRES();
  102. #endif//R_IN_CPP
  103. }