leocad/common/lc_category.h

26 lines
781 B
C
Raw Normal View History

2013-08-09 06:57:18 +02:00
#ifndef _LC_CATEGORY_H_
#define _LC_CATEGORY_H_
#include "str.h"
2013-08-16 01:43:18 +02:00
#include "lc_array.h"
2013-08-09 06:57:18 +02:00
struct lcLibraryCategory
{
String Name;
String Keywords;
};
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);
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);
2013-08-09 06:57:18 +02:00
#endif // _LC_CATEGORY_H_