49 bool CheckPlatformDataChange(
const QString& aDataName,
const QString& aDataValue);
50 void PlatformInitialize();
52 void RemovePlatformFromEditor();
53 const std::vector<std::pair<Editor*, UtTextDocumentRange>> GetEditRanges();
54 void UpdateRoute(
const wkf::RouteBrowserInterface::RouteInfo& aRouteInfo);
56 void AddNewRouteInText(
const wkf::RouteBrowserInterface::RouteInfo& aRouteInfo);
59 mQueuedOperations.emplace_back(std::pair<int, bool>(aIndex, aIsInsertion));
61 void RemoveWaypointFromEditor(wkf::AttachmentRoute* aRoutePtr,
int aWaypointIndex = -1);
70 void UpdateSelectedWaypoints(wkf::AttachmentRoute* aRoute)
noexcept;
71 void HandleQueuedDeleteWaypoint();
78 UtTextDocumentRange GetAttributeDocumentRange(
WsfPProxyNode aAttrNode);
82 UtTextDocumentRange GetAttributeRangeByName(
const QString& aAttribute);
83 void AddWaypointToEditor(
const wkf::RouteBrowserInterface::WaypointInfo& aWaypointInfo,
const int aWaypointIndex = -1);
89 bool PlatformHasMover() const noexcept;
93 bool IsRouteable() const noexcept;
97 bool PlatformHasRoute() const noexcept;
101 bool IsUsingGlobalRoute() const noexcept;
110 void Wrap() noexcept;
114 void Unwrap() noexcept;
118 bool IsWrapped() const noexcept;
121 void OnProxyModified(const
ProxyChange& aProxyChange);
124 void SetupGroupings();
126 bool CheckPositionChanged(const UtLatPos& aLatValue, const UtLonPos& aLonValue);
127 bool CheckLatitudeChanged(const QString& aDataValue);
128 bool CheckLongitudeChanged(const QString& aDataValue);
129 bool CheckAltitudeChanged(const QString& aDataValue);
133 bool CheckHeadingChanged();
137 bool IsValidUnitForHeading(const QString& aUnitStr) const noexcept;
138 bool CheckTypeChanged(const QString& aDataValue);
140 void AttributeChanged(const QString& aDataName, const QString& aDataValue);
142 void UpdatePlatformInTextEditor(const QString& aNewLine);
143 void AddNewAttributeInText(const QString& aAttributeName, const QString& aDataValue);
148 QString ConstructTextToAppendForPlatform(const QTextCursor& aStartCursor,
149 const QTextCursor& aEndCursor,
150 const QString& aAttributeName,
151 const QString& aDataValue) const noexcept;
153 void AddNewRouteInText(
wkf::AttachmentRoute* aRoutePtr);
154 void UpdateTextRange();
155 void ReplaceTabs(QStringList& aList);
158 void UpdateEditorInfo() noexcept;
163 Editor* GetEditor() noexcept;
169 Editor* mEditorPtr =
nullptr;
170 Editor* mEditPlatformEditorPtr =
nullptr;
171 std::
string mFileName =
"";
172 UtTextDocumentRange mPlatformTextRange;
174 UtCallbackHolder mProxyCallbacks;
182 std::vector<
std::pair<
int,
bool>> mQueuedOperations;
184 int mWaitingForDelete;
185 std::vector<
unsigned int> mSelectedWaypoints;