mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
37 lines
988 B
C++
37 lines
988 B
C++
#pragma once
|
|
#include "export-symbol-helper.hpp"
|
|
|
|
#include <optional>
|
|
#include <QListWidget>
|
|
#include <QMetaObject>
|
|
#include <QPushButton>
|
|
#include <QString>
|
|
#include <QTextStream>
|
|
#include <QWidget>
|
|
#include <string>
|
|
|
|
namespace advss {
|
|
|
|
EXPORT std::pair<int, int> GetCursorPos();
|
|
|
|
EXPORT bool DoubleEquals(double left, double right, double epsilon);
|
|
|
|
bool ReplaceAll(std::string &str, const std::string &from,
|
|
const std::string &to);
|
|
EXPORT std::optional<std::string> GetJsonField(const std::string &json,
|
|
const std::string &id);
|
|
EXPORT bool CompareIgnoringLineEnding(QString &s1, QString &s2);
|
|
|
|
EXPORT std::string GetDataFilePath(const std::string &file);
|
|
QString GetDefaultSettingsSaveLocation();
|
|
|
|
/* Legacy helpers */
|
|
|
|
void listAddClicked(QListWidget *list, QWidget *newWidget,
|
|
QPushButton *addButton = nullptr,
|
|
QMetaObject::Connection *addHighlight = nullptr);
|
|
bool listMoveUp(QListWidget *list);
|
|
bool listMoveDown(QListWidget *list);
|
|
|
|
} // namespace advss
|