From 89a11141852de0a6c66a8065faf6454fb7d382be Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 10 Oct 2002 20:39:12 +0000 Subject: Added functions to manage textures. git-svn-id: http://svn.leocad.org/trunk@301 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/Libdlg.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'win/Libdlg.cpp') diff --git a/win/Libdlg.cpp b/win/Libdlg.cpp index 107d0a4..68fa91c 100644 --- a/win/Libdlg.cpp +++ b/win/Libdlg.cpp @@ -7,6 +7,7 @@ #include "GroupDlg.h" #include "Print.h" #include "Tools.h" +#include "texdlg.h" #include "ProgDlg.h" #include "project.h" #include "pieceinf.h" @@ -293,7 +294,7 @@ BOOL CLibraryDlg::OnCommand(WPARAM wParam, LPARAM lParam) if (filedlg.DoModal() != IDOK) return TRUE; - LoadUpdate(filedlg.GetPathName()); + project->GetPiecesLibrary ()->LoadUpdate(filedlg.GetPathName()); // update m_Parts UpdateList(); @@ -342,6 +343,12 @@ BOOL CLibraryDlg::OnCommand(WPARAM wParam, LPARAM lParam) return TRUE; } + case ID_LIBDLG_FILE_TEXTURES: + { + CTexturesDlg dlg; + dlg.DoModal(); + } break; + case ID_LIBDLG_GROUP_INSERT: { HTREEITEM hti = m_Tree.GetSelectedItem(); @@ -620,7 +627,7 @@ BOOL CLibraryDlg::OnCommand(WPARAM wParam, LPARAM lParam) sel++; } - DeletePiece(names, sel); + project->GetPiecesLibrary ()->DeletePiece(names, sel); free(names); CString str = project->GetPiecesLibrary ()->GetLibraryPath(); -- cgit v1.2.3