2024-02-25 15:46:47 +01:00
|
|
|
#pragma once
|
2023-06-20 14:33:09 +10:00
|
|
|
|
|
|
|
#include "StarPlayerUniverseMap.hpp"
|
|
|
|
#include "StarPane.hpp"
|
|
|
|
|
|
|
|
namespace Star {
|
|
|
|
|
|
|
|
STAR_CLASS(EditBookmarkDialog);
|
|
|
|
|
|
|
|
class EditBookmarkDialog : public Pane {
|
|
|
|
public:
|
|
|
|
EditBookmarkDialog(PlayerUniverseMapPtr playerUniverseMap);
|
|
|
|
|
|
|
|
virtual void show() override;
|
|
|
|
|
|
|
|
void setBookmark(TeleportBookmark bookmark);
|
|
|
|
|
|
|
|
void ok();
|
|
|
|
void remove();
|
|
|
|
void close();
|
|
|
|
|
|
|
|
private:
|
|
|
|
PlayerUniverseMapPtr m_playerUniverseMap;
|
|
|
|
TeleportBookmark m_bookmark;
|
|
|
|
|
|
|
|
bool m_isNew;
|
|
|
|
};
|
|
|
|
|
|
|
|
void setupBookmarkEntry(WidgetPtr const& entry, TeleportBookmark const& bookmark);
|
|
|
|
}
|