mirror-chatterino2/src/commandmanager.cpp

43 lines
957 B
C++
Raw Normal View History

2017-11-12 17:21:50 +01:00
#include "commandmanager.hpp"
#include "windowmanager.hpp"
namespace chatterino {
void CommandManager::execCommand(QString command)
{
if (command == "selectr") {
selectSplitRelative(1, 0);
}
if (command == "selectl") {
selectSplitRelative(-1, 0);
}
if (command == "selectu") {
selectSplitRelative(0, -1);
}
if (command == "selectd") {
selectSplitRelative(0, 1);
}
if (command == "mover") {
moveSplitRelative(1, 0);
}
if (command == "movel") {
moveSplitRelative(-1, 0);
}
if (command == "moveu") {
moveSplitRelative(0, -1);
}
if (command == "moved") {
moveSplitRelative(0, 1);
}
}
void CommandManager::selectSplitRelative(int dx, int dy)
{
WindowManager::instance->getCurrentWindow().getNotebook().getSelectedPage();
}
void CommandManager::moveSplitRelative(int dx, int dy)
{
}
}