2019-09-08 22:27:57 +02:00
|
|
|
#include "KeyboardSettingsPage.hpp"
|
|
|
|
|
|
|
|
#include "util/LayoutCreator.hpp"
|
|
|
|
|
|
|
|
#include <QFormLayout>
|
|
|
|
#include <QLabel>
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
KeyboardSettingsPage::KeyboardSettingsPage()
|
|
|
|
{
|
|
|
|
auto layout =
|
|
|
|
LayoutCreator<KeyboardSettingsPage>(this).setLayoutType<QVBoxLayout>();
|
|
|
|
|
2020-08-13 20:48:47 +02:00
|
|
|
auto scroll = layout.emplace<QScrollArea>();
|
|
|
|
|
|
|
|
this->setStyleSheet("QLabel, #container { background: #333 }");
|
|
|
|
|
|
|
|
auto form = new QFormLayout(this);
|
|
|
|
scroll->setWidgetResizable(true);
|
|
|
|
auto widget = new QWidget();
|
|
|
|
widget->setLayout(form);
|
|
|
|
widget->setObjectName("container");
|
|
|
|
scroll->setWidget(widget);
|
2019-09-08 22:27:57 +02:00
|
|
|
|
|
|
|
form->addRow(new QLabel("Hold Ctrl"), new QLabel("Show resize handles"));
|
|
|
|
form->addRow(new QLabel("Hold Ctrl + Alt"),
|
|
|
|
new QLabel("Show split overlay"));
|
|
|
|
|
2020-07-05 14:05:39 +02:00
|
|
|
form->addItem(new QSpacerItem(16, 16));
|
|
|
|
form->addRow(new QLabel("Ctrl + ScrollDown/-"), new QLabel("Zoom out"));
|
|
|
|
form->addRow(new QLabel("Ctrl + ScrollUp/+"), new QLabel("Zoom in"));
|
|
|
|
form->addRow(new QLabel("Ctrl + 0"), new QLabel("Reset zoom size"));
|
|
|
|
|
2019-09-08 22:27:57 +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"));
|
2020-08-13 18:02:23 +02:00
|
|
|
form->addRow(new QLabel("Ctrl + N"),
|
|
|
|
new QLabel("Open current split as a popup"));
|
2020-08-13 20:48:47 +02:00
|
|
|
form->addRow(new QLabel("Ctrl + K"), new QLabel("Jump to split"));
|
2020-07-05 14:05:39 +02:00
|
|
|
form->addRow(new QLabel("Ctrl + G"),
|
|
|
|
new QLabel("Reopen last closed split"));
|
2019-09-08 22:27:57 +02:00
|
|
|
|
|
|
|
form->addRow(new QLabel("Ctrl + Shift + T"), new QLabel("Create new tab"));
|
|
|
|
form->addRow(new QLabel("Ctrl + Shift + W"),
|
|
|
|
new QLabel("Close current tab"));
|
2020-02-10 17:26:51 +01:00
|
|
|
form->addRow(new QLabel("Ctrl + H"),
|
|
|
|
new QLabel("Hide/Show similar messages (See General->R9K)"));
|
2019-09-08 22:27:57 +02:00
|
|
|
|
|
|
|
form->addItem(new QSpacerItem(16, 16));
|
|
|
|
form->addRow(new QLabel("Ctrl + 1/2/3/..."),
|
|
|
|
new QLabel("Select tab 1/2/3/..."));
|
2020-07-05 14:05:39 +02:00
|
|
|
form->addRow(new QLabel("Ctrl + 9"), new QLabel("Select last tab"));
|
2019-09-08 22:27:57 +02:00
|
|
|
form->addRow(new QLabel("Ctrl + Tab"), new QLabel("Select next tab"));
|
|
|
|
form->addRow(new QLabel("Ctrl + Shift + Tab"),
|
|
|
|
new QLabel("Select previous tab"));
|
|
|
|
|
2020-07-05 14:05:39 +02:00
|
|
|
form->addRow(new QLabel("Alt + ←/↑/→/↓"),
|
|
|
|
new QLabel("Select left/upper/right/bottom split"));
|
2019-09-08 22:27:57 +02:00
|
|
|
|
|
|
|
form->addItem(new QSpacerItem(16, 16));
|
|
|
|
form->addRow(new QLabel("Ctrl + R"), new QLabel("Change channel"));
|
|
|
|
form->addRow(new QLabel("Ctrl + F"),
|
|
|
|
new QLabel("Search in current channel"));
|
|
|
|
form->addRow(new QLabel("Ctrl + E"), new QLabel("Open Emote menu"));
|
|
|
|
form->addRow(new QLabel("Ctrl + P"), new QLabel("Open Settings menu"));
|
|
|
|
form->addRow(new QLabel("F5"),
|
|
|
|
new QLabel("Reload subscriber and channel emotes"));
|
2020-10-18 13:15:47 +02:00
|
|
|
|
|
|
|
form->addItem(new QSpacerItem(16, 16));
|
|
|
|
form->addRow(new QLabel("PageUp"), new QLabel("Scroll up"));
|
|
|
|
form->addRow(new QLabel("PageDown"), new QLabel("Scroll down"));
|
2019-09-08 22:27:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace chatterino
|