give imgui code access to notes
This commit is contained in:
@@ -62,6 +62,11 @@ namespace Events {
|
||||
std::vector<CRDTNotes::Doc::Op> ops;
|
||||
};
|
||||
|
||||
// TODO: curser
|
||||
// - DocID
|
||||
// - AgentID
|
||||
// - CRDTNotes::Doc::ListType::ListID parent_left
|
||||
|
||||
} // Events
|
||||
|
||||
// this is different than other "i might not handle this" event interfaces
|
||||
|
@@ -48,7 +48,7 @@ namespace detail {
|
||||
} // detail
|
||||
|
||||
|
||||
CRDTNotesImGui::CRDTNotesImGui(CRDTNotesSync& notes_sync, ContactStore4I& cs) : _notes_sync(notes_sync), _cs(cs) {
|
||||
CRDTNotesImGui::CRDTNotesImGui(CRDTNotes& notes, CRDTNotesSync& notes_sync, ContactStore4I& cs) : _notes(notes), _notes_sync(notes_sync), _cs(cs) {
|
||||
}
|
||||
|
||||
float CRDTNotesImGui::render(void) {
|
||||
|
@@ -6,6 +6,7 @@
|
||||
#include <set>
|
||||
|
||||
class CRDTNotesImGui {
|
||||
CRDTNotes& _notes;
|
||||
CRDTNotesSync& _notes_sync;
|
||||
ContactStore4I& _cs;
|
||||
|
||||
@@ -14,7 +15,7 @@ class CRDTNotesImGui {
|
||||
std::set<CRDTNotes::DocID> _open_docs;
|
||||
|
||||
public:
|
||||
CRDTNotesImGui(CRDTNotesSync& notes_sync, ContactStore4I& cs);
|
||||
CRDTNotesImGui(CRDTNotes& notes, CRDTNotesSync& notes_sync, ContactStore4I& cs);
|
||||
|
||||
float render(void);
|
||||
|
||||
|
Reference in New Issue
Block a user