2018-01-23 23:10:27 +01:00
|
|
|
#include "specialchannelspage.hpp"
|
|
|
|
|
|
|
|
#include "singletons/settingsmanager.hpp"
|
|
|
|
#include "util/layoutcreator.hpp"
|
|
|
|
|
|
|
|
#include <QGroupBox>
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
namespace widgets {
|
|
|
|
namespace settingspages {
|
|
|
|
SpecialChannelsPage::SpecialChannelsPage()
|
|
|
|
: SettingsPage("Special channels", "")
|
|
|
|
{
|
2018-02-04 16:33:46 +01:00
|
|
|
singletons::SettingManager &settings = singletons::SettingManager::getInstance();
|
2018-01-23 23:10:27 +01:00
|
|
|
util::LayoutCreator<SpecialChannelsPage> layoutCreator(this);
|
|
|
|
auto layout = layoutCreator.setLayoutType<QVBoxLayout>();
|
|
|
|
|
|
|
|
auto mentions = layout.emplace<QGroupBox>("Mentions channel").setLayoutType<QVBoxLayout>();
|
|
|
|
{
|
|
|
|
mentions.emplace<QLabel>("Join /mentions to view your mentions.");
|
|
|
|
}
|
|
|
|
|
2018-02-04 16:33:46 +01:00
|
|
|
auto whispers = layout.emplace<QGroupBox>("Whispers").setLayoutType<QVBoxLayout>();
|
|
|
|
{
|
|
|
|
whispers.emplace<QLabel>("Join /whispers to view your mentions.");
|
|
|
|
whispers.append(this->createCheckBox("Show whispers inline", settings.inlineWhispers));
|
|
|
|
}
|
|
|
|
|
2018-01-23 23:10:27 +01:00
|
|
|
layout->addStretch(1);
|
|
|
|
}
|
|
|
|
} // namespace settingspages
|
|
|
|
} // namespace widgets
|
|
|
|
} // namespace chatterino
|