mirror of https://github.com/bsnes-emu/bsnes.git
30 lines
621 B
C++
30 lines
621 B
C++
#include "../tomoko.hpp"
|
|
#include "cheat-database.cpp"
|
|
#include "cheat-editor.cpp"
|
|
#include "state-manager.cpp"
|
|
#include "manifest-viewer.cpp"
|
|
unique_pointer<CheatDatabase> cheatDatabase;
|
|
unique_pointer<ToolsManager> toolsManager;
|
|
|
|
ToolsManager::ToolsManager() {
|
|
toolsManager = this;
|
|
|
|
layout.setMargin(5);
|
|
|
|
setTitle("Tools");
|
|
setSize({600, 405});
|
|
setAlignment({1.0, 1.0});
|
|
|
|
onSize([&] {
|
|
cheatEditor.cheatList.resizeColumns();
|
|
stateManager.stateList.resizeColumns();
|
|
});
|
|
}
|
|
|
|
auto ToolsManager::show(uint tool) -> void {
|
|
panel.item(tool)->setSelected();
|
|
setVisible();
|
|
setFocused();
|
|
doSize();
|
|
}
|