give imgui code access to notes

This commit is contained in:
Green Sky
2025-09-02 11:12:48 +02:00
parent b6a68c830e
commit 66b5fdecfb
4 changed files with 10 additions and 3 deletions

View File

@@ -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

View File

@@ -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) {

View File

@@ -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);