mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
25 lines
781 B
C
25 lines
781 B
C
#ifndef _LC_CATEGORY_H_
|
|
#define _LC_CATEGORY_H_
|
|
|
|
#include "str.h"
|
|
#include "lc_array.h"
|
|
|
|
struct lcLibraryCategory
|
|
{
|
|
String Name;
|
|
String Keywords;
|
|
};
|
|
|
|
extern lcArray<lcLibraryCategory> gCategories;
|
|
|
|
void lcResetDefaultCategories();
|
|
void lcLoadDefaultCategories(bool BuiltInLibrary = false);
|
|
void lcSaveDefaultCategories();
|
|
|
|
void lcResetCategories(lcArray<lcLibraryCategory>& Categories, bool BuiltInLibrary = false);
|
|
bool lcLoadCategories(const char* FileName, lcArray<lcLibraryCategory>& Categories);
|
|
bool lcLoadCategories(lcFile& File, lcArray<lcLibraryCategory>& Categories);
|
|
bool lcSaveCategories(const char* FileName, const lcArray<lcLibraryCategory>& Categories);
|
|
bool lcSaveCategories(lcFile& File, const lcArray<lcLibraryCategory>& Categories);
|
|
|
|
#endif // _LC_CATEGORY_H_
|