| 1 |
#ifndef IMGUI_CONNECTOR_HH |
| 2 |
#define IMGUI_CONNECTOR_HH |
| 3 |
|
| 4 |
#include "ImGuiPart.hh" |
| 5 |
|
| 6 |
namespace openmsx { |
| 7 |
|
| 8 |
class PluggingController; |
| 9 |
class Connector; |
| 10 |
class Pluggable; |
| 11 |
|
| 12 |
class ImGuiConnector final : public ImGuiPart |
| 13 |
{ |
| 14 |
public: |
| 15 |
using ImGuiPart::ImGuiPart; |
| 16 |
|
| 17 |
void showMenu(MSXMotherBoard* motherBoard) override; |
| 18 |
|
| 19 |
enum class Mode { |
| 20 |
COMBO, |
| 21 |
VIEW, |
| 22 |
SUBMENU |
| 23 |
}; |
| 24 |
void showPluggables(PluggingController& controller, Mode mode); |
| 25 |
|
| 26 |
private: |
| 27 |
void paintPluggableSelectables(PluggingController& controller, const Connector& connector); |
| 28 |
void paintImGuiExtra(Pluggable& pluggable); |
| 29 |
}; |
| 30 |
|
| 31 |
} |
| 32 |
|
| 33 |
#endif |