|
EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
|
Modal containing controls for interactively selecting a file from the file-system. More...
#include <FileChooser.hpp>
Public Member Functions | |
| FileChooser (EchoMap *app, RaiseFileChooserNotification::SuccessCallbackT &&success_callback, RaiseFileChooserNotification::CancelledCallbackT &&cancelled_callback) | |
| Create a new FileChooser modal for the given EchoMap instance. | |
| void | draw () noexcept override |
| Draw the panel to the active rendering context. | |
| const char * | get_imgui_name () const noexcept override |
| Retrieves the name of the IPanel for Dear ImGui API functions. | |
| void | change_active_project (const Project *new_project) override |
| Updates the active Project being described by the IPanel. | |
| Public Member Functions inherited from echomap::IPanel | |
| virtual void | update_gpu (const wgpu::CommandEncoder &command_encoder) |
| Delegate work to the GPU via the WebGPU platform. | |
Static Public Member Functions | |
| static const char * | get_imgui_stable_name () noexcept |
Private Attributes | |
| std::filesystem::path | expected_extension = ".json" |
| std::filesystem::path | chosen_path |
| FilesystemCombo | file_combo |
| std::string | panel_name |
| bool | is_open = false |
| EchoMap * | app |
| RaiseFileChooserNotification::SuccessCallbackT | success_callback |
| RaiseFileChooserNotification::CancelledCallbackT | cancelled_callback |
Static Private Attributes | |
| static constexpr ImVec2 | default_modal_size {500.0f, 0.0f} |
Additional Inherited Members | |
| Static Protected Attributes inherited from echomap::IPanel | |
| static constexpr ImVec2 | button_size {80.0f, 20.0f} |
| static constexpr auto | table_flags |
Modal containing controls for interactively selecting a file from the file-system.
Definition at line 31 of file FileChooser.hpp.
|
explicit |
Create a new FileChooser modal for the given EchoMap instance.
| app | The owning EchoMap instance. |
| success_callback | The slot to invoke with the path once a file has been selected. |
| cancelled_callback | The slot to invoke if the operation is cancelled. |
Definition at line 19 of file FileChooser.cpp.
|
overridevirtual |
Updates the active Project being described by the IPanel.
| new_project | An observing pointer to the new active Project. |
Implements echomap::IProjectPanel.
Definition at line 76 of file FileChooser.cpp.
|
overridevirtualnoexcept |
Draw the panel to the active rendering context.
Implements echomap::IPanel.
Definition at line 32 of file FileChooser.cpp.
|
nodiscardoverridevirtualnoexcept |
Retrieves the name of the IPanel for Dear ImGui API functions.
Implements echomap::IPanel.
Definition at line 71 of file FileChooser.cpp.
|
staticnoexcept |
Definition at line 83 of file FileChooser.cpp.
|
private |
Definition at line 64 of file FileChooser.hpp.
|
private |
Definition at line 66 of file FileChooser.hpp.
|
private |
Definition at line 59 of file FileChooser.hpp.
|
staticconstexprprivate |
Definition at line 56 of file FileChooser.hpp.
|
private |
Definition at line 58 of file FileChooser.hpp.
|
private |
Definition at line 60 of file FileChooser.hpp.
|
private |
Definition at line 63 of file FileChooser.hpp.
|
private |
Definition at line 62 of file FileChooser.hpp.
|
private |
Definition at line 65 of file FileChooser.hpp.