Changes: you can now see each file type in the open file dialog, but an error is raised, if opening an unsupported file type

This commit is contained in:
code@koerner-de.net
2011-10-06 19:18:23 +00:00
parent d04480d460
commit a4a7a957b9
5 changed files with 29 additions and 10 deletions
+11
View File
@@ -73,6 +73,17 @@ OTM_File::~OTM_File(void)
}
bool OTM_File::FileSupported(void)
{
wxString file_type = FileName.AfterLast( '.');
if (file_type == L"zip") return true;
else if (file_type == L"tpf") return true;
else if (file_type == L"dds") return true;
return false;
}
int OTM_File::GetComment( wxString &tool_tip)
{
wxString file_type = FileName.AfterLast( '.');