mapper
mapper copied to clipboard
Map Information tool
A Happy New Year to all of you.
During the past week I have written a 'Map Information' tool:
@dg0yt, @lpechacek: please have a look at it and give me some advice how to proceed (e.g., std::map vs. std::vector and 2 or 3 column layout). To be discussed: 'Map' item offers the same information as the 'Objects' item. Commit
Could that contain also scale info? In Adroid app this info is missing.
Yes, of course. Do you want something like this:
Currently the Map Information is only available for Mapper's desktop version.
What is the use case you have in mind?
Basically it's just for information. Maybe also 'strange' objects (as mentioned in #2012) are shown and identified there. Please keep in mind that this is just the first version of the Map Information. Any proposal for additional features is welcome.
Yes, of course. Do you want something like this:
Currently the Map Information is only available for Mapper's desktop version.
Perfect! For reference I attach issue #1040.
BTW: this is the variant with 2 columns:
I slightly prefer the 3 column layout, but would like to get some feedback from others.
I also added an overview about the fonts and their usage.
The 'Objects' section now shows for every symbol which colors are used by it.
The 'Colors' section shows all colors and by which symbol every color is used:
Fonts: In a cross-platform scenario, I would be interested in the substitutions chosen for missing fonts. (But this could be added later.)
Fonts: In a cross-platform scenario, I would be interested in the substitutions chosen for missing fonts. (But this could be added later.)
I tried and used
auto font_info = QFontInfo(text_symbol->getQFont());
auto font_family_substituted = font_info.family();
However, I'm not sure how to show it:
or:
or:
Pull request: #2125