summaryrefslogtreecommitdiff
path: root/common/library.h
diff options
context:
space:
mode:
authorleo2005-12-22 21:29:18 +0000
committerleo2005-12-22 21:29:18 +0000
commitb87afd4fe89cef28e5d1e0527aeec74a4d93e4aa (patch)
tree9244249ba0bf1245ea5c08592186ee82ca24f7ab /common/library.h
parent2e854ed61c1aa804e0d373ca5af1d87882511a11 (diff)
Fixed the pieces combobox to select items in the tree control when using auto-complete.
git-svn-id: http://svn.leocad.org/trunk@446 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/library.h')
-rwxr-xr-xcommon/library.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/library.h b/common/library.h
index a8ba118..41ccbdd 100755
--- a/common/library.h
+++ b/common/library.h
@@ -32,8 +32,10 @@ public:
{ return m_nTextureCount; }
// Categories.
- void GetCategoryEntries(int CategoryIndex, bool GroupPieces, PtrArray<PieceInfo>& SinglePieces, PtrArray<PieceInfo>& GroupedPieces);
- void GetPatternedPieces(PieceInfo* Parent, PtrArray<PieceInfo>& Pieces);
+ bool PieceInCategory(PieceInfo* Info, const String& CategoryKeywords) const;
+ int GetFirstCategory(PieceInfo* Info) const;
+ void GetCategoryEntries(int CategoryIndex, bool GroupPieces, PtrArray<PieceInfo>& SinglePieces, PtrArray<PieceInfo>& GroupedPieces) const;
+ void GetPatternedPieces(PieceInfo* Parent, PtrArray<PieceInfo>& Pieces) const;
void SetCategory(int Index, const String& Name, const String& Keywords);
void AddCategory(const String& Name, const String& Keywords);
void RemoveCategory(int Index);