port to contact4, minor code changes

This commit is contained in:
Green Sky
2025-03-10 16:31:28 +01:00
parent bb45379199
commit c731d51a46
10 changed files with 94 additions and 76 deletions

View File

@@ -1,24 +1,24 @@
#pragma once
#include <solanaceae/crdtnotes/crdtnotes_sync.hpp>
#include <solanaceae/contact/contact_model3.hpp>
#include <solanaceae/contact/fwd.hpp>
#include <set>
class CRDTNotesImGui {
CRDTNotesSync& _notes_sync;
Contact3Registry& _cr;
ContactStore4I& _cs;
bool _show_global_list {true};
std::set<CRDTNotes::DocID> _open_docs;
public:
CRDTNotesImGui(CRDTNotesSync& notes_sync, Contact3Registry& cr);
CRDTNotesImGui(CRDTNotesSync& notes_sync, ContactStore4I& cs);
float render(void);
bool renderContactListContactSmall(const Contact3 c, const bool selected) const;
bool renderContactListContactSmall(const Contact4 c, const bool selected) const;
bool renderDoc(const CRDTNotes::DocID& doc_id);
bool renderDocText(std::string& text) const;