mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 16:17:45 +00:00
Applications: FontEditor, relocate form items by fonts size
FontEditor widget rewritten for respect to the font size and added fixed width and height header values.
This commit is contained in:
parent
e68a08ad7c
commit
3874664752
9 changed files with 243 additions and 88 deletions
|
@ -32,13 +32,14 @@
|
|||
class GlyphEditorWidget;
|
||||
class GlyphMapWidget;
|
||||
|
||||
struct UI_FontEditorBottom;
|
||||
|
||||
class FontEditorWidget final : public GUI::Widget {
|
||||
C_OBJECT(FontEditorWidget)
|
||||
public:
|
||||
virtual ~FontEditorWidget() override;
|
||||
|
||||
int preferred_width() { return m_preferred_width; }
|
||||
int preferred_height() { return m_preferred_height; }
|
||||
|
||||
private:
|
||||
FontEditorWidget(const String& path, RefPtr<Gfx::Font>&&);
|
||||
RefPtr<Gfx::Font> m_edited_font;
|
||||
|
@ -47,6 +48,6 @@ private:
|
|||
RefPtr<GlyphEditorWidget> m_glyph_editor_widget;
|
||||
|
||||
String m_path;
|
||||
|
||||
OwnPtr<UI_FontEditorBottom> m_ui;
|
||||
int m_preferred_width;
|
||||
int m_preferred_height;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue