port to contact4, minor code changes
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user