18class EventDistributor;
19class CommandController;
22class GlobalCommandController;
29class InputEventGenerator;
37class TclCallbackMessages;
41class CommandLineParser;
46class TestMachineCommand;
47class CreateMachineCommand;
48class DeleteMachineCommand;
49class ListMachinesCommand;
50class ActivateMachineCommand;
51class StoreMachineCommand;
52class RestoreMachineCommand;
53class GetClipboardCommand;
54class SetClipboardCommand;
58class SoftwareInfoTopic;
106 [[nodiscard]]
static std::vector<std::string>
getHwConfigs(std::string_view type);
121 using Board = std::shared_ptr<MSXMotherBoard>;
130 [](
auto& b) -> std::string_view {
return b->getMachineID(); });
133 void createMachineSetting();
134 void switchBoard(
Board newBoard);
135 void deleteBoard(
Board board);
141 int signalEvent(
const Event& event)
override;
147 [[nodiscard]]
bool doOneIteration();
157 std::unique_ptr<RTScheduler> rtScheduler;
158 std::unique_ptr<EventDistributor> eventDistributor;
159 std::unique_ptr<GlobalCliComm> globalCliComm;
160 std::unique_ptr<GlobalCommandController> globalCommandController;
161 std::unique_ptr<GlobalSettings> globalSettings;
162 std::unique_ptr<InputEventGenerator> inputEventGenerator;
163 std::unique_ptr<SymbolManager> symbolManager;
164 std::unique_ptr<ImGuiManager> imGuiManager;
165 std::unique_ptr<Display> display;
166 std::unique_ptr<Mixer> mixer;
167 std::unique_ptr<DiskFactory> diskFactory;
168 std::unique_ptr<DiskManipulator> diskManipulator;
169 std::unique_ptr<DiskChanger> virtualDrive;
170 std::unique_ptr<FilePool> filePool;
172 std::unique_ptr<EnumSetting<int>> machineSetting;
173 std::unique_ptr<UserSettings> userSettings;
174 std::unique_ptr<RomDatabase> softwareDatabase;
176 std::unique_ptr<AfterCommand> afterCommand;
177 std::unique_ptr<ExitCommand> exitCommand;
178 std::unique_ptr<MessageCommand> messageCommand;
179 std::unique_ptr<MachineCommand> machineCommand;
180 std::unique_ptr<TestMachineCommand> testMachineCommand;
181 std::unique_ptr<CreateMachineCommand> createMachineCommand;
182 std::unique_ptr<DeleteMachineCommand> deleteMachineCommand;
183 std::unique_ptr<ListMachinesCommand> listMachinesCommand;
184 std::unique_ptr<ActivateMachineCommand> activateMachineCommand;
185 std::unique_ptr<StoreMachineCommand> storeMachineCommand;
186 std::unique_ptr<RestoreMachineCommand> restoreMachineCommand;
187 std::unique_ptr<GetClipboardCommand> getClipboardCommand;
188 std::unique_ptr<SetClipboardCommand> setClipboardCommand;
189 std::unique_ptr<AviRecorder> aviRecordCommand;
190 std::unique_ptr<ConfigInfo> extensionInfo;
191 std::unique_ptr<ConfigInfo> machineInfo;
192 std::unique_ptr<RealTimeInfo> realTimeInfo;
193 std::unique_ptr<SoftwareInfoTopic> softwareInfoTopic;
194 std::unique_ptr<TclCallbackMessages> tclCallbackMessages;
203 std::vector<Board> boards;
206 int blockedCounter = 0;
208 bool fullyStarted =
false;
Represents the output window/screen of openMSX.
This class contains settings that are used by several other class (including some singletons).
Generic Gang-of-Four Observer class, templatized edition.
Contains the main loop of openMSX.
GlobalSettings & getGlobalSettings()
ImGuiManager & getImGuiManager()
MSXMotherBoard * getMotherBoard() const
AviRecorder & getRecorder() const
std::shared_ptr< MSXMotherBoard > Board
CommandController & getCommandController()
DiskManipulator & getDiskManipulator()
GlobalCommandController & getGlobalCommandController()
InfoCommand & getOpenMSXInfoCommand()
void switchMachine(const std::string &machine)
void run(CommandLineParser &parser)
Main loop.
bool isFullyStarted() const
EnumSetting< int > & getMachineSetting()
DiskFactory & getDiskFactory()
GlobalCliComm & getGlobalCliComm()
Board createEmptyMotherBoard()
RTScheduler & getRTScheduler()
Interpreter & getInterpreter()
const HotKey & getHotKey() const
void replaceBoard(MSXMotherBoard &oldBoard, Board newBoard)
std::string_view getMachineID() const
EventDistributor & getEventDistributor()
SymbolManager & getSymbolManager() const
const MsxChar2Unicode & getMsxChar2Unicode() const
static std::vector< std::string > getHwConfigs(std::string_view type)
InputEventGenerator & getInputEventGenerator()
RomDatabase & getSoftwareDatabase()
Board getMachine(std::string_view machineID) const
auto getMachineIDs() const
This file implemented 3 utility functions:
std::variant< KeyUpEvent, KeyDownEvent, MouseMotionEvent, MouseButtonUpEvent, MouseButtonDownEvent, MouseWheelEvent, JoystickAxisMotionEvent, JoystickHatEvent, JoystickButtonUpEvent, JoystickButtonDownEvent, OsdControlReleaseEvent, OsdControlPressEvent, WindowEvent, TextEvent, FileDropEvent, QuitEvent, FinishFrameEvent, CliCommandEvent, GroupEvent, BootEvent, FrameDrawnEvent, BreakEvent, SwitchRendererEvent, TakeReverseSnapshotEvent, AfterTimedEvent, MachineLoadedEvent, MachineActivatedEvent, MachineDeactivatedEvent, MidiInReaderEvent, MidiInWindowsEvent, MidiInCoreMidiEvent, MidiInCoreMidiVirtualEvent, MidiInALSAEvent, Rs232TesterEvent, Rs232NetEvent, ImGuiDelayedActionEvent, ImGuiActiveEvent > Event
constexpr auto transform(Range &&range, UnaryOp op)