#pragma once #include #include #include namespace hex::plugin::builtin { class ViewBookmarks : public View::Window { public: ViewBookmarks(); ~ViewBookmarks() override; void drawContent() override; private: struct Bookmark { ImHexApi::Bookmarks::Entry entry; TextEditor editor; }; private: void drawDropTarget(std::list::iterator it, float height); bool importBookmarks(hex::prv::Provider *provider, const nlohmann::json &json); bool exportBookmarks(hex::prv::Provider *provider, nlohmann::json &json); void registerMenuItems(); private: std::string m_currFilter; PerProvider> m_bookmarks; PerProvider m_currBookmarkId; }; }