Hi Kay,

as far as I know there is no other way to influence the wrapping of tool
tips than passing formatted text. To solve that "defensive" you have two
options:

1) Add a menu item to open a copyright dialog with a text browser that
does automatic formatting. Similar to QLGT. The map menu is created in
CMapList().

2) Tinker the text. That means analysing the structure for long lines
and adding line breaks. This can be done in IMap::getCopyright().

Either way, I don't have the time to do it. Currently I am right in the
middle of implementing track range selection via various sources, like
the track profile etc. It's quite complicated and I think this is what
users appreciate much more ;) So you can either exercise a bit of coding
yourself, or create an issue on the web page. By that it's not forgotten
and someone interested in contributing can pick it. Actually it's a
quite nice task to get into the code.

And a small history fact: I checked all my "old" maps. All copyright
strings have a sane length. Mostly something like "done by cgpsmapper"
:P In fact it's just the openmtb map that really does stress that property.

Oliver



Am 09.04.2015 um 10:18 schrieb Kay F. Jahnke:
> Am 09.04.2015 um 08:57 schrieb Oliver Eichler:
>> Hi Kay,
>>
>> I don't think that tinkering the text is a good idea. It will be just a
>> matter of time someone else complains that I wasted the copyright notice
>> by adding additional formatting. I just read what ever is stored in the
>> copyright field and pass it as string to the tool tip API. There are
>> some maps that display a nicely formatted copyright notice, and some
>> don't. Imho this is up to the map author.
>
> Well, yes and no. If you can just set a property of the display window
> (I'd guess something like set QTextEdit::LineWrapMode to
> QTextEdit::WidgetWidth) which makes it wrap any text exceeding the
> display, you act defensively and make sure all text is displayed even
> if the author was not aware of your software's behaviour. Call it
> defensive. And it preserves the information as best as possible - with
> licenses requiring attribution this is essential, since the licensors
> usually prescribe a precise textual form. Keep in mind the map may
> have been made years ago by someone totally unaware of qlgt or qms -
> the author might long be dead. So it's maybe up to them, but will they
> raise from the dead to follow your standard?
>
> If you actually tinker the text proper, this is a different matter and
> I agree it's a bad idea, since any tinkering might result in unwanted
> effects.
>
> Sorry to pester you with this boring isue. Keep up the good work!
>
> Kay
>
>>
>>
>> Oliver
>>
>> Am 08.04.2015 um 22:14 schrieb Kay F. Jahnke:
>>> Hi group!
>>>
>>> I noticed today, using the OpenMTB garmin map of Spain in QMS, that
>>> the copyright/license information which is displayed when hovering
>>> over the activated map's icon is truncated, presumably because it
>>> contains lines of text longer than the display can handle, see
>>> attached screenshot (sorry for the semi-transparent license window, I
>>> could't capture it as it really looks on the screen). This was taken
>>> using a fresh build of QMS 1.1.0 on a Kubuntu 14.04 64bit system.
>>>
>>> Maybe the text should be wrapped; I use license information with line
>>> feeds and the display of the license information for my map
>>> (CTRN-OSM-GPS) is fine, but other mapmakers may use long lines without
>>> anticipating this behaviour.
>>>
>>> with regards
>>>
>>> Kay
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
>>> Develop your own process in accordance with the BPMN 2 standard
>>> Learn Process modeling best practices with Bonita BPM through live
>>> exercises
>>> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
>>> event?utm_
>>> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
>>>
>>>
>>> _______________________________________________
>>> Qlandkartegt-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
>> Develop your own process in accordance with the BPMN 2 standard
>> Learn Process modeling best practices with Bonita BPM through live
>> exercises
>> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
>> event?utm_
>> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
>> _______________________________________________
>> Qlandkartegt-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
>>
>



------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to