mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
45 lines
1 KiB
C++
45 lines
1 KiB
C++
#include "commandmanager.hpp"
|
|
#include "windowmanager.hpp"
|
|
|
|
namespace chatterino {
|
|
void CommandManager::execCommand(QString command)
|
|
{
|
|
// if (command == "selectr") {
|
|
// selectSplitRelative(false, 1);
|
|
// }
|
|
// if (command == "selectl") {
|
|
// selectSplitRelative(false, -1);
|
|
// }
|
|
// if (command == "selectu") {
|
|
// selectSplitRelative(true, -1);
|
|
// }
|
|
// if (command == "selectd") {
|
|
// selectSplitRelative(true, 1);
|
|
// }
|
|
|
|
if (command == "mover") {
|
|
moveSplitRelative(false, 1);
|
|
}
|
|
if (command == "movel") {
|
|
moveSplitRelative(false, -1);
|
|
}
|
|
if (command == "moveu") {
|
|
moveSplitRelative(true, -1);
|
|
}
|
|
if (command == "moved") {
|
|
moveSplitRelative(true, 1);
|
|
}
|
|
}
|
|
|
|
//void CommandManager::selectSplitRelative(bool vertical, int offset)
|
|
//{
|
|
// SplitContainer *container = WindowManager::instance->
|
|
//
|
|
// if (vertical)
|
|
//}
|
|
|
|
void CommandManager::moveSplitRelative(int dx, int dy)
|
|
{
|
|
}
|
|
}
|