24#include <wx/display.h>
26static std::map<JOB_PCB_RENDER::BG_STYLE, wxString>
bgStyleMap = {
32static std::map<JOB_PCB_RENDER::QUALITY, wxString>
qualityMap = {
38static std::map<JOB_PCB_RENDER::SIDE, wxString>
sideMap = {
72 std::advance( it, selIndx );
93 std::advance( it, selIndx );
100 auto it =
sideMap.find( aSide );
104 int idx = std::distance(
sideMap.begin(), it );
114 std::advance( it, selIndx );
125 int idx = std::distance(
qualityMap.begin(), it );
135 std::advance( it, selIndx );
146 int idx = std::distance(
bgStyleMap.begin(), it );
190 if (width == 0 || height == 0)
192 int disp = wxDisplay::GetFromWindow(
this );
193 wxRect rect = wxDisplay( disp ).GetGeometry();
196 width = rect.GetWidth();
199 height = rect.GetHeight();
Class DIALOG_RENDER_JOB_BASE.
wxChoice * m_choiceQuality
wxSpinCtrl * m_spinCtrlHeight
wxChoice * m_choiceBgStyle
wxRadioBox * m_radioProjection
wxSpinCtrlDouble * m_spinCtrlZoom
wxSpinCtrl * m_spinCtrlWidth
wxTextCtrl * m_textCtrlOutputFile
wxChoice * m_choiceFormat
JOB_PCB_RENDER::FORMAT getSelectedFormat()
DIALOG_RENDER_JOB(wxWindow *aParent, JOB_PCB_RENDER *aJob)
void setSelectedFormat(JOB_PCB_RENDER::FORMAT aFormat)
void setSelectedBgStyle(JOB_PCB_RENDER::BG_STYLE aBgStyle)
void setSelectedQuality(JOB_PCB_RENDER::QUALITY aSide)
JOB_PCB_RENDER::SIDE getSelectedSide()
JOB_PCB_RENDER::QUALITY getSelectedQuality()
JOB_PCB_RENDER::BG_STYLE getSelectedBgStyle()
bool TransferDataFromWindow() override
void setSelectedSide(JOB_PCB_RENDER::SIDE aSide)
bool TransferDataToWindow() override
void SetupStandardButtons(std::map< int, wxString > aLabels={})
static std::map< JOB_PCB_RENDER::FORMAT, wxString > & GetFormatNameMap()
wxString GetOptionsDialogTitle() const override
void SetOutputPath(const wxString &aPath)
wxString GetOutputPath() const
static std::map< JOB_PCB_RENDER::BG_STYLE, wxString > bgStyleMap
static std::map< JOB_PCB_RENDER::SIDE, wxString > sideMap
static std::map< JOB_PCB_RENDER::QUALITY, wxString > qualityMap
Some functions to handle hotkeys in KiCad.