Add end-of-line spaces checker
This commit is contained in:
@@ -48,7 +48,7 @@ namespace Nz
|
||||
|
||||
EnableBackground(true);
|
||||
}
|
||||
|
||||
|
||||
void AbstractTextAreaWidget::Clear()
|
||||
{
|
||||
AbstractTextDrawer& textDrawer = GetTextDrawer();
|
||||
|
||||
@@ -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>
|
||||
};
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Nz
|
||||
{
|
||||
Layout();
|
||||
}
|
||||
|
||||
|
||||
void RichTextAreaWidget::AppendText(std::string_view text)
|
||||
{
|
||||
//m_text += text;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -393,7 +393,7 @@ namespace Nz
|
||||
{
|
||||
m_textSprite->Update(drawer);
|
||||
}
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
|
||||
SimpleProgressBarWidgetStyle::SimpleProgressBarWidgetStyle(ProgressBarWidget* progressBarWidget, StyleConfig config) :
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user