From: <fm...@us...> - 2008-08-18 20:26:51
|
Revision: 3334 http://hugin.svn.sourceforge.net/hugin/?rev=3334&view=rev Author: fmannan Date: 2008-08-18 20:26:43 +0000 (Mon, 18 Aug 2008) Log Message: ----------- +Updated mask saving option in Mask Editor to store all the masks as tif files. The user needs to provide the prefix and mask would be generated as <prefix>_<image no.>.tif Later on, I'll add option for specifying the output format. Modified Paths: -------------- hugin/branches/gsoc2008_masking/src/maskeditor/gui/MaskEdMainFrame.cpp Modified: hugin/branches/gsoc2008_masking/src/maskeditor/gui/MaskEdMainFrame.cpp =================================================================== --- hugin/branches/gsoc2008_masking/src/maskeditor/gui/MaskEdMainFrame.cpp 2008-08-18 15:49:38 UTC (rev 3333) +++ hugin/branches/gsoc2008_masking/src/maskeditor/gui/MaskEdMainFrame.cpp 2008-08-18 20:26:43 UTC (rev 3334) @@ -171,11 +171,12 @@ void MaskEdMainFrame::OnSaveMask(wxCommandEvent &event) { //wxString filter = wxT("JPEG files (*.jpg;*.jpeg)|*.jpg;*.JPG;*.jpeg;*.JPEG|tiff files (*.tif)|*.tif|All files (*.*)|*.*"); - wxFileDialog dialog(this, wxT("Save Mask"), wxEmptyString, + wxFileDialog dialog(this, wxT("Save Mask: Enter prefix"), wxEmptyString, wxEmptyString, wxEmptyString, wxSAVE); if(dialog.ShowModal() == wxID_OK) { - m_MaskEdClientWnd->saveMask(0, dialog.GetPath()); + //m_MaskEdClientWnd->saveMask(0, dialog.GetPath()); + MaskMgr::getInstance()->saveMask(string(dialog.GetPath().mb_str())); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |