| e8555c89 Andy McCall |
1 |
#ifndef IMGUI_WAVEVIEWER_HH |
| 2 |
#define IMGUI_WAVEVIEWER_HH |
| 3 |
|
| 4 |
#include "ImGuiPart.hh" |
| 5 |
#include <set> |
| 6 |
|
| 7 |
namespace openmsx { |
| 8 |
|
| 9 |
class ImGuiWaveViewer final : public ImGuiPart |
| 10 |
{ |
| 11 |
public: |
| 12 |
using ImGuiPart::ImGuiPart; |
| 13 |
|
| 14 |
[[nodiscard]] zstring_view iniName() const override { return "wave-viewer"; } |
| 15 |
void save(ImGuiTextBuffer& buf) override; |
| 16 |
void loadStart() override; |
| 17 |
void loadLine(std::string_view name, zstring_view value) override; |
| 18 |
void paint(MSXMotherBoard* motherBoard) override; |
| 19 |
|
| 20 |
public: |
| 21 |
bool show = false; |
| 22 |
|
| 23 |
private: |
| 24 |
static constexpr auto persistentElements = std::tuple{ |
| 25 |
PersistentElement{"show", &ImGuiWaveViewer::show} |
| 26 |
}; |
| 27 |
|
| 28 |
std::set<std::string, std::less<>> openChips; |
| 29 |
}; |
| 30 |
|
| 31 |
} |
| 32 |
|
| 33 |
#endif |