LogSource.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 = R"RCSS(body
  29. {
  30. width: 400dp;
  31. height: 300dp;
  32. min-width: 200dp;
  33. min-height: 150dp;
  34. top: 42dp;
  35. left: 20dp;
  36. }
  37. div#tools
  38. {
  39. float: right;
  40. width: 137dp;
  41. }
  42. div.log-entry
  43. {
  44. margin: 3dp 2dp;
  45. }
  46. div.log-entry div.icon
  47. {
  48. float: left;
  49. display: block;
  50. width: 18dp;
  51. height: 18dp;
  52. text-align: center;
  53. border-width: 1px;
  54. margin-right: 5dp;
  55. font-weight: bold;
  56. }
  57. div.button
  58. {
  59. display: inline-block;
  60. width: 30dp;
  61. text-align: center;
  62. border-width: 1px;
  63. font-weight: bold;
  64. margin-right: 3dp;
  65. }
  66. div.button.last
  67. {
  68. margin-right: 0px;
  69. }
  70. div.log-entry p.message
  71. {
  72. display: block;
  73. margin-left: 20dp;
  74. }
  75. )RCSS";
  76. static const char* log_rml = R"RML(
  77. <h1>
  78. <handle id="position_handle" move_target="#document">
  79. <div id="close_button">X</div>
  80. <div id="tools">
  81. <div id="error_button" class="button error">On</div>
  82. <div id="warning_button" class="button warning">On</div>
  83. <div id="info_button" class="button info">Off</div>
  84. <div id="debug_button" class="button debug last">On</div>
  85. </div>
  86. <div style="width: 100dp;">Event Log</div>
  87. </handle>
  88. </h1>
  89. <div id="content">
  90. No messages in log.
  91. </div>
  92. <handle id="size_handle" size_target="#document" />
  93. )RML";