LogSource.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * This source file is part of RmlUi, the HTML/CSS Interface Middleware
  3. *
  4. * For the latest information, see http://github.com/mikke89/RmlUi
  5. *
  6. * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
  7. * Copyright (c) 2019 The RmlUi Team, and contributors
  8. *
  9. * Permission is hereby granted, free of charge, to any person obtaining a copy
  10. * of this software and associated documentation files (the "Software"), to deal
  11. * in the Software without restriction, including without limitation the rights
  12. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  13. * copies of the Software, and to permit persons to whom the Software is
  14. * furnished to do so, subject to the following conditions:
  15. *
  16. * The above copyright notice and this permission notice shall be included in
  17. * all copies or substantial portions of the Software.
  18. *
  19. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  22. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  23. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  24. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  25. * THE SOFTWARE.
  26. *
  27. */
  28. static const char* log_rcss =
  29. "body\n"
  30. "{\n"
  31. " width: 400px;\n"
  32. " height: 300px;\n"
  33. " min-width: 200px;\n"
  34. " min-height: 150px;\n"
  35. " top: 42px;\n"
  36. " left: 20px;\n"
  37. "}\n"
  38. "div#tools\n"
  39. "{\n"
  40. " float: right;\n"
  41. " width: 137px;\n"
  42. "}\n"
  43. "div.log-entry\n"
  44. "{\n"
  45. " margin: 3px 2px;\n"
  46. "}\n"
  47. "div.log-entry div.icon\n"
  48. "{\n"
  49. " float: left;\n"
  50. " display: block;\n"
  51. " width: 18px;\n"
  52. " height: 18px;\n"
  53. " text-align: center;\n"
  54. " border-width: 1px;\n"
  55. " margin-right: 5px;\n"
  56. " font-weight: bold;\n"
  57. "}\n"
  58. "div.button\n"
  59. "{\n"
  60. " display: inline-block;"
  61. " width: 30px;\n"
  62. " text-align: center;\n"
  63. " border-width: 1px;\n"
  64. " font-weight: bold;\n"
  65. " margin-right: 3px;\n"
  66. "}\n"
  67. "div.button.last\n"
  68. "{\n"
  69. " margin-right: 0px;\n"
  70. "}\n"
  71. "div.log-entry p.message\n"
  72. "{\n"
  73. " display: block;\n"
  74. " margin-left: 20px;\n"
  75. "}\n";
  76. static const char* log_rml =
  77. "<h1>\n"
  78. " <handle id=\"position_handle\" move_target=\"#document\">\n"
  79. " <div id=\"close_button\">X</div>\n"
  80. " <div id=\"tools\">\n"
  81. " <div id=\"error_button\" class=\"button error\">On</div>\n"
  82. " <div id=\"warning_button\" class=\"button warning\">On</div>\n"
  83. " <div id=\"info_button\" class=\"button info\">Off</div>\n"
  84. " <div id=\"debug_button\" class=\"button debug last\">On</div>\n"
  85. " </div>\n"
  86. " <div style=\"width: 100px;\">Event Log</div>\n"
  87. " </handle>\n"
  88. "</h1>\n"
  89. "<div id=\"content\">\n"
  90. " No messages in log.\n"
  91. "</div>\n"
  92. "<handle id=\"size_handle\" size_target=\"#document\" />";