summaryrefslogtreecommitdiff
path: root/win/Libdlg.cpp
diff options
context:
space:
mode:
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();