Refactor Alert Dock Widget to its own class

This commit is contained in:
Dan Paulat 2022-10-16 00:16:35 -05:00
parent 1c5e0d51b7
commit f8021b00bf
6 changed files with 323 additions and 132 deletions

View 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