renamed classes AppearancePage and BahaviourPage

This commit is contained in:
fourtf 2018-07-03 17:40:15 +02:00
parent cd57b2b518
commit 3a9de8cb86
5 changed files with 18 additions and 18 deletions

View file

@ -82,8 +82,8 @@ void SettingsDialog::addTabs()
this->ui_.tabContainer->addSpacing(16); this->ui_.tabContainer->addSpacing(16);
this->addTab(new AppearancePage); this->addTab(new LookPage);
this->addTab(new BehaviourPage); this->addTab(new FeelPage);
this->ui_.tabContainer->addSpacing(16); this->ui_.tabContainer->addSpacing(16);

View file

@ -21,11 +21,11 @@
namespace chatterino { namespace chatterino {
BehaviourPage::BehaviourPage() FeelPage::FeelPage()
: SettingsPage("Feel", ":/images/behave.svg") : SettingsPage("Feel", ":/images/behave.svg")
{ {
auto app = getApp(); auto app = getApp();
LayoutCreator<BehaviourPage> layoutCreator(this); LayoutCreator<FeelPage> layoutCreator(this);
auto layout = layoutCreator.setLayoutType<QVBoxLayout>(); auto layout = layoutCreator.setLayoutType<QVBoxLayout>();
@ -113,7 +113,7 @@ BehaviourPage::BehaviourPage()
layout->addStretch(1); layout->addStretch(1);
} }
QSlider *BehaviourPage::createMouseScrollSlider() QSlider *FeelPage::createMouseScrollSlider()
{ {
auto app = getApp(); auto app = getApp();
auto slider = new QSlider(Qt::Horizontal); auto slider = new QSlider(Qt::Horizontal);

View file

@ -6,10 +6,10 @@
namespace chatterino { namespace chatterino {
class BehaviourPage : public SettingsPage class FeelPage : public SettingsPage
{ {
public: public:
BehaviourPage(); FeelPage();
private: private:
QSlider *createMouseScrollSlider(); QSlider *createMouseScrollSlider();

View file

@ -30,10 +30,10 @@
namespace chatterino { namespace chatterino {
AppearancePage::AppearancePage() LookPage::LookPage()
: SettingsPage("Look", ":/images/theme.svg") : SettingsPage("Look", ":/images/theme.svg")
{ {
LayoutCreator<AppearancePage> layoutCreator(this); LayoutCreator<LookPage> layoutCreator(this);
auto xd = layoutCreator.emplace<QVBoxLayout>().withoutMargin(); auto xd = layoutCreator.emplace<QVBoxLayout>().withoutMargin();
@ -59,7 +59,7 @@ AppearancePage::AppearancePage()
layout.addStretch(1); layout.addStretch(1);
} }
void AppearancePage::addApplicationGroup(QVBoxLayout &layout) void LookPage::addApplicationGroup(QVBoxLayout &layout)
{ {
auto box = LayoutCreator<QVBoxLayout>(&layout) auto box = LayoutCreator<QVBoxLayout>(&layout)
.emplace<QGroupBox>("Application") .emplace<QGroupBox>("Application")
@ -97,7 +97,7 @@ void AppearancePage::addApplicationGroup(QVBoxLayout &layout)
"", this->createCheckBox(SCROLL_NEWMSG, getSettings()->enableSmoothScrollingNewMessages)); "", this->createCheckBox(SCROLL_NEWMSG, getSettings()->enableSmoothScrollingNewMessages));
} }
void AppearancePage::addMessagesGroup(QVBoxLayout &layout) void LookPage::addMessagesGroup(QVBoxLayout &layout)
{ {
auto box = auto box =
LayoutCreator<QVBoxLayout>(&layout).emplace<QGroupBox>("Messages").emplace<QVBoxLayout>(); LayoutCreator<QVBoxLayout>(&layout).emplace<QGroupBox>("Messages").emplace<QVBoxLayout>();
@ -147,7 +147,7 @@ void AppearancePage::addMessagesGroup(QVBoxLayout &layout)
getSettings()->alternateMessageBackground)); getSettings()->alternateMessageBackground));
} }
void AppearancePage::addEmotesGroup(QVBoxLayout &layout) void LookPage::addEmotesGroup(QVBoxLayout &layout)
{ {
auto box = LayoutCreator<QVBoxLayout>(&layout) auto box = LayoutCreator<QVBoxLayout>(&layout)
.emplace<QGroupBox>("Emotes") .emplace<QGroupBox>("Emotes")
@ -205,7 +205,7 @@ void AppearancePage::addEmotesGroup(QVBoxLayout &layout)
} }
} }
ChannelPtr AppearancePage::createPreviewChannel() ChannelPtr LookPage::createPreviewChannel()
{ {
auto channel = ChannelPtr(new Channel("preview", Channel::Misc)); auto channel = ChannelPtr(new Channel("preview", Channel::Misc));
@ -235,7 +235,7 @@ ChannelPtr AppearancePage::createPreviewChannel()
return channel; return channel;
} }
QLayout *AppearancePage::createThemeColorChanger() QLayout *LookPage::createThemeColorChanger()
{ {
auto app = getApp(); auto app = getApp();
QHBoxLayout *layout = new QHBoxLayout; QHBoxLayout *layout = new QHBoxLayout;
@ -274,7 +274,7 @@ QLayout *AppearancePage::createThemeColorChanger()
return layout; return layout;
} }
QLayout *AppearancePage::createFontChanger() QLayout *LookPage::createFontChanger()
{ {
auto app = getApp(); auto app = getApp();
@ -314,7 +314,7 @@ QLayout *AppearancePage::createFontChanger()
return layout; return layout;
} }
QLayout *AppearancePage::createUiScaleSlider() QLayout *LookPage::createUiScaleSlider()
{ {
auto layout = new QHBoxLayout(); auto layout = new QHBoxLayout();
auto slider = new QSlider(Qt::Horizontal); auto slider = new QSlider(Qt::Horizontal);

View file

@ -10,10 +10,10 @@ class QVBoxLayout;
namespace chatterino { namespace chatterino {
class AppearancePage : public SettingsPage class LookPage : public SettingsPage
{ {
public: public:
AppearancePage(); LookPage();
void addApplicationGroup(QVBoxLayout &layout); void addApplicationGroup(QVBoxLayout &layout);
void addMessagesGroup(QVBoxLayout &layout); void addMessagesGroup(QVBoxLayout &layout);