mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
FontEditor: Convert mode and transform buttons into toolbar actions
This will let us more easily organize and assign shortcuts to new modes and transformations as they are built, and it generally looks more polished as a uniform interface. Also adds a counterclockwise option to the rotate action, moves Copy as Character to the edit menu as it doesn't directly impact GlyphEditor, and makes the paint and move modes exclusive checkables to make the editor's state more visually obvious.
This commit is contained in:
parent
b7c8dee29a
commit
1e052f5a91
5 changed files with 75 additions and 97 deletions
|
@ -21,6 +21,11 @@ public:
|
|||
Move
|
||||
};
|
||||
|
||||
enum Direction {
|
||||
Clockwise,
|
||||
Counterclockwise
|
||||
};
|
||||
|
||||
virtual ~GlyphEditorWidget() override;
|
||||
|
||||
void initialize(Gfx::BitmapFont&);
|
||||
|
@ -34,7 +39,7 @@ public:
|
|||
void delete_glyph();
|
||||
bool is_glyph_empty();
|
||||
|
||||
void rotate_90();
|
||||
void rotate_90(Direction);
|
||||
void flip_vertically();
|
||||
void flip_horizontally();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue