On 9/6/07, <b class="gmail_sendername">Phil Bridges</b> <<a href="mailto:gravityhammer@gmail.com">gravityhammer@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 9/6/07, Ron Garrison <<a href="mailto:ron.garrison@gmail.com">ron.garrison@gmail.com</a>> wrote:<br><br>> I might mention that I also like my guide revresed from the normal display<br>> (lower channels at the bottom of the screen) because its more logical for me
<br>> to hit channel up and have the cursor move up and the channel increments.<br>> Its a very simple update if anyone is interested.<br>><br><br>How did you do this?<br><br>
</blockquote></div><br>
I reversed the order in which the guide channels are displayed by <br>
<br>
Adding the line <br>
<br>
reverse(tmp.begin(), tmp.end());<br>
<br>
to channelutil.cpp as seen below:<br>
<br>
<br>
<br>
void ChannelUtil::SortChannels(DBChanList &list, const QString &order,<br>
bool eliminate_duplicates)<br>
{<br>
bool cs = order.lower() == "callsign";<br>
if (cs)<br>
stable_sort(list.begin(), list.end(), lt_callsign);<br>
else /* if (sortorder == "channum") */<br>
stable_sort(list.begin(), list.end(), lt_smart);<br>
<br>
if (eliminate_duplicates && !list.empty())<br>
{<br>
DBChanList tmp;<br>
tmp.push_back(list[0]);<br>
for (uint i = 1; i < list.size(); i++)<br>
{<br>
if ((cs && lt_callsign(tmp.back(), list[i])) ||<br>
(!cs && lt_smart(tmp.back(), list[i])))<br>
{<br>
tmp.push_back(list[i]);<br>
}<br>
}<br>
<br>
reverse(tmp.begin(), tmp.end());<br>
list = tmp;<br>
}<br>
}<br>
<br>