mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
43 lines
957 B
C++
43 lines
957 B
C++
|
#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)
|
||
|
{
|
||
|
}
|
||
|
}
|