19 #ifndef DIALOG_PRINT_GENERIC_H 20 #define DIALOG_PRINT_GENERIC_H 23 #include <wx/valnum.h> 92 void onClose( wxCloseEvent& event )
override;
104 #endif // DIALOG_PRINT_GENERIC_H virtual ~DIALOG_PRINT_GENERIC()
double getScaleValue()
Return scale value selected in the dialog.
wxStaticBoxSizer * sbOptionsSizer
Handle the parameters used to print a board drawing.
void onCloseButton(wxCommandEvent &event) override
void onPageSetup(wxCommandEvent &event) override
Class DIALOG_PRINT_GENERIC_BASE.
The base class for create windows for drawing purpose.
wxStaticBox * getOptionsBox()
void onPrintButtonClick(wxCommandEvent &event) override
void setScaleValue(double aValue)
Select a corresponding scale radio button and update custom scale value if needed.
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
PRINTOUT_SETTINGS * m_settings
static wxPrintData * s_PrintData
wxGridBagSizer * gbOptionsSizer
bool TransferDataToWindow() override
static wxPageSetupDialogData * s_pageSetupData
DIALOG_PRINT_GENERIC(EDA_DRAW_FRAME *aParent, PRINTOUT_SETTINGS *aSettings)
void onClose(wxCloseEvent &event) override
wxGridBagSizer * getOptionsSizer()
void ForcePrintBorder(bool aValue)
Set 'print border and title block' to a requested value and hides the corresponding checkbox.
void onPrintPreview(wxCommandEvent &event) override
APP_SETTINGS_BASE * m_config
void onSetCustomScale(wxCommandEvent &event) override
virtual wxPrintout * createPrintout(const wxString &aTitle)=0
Create a printout with a requested title.
wxFloatingPointValidator< double > m_scaleValidator
virtual void saveSettings()