summaryrefslogtreecommitdiff
path: root/win/System.cpp
diff options
context:
space:
mode:
authorleo2005-07-14 05:10:57 +0000
committerleo2005-07-14 05:10:57 +0000
commite3b7ec77734b8f415f9c756f0d7bf90ff202e71e (patch)
tree741fd8c82177a499308de47bd94453d9bdc5e229 /win/System.cpp
parent7c16eadee05cfe3115ac0a69a822c66f1b3e292f (diff)
Changed the pieces list to a tree sorted by categories.
git-svn-id: http://svn.leocad.org/trunk@414 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/System.cpp')
-rw-r--r--win/System.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/win/System.cpp b/win/System.cpp
index acaba02..c581e83 100644
--- a/win/System.cpp
+++ b/win/System.cpp
@@ -798,6 +798,13 @@ void SystemUpdateCameraMenu(Camera* pCamera)
((CMainFrame*)AfxGetMainWnd())->UpdateMenuAccelerators();
}
+void SystemUpdateCategories(bool SearchOnly)
+{
+ CFrameWnd* pFrame = (CFrameWnd*)AfxGetMainWnd();
+ CPiecesBar* pBar = (CPiecesBar*)pFrame->GetControlBar(ID_VIEW_PIECES_BAR);
+ pBar->UpdatePiecesTree(SearchOnly);
+}
+
extern UINT AFXAPI AfxGetFileTitle(LPCTSTR lpszPathName, LPTSTR lpszTitle, UINT nMax);
extern UINT AFXAPI AfxGetFileName(LPCTSTR lpszPathName, LPTSTR lpszTitle, UINT nMax);