<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/108511/">http://git.reviewboard.kde.org/r/108511/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<p style="margin-top: 0;">On January 20th, 2013, 11:14 p.m. UTC, <b>Thibaut Gridel</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
<thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
<a href="http://git.reviewboard.kde.org/r/108511/diff/3/?file=108273#file108273line217" style="color: black; font-weight: bold; text-decoration: underline;">src/lib/MarbleLegendBrowser.cpp</a>
<span style="font-weight: normal;">
(Diff revision 3)
</span>
</th>
</tr>
</thead>
<tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
<tr>
<td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void MarbleLegendBrowser::translateHtml( QString & html )</pre></td>
</tr>
</tbody>
<tbody>
<tr>
<th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">212</font></th>
<td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span class="k">const</span> <span class="n">QString</span> <span class="n">findEntry</span> <span class="o">=</span> <span class="s">"<a href=</span><span class="se">\"</span><span class="s">checkbox:"</span><span class="p">;</span></pre></td>
<th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">217</font></th>
<td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span class="k">const</span> <span class="n">QString</span> <span class="n">old</span> <span class="o">=</span> <span class="s">"<H4> <!--Locations checkbox--><a href=</span><span class="se">\"</span><span class="s">checkbox:cities</span><span class="se">\"</span><span class="s">><span style=</span><span class="se">\"</span><span class="s">text-decoration: none</span><span class="se">\"</span><span class="s">><img src=</span><span class="se">\"</span><span class="s">checkbox:cities</span><span class="se">\"</span><span class="s">> </span></a> Populated Places</H4>"</span><span class="p">;</span></pre></td>
</tr>
</tbody>
</table>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">What if a theme has specific legend.html with "checkbox:" fields?
I think that part should not hardcode one specific case.</pre>
</blockquote>
</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This is a very specific case which up to my knowledge is only used in this particular implementation - at least for the MapThemes we offer. Given the lack of documentation and my experience with other people developing themes I doubt that any different usage exists. Still you're right that ideally it would be covered in a generic way. But it's great that it works for the 99-100% case already ;-)</pre>
<br />
<p>- Torsten</p>
<br />
<p>On January 20th, 2013, 10:17 p.m. UTC, Illya Kovalevskyy wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
<tr>
<td>
<div>Review request for Marble, Dennis Nienhüser, Torsten Rahn, and René Küttner.</div>
<div>By Illya Kovalevskyy.</div>
<p style="color: grey;"><i>Updated Jan. 20, 2013, 10:17 p.m.</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">A list of changes:
- Fixed Cities bug
- Added TemplateDocument class for templating things
- MarbleLegendBrowser tweaked (support of cool image borders, nice fonts, everything Bootstrap has)
- Added support of Bootstrap (http://twitter.github.com/bootstrap/index.html) in HTML of Marble
- MapInfoDialog improved (see MarbleLegendBrowser changes)
More about TemplateDocument:
- It use %var_name% to template the text
- String format %!{name}% will include library `name` into the HTML. Used in <head> tag</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Tested on Qt version of Marble - everything is ok. Tests are passed.</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>data/legend.html <span style="color: grey">(317b6cf)</span></li>
<li>data/maps/earth/openstreetmap/legend.html <span style="color: grey">(aa02426)</span></li>
<li>data/maps/earth/schagen1689/legend.html <span style="color: grey">(db3f171)</span></li>
<li>src/lib/CMakeLists.txt <span style="color: grey">(59ad8d2)</span></li>
<li>src/lib/MarbleLegendBrowser.cpp <span style="color: grey">(fad7020)</span></li>
<li>src/lib/MarbleWidgetPopupMenu.cpp <span style="color: grey">(eb608be)</span></li>
<li>src/lib/TemplateDocument.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>src/lib/TemplateDocument.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>src/lib/htmlfeatures/bootstrap-responsive.css <span style="color: grey">(PRE-CREATION)</span></li>
<li>src/lib/htmlfeatures/bootstrap.css <span style="color: grey">(PRE-CREATION)</span></li>
<li>src/lib/htmlfeatures/bootstrap.js <span style="color: grey">(PRE-CREATION)</span></li>
<li>src/lib/htmlfeatures/bootstrap.tpl <span style="color: grey">(PRE-CREATION)</span></li>
<li>src/lib/htmlfeatures/jquery-latest.js <span style="color: grey">(PRE-CREATION)</span></li>
<li>src/lib/htmlfeatures/jquery.tpl <span style="color: grey">(PRE-CREATION)</span></li>
<li>src/lib/libmarble.qrc <span style="color: grey">(7753834)</span></li>
<li>src/lib/webpopup/city.html <span style="color: grey">(764f3c3)</span></li>
<li>src/lib/webpopup/geoplace.html <span style="color: grey">(4abca92)</span></li>
<li>src/lib/webpopup/nation.html <span style="color: grey">(4bfe9a0)</span></li>
<li>src/lib/webpopup/placesscreen.css <span style="color: grey">(b25f73d)</span></li>
<li>src/lib/webpopup/skyplace.html <span style="color: grey">(707f30f)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/108511/diff/" style="margin-left: 3em;">View Diff</a></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">File Attachments </h1>
<ul>
<li><a href="http://git.reviewboard.kde.org/media/uploaded/files/2013/01/20/compare-historic-old.png">Old Historic Legend</a></li>
<li><a href="http://git.reviewboard.kde.org/media/uploaded/files/2013/01/20/compare-osm-old.png">Old OSM Legend</a></li>
<li><a href="http://git.reviewboard.kde.org/media/uploaded/files/2013/01/20/compare-historic-new.png">New Histroric Legend</a></li>
<li><a href="http://git.reviewboard.kde.org/media/uploaded/files/2013/01/20/compare-temp-old.png">Old Temperature Legend</a></li>
<li><a href="http://git.reviewboard.kde.org/media/uploaded/files/2013/01/20/compare-osm-new.png">New OSM Legend</a></li>
<li><a href="http://git.reviewboard.kde.org/media/uploaded/files/2013/01/20/compare-temp-new.png">New Temperature Legend</a></li>
<li><a href="http://git.reviewboard.kde.org/media/uploaded/files/2013/01/20/compare-ukraine-new.png">New MapInfoDialog</a></li>
</ul>
</td>
</tr>
</table>
</div>
</body>
</html>