1
0
mirror of synced 2024-12-05 04:27:56 +01:00
ImHex/plugins/builtin/include/content/views/view_bookmarks.hpp

29 lines
686 B
C++
Raw Normal View History

#pragma once
#include <hex/ui/view.hpp>
#include <vector>
#include <list>
2021-12-07 22:47:41 +01:00
namespace hex::plugin::builtin {
class ViewBookmarks : public View {
public:
2021-01-20 20:16:24 +01:00
ViewBookmarks();
~ViewBookmarks() override;
void drawContent() override;
private:
bool importBookmarks(hex::prv::Provider *provider, const nlohmann::json &json);
bool exportBookmarks(hex::prv::Provider *provider, nlohmann::json &json);
void registerMenuItems();
private:
2022-07-23 20:38:38 +02:00
std::string m_currFilter;
std::list<ImHexApi::Bookmarks::Entry>::iterator m_dragStartIterator;
PerProvider<std::list<ImHexApi::Bookmarks::Entry>> m_bookmarks;
};
}