34 lines
624 B
C++
34 lines
624 B
C++
|
#ifndef STAR_BOOKMARK_INTERFACE_HPP
|
||
|
#define STAR_BOOKMARK_INTERFACE_HPP
|
||
|
|
||
|
#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);
|
||
|
}
|
||
|
|
||
|
#endif
|