| 101 | } |
| 102 | |
| 103 | void open_export_dialog(ExportDialogState& st, |
| 104 | const std::string& buffer_name, |
| 105 | const std::string& last_export_dir) { |
| 106 | st.open = true; |
| 107 | st.buffer_name = buffer_name; |
| 108 | st.user_edited_path = false; |
| 109 | st.format = oid::BufferExporter::OutputType::Bitmap; |
| 110 | set_path_buf( |
| 111 | st.path_buf, |
| 112 | default_export_path( |
| 113 | last_export_dir, std::getenv("HOME"), buffer_name, st.format)); |
| 114 | } |
| 115 | |
| 116 | } // namespace oid::host |