2013-08-09 04:57:18 +00:00
|
|
|
#ifndef _LC_CATEGORY_H_
|
|
|
|
#define _LC_CATEGORY_H_
|
|
|
|
|
|
|
|
#include "str.h"
|
2013-08-15 23:43:18 +00:00
|
|
|
#include "lc_array.h"
|
2013-08-09 04:57:18 +00:00
|
|
|
|
|
|
|
struct lcLibraryCategory
|
|
|
|
{
|
|
|
|
String Name;
|
|
|
|
String Keywords;
|
|
|
|
};
|
|
|
|
|
2013-08-15 23:43:18 +00:00
|
|
|
extern lcArray<lcLibraryCategory> gCategories;
|
2013-08-09 04:57:18 +00:00
|
|
|
|
|
|
|
void lcResetDefaultCategories();
|
|
|
|
void lcLoadDefaultCategories(bool BuiltInLibrary = false);
|
|
|
|
void lcSaveDefaultCategories();
|
|
|
|
|
2013-08-15 23:43:18 +00:00
|
|
|
void lcResetCategories(lcArray<lcLibraryCategory>& Categories, bool BuiltInLibrary = false);
|
2015-02-02 06:00:42 +00:00
|
|
|
bool lcLoadCategories(const QString& FileName, lcArray<lcLibraryCategory>& Categories);
|
2016-04-30 19:40:46 +00:00
|
|
|
bool lcLoadCategories(const QByteArray& Buffer, lcArray<lcLibraryCategory>& Categories);
|
2015-02-02 06:00:42 +00:00
|
|
|
bool lcSaveCategories(const QString& FileName, const lcArray<lcLibraryCategory>& Categories);
|
2016-02-16 23:11:52 +00:00
|
|
|
bool lcSaveCategories(QTextStream& Stream, const lcArray<lcLibraryCategory>& Categories);
|
2013-08-09 04:57:18 +00:00
|
|
|
|
|
|
|
#endif // _LC_CATEGORY_H_
|