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