MCPcopy Create free account
hub / github.com/chrxh/alien / Save

Method Save

external/ImFileDialog/ImFileDialog.cpp:447–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445 m_treeCache.clear();
446 }
447 bool FileDialog::Save(const std::string& key, const std::string& title, const std::string& filter, const std::string& startingDir)
448 {
449 if (!m_currentKey.empty())
450 return false;
451
452 m_currentKey = key;
453 m_currentTitle = title + "###" + key;
454 m_isOpen = true;
455 m_calledOpenPopup = false;
456 m_result.clear();
457 m_inputTextbox[0] = 0;
458 m_selections.clear();
459 m_selectedFileItem = -1;
460 m_isMultiselect = false;
461 m_type = IFD_DIALOG_SAVE;
462
463 m_parseFilter(filter);
464 if (!startingDir.empty())
465 m_setDirectory(std::filesystem::path(startingDir), false);
466 else
467 m_setDirectory(m_currentDirectory, false); // refresh contents
468
469 return true;
470 }
471 bool FileDialog::Open(const std::string& key, const std::string& title, const std::string& filter, bool isMultiselect, const std::string& startingDir)
472 {
473 if (!m_currentKey.empty())

Callers 2

showMethod · 0.80
showSaveFileDialogMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected