mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
FontEditor: Remove unnecessary setters and getters
As these were only used internally, let's simplify things and prevent potential desync between widget state and saved settings by moving the logic into their respective actions.
This commit is contained in:
parent
e8f2192aca
commit
e2762d8956
2 changed files with 17 additions and 72 deletions
|
@ -36,18 +36,6 @@ public:
|
|||
String const& path() { return m_path; }
|
||||
Gfx::BitmapFont const& edited_font() { return *m_edited_font; }
|
||||
|
||||
bool is_showing_font_metadata() { return m_font_metadata; }
|
||||
void set_show_font_metadata(bool);
|
||||
|
||||
bool is_showing_unicode_blocks() { return m_unicode_blocks; }
|
||||
void set_show_unicode_blocks(bool);
|
||||
|
||||
void set_show_toolbar(bool);
|
||||
void set_show_statusbar(bool);
|
||||
|
||||
void set_highlight_modifications(bool);
|
||||
void set_show_system_emoji(bool);
|
||||
|
||||
private:
|
||||
MainWidget() = default;
|
||||
|
||||
|
@ -159,8 +147,6 @@ private:
|
|||
Vector<String> m_font_weight_list;
|
||||
Vector<String> m_font_slope_list;
|
||||
Vector<String> m_unicode_block_list;
|
||||
bool m_font_metadata { true };
|
||||
bool m_unicode_blocks { true };
|
||||
Unicode::CodePointRange m_range { 0x0000, 0x10FFFF };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue