MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / FileDialogData

Method FileDialogData

Engine/source/platform/nativeDialogs/fileDialog.cpp:40–58  ·  view source on GitHub ↗

----------------------------------------------------------------------------- PlatformFileDlgData Implementation -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

38// PlatformFileDlgData Implementation
39//-----------------------------------------------------------------------------
40FileDialogData::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}
59FileDialogData::~FileDialogData()
60{
61

Callers

nothing calls this directly

Calls 4

getVariableFunction · 0.85
EmptyStringMethod · 0.80
insertMethod · 0.45
lookupMethod · 0.45

Tested by

no test coverage detected