1
0
mirror of synced 2024-12-05 12:37:57 +01:00
ImHex/plugins/builtin/include/content/views/view_bookmarks.hpp
Nik 7e660450ed
feat: Implement better and more complete undo/redo stack (#1433)
This PR aims to implement a more complete undo/redo stack that, unlike
the old one, also supports undoing insertions, deletions and resize
operations
2023-11-25 12:43:48 +01:00

29 lines
719 B
C++

#pragma once
#include <hex/ui/view.hpp>
#include <list>
namespace hex::plugin::builtin {
class ViewBookmarks : public View::Window {
public:
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:
std::string m_currFilter;
std::list<ImHexApi::Bookmarks::Entry>::iterator m_dragStartIterator;
PerProvider<std::list<ImHexApi::Bookmarks::Entry>> m_bookmarks;
PerProvider<u64> m_currBookmarkId;
};
}