mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:17:35 +00:00
Applications+Demos+LibGUI: Migrate to fallible WizardDialogs and Pages
And port page text to String. Also removes WizardDialog::show() helper as all current implementations prefer to derive their own Dialog.
This commit is contained in:
parent
96e60c98cf
commit
caa8f43dbe
12 changed files with 178 additions and 115 deletions
|
@ -12,13 +12,17 @@
|
|||
#include <LibGfx/Font/BitmapFont.h>
|
||||
|
||||
class NewFontDialog final : public GUI::WizardDialog {
|
||||
C_OBJECT(NewFontDialog);
|
||||
C_OBJECT_ABSTRACT(NewFontDialog);
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<NewFontDialog>> create(GUI::Window* parent_window);
|
||||
|
||||
ErrorOr<NonnullRefPtr<Gfx::BitmapFont>> create_font();
|
||||
|
||||
private:
|
||||
NewFontDialog(GUI::Window* parent_window);
|
||||
explicit NewFontDialog(GUI::Window* parent_window);
|
||||
|
||||
virtual ErrorOr<void> build() override;
|
||||
|
||||
void save_metadata();
|
||||
|
||||
|
@ -51,6 +55,6 @@ private:
|
|||
RefPtr<GUI::SpinBox> m_spacing_spinbox;
|
||||
RefPtr<GUI::CheckBox> m_fixed_width_checkbox;
|
||||
|
||||
Vector<DeprecatedString> m_font_weight_list;
|
||||
Vector<DeprecatedString> m_font_slope_list;
|
||||
Vector<String> m_font_weight_list;
|
||||
Vector<String> m_font_slope_list;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue