mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:20:06 +00:00
Add map weak reference to map context
This commit is contained in:
parent
aadf948656
commit
241f910220
3 changed files with 17 additions and 0 deletions
|
|
@ -4,6 +4,8 @@
|
|||
#include <scwx/qt/map/map_settings.hpp>
|
||||
#include <scwx/qt/view/radar_product_view.hpp>
|
||||
|
||||
class QMapboxGL;
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
|
|
@ -24,12 +26,14 @@ public:
|
|||
MapContext(MapContext&&) noexcept;
|
||||
MapContext& operator=(MapContext&&) noexcept;
|
||||
|
||||
std::weak_ptr<QMapboxGL> map() const;
|
||||
MapSettings& settings();
|
||||
std::shared_ptr<view::RadarProductView> radar_product_view() const;
|
||||
common::RadarProductGroup radar_product_group() const;
|
||||
std::string radar_product() const;
|
||||
int16_t radar_product_code() const;
|
||||
|
||||
void set_map(std::shared_ptr<QMapboxGL> map);
|
||||
void set_radar_product_view(
|
||||
std::shared_ptr<view::RadarProductView> radarProductView);
|
||||
void set_radar_product_group(common::RadarProductGroup radarProductGroup);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue