LogSource.h 2.7 KB

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