2018-06-26 17:42:35 +02:00
|
|
|
#include "KeyboardSettingsPage.hpp"
|
2018-01-24 15:34:04 +01:00
|
|
|
|
2018-06-26 14:09:39 +02:00
|
|
|
#include "util/LayoutCreator.hpp"
|
2018-06-05 19:39:18 +02:00
|
|
|
|
|
|
|
#include <QFormLayout>
|
|
|
|
#include <QLabel>
|
|
|
|
|
2018-01-24 15:34:04 +01:00
|
|
|
namespace chatterino {
|
2018-04-03 02:55:32 +02:00
|
|
|
|
2018-01-24 15:34:04 +01:00
|
|
|
KeyboardSettingsPage::KeyboardSettingsPage()
|
|
|
|
: SettingsPage("Keybindings", "")
|
|
|
|
{
|
2018-08-06 21:17:03 +02:00
|
|
|
auto layout =
|
|
|
|
LayoutCreator<KeyboardSettingsPage>(this).setLayoutType<QVBoxLayout>();
|
2018-06-05 19:39:18 +02:00
|
|
|
|
|
|
|
auto form = layout.emplace<QFormLayout>();
|
|
|
|
|
|
|
|
form->addRow(new QLabel("Hold Ctrl"), new QLabel("Show resize handles"));
|
2018-08-06 21:17:03 +02:00
|
|
|
form->addRow(new QLabel("Hold Ctrl + Alt"),
|
|
|
|
new QLabel("Show split overlay"));
|
2018-06-05 19:39:18 +02:00
|
|
|
|
|
|
|
form->addItem(new QSpacerItem(16, 16));
|
|
|
|
form->addRow(new QLabel("Ctrl + T"), new QLabel("Create new split"));
|
|
|
|
form->addRow(new QLabel("Ctrl + W"), new QLabel("Close current split"));
|
|
|
|
|
|
|
|
form->addRow(new QLabel("Ctrl + Shift + T"), new QLabel("Create new tab"));
|
2018-08-06 21:17:03 +02:00
|
|
|
form->addRow(new QLabel("Ctrl + Shift + W"),
|
|
|
|
new QLabel("Close current tab"));
|
2018-06-05 19:39:18 +02:00
|
|
|
|
|
|
|
form->addItem(new QSpacerItem(16, 16));
|
2018-08-06 21:17:03 +02:00
|
|
|
form->addRow(new QLabel("Ctrl + 1/2/3/..."),
|
|
|
|
new QLabel("Select tab 1/2/3/..."));
|
2018-06-05 19:39:18 +02:00
|
|
|
form->addRow(new QLabel("Ctrl + Tab"), new QLabel("Select next tab"));
|
2018-08-06 21:17:03 +02:00
|
|
|
form->addRow(new QLabel("Ctrl + Shift + Tab"),
|
|
|
|
new QLabel("Select previous tab"));
|
2018-06-05 19:39:18 +02:00
|
|
|
|
|
|
|
form->addRow(new QLabel("Alt + Left/Up/Right/Down"),
|
|
|
|
new QLabel("Select split left/up/right/down"));
|
|
|
|
|
|
|
|
form->addItem(new QSpacerItem(16, 16));
|
|
|
|
form->addRow(new QLabel("Ctrl + R"), new QLabel("Change channel"));
|
2018-08-06 21:17:03 +02:00
|
|
|
form->addRow(new QLabel("Ctrl + F"),
|
|
|
|
new QLabel("Search in current channel"));
|
2018-09-30 18:55:41 +02:00
|
|
|
form->addRow(new QLabel("Ctrl + E"), new QLabel("Open Emote menu"));
|
2018-01-24 15:34:04 +01:00
|
|
|
}
|
2018-04-03 02:55:32 +02:00
|
|
|
|
2018-01-24 15:34:04 +01:00
|
|
|
} // namespace chatterino
|