Update to v094r23 release.
byuu says:
The library window is gone, and replaced with
hiro::BrowserWindow::openFolder(). This gives navigation capabilities to
game loading, and it also completes our slotted cart selection code. As
an added bonus, it's less code this way, too.
I also set the window size to consistent sizes between all emulated
systems, so that switching between SFC and GB don't cause the window
size to keep changing, and so that the scaling size is consistent (eg at
normal scale, GB @ 3x is closer to SNES @ 2x.) This means black borders
in GB/GBA mode, but it doesn't look that bad, and it's not like many
people ever use these modes anyway.
Finally, added the placeholder tabs for video, audio and timing. I don't
intend to add the timing calculator code to v095 (it might be better as
a separate tool), but I'll add the ability to set video/audio rates, at
least.
Glitch 1: despite selecting the first item in the BrowserDialog list, if
you press enter when the window appears, it doesn't activate the item
until you press an arrow key first.
Glitch 2: in Game Boy mode, if you set the 4x window size, it's not
honoring the full requested height because the viewport is smaller than
the window. 8+ years of trying to get GTK+ and Qt to simply set the god
damned window size I ask for, and I still can't get them to do it
reliably.
Remaining issues:
- finish configuration panels (video, audio, timing)
- fix ruby driver compilation on Windows
- add DIP switch selection window (NSS) [I may end up punting this one
to v096]
2015-05-30 11:39:09 +00:00
|
|
|
struct VideoSettings : TabFrameItem {
|
|
|
|
VideoSettings(TabFrame*);
|
|
|
|
|
|
|
|
VerticalLayout layout{this};
|
2015-06-15 22:26:47 +00:00
|
|
|
Label overscanMaskLabel{&layout, Size{~0, 0}};
|
|
|
|
HorizontalLayout horizontalMaskLayout{&layout, Size{~0, 0}};
|
|
|
|
Label horizontalMaskLabel{&horizontalMaskLayout, Size{80, 0}};
|
|
|
|
Label horizontalMaskValue{&horizontalMaskLayout, Size{80, 0}};
|
|
|
|
HorizontalSlider horizontalMaskSlider{&horizontalMaskLayout, Size{~0, 0}};
|
|
|
|
HorizontalLayout verticalMaskLayout{&layout, Size{~0, 0}};
|
|
|
|
Label verticalMaskLabel{&verticalMaskLayout, Size{80, 0}};
|
|
|
|
Label verticalMaskValue{&verticalMaskLayout, Size{80, 0}};
|
|
|
|
HorizontalSlider verticalMaskSlider{&verticalMaskLayout, Size{~0, 0}};
|
|
|
|
|
|
|
|
auto update() -> void;
|
Update to v094r23 release.
byuu says:
The library window is gone, and replaced with
hiro::BrowserWindow::openFolder(). This gives navigation capabilities to
game loading, and it also completes our slotted cart selection code. As
an added bonus, it's less code this way, too.
I also set the window size to consistent sizes between all emulated
systems, so that switching between SFC and GB don't cause the window
size to keep changing, and so that the scaling size is consistent (eg at
normal scale, GB @ 3x is closer to SNES @ 2x.) This means black borders
in GB/GBA mode, but it doesn't look that bad, and it's not like many
people ever use these modes anyway.
Finally, added the placeholder tabs for video, audio and timing. I don't
intend to add the timing calculator code to v095 (it might be better as
a separate tool), but I'll add the ability to set video/audio rates, at
least.
Glitch 1: despite selecting the first item in the BrowserDialog list, if
you press enter when the window appears, it doesn't activate the item
until you press an arrow key first.
Glitch 2: in Game Boy mode, if you set the 4x window size, it's not
honoring the full requested height because the viewport is smaller than
the window. 8+ years of trying to get GTK+ and Qt to simply set the god
damned window size I ask for, and I still can't get them to do it
reliably.
Remaining issues:
- finish configuration panels (video, audio, timing)
- fix ruby driver compilation on Windows
- add DIP switch selection window (NSS) [I may end up punting this one
to v096]
2015-05-30 11:39:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct AudioSettings : TabFrameItem {
|
|
|
|
AudioSettings(TabFrame*);
|
|
|
|
|
|
|
|
VerticalLayout layout{this};
|
2015-06-15 22:26:47 +00:00
|
|
|
HorizontalLayout controlLayout{&layout, Size{~0, 0}};
|
|
|
|
Label frequencyLabel{&controlLayout, Size{0, 0}};
|
|
|
|
ComboButton frequencyCombo{&controlLayout, Size{~0, 0}};
|
|
|
|
Label latencyLabel{&controlLayout, Size{0, 0}};
|
|
|
|
ComboButton latencyCombo{&controlLayout, Size{~0, 0}};
|
|
|
|
Label resamplerLabel{&controlLayout, Size{0, 0}};
|
|
|
|
ComboButton resamplerCombo{&controlLayout, Size{~0, 0}};
|
|
|
|
HorizontalLayout volumeLayout{&layout, Size{~0, 0}};
|
|
|
|
Label volumeLabel{&volumeLayout, Size{80, 0}};
|
|
|
|
Label volumeValue{&volumeLayout, Size{80, 0}};
|
|
|
|
HorizontalSlider volumeSlider{&volumeLayout, Size{~0, 0}};
|
|
|
|
|
|
|
|
auto update() -> void;
|
|
|
|
auto updateVolume() -> void;
|
Update to v094r23 release.
byuu says:
The library window is gone, and replaced with
hiro::BrowserWindow::openFolder(). This gives navigation capabilities to
game loading, and it also completes our slotted cart selection code. As
an added bonus, it's less code this way, too.
I also set the window size to consistent sizes between all emulated
systems, so that switching between SFC and GB don't cause the window
size to keep changing, and so that the scaling size is consistent (eg at
normal scale, GB @ 3x is closer to SNES @ 2x.) This means black borders
in GB/GBA mode, but it doesn't look that bad, and it's not like many
people ever use these modes anyway.
Finally, added the placeholder tabs for video, audio and timing. I don't
intend to add the timing calculator code to v095 (it might be better as
a separate tool), but I'll add the ability to set video/audio rates, at
least.
Glitch 1: despite selecting the first item in the BrowserDialog list, if
you press enter when the window appears, it doesn't activate the item
until you press an arrow key first.
Glitch 2: in Game Boy mode, if you set the 4x window size, it's not
honoring the full requested height because the viewport is smaller than
the window. 8+ years of trying to get GTK+ and Qt to simply set the god
damned window size I ask for, and I still can't get them to do it
reliably.
Remaining issues:
- finish configuration panels (video, audio, timing)
- fix ruby driver compilation on Windows
- add DIP switch selection window (NSS) [I may end up punting this one
to v096]
2015-05-30 11:39:09 +00:00
|
|
|
};
|
|
|
|
|
2015-03-02 09:13:28 +00:00
|
|
|
struct InputSettings : TabFrameItem {
|
|
|
|
InputSettings(TabFrame*);
|
2015-05-23 05:29:18 +00:00
|
|
|
auto updateControls() -> void;
|
2015-03-02 09:13:28 +00:00
|
|
|
auto activeEmulator() -> InputEmulator&;
|
|
|
|
auto activePort() -> InputPort&;
|
|
|
|
auto activeDevice() -> InputDevice&;
|
|
|
|
auto reloadPorts() -> void;
|
|
|
|
auto reloadDevices() -> void;
|
|
|
|
auto reloadMappings() -> void;
|
|
|
|
auto refreshMappings() -> void;
|
|
|
|
auto assignMapping() -> void;
|
2015-12-21 09:16:47 +00:00
|
|
|
auto assignMouseInput(uint id) -> void;
|
|
|
|
auto inputEvent(shared_pointer<HID::Device> device, uint group, uint input, int16 oldValue, int16 newValue, bool allowMouseInput = false) -> void;
|
2015-03-02 09:13:28 +00:00
|
|
|
|
|
|
|
InputMapping* activeMapping = nullptr;
|
2016-01-08 09:23:46 +00:00
|
|
|
Timer timer;
|
2015-03-02 09:13:28 +00:00
|
|
|
|
|
|
|
VerticalLayout layout{this};
|
2016-01-15 10:28:51 +00:00
|
|
|
HorizontalLayout focusLayout{&layout, Size{~0, 0}};
|
|
|
|
Label focusLabel{&focusLayout, Size{0, 0}};
|
|
|
|
CheckLabel pauseEmulation{&focusLayout, Size{0, 0}};
|
|
|
|
CheckLabel allowInput{&focusLayout, Size{0, 0}};
|
2015-03-02 09:13:28 +00:00
|
|
|
HorizontalLayout selectionLayout{&layout, Size{~0, 0}};
|
|
|
|
ComboButton emulatorList{&selectionLayout, Size{~0, 0}};
|
|
|
|
ComboButton portList{&selectionLayout, Size{~0, 0}};
|
|
|
|
ComboButton deviceList{&selectionLayout, Size{~0, 0}};
|
|
|
|
ListView mappingList{&layout, Size{~0, ~0}};
|
|
|
|
HorizontalLayout controlLayout{&layout, Size{~0, 0}};
|
2015-05-23 05:29:18 +00:00
|
|
|
Button assignMouse1{&controlLayout, Size{100, 0}};
|
|
|
|
Button assignMouse2{&controlLayout, Size{100, 0}};
|
|
|
|
Button assignMouse3{&controlLayout, Size{100, 0}};
|
2015-03-02 09:13:28 +00:00
|
|
|
Widget spacer{&controlLayout, Size{~0, 0}};
|
|
|
|
Button resetButton{&controlLayout, Size{80, 0}};
|
|
|
|
Button eraseButton{&controlLayout, Size{80, 0}};
|
|
|
|
};
|
|
|
|
|
2015-04-13 11:16:33 +00:00
|
|
|
struct HotkeySettings : TabFrameItem {
|
|
|
|
HotkeySettings(TabFrame*);
|
|
|
|
auto reloadMappings() -> void;
|
|
|
|
auto refreshMappings() -> void;
|
|
|
|
auto assignMapping() -> void;
|
2015-12-21 09:16:47 +00:00
|
|
|
auto inputEvent(shared_pointer<HID::Device> device, uint group, uint input, int16 oldValue, int16 newValue) -> void;
|
2015-04-13 11:16:33 +00:00
|
|
|
|
|
|
|
InputMapping* activeMapping = nullptr;
|
2016-01-08 09:23:46 +00:00
|
|
|
Timer timer;
|
2015-04-13 11:16:33 +00:00
|
|
|
|
|
|
|
VerticalLayout layout{this};
|
|
|
|
ListView mappingList{&layout, Size{~0, ~0}};
|
|
|
|
HorizontalLayout controlLayout{&layout, Size{~0, 0}};
|
|
|
|
Widget spacer{&controlLayout, Size{~0, 0}};
|
Update to v094r22 release.
byuu says:
I fixed the hiro layout enable bug, so when you go to assign joypad
input, the window disables itself so your input doesn't mess with the
controls.
I added "reset" to the hotkeys, in case you feel like clearing all of
them at once.
I added device selection support and the ability to disable audio
synchronization (run > 60fps) to the ruby/OSS driver. This is exposed in
tomoko's configuration file.
I added checks to stringify so that assigning null char* strings to
nall::string won't cause crashes anymore (technically the crash was in
strlen(), which doesn't check for null strings, but whatever ... I'll do
the check myself.)
I hooked up BrowserDialog::folderSelect() to loading slotted media for
now. Tested it by loading a Game Boy game successfully through the Super
Game Boy. Definitely want to write a custom window for this though, that
looks more like the library dialog.
Remaining issues:
- finish slotted cart loader (SGB, BSX, ST)
- add DIP switch selection window (NSS) [I may end up punting this one
to v096]
- add more configuration panels (video, audio, timing)
2015-05-25 12:23:49 +00:00
|
|
|
Button resetButton{&controlLayout, Size{80, 0}};
|
2015-04-13 11:16:33 +00:00
|
|
|
Button eraseButton{&controlLayout, Size{80, 0}};
|
|
|
|
};
|
|
|
|
|
Update to v094r23 release.
byuu says:
The library window is gone, and replaced with
hiro::BrowserWindow::openFolder(). This gives navigation capabilities to
game loading, and it also completes our slotted cart selection code. As
an added bonus, it's less code this way, too.
I also set the window size to consistent sizes between all emulated
systems, so that switching between SFC and GB don't cause the window
size to keep changing, and so that the scaling size is consistent (eg at
normal scale, GB @ 3x is closer to SNES @ 2x.) This means black borders
in GB/GBA mode, but it doesn't look that bad, and it's not like many
people ever use these modes anyway.
Finally, added the placeholder tabs for video, audio and timing. I don't
intend to add the timing calculator code to v095 (it might be better as
a separate tool), but I'll add the ability to set video/audio rates, at
least.
Glitch 1: despite selecting the first item in the BrowserDialog list, if
you press enter when the window appears, it doesn't activate the item
until you press an arrow key first.
Glitch 2: in Game Boy mode, if you set the 4x window size, it's not
honoring the full requested height because the viewport is smaller than
the window. 8+ years of trying to get GTK+ and Qt to simply set the god
damned window size I ask for, and I still can't get them to do it
reliably.
Remaining issues:
- finish configuration panels (video, audio, timing)
- fix ruby driver compilation on Windows
- add DIP switch selection window (NSS) [I may end up punting this one
to v096]
2015-05-30 11:39:09 +00:00
|
|
|
struct TimingSettings : TabFrameItem {
|
|
|
|
TimingSettings(TabFrame*);
|
|
|
|
|
|
|
|
VerticalLayout layout{this};
|
2015-06-15 22:26:47 +00:00
|
|
|
HorizontalLayout videoLayout{&layout, Size{~0, 0}};
|
|
|
|
Label videoLabel{&videoLayout, Size{40, 0}};
|
|
|
|
LineEdit videoValue{&videoLayout, Size{80, 0}};
|
|
|
|
Button videoAssign{&videoLayout, Size{80, 0}};
|
|
|
|
HorizontalLayout audioLayout{&layout, Size{~0, 0}};
|
|
|
|
Label audioLabel{&audioLayout, Size{40, 0}};
|
|
|
|
LineEdit audioValue{&audioLayout, Size{80, 0}};
|
|
|
|
Button audioAssign{&audioLayout, Size{80, 0}};
|
|
|
|
|
|
|
|
auto update() -> void;
|
Update to v094r23 release.
byuu says:
The library window is gone, and replaced with
hiro::BrowserWindow::openFolder(). This gives navigation capabilities to
game loading, and it also completes our slotted cart selection code. As
an added bonus, it's less code this way, too.
I also set the window size to consistent sizes between all emulated
systems, so that switching between SFC and GB don't cause the window
size to keep changing, and so that the scaling size is consistent (eg at
normal scale, GB @ 3x is closer to SNES @ 2x.) This means black borders
in GB/GBA mode, but it doesn't look that bad, and it's not like many
people ever use these modes anyway.
Finally, added the placeholder tabs for video, audio and timing. I don't
intend to add the timing calculator code to v095 (it might be better as
a separate tool), but I'll add the ability to set video/audio rates, at
least.
Glitch 1: despite selecting the first item in the BrowserDialog list, if
you press enter when the window appears, it doesn't activate the item
until you press an arrow key first.
Glitch 2: in Game Boy mode, if you set the 4x window size, it's not
honoring the full requested height because the viewport is smaller than
the window. 8+ years of trying to get GTK+ and Qt to simply set the god
damned window size I ask for, and I still can't get them to do it
reliably.
Remaining issues:
- finish configuration panels (video, audio, timing)
- fix ruby driver compilation on Windows
- add DIP switch selection window (NSS) [I may end up punting this one
to v096]
2015-05-30 11:39:09 +00:00
|
|
|
};
|
|
|
|
|
2015-03-03 10:14:49 +00:00
|
|
|
struct AdvancedSettings : TabFrameItem {
|
|
|
|
AdvancedSettings(TabFrame*);
|
|
|
|
|
|
|
|
VerticalLayout layout{this};
|
Update to v094r13 release.
byuu says:
This version polishes up the input dialogue (reset, erase, disable
button when item not focused, split device ID from mapping name), adds
color emulation toggle, and add dummy menu items for remaining features
(to be filled in later.)
Also, it now compiles cleanly on Windows with GTK.
I didn't test with TDM-GCC-32, because for god knows what reason, the
32-bit version ships with headers from Windows 95 OSR2 only. So I built
with TDM-GCC-64 with arch=x86.
And uh, apparently, moving or resizing a window causes a Visual C++
runtime exception in the GTK+ DLLs. This doesn't happen with trance or
renshuu built with TDM-GCC-32. So, yeah, like I said, don't use -m32.
2015-03-07 10:21:47 +00:00
|
|
|
Label driverLabel{&layout, Size{~0, 0}, 2};
|
2015-03-03 10:14:49 +00:00
|
|
|
HorizontalLayout driverLayout{&layout, Size{~0, 0}};
|
|
|
|
Label videoLabel{&driverLayout, Size{0, 0}};
|
|
|
|
ComboButton videoDriver{&driverLayout, Size{~0, 0}};
|
|
|
|
Label audioLabel{&driverLayout, Size{0, 0}};
|
|
|
|
ComboButton audioDriver{&driverLayout, Size{~0, 0}};
|
|
|
|
Label inputLabel{&driverLayout, Size{0, 0}};
|
|
|
|
ComboButton inputDriver{&driverLayout, Size{~0, 0}};
|
2015-04-21 11:51:57 +00:00
|
|
|
Label libraryLabel{&layout, Size{~0, 0}, 2};
|
|
|
|
HorizontalLayout libraryLayout{&layout, Size{~0, 0}};
|
|
|
|
Label libraryPrefix{&libraryLayout, Size{0, 0}};
|
|
|
|
LineEdit libraryLocation{&libraryLayout, Size{~0, 0}};
|
|
|
|
Button libraryChange{&libraryLayout, Size{0, 0}};
|
2015-11-16 08:38:05 +00:00
|
|
|
CheckLabel ignoreManifests{&layout, Size{~0, 0}};
|
2015-03-03 10:14:49 +00:00
|
|
|
};
|
|
|
|
|
2015-03-02 09:13:28 +00:00
|
|
|
struct SettingsManager : Window {
|
|
|
|
SettingsManager();
|
2015-05-23 05:29:18 +00:00
|
|
|
auto setVisible(bool visible = true) -> SettingsManager&;
|
2015-12-21 09:16:47 +00:00
|
|
|
auto show(uint setting) -> void;
|
2015-03-02 09:13:28 +00:00
|
|
|
|
|
|
|
VerticalLayout layout{this};
|
2015-04-21 11:51:57 +00:00
|
|
|
TabFrame panel{&layout, Size{~0, ~0}};
|
Update to v094r23 release.
byuu says:
The library window is gone, and replaced with
hiro::BrowserWindow::openFolder(). This gives navigation capabilities to
game loading, and it also completes our slotted cart selection code. As
an added bonus, it's less code this way, too.
I also set the window size to consistent sizes between all emulated
systems, so that switching between SFC and GB don't cause the window
size to keep changing, and so that the scaling size is consistent (eg at
normal scale, GB @ 3x is closer to SNES @ 2x.) This means black borders
in GB/GBA mode, but it doesn't look that bad, and it's not like many
people ever use these modes anyway.
Finally, added the placeholder tabs for video, audio and timing. I don't
intend to add the timing calculator code to v095 (it might be better as
a separate tool), but I'll add the ability to set video/audio rates, at
least.
Glitch 1: despite selecting the first item in the BrowserDialog list, if
you press enter when the window appears, it doesn't activate the item
until you press an arrow key first.
Glitch 2: in Game Boy mode, if you set the 4x window size, it's not
honoring the full requested height because the viewport is smaller than
the window. 8+ years of trying to get GTK+ and Qt to simply set the god
damned window size I ask for, and I still can't get them to do it
reliably.
Remaining issues:
- finish configuration panels (video, audio, timing)
- fix ruby driver compilation on Windows
- add DIP switch selection window (NSS) [I may end up punting this one
to v096]
2015-05-30 11:39:09 +00:00
|
|
|
VideoSettings video{&panel};
|
|
|
|
AudioSettings audio{&panel};
|
2015-04-21 11:51:57 +00:00
|
|
|
InputSettings input{&panel};
|
|
|
|
HotkeySettings hotkeys{&panel};
|
Update to v094r23 release.
byuu says:
The library window is gone, and replaced with
hiro::BrowserWindow::openFolder(). This gives navigation capabilities to
game loading, and it also completes our slotted cart selection code. As
an added bonus, it's less code this way, too.
I also set the window size to consistent sizes between all emulated
systems, so that switching between SFC and GB don't cause the window
size to keep changing, and so that the scaling size is consistent (eg at
normal scale, GB @ 3x is closer to SNES @ 2x.) This means black borders
in GB/GBA mode, but it doesn't look that bad, and it's not like many
people ever use these modes anyway.
Finally, added the placeholder tabs for video, audio and timing. I don't
intend to add the timing calculator code to v095 (it might be better as
a separate tool), but I'll add the ability to set video/audio rates, at
least.
Glitch 1: despite selecting the first item in the BrowserDialog list, if
you press enter when the window appears, it doesn't activate the item
until you press an arrow key first.
Glitch 2: in Game Boy mode, if you set the 4x window size, it's not
honoring the full requested height because the viewport is smaller than
the window. 8+ years of trying to get GTK+ and Qt to simply set the god
damned window size I ask for, and I still can't get them to do it
reliably.
Remaining issues:
- finish configuration panels (video, audio, timing)
- fix ruby driver compilation on Windows
- add DIP switch selection window (NSS) [I may end up punting this one
to v096]
2015-05-30 11:39:09 +00:00
|
|
|
TimingSettings timing{&panel};
|
2015-04-21 11:51:57 +00:00
|
|
|
AdvancedSettings advanced{&panel};
|
2015-03-02 09:13:28 +00:00
|
|
|
|
|
|
|
StatusBar statusBar{this};
|
|
|
|
};
|
|
|
|
|
|
|
|
extern SettingsManager* settingsManager;
|