mirror-chatterino2/src/commandmanager.cpp

45 lines
1 KiB
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)
{
2017-12-14 00:25:06 +01:00
// if (command == "selectr") {
// selectSplitRelative(false, 1);
// }
// if (command == "selectl") {
// selectSplitRelative(false, -1);
// }
// if (command == "selectu") {
// selectSplitRelative(true, -1);
// }
// if (command == "selectd") {
// selectSplitRelative(true, 1);
// }
2017-11-12 17:21:50 +01:00
if (command == "mover") {
2017-12-14 00:25:06 +01:00
moveSplitRelative(false, 1);
2017-11-12 17:21:50 +01:00
}
if (command == "movel") {
2017-12-14 00:25:06 +01:00
moveSplitRelative(false, -1);
2017-11-12 17:21:50 +01:00
}
if (command == "moveu") {
2017-12-14 00:25:06 +01:00
moveSplitRelative(true, -1);
2017-11-12 17:21:50 +01:00
}
if (command == "moved") {
2017-12-14 00:25:06 +01:00
moveSplitRelative(true, 1);
2017-11-12 17:21:50 +01:00
}
}
2017-12-14 00:25:06 +01:00
//void CommandManager::selectSplitRelative(bool vertical, int offset)
//{
// SplitContainer *container = WindowManager::instance->
//
// if (vertical)
//}
2017-11-12 17:21:50 +01:00
void CommandManager::moveSplitRelative(int dx, int dy)
{
}
}