35 lines
610 B
C++
35 lines
610 B
C++
#pragma once
|
|
|
|
#include "views/view.hpp"
|
|
|
|
#include <vector>
|
|
#include <list>
|
|
|
|
#include "helpers/utils.hpp"
|
|
|
|
namespace hex {
|
|
|
|
namespace prv { class Provider; }
|
|
|
|
struct Bookmark {
|
|
Region region;
|
|
|
|
std::vector<char> name;
|
|
std::vector<char> comment;
|
|
};
|
|
|
|
class ViewBookmarks : public View {
|
|
public:
|
|
explicit ViewBookmarks(prv::Provider* &dataProvider);
|
|
~ViewBookmarks() override;
|
|
|
|
void createView() override;
|
|
void createMenu() override;
|
|
|
|
private:
|
|
prv::Provider* &m_dataProvider;
|
|
|
|
std::list<Bookmark> m_bookmarks;
|
|
};
|
|
|
|
} |