| 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 | { |