mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-08 21:37:58 +00:00
[core] Create Standalone Note core
Signed-off-by: hemanggs <hemangmanhas@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
1c8ac1f32a
commit
9e494ed8a5
@@ -1184,6 +1184,12 @@ void Editor::CreateNote(ms::LatLon const & latLon, FeatureID const & fid,
|
||||
m_notes->CreateNote(latLon, sstr.str());
|
||||
}
|
||||
|
||||
void Editor::CreateStandaloneNote(ms::LatLon const & latLon, std::string const & noteText)
|
||||
{
|
||||
CHECK_THREAD_CHECKER(MainThreadChecker,(""));
|
||||
m_notes->CreateNote(latLon, noteText + "\n");
|
||||
}
|
||||
|
||||
void Editor::MarkFeatureWithStatus(FeaturesContainer & editableFeatures, FeatureID const & fid,
|
||||
FeatureStatus status)
|
||||
{
|
||||
|
||||
@@ -170,6 +170,8 @@ public:
|
||||
|
||||
Stats GetStats() const;
|
||||
|
||||
void CreateStandaloneNote(ms::LatLon const & latLon, std::string const & noteText);
|
||||
|
||||
// Don't use this function to determine if a feature in editor was created.
|
||||
// Use GetFeatureStatus(fid) instead. This function is used when a feature is
|
||||
// not yet saved, and we have to know if it was modified or created.
|
||||
|
||||
Reference in New Issue
Block a user