summaryrefslogtreecommitdiff
path: root/win/Libdlg.cpp
diff options
context:
space:
mode:
authorleo2002-10-10 20:39:12 +0000
committerleo2002-10-10 20:39:12 +0000
commit89a11141852de0a6c66a8065faf6454fb7d382be (patch)
tree840eb5b4bd2786bb8f258692897a23fb2ee5c341 /win/Libdlg.cpp
parentd82784547a0f37e21c3b6e4a402009655fc531bf (diff)
Added functions to manage textures.
git-svn-id: http://svn.leocad.org/trunk@301 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/Libdlg.cpp')
-rw-r--r--win/Libdlg.cpp11
1 files changed, 9 insertions, 2 deletions
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();