20#ifndef DIALOG_PRINT_GENERIC_H
21#define DIALOG_PRINT_GENERIC_H
30class wxPageSetupDialogData;
95 void onClose( wxCloseEvent& event )
override;
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
wxBoxSizer * m_bUpperSizer
DIALOG_PRINT_GENERIC_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Print"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticBoxSizer * m_sbOptionsSizer
wxGridBagSizer * m_gbOptionsSizer
DIALOG_PRINT_GENERIC(EDA_DRAW_FRAME *aParent, PRINTOUT_SETTINGS *aSettings)
void onClose(wxCloseEvent &event) override
void setScaleValue(double aValue)
Select a corresponding scale radio button and update custom scale value if needed.
void onSetCustomScale(wxCommandEvent &event) override
static wxPrintData * s_printData
virtual ~DIALOG_PRINT_GENERIC()=default
wxStaticBox * getOptionsBox()
void onCancelButtonClick(wxCommandEvent &aEvent) override
virtual wxPrintout * createPrintout(const wxString &aTitle)=0
Create a printout with a requested title.
bool TransferDataToWindow() override
void onPageSetup(wxCommandEvent &event) override
double getScaleValue()
Return scale value selected in the dialog.
virtual void saveSettings()
void onPrintButtonClick(wxCommandEvent &event) override
void ForcePrintBorder(bool aValue)
Set 'print border and title block' to a requested value and hides the corresponding checkbox.
static wxPageSetupDialogData * s_pageSetupData
wxGridBagSizer * getOptionsSizer()
void onPrintPreview(wxCommandEvent &event) override
PRINTOUT_SETTINGS * m_settings
The base class for create windows for drawing purpose.
Handle the parameters used to print a board drawing.