2015-06-12 13:14:38 +00:00
|
|
|
namespace hiro {
|
2012-01-26 06:50:09 +00:00
|
|
|
|
2011-02-24 09:25:20 +00:00
|
|
|
struct pFont;
|
Update to v088r11 release.
byuu says:
Changelog:
- phoenix has added Window::setModal(bool modal = true);
- file dialog is now modal. This allows emulation cores to request data
and get it immediately before continuing the loading process
- save data is hooked up for most systems, still need to handle
subsystem slot saves (Sufami Turbo, basically.)
- toggle fullscreen key binding added (Alt+Enter for now. I think F11 is
probably better though, Enter is often mapped to game start button.)
- video scaling is in (center, scale, stretch), works the same in
windowed and fullscreen mode (stretch hides resize window option), all
in the settings menu now
- enough structure to map all saved paths for the browser and to load
BS-X slotted carts, BS-X carts, single Sufami Turbo carts
Caveats / Missing:
- Super Game Boy input doesn't work yet (due to change in callback
binding)
- doesn't load secondary Sufami Turbo slot yet
- BS-X BIOS isn't show the data pack games to load for some reason (ugh,
I hate the shit out of debugging BS-X stuff ...)
- need mute audio, sync audio+video toggle, save/load state menu and
quick keys, XML mapping information window
- need cheat editor and cheat database
- need state manager
- need to sort subsystems below main systems in load menu (basically
just see if media.slot.size() > 0)
- need video shaders (will probably leave off filters for the time being
... due to that 24/30-bit thing)
- need video adjustments (contrast etc, overscan masks)
- need audio adjustments (frequency, latency, resampler, volume,
per-system frequency)
- need driver selection and input focus policy (driver crash detection
would be nice too)
- need NSS DIP switch settings (that one will be really fun)
- need to save and load window geometry settings
- need to hook up controller selection (won't be fun), create a map to
hide controllers with no inputs to reassign
2012-05-03 12:36:47 +00:00
|
|
|
struct pObject;
|
2011-02-24 09:25:20 +00:00
|
|
|
struct pWindow;
|
|
|
|
struct pMenu;
|
|
|
|
struct pLayout;
|
|
|
|
struct pWidget;
|
|
|
|
|
2015-06-12 13:14:38 +00:00
|
|
|
struct AppMessage {
|
|
|
|
enum : unsigned {
|
|
|
|
None = WM_APP,
|
2016-05-04 10:07:13 +00:00
|
|
|
TableView_doPaint,
|
|
|
|
TableView_onActivate,
|
|
|
|
TableView_onChange,
|
2015-06-12 13:14:38 +00:00
|
|
|
};
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
2015-06-12 13:14:38 +00:00
|
|
|
using WindowProc = auto CALLBACK (*)(HWND, UINT, WPARAM, LPARAM) -> LRESULT;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-06-15 22:16:43 +00:00
|
|
|
static vector<wObject> windows;
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2015-06-12 13:14:38 +00:00
|
|
|
|
|
|
|
#define Declare(Name, Base) \
|
|
|
|
p##Name(m##Name& reference) : p##Base(reference) {} \
|
|
|
|
auto self() const -> m##Name& { return (m##Name&)reference; } \
|
|
|
|
auto state() const -> m##Name::State& { return self().state; } \
|
|
|
|
auto construct() -> void override; \
|
|
|
|
auto destruct() -> void override; \
|
|
|
|
auto reconstruct() -> void override { destruct(), construct(); } \
|
|
|
|
|
|
|
|
#include "font.hpp"
|
|
|
|
#include "desktop.hpp"
|
|
|
|
#include "monitor.hpp"
|
|
|
|
#include "keyboard.hpp"
|
|
|
|
#include "mouse.hpp"
|
|
|
|
#include "browser-window.hpp"
|
|
|
|
#include "message-window.hpp"
|
|
|
|
|
|
|
|
#include "object.hpp"
|
|
|
|
#include "group.hpp"
|
|
|
|
|
|
|
|
#include "timer.hpp"
|
|
|
|
#include "window.hpp"
|
|
|
|
#include "status-bar.hpp"
|
|
|
|
#include "menu-bar.hpp"
|
|
|
|
#include "popup-menu.hpp"
|
|
|
|
|
|
|
|
#include "action/action.hpp"
|
|
|
|
#include "action/menu.hpp"
|
|
|
|
#include "action/menu-separator.hpp"
|
|
|
|
#include "action/menu-item.hpp"
|
|
|
|
#include "action/menu-check-item.hpp"
|
|
|
|
#include "action/menu-radio-item.hpp"
|
|
|
|
|
|
|
|
#include "sizable.hpp"
|
|
|
|
#include "layout.hpp"
|
|
|
|
|
|
|
|
#include "widget/widget.hpp"
|
|
|
|
#include "widget/button.hpp"
|
|
|
|
#include "widget/canvas.hpp"
|
|
|
|
#include "widget/check-button.hpp"
|
|
|
|
#include "widget/check-label.hpp"
|
|
|
|
#include "widget/combo-button.hpp"
|
|
|
|
#include "widget/combo-button-item.hpp"
|
|
|
|
#include "widget/frame.hpp"
|
|
|
|
#include "widget/hex-edit.hpp"
|
2015-08-21 10:56:39 +00:00
|
|
|
#include "widget/horizontal-scroll-bar.hpp"
|
2015-06-12 13:14:38 +00:00
|
|
|
#include "widget/horizontal-slider.hpp"
|
|
|
|
#include "widget/label.hpp"
|
|
|
|
#include "widget/line-edit.hpp"
|
|
|
|
#include "widget/progress-bar.hpp"
|
|
|
|
#include "widget/radio-button.hpp"
|
|
|
|
#include "widget/radio-label.hpp"
|
|
|
|
#include "widget/tab-frame.hpp"
|
|
|
|
#include "widget/tab-frame-item.hpp"
|
2016-05-04 10:07:13 +00:00
|
|
|
#include "widget/table-view.hpp"
|
|
|
|
#include "widget/table-view-header.hpp"
|
|
|
|
#include "widget/table-view-column.hpp"
|
|
|
|
#include "widget/table-view-item.hpp"
|
|
|
|
#include "widget/table-view-cell.hpp"
|
2015-06-12 13:14:38 +00:00
|
|
|
#include "widget/text-edit.hpp"
|
2015-08-21 10:56:39 +00:00
|
|
|
#include "widget/vertical-scroll-bar.hpp"
|
2015-06-12 13:14:38 +00:00
|
|
|
#include "widget/vertical-slider.hpp"
|
|
|
|
#include "widget/viewport.hpp"
|
|
|
|
|
|
|
|
#include "application.hpp"
|
|
|
|
|
|
|
|
#undef Declare
|