mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 05:00:06 +00:00
Alert dialog initial commit
This commit is contained in:
parent
612874f830
commit
b24acb7642
10 changed files with 352 additions and 5 deletions
44
scwx-qt/source/scwx/qt/ui/alert_dialog.hpp
Normal file
44
scwx-qt/source/scwx/qt/ui/alert_dialog.hpp
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#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,
|
||||
const common::Coordinate& coordinate);
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue