#pragma once struct lcLibraryCategory { QString Name; QByteArray Keywords; }; extern std::vector gCategories; void lcResetDefaultCategories(); void lcLoadDefaultCategories(bool BuiltInLibrary = false); void lcSaveDefaultCategories(); void lcResetCategories(std::vector& Categories, bool BuiltInLibrary = false); bool lcLoadCategories(const QString& FileName, std::vector& Categories); bool lcLoadCategories(const QByteArray& Buffer, std::vector& Categories); bool lcSaveCategories(const QString& FileName, const std::vector& Categories); bool lcSaveCategories(QTextStream& Stream, const std::vector& Categories); bool lcMatchCategory(const char* PieceName, const char* Expression);