2019-01-01 23:52:08 +00:00
|
|
|
#if defined(Hiro_TreeView)
|
|
|
|
struct mTreeView : mWidget {
|
|
|
|
Declare(TreeView)
|
|
|
|
using mObject::remove;
|
|
|
|
|
2019-09-16 18:37:03 +00:00
|
|
|
auto activation() const -> Mouse::Click;
|
2019-01-01 23:52:08 +00:00
|
|
|
auto append(sTreeViewItem item) -> type&;
|
|
|
|
auto backgroundColor() const -> Color;
|
Update to bsnes v107.1 release.
byuu says:
Don't let the point release fool you, there are many significant changes in this
release. I will be keeping bsnes releases using a point system until the new
higan release is ready.
Changelog:
- GUI: added high DPI support
- GUI: fixed the state manager image preview
- Windows: added a new waveOut driver with support for dynamic rate control
- Windows: corrected the XAudio 2.1 dynamic rate control support [BearOso]
- Windows: corrected the Direct3D 9.0 fullscreen exclusive window centering
- Windows: fixed XInput controller support on Windows 10
- SFC: added high-level emulation for the DSP1, DSP2, DSP4, ST010, and Cx4
coprocessors
- SFC: fixed a slight rendering glitch in the intro to Megalomania
If the coprocessor firmware is missing, bsnes will fallback on HLE where it is
supported, which is everything other than SD Gundam GX and the two Hayazashi
Nidan Morita Shougi games.
The Windows dynamic rate control works best with Direct3D in fullscreen
exclusive mode. I recommend the waveOut driver over the XAudio 2.1 driver, as it
is not possible to target a single XAudio2 version on all Windows OS releases.
The waveOut driver should work everywhere out of the box.
Note that with DRC, the synchronization source is your monitor, so you will
want to be running at 60hz (NTSC) or 50hz (PAL). If you have an adaptive sync
monitor, you should instead use the WASAPI (exclusive) or ASIO audio driver.
2019-04-09 01:16:30 +00:00
|
|
|
auto collapse(bool recursive = true) -> type&;
|
2019-01-01 23:52:08 +00:00
|
|
|
auto doActivate() const -> void;
|
|
|
|
auto doChange() const -> void;
|
|
|
|
auto doContext() const -> void;
|
|
|
|
auto doToggle(sTreeViewItem item) const -> void;
|
Update to bsnes v107.1 release.
byuu says:
Don't let the point release fool you, there are many significant changes in this
release. I will be keeping bsnes releases using a point system until the new
higan release is ready.
Changelog:
- GUI: added high DPI support
- GUI: fixed the state manager image preview
- Windows: added a new waveOut driver with support for dynamic rate control
- Windows: corrected the XAudio 2.1 dynamic rate control support [BearOso]
- Windows: corrected the Direct3D 9.0 fullscreen exclusive window centering
- Windows: fixed XInput controller support on Windows 10
- SFC: added high-level emulation for the DSP1, DSP2, DSP4, ST010, and Cx4
coprocessors
- SFC: fixed a slight rendering glitch in the intro to Megalomania
If the coprocessor firmware is missing, bsnes will fallback on HLE where it is
supported, which is everything other than SD Gundam GX and the two Hayazashi
Nidan Morita Shougi games.
The Windows dynamic rate control works best with Direct3D in fullscreen
exclusive mode. I recommend the waveOut driver over the XAudio 2.1 driver, as it
is not possible to target a single XAudio2 version on all Windows OS releases.
The waveOut driver should work everywhere out of the box.
Note that with DRC, the synchronization source is your monitor, so you will
want to be running at 60hz (NTSC) or 50hz (PAL). If you have an adaptive sync
monitor, you should instead use the WASAPI (exclusive) or ASIO audio driver.
2019-04-09 01:16:30 +00:00
|
|
|
auto expand(bool recursive = true) -> type&;
|
2019-01-01 23:52:08 +00:00
|
|
|
auto foregroundColor() const -> Color;
|
|
|
|
auto item(const string& path) const -> TreeViewItem;
|
|
|
|
auto itemCount() const -> uint;
|
|
|
|
auto items() const -> vector<TreeViewItem>;
|
|
|
|
auto onActivate(const function<void ()>& callback = {}) -> type&;
|
|
|
|
auto onChange(const function<void ()>& callback = {}) -> type&;
|
|
|
|
auto onContext(const function<void ()>& callback = {}) -> type&;
|
|
|
|
auto onToggle(const function<void (sTreeViewItem)>& callback = {}) -> type&;
|
|
|
|
auto remove(sTreeViewItem item) -> type&;
|
|
|
|
auto reset() -> type&;
|
2019-07-07 09:44:09 +00:00
|
|
|
auto selectNone() -> type&;
|
2019-01-01 23:52:08 +00:00
|
|
|
auto selected() const -> TreeViewItem;
|
2019-09-16 18:37:03 +00:00
|
|
|
auto setActivation(Mouse::Click activation = Mouse::Click::Double) -> type&;
|
2019-01-01 23:52:08 +00:00
|
|
|
auto setBackgroundColor(Color color = {}) -> type&;
|
|
|
|
auto setForegroundColor(Color color = {}) -> type&;
|
|
|
|
auto setParent(mObject* parent = nullptr, int offset = -1) -> type&;
|
|
|
|
|
|
|
|
//private:
|
|
|
|
struct State {
|
2019-09-16 18:37:03 +00:00
|
|
|
Mouse::Click activation = Mouse::Click::Double;
|
2019-01-01 23:52:08 +00:00
|
|
|
Color backgroundColor;
|
|
|
|
Color foregroundColor;
|
|
|
|
vector<sTreeViewItem> items;
|
|
|
|
function<void ()> onActivate;
|
|
|
|
function<void ()> onChange;
|
|
|
|
function<void ()> onContext;
|
|
|
|
function<void (sTreeViewItem)> onToggle;
|
|
|
|
string selectedPath;
|
|
|
|
} state;
|
|
|
|
|
|
|
|
auto destruct() -> void override;
|
|
|
|
};
|
|
|
|
#endif
|