mirror of https://github.com/bsnes-emu/bsnes.git
85 lines
3.3 KiB
C++
85 lines
3.3 KiB
C++
struct AboutWindow : Window {
|
|
AboutWindow();
|
|
|
|
VerticalLayout layout{this};
|
|
Canvas canvas{&layout, Size{399, 95}, 15};
|
|
HorizontalLayout informationLayout{&layout, Size{~0, 0}};
|
|
Label informationLeft{&informationLayout, Size{~0, 0}, 3};
|
|
Label informationRight{&informationLayout, Size{~0, 0}};
|
|
};
|
|
|
|
struct Presentation : Window {
|
|
Presentation();
|
|
auto updateEmulator() -> void;
|
|
auto resizeViewport() -> void;
|
|
auto toggleFullScreen() -> void;
|
|
auto draw(image logo = {}) -> void;
|
|
auto loadShaders() -> void;
|
|
|
|
MenuBar menuBar{this};
|
|
Menu libraryMenu{&menuBar};
|
|
vector<MenuItem*> loadBootableMedia;
|
|
MenuSeparator librarySeparator;
|
|
Menu systemMenu{&menuBar};
|
|
MenuItem powerSystem{&systemMenu};
|
|
MenuItem resetSystem{&systemMenu};
|
|
MenuSeparator systemMenuSeparatorPorts{&systemMenu};
|
|
Menu inputPort1{&systemMenu};
|
|
Menu inputPort2{&systemMenu};
|
|
Menu inputPort3{&systemMenu};
|
|
MenuSeparator systemMenuSeparatorUnload{&systemMenu};
|
|
MenuItem unloadSystem{&systemMenu};
|
|
Menu settingsMenu{&menuBar};
|
|
Menu videoScaleMenu{&settingsMenu};
|
|
MenuRadioItem videoScaleSmall{&videoScaleMenu};
|
|
MenuRadioItem videoScaleMedium{&videoScaleMenu};
|
|
MenuRadioItem videoScaleLarge{&videoScaleMenu};
|
|
Group videoScales{&videoScaleSmall, &videoScaleMedium, &videoScaleLarge};
|
|
MenuSeparator videoScaleSeparator{&videoScaleMenu};
|
|
MenuCheckItem aspectCorrection{&videoScaleMenu};
|
|
Menu videoEmulationMenu{&settingsMenu};
|
|
MenuCheckItem blurEmulation{&videoEmulationMenu};
|
|
MenuCheckItem colorEmulation{&videoEmulationMenu};
|
|
MenuCheckItem scanlineEmulation{&videoEmulationMenu};
|
|
MenuCheckItem maskOverscan{&videoEmulationMenu};
|
|
Menu videoShaderMenu{&settingsMenu};
|
|
MenuRadioItem videoShaderNone{&videoShaderMenu};
|
|
MenuRadioItem videoShaderBlur{&videoShaderMenu};
|
|
Group videoShaders{&videoShaderNone, &videoShaderBlur};
|
|
MenuSeparator videoSettingsSeparator{&settingsMenu};
|
|
MenuCheckItem synchronizeVideo{&settingsMenu};
|
|
MenuCheckItem synchronizeAudio{&settingsMenu};
|
|
MenuCheckItem muteAudio{&settingsMenu};
|
|
MenuCheckItem showStatusBar{&settingsMenu};
|
|
MenuSeparator showConfigurationSeparator{&settingsMenu};
|
|
MenuItem showConfiguration{&settingsMenu};
|
|
Menu toolsMenu{&menuBar};
|
|
Menu saveStateMenu{&toolsMenu};
|
|
MenuItem saveSlot1{&saveStateMenu};
|
|
MenuItem saveSlot2{&saveStateMenu};
|
|
MenuItem saveSlot3{&saveStateMenu};
|
|
MenuItem saveSlot4{&saveStateMenu};
|
|
MenuItem saveSlot5{&saveStateMenu};
|
|
Menu loadStateMenu{&toolsMenu};
|
|
MenuItem loadSlot1{&loadStateMenu};
|
|
MenuItem loadSlot2{&loadStateMenu};
|
|
MenuItem loadSlot3{&loadStateMenu};
|
|
MenuItem loadSlot4{&loadStateMenu};
|
|
MenuItem loadSlot5{&loadStateMenu};
|
|
MenuSeparator toolsMenuSeparator{&toolsMenu};
|
|
MenuItem cheatEditor{&toolsMenu};
|
|
MenuItem stateManager{&toolsMenu};
|
|
MenuItem manifestViewer{&toolsMenu};
|
|
Menu helpMenu{&menuBar};
|
|
MenuItem documentation{&helpMenu};
|
|
MenuItem about{&helpMenu};
|
|
|
|
FixedLayout layout{this};
|
|
Viewport viewport{&layout, Geometry{0, 0, 1, 1}};
|
|
|
|
StatusBar statusBar{this};
|
|
};
|
|
|
|
extern unique_pointer<AboutWindow> aboutWindow;
|
|
extern unique_pointer<Presentation> presentation;
|