mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:50:05 +00:00
Extracting Level 2 Settings Widget from MainWindow
This commit is contained in:
parent
0fc573a962
commit
e911882bb7
7 changed files with 299 additions and 143 deletions
37
scwx-qt/source/scwx/qt/ui/level2_settings_widget.hpp
Normal file
37
scwx-qt/source/scwx/qt/ui/level2_settings_widget.hpp
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/qt/map/map_widget.hpp>
|
||||
|
||||
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 UpdateSettings(map::MapWidget* activeMap);
|
||||
|
||||
signals:
|
||||
void ElevationSelected(float elevation);
|
||||
|
||||
private:
|
||||
std::shared_ptr<Level2SettingsWidgetImpl> p;
|
||||
};
|
||||
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue