2017-07-19 23:20:32 +02:00
|
|
|
#pragma once
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
struct lcLibraryCategory
|
|
|
|
{
|
2017-02-08 18:41:48 +01:00
|
|
|
QString Name;
|
|
|
|
QByteArray Keywords;
|
2013-08-09 06:57:18 +02:00
|
|
|
};
|
|
|
|
|
2020-01-11 02:40:14 +01:00
|
|
|
extern std::vector<lcLibraryCategory> gCategories;
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
void lcResetDefaultCategories();
|
|
|
|
void lcLoadDefaultCategories(bool BuiltInLibrary = false);
|
|
|
|
void lcSaveDefaultCategories();
|
|
|
|
|
2020-01-11 02:40:14 +01:00
|
|
|
void lcResetCategories(std::vector<lcLibraryCategory>& Categories, bool BuiltInLibrary = false);
|
|
|
|
bool lcLoadCategories(const QString& FileName, std::vector<lcLibraryCategory>& Categories);
|
|
|
|
bool lcLoadCategories(const QByteArray& Buffer, std::vector<lcLibraryCategory>& Categories);
|
|
|
|
bool lcSaveCategories(const QString& FileName, const std::vector<lcLibraryCategory>& Categories);
|
|
|
|
bool lcSaveCategories(QTextStream& Stream, const std::vector<lcLibraryCategory>& Categories);
|
2013-08-09 06:57:18 +02:00
|
|
|
|
2017-02-08 03:55:54 +01:00
|
|
|
bool lcMatchCategory(const char* PieceName, const char* Expression);
|