mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:40:05 +00:00
40 lines
746 B
C++
40 lines
746 B
C++
#pragma once
|
|
|
|
#include <scwx/qt/map/map_widget.hpp>
|
|
|
|
#include <optional>
|
|
|
|
namespace scwx
|
|
{
|
|
namespace qt
|
|
{
|
|
namespace ui
|
|
{
|
|
|
|
class Level2SettingsWidgetImpl;
|
|
|
|
class Level2SettingsWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Level2SettingsWidget(QWidget* parent = nullptr);
|
|
~Level2SettingsWidget();
|
|
|
|
bool event(QEvent* event) override;
|
|
void showEvent(QShowEvent* event) override;
|
|
|
|
void UpdateElevationSelection(float elevation);
|
|
void UpdateIncomingElevation(std::optional<float> incomingElevation);
|
|
void UpdateSettings(map::MapWidget* activeMap);
|
|
|
|
signals:
|
|
void ElevationSelected(float elevation);
|
|
|
|
private:
|
|
std::shared_ptr<Level2SettingsWidgetImpl> p;
|
|
};
|
|
|
|
} // namespace ui
|
|
} // namespace qt
|
|
} // namespace scwx
|