#include "DDSOptionsDialog.h"
DDSOptionsDialog::DDSOptionsDialog(const wxString& prefix, bool HasAlpha)
- : wxDialog(NULL, -1, wxT("DDS Options"), wxDefaultPosition, wxDefaultSize), m_prefix(prefix), m_hasAlpha(HasAlpha)
+ : wxDialog(NULL, -1, wxT("DDSオプション"), wxDefaultPosition, wxDefaultSize), m_prefix(prefix), m_hasAlpha(HasAlpha)
{
- mipmapBox_staticbox = new wxStaticBox(this, -1, wxT("Mipmap Halo Removal"));
- useDXTC = new wxCheckBox(this, -1, wxT("Use DXTC (Texture Compression)"));
- generateMipmaps = new wxCheckBox(this, BUTTON_GenerateMipmaps, wxT("Generate Mipmaps"));
+ mipmapBox_staticbox = new wxStaticBox(this, -1, wxT("ミップマップのハローを除去"));
+ useDXTC = new wxCheckBox(this, -1, wxT("DXTCを使用(テスクチャの圧縮)"));
+ generateMipmaps = new wxCheckBox(this, BUTTON_GenerateMipmaps, wxT("ミップマップを生成"));
wxArrayString filterChoices;
- filterChoices.Add(wxT("Box"));
- filterChoices.Add(wxT("Triangle"));
- filterChoices.Add(wxT("Kaiser"));
+ filterChoices.Add(wxT("ボックス"));
+ filterChoices.Add(wxT("トライアングル"));
+ filterChoices.Add(wxT("カイザー"));
mipmapFilterChoice = new wxChoice(this, -1, wxDefaultPosition, wxDefaultSize, filterChoices);
- repeatingTexture = new wxCheckBox(this, -1, wxT("Image Repeats"));
+ repeatingTexture = new wxCheckBox(this, -1, wxT("画像の繰り返し"));
- colorFillBackground = new wxCheckBox(this, BUTTON_ColorFillBackground, wxT("Fast Halo Removal"));
- reconstructColors = new wxCheckBox(this, BUTTON_ReconstructColors, wxT("Reconstruct Edge Colors"));
- chooseBackground = new wxButton(this, BUTTON_ChooseBackground, wxT("Choose Background Color..."));
+ colorFillBackground = new wxCheckBox(this, BUTTON_ColorFillBackground, wxT("高速ハロー除去"));
+ reconstructColors = new wxCheckBox(this, BUTTON_ReconstructColors, wxT("エッジの色を再構築"));
+ chooseBackground = new wxButton(this, BUTTON_ChooseBackground, wxT("背景色を選択…"));
fill_from_prefs();
update_enablement();
EVT_CHECKBOX(BUTTON_GenerateMipmaps, DDSOptionsDialog::OnUpdateEnablement)
END_EVENT_TABLE()
-
-
: wxFrame((wxFrame *) NULL, -1, title, pos, size, style)
{
fileMenu = new wxMenu;
- fileMenu->Append(wxID_ABOUT, _T("&About Aorta..."));
+ fileMenu->Append(wxID_ABOUT, _T("Aortaについて…(&A)"));
fileMenu->AppendSeparator();
- fileMenu->Append(MENU_LoadNormal, _T("L&oad image..."));
- fileMenu->Append(MENU_SaveAs, wxT("&Save as..."));
- fileMenu->Append(wxID_EXIT, wxT("&Quit"));
+ fileMenu->Append(MENU_LoadNormal, _T("画像を読み込む(L&)"));
+ fileMenu->Append(MENU_SaveAs, wxT("名前を付けて保存(&S)"));
+ fileMenu->Append(wxID_EXIT, wxT("終了(&Q)"));
menuBar = new wxMenuBar;
- menuBar->Append(fileMenu, wxT("&File"));
+ menuBar->Append(fileMenu, wxT("ファイル(&F)"));
SetMenuBar(menuBar);
wxBoxSizer *topsizer = new wxBoxSizer(wxVERTICAL);
notebook = new wxNotebook(this, -1);
basicPage = new BasicPage(notebook, -1, wxDefaultPosition, wxDefaultSize);
- notebook->AddPage(basicPage, wxT("Compose"), true);
+ notebook->AddPage(basicPage, wxT("作成"), true);
batchPage = new BatchPage(notebook, -1, wxDefaultPosition, wxDefaultSize);
- notebook->AddPage(batchPage, wxT("Batch Convert"), false);
+ notebook->AddPage(batchPage, wxT("一括変換"), false);
#ifdef __WIN32__
topsizer->Add(notebook, 1, wxEXPAND);
void MainFrame::OnAbout(wxCommandEvent& event)
{
- wxMessageBox(wxT("Aorta 2.1 (the Aleph One Replacement Texture Accessory)\n(C) 2006-2008 Gregory Smith\n\nAorta is licensed under the GPL. See COPYING.txt"), wxT("About Aorta"), wxOK);
+ wxMessageBox(wxT("Aorta 2.1 (Aleph One交換用テスクチャアクセサリ)\n(C) 2006-2008 Gregory Smith\n\nAortaは、GPLでライセンスされています。詳細は、COPYING.txtにて。"), wxT("About Aorta"), wxOK);
}
void MainFrame::OnLoadNormal(wxCommandEvent& event)
column[0]->Add(normalImageFilename, 0, wxALIGN_CENTER | wxEXPAND | wxLEFT | wxRIGHT, 10);
normalImageSize = new wxStaticText(this, -1, wxT(""));
column[0]->Add(normalImageSize, 0, wxALIGN_CENTER | wxEXPAND | wxLEFT | wxRIGHT | wxBOTTOM, 10);
- normalImageButton = new wxButton(this, BUTTON_NormalImage, wxT("Load normal..."));
+ normalImageButton = new wxButton(this, BUTTON_NormalImage, wxT("通常の画像を読み込む…"));
column[0]->Add(normalImageButton, 0, wxALIGN_CENTER | wxALL, 10);
- unpremultiplyAlpha = new wxButton(this, BUTTON_UnpremultiplyAlpha, wxT("Un-Premultiply Alpha"));
+ unpremultiplyAlpha = new wxButton(this, BUTTON_UnpremultiplyAlpha, wxT("Premultiply Alphaを切る"));
column[0]->Add(unpremultiplyAlpha, 0, wxALIGN_CENTER | wxALL, 10);
- normalMap = new wxButton(this, BUTTON_MakeNormalMap, wxT("Make Normal Map"));
+ normalMap = new wxButton(this, BUTTON_MakeNormalMap, wxT("通常マップを生成"));
column[0]->Add(normalMap, 0, wxALIGN_CENTER | wxALL, 10);
pageSizer->Add(column[0], 0, wxEXPAND | wxALL, 10);
column[1]->AddSpacer(maskStatus->GetRect().GetHeight());
wxBoxSizer *loadClearSizer = new wxBoxSizer(wxHORIZONTAL);
- maskImageButton = new wxButton(this, BUTTON_MaskImage, wxT("Load mask..."));
+ maskImageButton = new wxButton(this, BUTTON_MaskImage, wxT("マスクを開く…"));
loadClearSizer->Add(maskImageButton, 1, wxEXPAND | wxRIGHT, 10);
- clearMaskButton = new wxButton(this, BUTTON_ClearMask, wxT("Clear mask"));
+ clearMaskButton = new wxButton(this, BUTTON_ClearMask, wxT("マスクを削除"));
loadClearSizer->Add(clearMaskButton, 1, wxEXPAND | wxLEFT, 10);
column[1]->Add(loadClearSizer, 0, wxEXPAND | wxALIGN_CENTER | wxALL, 10);
SetMaskButtonEnablement(false);
wxBoxSizer *saveSizer = new wxBoxSizer(wxHORIZONTAL);
- saveAsButton = new wxButton(this, BUTTON_SaveAs, wxT("Save as..."));
+ saveAsButton = new wxButton(this, BUTTON_SaveAs, wxT("保存先…"));
saveAsButton->Disable();
saveSizer->AddStretchSpacer(1);
saveSizer->Add(saveAsButton, 1, wxEXPAND | wxLEFT, 10);
wxString Directory;
config.Read(wxT("Single/DefaultDirectory/Load"), &Directory, wxT(""));
wxFileDialog *openFileDialog = new wxFileDialog( this,
- wxT("Choose Image"),
+ wxT("画像を選択"),
Directory,
wxT(""),
- wxT("Image Files ") + wxImage::GetImageExtWildcard() + wxT("|All Files|*.*"),
+ wxT("画像ファイル") + wxImage::GetImageExtWildcard() + wxT("|すべてのファイル|*.*"),
wxOPEN | wxCHANGE_DIR,
wxDefaultPosition);
if (openFileDialog->ShowModal() == wxID_OK)
wxString Directory;
config.Read(wxT("Single/DefaultDirectory/Load"), &Directory, wxT(""));
wxFileDialog *openFileDialog = new wxFileDialog(this,
- wxT("Choose Mask"),
+ wxT("マスクを選択"),
wxT(""),
wxT(""),
- wxT("Image Files ") + wxImage::GetImageExtWildcard(),
+ wxT("画像ファイル") + wxImage::GetImageExtWildcard(),
wxOPEN | wxCHANGE_DIR,
wxDefaultPosition);
if (openFileDialog->ShowModal() == wxID_OK)
wxString Directory;
config.Read(wxT("Single/DefaultDirectory/Save"), &Directory, wxT(""));
saveFileDialog = new wxFileDialog(this,
- wxT("Save As"),
+ wxT("保存先"),
Directory,
(normalImageFilename->GetLabel().BeforeLast('.') + wxT(".dds")),
- wxT("DDS files (*.dds)|*.dds|PNG files (*.png)|*.png"),
+ wxT("DDSファイル (*.dds)|*.dds|PNGファイル (*.png)|*.png"),
wxSAVE | wxOVERWRITE_PROMPT | wxCHANGE_DIR,
wxDefaultPosition);
if (saveFileDialog->ShowModal() != wxID_OK) return;
saveImage.SaveFile(saveFileDialog->GetPath(), wxBITMAP_TYPE_PNG);
} else {
// query for a preset
- DDSOptionsDialog ddsOptions(wxT("Single"), saveImage.HasAlpha());
+ DDSOptionsDialog ddsOptions(wxT("単一"), saveImage.HasAlpha());
if (ddsOptions.ShowModal() != wxID_OK) return;
if (ddsOptions.generateMipmaps->GetValue()) {
}
else
{
- wxMessageBox(wxT("The mask must be the same width and height as the image."), wxT("Invalid mask"), wxOK);
+ wxMessageBox(wxT("マスクの縦横のサイズは、画像のサイズと同じである必要があります。"), wxT("無効なマスク"), wxOK);
maskImage.Destroy();
}
}
{
maskImageDisplay.Create(normalImage.GetWidth(), normalImage.GetHeight());
maskImageDisplay.White();
- maskStatus->SetLabel(wxT("No mask"));
+ maskStatus->SetLabel(wxT("マスク無し"));
}
else
{
: wxPanel(parent, id, pos, size)
{
wxConfig config;
- chooseFiles = new wxButton(this, BUTTON_ChooseFiles, wxT("Choose Source..."));
- recurseCheckbox = new wxCheckBox(this, CHECKBOX_Recurse, wxT("Traverse (and recreate) subfolders"));
+ chooseFiles = new wxButton(this, BUTTON_ChooseFiles, wxT("ソースを選択…"));
+ recurseCheckbox = new wxCheckBox(this, CHECKBOX_Recurse, wxT("サブフォルダ以下も探す"));
config.Read(wxT("Batch/Source"), &source, wxT(""));
if (source == wxT(""))
- fileStatus = new wxTextCtrl(this, -1, wxT("No files selected"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY | wxTE_BESTWRAP);
+ fileStatus = new wxTextCtrl(this, -1, wxT("ファイルが選択されていません。"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY | wxTE_BESTWRAP);
else
fileStatus = new wxTextCtrl(this, -1, source, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY | wxTE_BESTWRAP);
- findMasks = new wxCheckBox(this, BUTTON_FindMasks, wxT("Attempt to find masks"));
+ findMasks = new wxCheckBox(this, BUTTON_FindMasks, wxT("マスクがある場合読み込む"));
bool value;
config.Read(wxT("Batch/Recurse"), &value, true);
recurseCheckbox->SetValue(value ? 1 : 0);
mask.Replace(wxT("\\$"), wxT("$"));
maskString->SetValue(mask);
- selectDestination = new wxButton(this, BUTTON_ChooseDestination, wxT("Choose Destination..."));
+ selectDestination = new wxButton(this, BUTTON_ChooseDestination, wxT("保存先を指定…"));
config.Read(wxT("Batch/Destination"), &destination, wxT(""));
if (destination == wxT(""))
- destinationStatus = new wxTextCtrl(this, -1, wxT("No destination chosen"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY | wxTE_BESTWRAP);
+ destinationStatus = new wxTextCtrl(this, -1, wxT("保存先が指定されていません。"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY | wxTE_BESTWRAP);
else
destinationStatus = new wxTextCtrl(this, -1, destination, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY | wxTE_BESTWRAP);
// destinationStatus->Wrap(300);
- convert = new wxButton(this, BUTTON_Convert, wxT("Batch Convert..."));
+ convert = new wxButton(this, BUTTON_Convert, wxT("バッチ変換…"));
- saveAsDDS = new wxRadioButton(this, -1, wxT("Save as DDS"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP);
+ saveAsDDS = new wxRadioButton(this, -1, wxT("DDSで保存"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP);
saveAsDDS->SetValue(1);
- saveAsPNG = new wxRadioButton(this, -1, wxT("Save as PNG"));
+ saveAsPNG = new wxRadioButton(this, -1, wxT("PNGで保存"));
do_layout();
}
void BatchPage::OnChooseSource(wxCommandEvent &)
{
wxDirDialog *openDirDialog = new wxDirDialog(this,
- wxT("Choose a source folder"));
+ wxT("ソースフォルダを選択"));
if (openDirDialog->ShowModal() == wxID_OK)
{
ChooseSource(openDirDialog->GetPath());
void BatchPage::OnChooseDestination(wxCommandEvent &)
{
wxDirDialog *openDirDialog = new wxDirDialog(this,
- wxT("Choose a destination folder"));
+ wxT("保存先のフォルダを選択"));
if (openDirDialog->ShowModal() == wxID_OK)
{
ChooseDestination(openDirDialog->GetPath());
}
// get the DDS options
- DDSOptionsDialog ddsOptions(wxT("Batch"), true);
+ DDSOptionsDialog ddsOptions(wxT("バッチ処理"), true);
if (!toPNG)
if (ddsOptions.ShowModal() != wxID_OK) return;
- wxProgressDialog pd(wxT("Converting"), wxT("Converting"), filesToConvert.Count(), NULL, wxPD_AUTO_HIDE | wxPD_APP_MODAL | wxPD_ELAPSED_TIME | wxPD_CAN_ABORT);
+ wxProgressDialog pd(wxT("変換中"), wxT("変換中"), filesToConvert.Count(), NULL, wxPD_AUTO_HIDE | wxPD_APP_MODAL | wxPD_ELAPSED_TIME | wxPD_CAN_ABORT);
for (int i = 0; i < filesToConvert.Count(); i++)
{
wxString progressString;
- progressString.Printf(wxT("Converting...%i/%i"), i + 1, filesToConvert.Count());
+ progressString.Printf(wxT("変換中…%i/%i"), i + 1, filesToConvert.Count());
if (!pd.Update(i, progressString)) break;
wxImageExt normalImage;
wxImageExt maskImage;