#pragma once #include "export-symbol-helper.hpp" #include #include #include #include #include #include #include namespace advss { EXPORT std::pair GetCursorPos(); bool ReplaceAll(std::string &str, const std::string &from, const std::string &to); EXPORT std::optional GetJsonField(const std::string &json, const std::string &id); EXPORT bool CompareIgnoringLineEnding(QString &s1, QString &s2); std::string ToString(double value); /* Legacy helpers */ void listAddClicked(QListWidget *list, QWidget *newWidget, QPushButton *addButton = nullptr, QObject *addHighlight = nullptr); bool listMoveUp(QListWidget *list); bool listMoveDown(QListWidget *list); } // namespace advss