mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:40:05 +00:00
Add color table margins to map context
This commit is contained in:
parent
5c7c7e6a19
commit
b09abc0ac1
3 changed files with 23 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ public:
|
|||
MapProvider mapProvider_ {MapProvider::Unknown};
|
||||
std::string mapCopyrights_ {};
|
||||
|
||||
QMargins colorTableMargins_ {};
|
||||
|
||||
std::shared_ptr<view::OverlayProductView> overlayProductView_ {nullptr};
|
||||
std::shared_ptr<view::RadarProductView> radarProductView_;
|
||||
};
|
||||
|
|
@ -66,6 +68,11 @@ MapSettings& MapContext::settings()
|
|||
return p->settings_;
|
||||
}
|
||||
|
||||
QMargins MapContext::color_table_margins() const
|
||||
{
|
||||
return p->colorTableMargins_;
|
||||
}
|
||||
|
||||
float MapContext::pixel_ratio() const
|
||||
{
|
||||
return p->pixelRatio_;
|
||||
|
|
@ -117,6 +124,11 @@ void MapContext::set_map_provider(MapProvider provider)
|
|||
p->mapProvider_ = provider;
|
||||
}
|
||||
|
||||
void MapContext::set_color_table_margins(const QMargins& margins)
|
||||
{
|
||||
p->colorTableMargins_ = margins;
|
||||
}
|
||||
|
||||
void MapContext::set_overlay_product_view(
|
||||
const std::shared_ptr<view::OverlayProductView>& overlayProductView)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue