1//============================================================================
2//
3// SSSS tt lll lll
4// SS SS tt ll ll
5// SS tttttt eeee ll ll aaaa
6// SSSS tt ee ee ll ll aa
7// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emulator"
8// SS SS tt ee ll ll aa aa
9// SSSS ttt eeeee llll llll aaaaa
10//
11// Copyright (c) 1995-2019 by Bradford W. Mott, Stephen Anthony
12// and the Stella Team
13//
14// See the file "License.txt" for information on usage and redistribution of
15// this file, and for a DISCLAIMER OF ALL WARRANTIES.
16//============================================================================
17
18#ifndef CARTRIDGEE0_WIDGET_HXX
19#define CARTRIDGEE0_WIDGET_HXX
20
21class CartridgeE0;
22class PopUpWidget;
23
24#include "CartDebugWidget.hxx"
25
26class CartridgeE0Widget : public CartDebugWidget
27{
28 public:
29 CartridgeE0Widget(GuiObject* boss, const GUI::Font& lfont,
30 const GUI::Font& nfont,
31 int x, int y, int w, int h,
32 CartridgeE0& cart);
33 virtual ~CartridgeE0Widget() = default;
34
35 private:
36 CartridgeE0& myCart;
37 PopUpWidget *mySlice0, *mySlice1, *mySlice2;
38
39 enum {
40 kSlice0Changed = 's0CH',
41 kSlice1Changed = 's1CH',
42 kSlice2Changed = 's2CH'
43 };
44
45 private:
46 void loadConfig() override;
47 void handleCommand(CommandSender* sender, int cmd, int data, int id) override;
48
49 string bankState() override;
50
51 // Following constructors and assignment operators not supported
52 CartridgeE0Widget() = delete;
53 CartridgeE0Widget(const CartridgeE0Widget&) = delete;
54 CartridgeE0Widget(CartridgeE0Widget&&) = delete;
55 CartridgeE0Widget& operator=(const CartridgeE0Widget&) = delete;
56 CartridgeE0Widget& operator=(CartridgeE0Widget&&) = delete;
57};
58
59#endif
60