MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / OnBrowserInfoButton

Method OnBrowserInfoButton

src/gui/browserpanel.cc:272–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270 }
271
272 void OnBrowserInfoButton(wxCommandEvent&) override
273 {
274 auto item = browserTree->GetSelection();
275 auto node = _filesystemModel->Find(item);
276
277 std::stringstream ss;
278 ss << "File attributes for " << node->dirent->path.to_str() << ":\n\n";
279 for (const auto& e : node->dirent->attributes)
280 ss << e.first << "=" << quote(e.second) << "\n";
281
282 TextViewerWindow::Create(
283 this, node->dirent->path.to_str(), ss.str(), true)
284 ->Show();
285 }
286
287 void OnBrowserViewButton(wxCommandEvent&) override
288 {

Callers

nothing calls this directly

Calls 3

quoteFunction · 0.85
FindMethod · 0.80
to_strMethod · 0.80

Tested by

no test coverage detected