Add end-of-line spaces checker

This commit is contained in:
SirLynix
2024-01-26 10:43:00 +01:00
parent 63c61c0827
commit 6757de1be8
90 changed files with 170 additions and 126 deletions

View File

@@ -48,7 +48,7 @@ namespace Nz
EnableBackground(true);
}
void AbstractTextAreaWidget::Clear()
{
AbstractTextDrawer& textDrawer = GetTextDrawer();

View File

@@ -112,7 +112,7 @@ namespace Nz
const UInt8 s_defaultThemeScrollbarCenterImage[] = {
#include <Nazara/Widgets/Resources/DefaultTheme/ScrollbarCenter.png.h>
};
const UInt8 s_defaultThemeScrollbarGrabbedImage[] = {
#include <Nazara/Widgets/Resources/DefaultTheme/ScrollbarCenterGrabbed.png.h>
};

View File

@@ -12,7 +12,7 @@ namespace Nz
{
Layout();
}
void RichTextAreaWidget::AppendText(std::string_view text)
{
//m_text += text;

View File

@@ -26,7 +26,7 @@ namespace Nz
const WidgetTheme::Config& themeConfig = GetTheme()->GetConfig();
m_scrollCenterButton = Add<ScrollbarButtonWidget>();
m_scrollCenterButton->OnButtonReleased.Connect([this](const ScrollbarButtonWidget*)
{
m_style->OnButtonRelease();
@@ -40,7 +40,7 @@ namespace Nz
m_grabbedValue = GetValue();
m_style->OnButtonGrab();
});
m_scrollCenterButton->OnButtonMoved.Connect([this](const ScrollbarButtonWidget*, int x, int /*y*/)
{
int deltaX = x - m_grabbedPosition;
@@ -65,7 +65,7 @@ namespace Nz
m_grabbedValue = GetValue();
m_style->OnButtonGrab();
});
m_scrollCenterButton->OnButtonMoved.Connect([this](const ScrollbarButtonWidget* button, int /*x*/, int y)
{
int deltaY = SafeCast<int>(m_grabbedPosition - (button->GetPosition().y + y));
@@ -87,7 +87,7 @@ namespace Nz
{
SetValue(GetValue() - 0.1f * (GetMaximumValue() - GetMinimumValue()));
});
m_scrollNextButton->OnButtonTrigger.Connect([this](const ImageButtonWidget*)
{
SetValue(GetValue() + 0.1f * (GetMaximumValue() - GetMinimumValue()));
@@ -139,7 +139,7 @@ namespace Nz
{
m_style->OnHoverBegin();
}
void ScrollbarWidget::OnMouseExit()
{
m_style->OnHoverEnd();

View File

@@ -393,7 +393,7 @@ namespace Nz
{
m_textSprite->Update(drawer);
}
/************************************************************************/
SimpleProgressBarWidgetStyle::SimpleProgressBarWidgetStyle(ProgressBarWidget* progressBarWidget, StyleConfig config) :

View File

@@ -38,7 +38,7 @@ namespace Nz
Layout();
}
void TextAreaWidget::AppendText(std::string_view text)
{
m_text += text;
@@ -83,7 +83,7 @@ namespace Nz
m_text.clear();
OnTextChanged(this, m_text);
}
void TextAreaWidget::Erase(std::size_t firstGlyph, std::size_t lastGlyph)
{
if (firstGlyph > lastGlyph)