2020-11-28 00:33:26 +01:00
|
|
|
#pragma once
|
|
|
|
|
2022-02-01 18:09:40 +01:00
|
|
|
#include <hex/ui/view.hpp>
|
2020-11-28 00:33:26 +01:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <list>
|
|
|
|
|
2021-12-07 22:47:41 +01:00
|
|
|
namespace hex::plugin::builtin {
|
2020-11-28 00:33:26 +01:00
|
|
|
|
|
|
|
class ViewBookmarks : public View {
|
|
|
|
public:
|
2021-01-20 20:16:24 +01:00
|
|
|
ViewBookmarks();
|
2020-11-28 00:33:26 +01:00
|
|
|
~ViewBookmarks() override;
|
|
|
|
|
2020-12-22 18:10:01 +01:00
|
|
|
void drawContent() override;
|
2022-02-01 18:09:40 +01:00
|
|
|
|
2022-08-14 14:45:32 +02:00
|
|
|
private:
|
|
|
|
static bool importBookmarks(prv::Provider *provider, const nlohmann::json &json);
|
|
|
|
static bool exportBookmarks(prv::Provider *provider, nlohmann::json &json);
|
|
|
|
|
|
|
|
void registerMenuItems();
|
2022-02-01 18:09:40 +01:00
|
|
|
private:
|
2022-07-23 20:38:38 +02:00
|
|
|
std::string m_currFilter;
|
2022-09-28 21:40:31 +02:00
|
|
|
|
|
|
|
std::list<ImHexApi::Bookmarks::Entry>::iterator m_dragStartIterator;
|
2020-11-28 00:33:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|