From 369e736e3f0cc5ca043c5f29dfc5193f688a637f Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Wed, 14 Jul 2010 05:37:58 -0700 Subject: Added basic File menu to notecards (save, import, export) and made the script editor File menu consistent with it. TODO: create new notecard format that includes attached inventory --- linden/indra/newview/llfilepicker.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'linden/indra/newview/llfilepicker.cpp') diff --git a/linden/indra/newview/llfilepicker.cpp b/linden/indra/newview/llfilepicker.cpp index 7b4caa8..d953e45 100644 --- a/linden/indra/newview/llfilepicker.cpp +++ b/linden/indra/newview/llfilepicker.cpp @@ -329,6 +329,17 @@ BOOL LLFilePicker::getSaveFile(ESaveFilter filter, const std::string& filename) L"Targa, Bitmap Images (*.tga; *.bmp)\0*.tga;*.bmp\0" \ L"\0"; break; + case FFSAVE_LSL: + if (filename.empty()) + { + wcsncpy( mFilesW,L"untitled.lsl", FILENAME_BUFFER_SIZE); /*Flawfinder: ignore*/ + } + mOFN.lpstrDefExt = L"lsl"; + mOFN.lpstrFilter = + L"LSL Files (*.lsl)\0*.lsl\0" + L"Text files (*.txt)\0*.txt\0" + L"\0"; + break; case FFSAVE_TEXT: if (filename.empty()) { @@ -338,7 +349,6 @@ BOOL LLFilePicker::getSaveFile(ESaveFilter filter, const std::string& filename) mOFN.lpstrFilter = L"Text files (*.txt)\0*.txt\0" L"RTF Files (*.rtf)\0*.rtf\0" - L"LSL Files (*.lsl)\0*.lsl\0" L"\0"; break; case FFSAVE_WAV: -- cgit v1.1