Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATApp::SaveFileDialog
CATResult CATApp::SaveFileDialog ( const CATString title,
std::vector< CATString > &  filetypeList,
CATString returnPath,
CATWindow parentWnd = 0,
bool  promptOverwrite = true,
const CATString fileExtension = "" 
) [virtual]

SaveFileDialog() displays a save file dialog and returns the selected file path, if any.

Parameters:
title - title string
filetypeList - list of file type / extension pairs. std::map<filename, filemask>, e.g. std::map.Insert("Session files","*.drum_sess")
returnPath - ref to string to fill with received file path, if any. when called, this is also used as the default file name.
parentWnd - parent window
promptOverwrite - if true, prompts if the file already exists...
fileExtension - default file extension to add to file name

Definition at line 117 of file CATApp_Win32.cpp.

References CAT_ERR_FILESAVE_CANCELLED, CAT_SUCCESS, CATRESULT, CATString::GetUnicodeBuffer(), CATString::GetWChar(), CATString::IsEmpty(), CATString::Length(), CATWindow::OSGetWnd(), and CATString::ReleaseBuffer().


Generated on Mon Feb 11 04:10:14 2008 for Game Accessibility Suite by doxygen 1.5.4