port-connector.hpp 869 B

1234567891011121314151617181920212223242526272829
  1. struct PortConnector : PanelItem {
  2. PortConnector(View*);
  3. auto show() -> void override;
  4. auto hide() -> void override;
  5. auto isMiaType() const -> bool;
  6. auto refresh(higan::Node::Port port) -> void;
  7. auto eventImport() -> void;
  8. auto eventActivate() -> void;
  9. auto eventChange() -> void;
  10. auto eventContext() -> void;
  11. auto eventBrowse() -> void;
  12. auto eventRename() -> void;
  13. auto eventRemove() -> void;
  14. PopupMenu contextMenu;
  15. MenuItem renameAction{&contextMenu};
  16. MenuItem removeAction{&contextMenu};
  17. Label locationLabel{this, Size{~0, 0}};
  18. ListView peripheralList{this, Size{~0, ~0}};
  19. HorizontalLayout controlLayout{this, Size{~0, 0}};
  20. Button importButton{&controlLayout, Size{80_sx, 0}};
  21. Widget controlSpacer{&controlLayout, Size{~0, 0}};
  22. Button acceptButton{&controlLayout, Size{80_sx, 0}};
  23. higan::Node::Port port;
  24. };