----------------------------------------------------------------------------- PlatformFileDlgData Implementation -----------------------------------------------------------------------------
| 38 | // PlatformFileDlgData Implementation |
| 39 | //----------------------------------------------------------------------------- |
| 40 | FileDialogData::FileDialogData() |
| 41 | { |
| 42 | // Default Path |
| 43 | // |
| 44 | // Try to provide consistent experience by recalling the last file path |
| 45 | // - else |
| 46 | // Default to Working Directory if last path is not set or is invalid |
| 47 | mDefaultPath = StringTable->insert(Con::getVariable("Tools::FileDialogs::LastFilePath")); |
| 48 | if (mDefaultPath == StringTable->lookup("") || !Platform::isDirectory(mDefaultPath)) |
| 49 | mDefaultPath = Platform::getCurrentDirectory(); |
| 50 | |
| 51 | mDefaultFile = StringTable->EmptyString(); |
| 52 | mFilters = StringTable->EmptyString(); |
| 53 | mFile = StringTable->EmptyString(); |
| 54 | mTitle = StringTable->EmptyString(); |
| 55 | |
| 56 | mStyle = 0; |
| 57 | |
| 58 | } |
| 59 | FileDialogData::~FileDialogData() |
| 60 | { |
| 61 |
nothing calls this directly
no test coverage detected