mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/String.h>
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <LibConfig/Listener.h>
|
||||
#include <LibCore/DateTime.h>
|
||||
#include <LibGUI/Frame.h>
|
||||
|
@ -45,7 +45,7 @@ public:
|
|||
unsigned view_year() const { return m_view_year; }
|
||||
unsigned view_month() const { return m_view_month; }
|
||||
|
||||
String formatted_date(Format format = LongMonthYear);
|
||||
DeprecatedString formatted_date(Format format = LongMonthYear);
|
||||
|
||||
Mode mode() const { return m_mode; }
|
||||
void toggle_mode();
|
||||
|
@ -71,8 +71,8 @@ public:
|
|||
m_unadjusted_tile_size.set_height(height);
|
||||
}
|
||||
|
||||
virtual void config_string_did_change(String const&, String const&, String const&, String const&) override;
|
||||
virtual void config_i32_did_change(String const&, String const&, String const&, i32 value) override;
|
||||
virtual void config_string_did_change(DeprecatedString const&, DeprecatedString const&, DeprecatedString const&, DeprecatedString const&) override;
|
||||
virtual void config_i32_did_change(DeprecatedString const&, DeprecatedString const&, DeprecatedString const&, i32 value) override;
|
||||
|
||||
Function<void()> on_tile_click;
|
||||
Function<void()> on_tile_doubleclick;
|
||||
|
@ -82,7 +82,7 @@ private:
|
|||
Calendar(Core::DateTime date_time = Core::DateTime::now(), Mode mode = Month);
|
||||
virtual ~Calendar() override = default;
|
||||
|
||||
static size_t day_of_week_index(String const&);
|
||||
static size_t day_of_week_index(DeprecatedString const&);
|
||||
|
||||
virtual void resize_event(GUI::ResizeEvent&) override;
|
||||
virtual void paint_event(GUI::PaintEvent&) override;
|
||||
|
@ -105,14 +105,14 @@ private:
|
|||
bool is_day_in_weekend(DayOfWeek);
|
||||
|
||||
struct Day {
|
||||
String name;
|
||||
DeprecatedString name;
|
||||
int width { 0 };
|
||||
int height { 16 };
|
||||
};
|
||||
Vector<Day> m_days;
|
||||
|
||||
struct MonthTile {
|
||||
String name;
|
||||
DeprecatedString name;
|
||||
Gfx::IntRect rect;
|
||||
int width { 0 };
|
||||
int height { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue