added emote button and text length label
This commit is contained in:
@@ -9,6 +9,8 @@ namespace chatterino {
|
||||
namespace settings {
|
||||
class BoolSetting : public Setting
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
BoolSetting(const QString &name, bool defaultValue)
|
||||
: Setting(name)
|
||||
|
||||
@@ -10,6 +10,8 @@ namespace settings {
|
||||
|
||||
class FloatSetting : public Setting
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
FloatSetting(const QString &name, qreal defaultValue,
|
||||
qreal minValue = std::numeric_limits<qreal>::min(),
|
||||
|
||||
@@ -9,6 +9,8 @@ namespace chatterino {
|
||||
namespace settings {
|
||||
class IntSetting : public Setting
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
IntSetting(const QString &name, int defaultValue)
|
||||
: Setting(name)
|
||||
|
||||
+3
-1
@@ -7,8 +7,10 @@
|
||||
namespace chatterino {
|
||||
namespace settings {
|
||||
|
||||
class Setting
|
||||
class Setting : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Setting(const QString &name)
|
||||
: name(name)
|
||||
|
||||
@@ -31,7 +31,7 @@ BoolSetting Settings::enableGifAnimations("", true);
|
||||
BoolSetting Settings::enableGifs("", true);
|
||||
BoolSetting Settings::inlineWhispers("", true);
|
||||
BoolSetting Settings::windowTopMost("", true);
|
||||
BoolSetting Settings::compactTabs("", false);
|
||||
BoolSetting Settings::hideTabX("", false);
|
||||
|
||||
QSettings Settings::settings(
|
||||
QStandardPaths::writableLocation(QStandardPaths::AppDataLocation),
|
||||
|
||||
+30
-30
@@ -71,7 +71,7 @@ private:
|
||||
settingsItems.push_back(&enableGifs);
|
||||
settingsItems.push_back(&inlineWhispers);
|
||||
settingsItems.push_back(&windowTopMost);
|
||||
settingsItems.push_back(&compactTabs);
|
||||
settingsItems.push_back(&hideTabX);
|
||||
}
|
||||
|
||||
static QSettings settings;
|
||||
@@ -91,135 +91,135 @@ private:
|
||||
|
||||
// settings
|
||||
public:
|
||||
static StringSetting
|
||||
static StringSetting &
|
||||
getTheme()
|
||||
{
|
||||
return Settings::theme;
|
||||
}
|
||||
static StringSetting
|
||||
static StringSetting &
|
||||
getUser()
|
||||
{
|
||||
return Settings::user;
|
||||
}
|
||||
static FloatSetting
|
||||
static FloatSetting &
|
||||
getEmoteScale()
|
||||
{
|
||||
return Settings::emoteScale;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getScaleEmotesByLineHeight()
|
||||
{
|
||||
return Settings::scaleEmotesByLineHeight;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getShowTimestamps()
|
||||
{
|
||||
return Settings::showTimestamps;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getShowTimestampSeconds()
|
||||
{
|
||||
return Settings::showTimestampSeconds;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getAllowDouplicateMessages()
|
||||
{
|
||||
return Settings::allowDouplicateMessages;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getLinksDoubleClickOnly()
|
||||
{
|
||||
return Settings::linksDoubleClickOnly;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getHideEmptyInput()
|
||||
{
|
||||
return Settings::hideEmptyInput;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getShowMessageLength()
|
||||
{
|
||||
return Settings::showMessageLength;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getSeperateMessages()
|
||||
{
|
||||
return Settings::seperateMessages;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getMentionUsersWithAt()
|
||||
{
|
||||
return Settings::mentionUsersWithAt;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getAllowCommandsAtEnd()
|
||||
{
|
||||
return Settings::allowCommandsAtEnd;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getEnableHighlights()
|
||||
{
|
||||
return Settings::enableHighlights;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getEnableHighlightSound()
|
||||
{
|
||||
return Settings::enableHighlightSound;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getEnableHighlightTaskbar()
|
||||
{
|
||||
return Settings::enableHighlightTaskbar;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getCustomHighlightSound()
|
||||
{
|
||||
return Settings::customHighlightSound;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getEnableTwitchEmotes()
|
||||
{
|
||||
return Settings::enableTwitchEmotes;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getEnableBttvEmotes()
|
||||
{
|
||||
return Settings::enableBttvEmotes;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getEnableFFzEmotes()
|
||||
{
|
||||
return Settings::enableFFzEmotes;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getEnableEmojis()
|
||||
{
|
||||
return Settings::enableEmojis;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getEnableGifAnimations()
|
||||
{
|
||||
return Settings::enableGifAnimations;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getEnableGifs()
|
||||
{
|
||||
return Settings::enableGifs;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getInlineWhispers()
|
||||
{
|
||||
return Settings::inlineWhispers;
|
||||
}
|
||||
static BoolSetting
|
||||
static BoolSetting &
|
||||
getWindowTopMost()
|
||||
{
|
||||
return Settings::windowTopMost;
|
||||
}
|
||||
static BoolSetting
|
||||
getCompactTabs()
|
||||
static BoolSetting &
|
||||
getHideTabX()
|
||||
{
|
||||
return Settings::compactTabs;
|
||||
return Settings::hideTabX;
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -248,7 +248,7 @@ private:
|
||||
static BoolSetting enableGifs;
|
||||
static BoolSetting inlineWhispers;
|
||||
static BoolSetting windowTopMost;
|
||||
static BoolSetting compactTabs;
|
||||
static BoolSetting hideTabX;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,8 @@ namespace settings {
|
||||
|
||||
class StringSetting : public Setting
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
StringSetting(const QString &name, const QString &defaultValue)
|
||||
: Setting(name)
|
||||
|
||||
Reference in New Issue
Block a user