mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:20:04 +00:00
Refactor Alert Dock Widget to its own class
This commit is contained in:
parent
1c5e0d51b7
commit
f8021b00bf
6 changed files with 323 additions and 132 deletions
41
scwx-qt/source/scwx/qt/ui/alert_dock_widget.hpp
Normal file
41
scwx-qt/source/scwx/qt/ui/alert_dock_widget.hpp
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#pragma once
|
||||
|
||||
#include <QDockWidget>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class AlertDockWidget;
|
||||
}
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
|
||||
class AlertDockWidgetImpl;
|
||||
|
||||
class AlertDockWidget : public QDockWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AlertDockWidget(QWidget* parent = nullptr);
|
||||
~AlertDockWidget();
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent*) override;
|
||||
|
||||
public slots:
|
||||
void HandleMapUpdate(double latitude, double longitude);
|
||||
|
||||
private:
|
||||
friend class AlertDockWidgetImpl;
|
||||
std::unique_ptr<AlertDockWidgetImpl> p;
|
||||
Ui::AlertDockWidget* ui;
|
||||
};
|
||||
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue