mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:10:06 +00:00
49 lines
805 B
C++
49 lines
805 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
|
|
#include <scwx/qt/types/text_event_key.hpp>
|
|
#include <scwx/common/geographic.hpp>
|
|
|
|
namespace Ui
|
|
{
|
|
class AlertDialog;
|
|
}
|
|
|
|
namespace scwx
|
|
{
|
|
namespace qt
|
|
{
|
|
namespace ui
|
|
{
|
|
|
|
class AlertDialogImpl;
|
|
|
|
class AlertDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit AlertDialog(QWidget* parent = nullptr);
|
|
~AlertDialog();
|
|
|
|
bool SelectAlert(const types::TextEventKey& key);
|
|
|
|
public slots:
|
|
void on_firstButton_clicked();
|
|
void on_previousButton_clicked();
|
|
void on_nextButton_clicked();
|
|
void on_lastButton_clicked();
|
|
|
|
signals:
|
|
void MoveMap(double latitude, double longitude);
|
|
|
|
private:
|
|
friend class AlertDialogImpl;
|
|
std::unique_ptr<AlertDialogImpl> p;
|
|
Ui::AlertDialog* ui;
|
|
};
|
|
|
|
} // namespace ui
|
|
} // namespace qt
|
|
} // namespace scwx
|