2017-07-19 23:20:32 +02:00
|
|
|
#pragma once
|
2013-08-09 06:57:18 +02:00
|
|
|
|
2013-08-16 01:43:18 +02:00
|
|
|
#include "lc_array.h"
|
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
|
|
|
};
|
|
|
|
|
2013-08-16 01:43:18 +02:00
|
|
|
extern lcArray<lcLibraryCategory> gCategories;
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
void lcResetDefaultCategories();
|
|
|
|
void lcLoadDefaultCategories(bool BuiltInLibrary = false);
|
|
|
|
void lcSaveDefaultCategories();
|
|
|
|
|
2013-08-16 01:43:18 +02:00
|
|
|
void lcResetCategories(lcArray<lcLibraryCategory>& Categories, bool BuiltInLibrary = false);
|
2015-02-02 07:00:42 +01:00
|
|
|
bool lcLoadCategories(const QString& FileName, lcArray<lcLibraryCategory>& Categories);
|
2016-04-30 21:40:46 +02:00
|
|
|
bool lcLoadCategories(const QByteArray& Buffer, lcArray<lcLibraryCategory>& Categories);
|
2015-02-02 07:00:42 +01:00
|
|
|
bool lcSaveCategories(const QString& FileName, const lcArray<lcLibraryCategory>& Categories);
|
2016-02-17 00:11:52 +01:00
|
|
|
bool lcSaveCategories(QTextStream& Stream, const lcArray<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);
|
|
|
|
|