9#include <wx/stattext.h>
17 ScalableDialog(wxWindow *parent, wxWindowID
id,
const wxString &title,
const wxSize &logicalSize = wxDefaultSize,
18 long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
26 wxSize
Scaled(
const wxSize &size)
const;
35 wxStaticBoxSizer *
CreateGroup(wxWindow *parent,
const wxString &title);
37 wxBoxSizer *
CreateLabeledRow(wxWindow *parent,
const wxString &label, wxWindow *control,
int Padding() const
Returns the standard padding in physical pixels.
int Margin() const
Returns the standard margin in physical pixels.
ScalableDialog(wxWindow *parent, wxWindowID id, const wxString &title, const wxSize &logicalSize=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Constructs the dialog with logical size for DPI scaling.
wxBoxSizer * CreateLabeledRow(wxWindow *parent, const wxString &label, wxWindow *control, int logicalLabelWidth=Layout::LABEL_WIDTH)
Creates a row with a label and control.
int Spacing() const
Returns the standard spacing in physical pixels.
virtual ~ScalableDialog()=default
int Scaled(int px) const
Scales a logical pixel value to physical pixels.
wxStaticBoxSizer * CreateGroup(wxWindow *parent, const wxString &title)
Creates a grouped section with a title.
constexpr int LABEL_WIDTH
Width of label controls.