summaryrefslogtreecommitdiff
path: root/win/texdlg.cpp
diff options
context:
space:
mode:
authorleo2006-02-14 05:47:16 +0000
committerleo2006-02-14 05:47:16 +0000
commit517715abd19f057b9d4894bcc86de8a4edd52234 (patch)
treec00bfdc017c28f69b97eeb9969ce09a987e2c068 /win/texdlg.cpp
parente7a01e3d8402bce14ba6433d41095c5362076ff3 (diff)
Added the lcApplication class.
git-svn-id: http://svn.leocad.org/trunk@473 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/texdlg.cpp')
-rw-r--r--win/texdlg.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/win/texdlg.cpp b/win/texdlg.cpp
index 3b09d21..1bafd02 100644
--- a/win/texdlg.cpp
+++ b/win/texdlg.cpp
@@ -8,6 +8,7 @@
#include "project.h"
#include "globals.h"
#include "texture.h"
+#include "lc_application.h"
#ifdef _DEBUG
#define new DEBUG_NEW
@@ -68,7 +69,7 @@ void CTexturesDlg::OnLibtexAdd()
if (dlg.DoModal() == IDOK)
{
- project->GetPiecesLibrary ()->ImportTexture (dlg.GetPathName());
+ lcGetPiecesLibrary()->ImportTexture(dlg.GetPathName());
UpdateList();
}
}
@@ -96,7 +97,7 @@ void CTexturesDlg::OnLibtexRemove()
}
}
- project->GetPiecesLibrary ()->DeleteTextures (names, selected);
+ lcGetPiecesLibrary()->DeleteTextures(names, selected);
free (names);
@@ -105,13 +106,13 @@ void CTexturesDlg::OnLibtexRemove()
void CTexturesDlg::UpdateList()
{
- PiecesLibrary *pLib = project->GetPiecesLibrary ();
+ PiecesLibrary *pLib = lcGetPiecesLibrary();
- m_List.ResetContent ();
+ m_List.ResetContent();
- for (int i = 0; i < pLib->GetTextureCount (); i++)
+ for (int i = 0; i < pLib->GetTextureCount(); i++)
{
int index = m_List.AddString (pLib->GetTexture(i)->m_strName);
- m_List.SetItemDataPtr (index, pLib->GetTexture(i)->m_strName);
+ m_List.SetItemDataPtr(index, pLib->GetTexture(i)->m_strName);
}
}