52 _(
"Set the scale for the canvas." 54 "On high-DPI displays on some platforms, KiCad cannot determine the " 55 "scaling factor. In this case you may need to set this to a value to " 56 "match your system's DPI scaling. 2.0 is a common value. " 58 "If this does not match the system DPI scaling, the canvas will " 59 "not match the window size and cursor position." ) );
62 _(
"Use an automatic value for the canvas scale." 64 "On some platforms, the automatic value is incorrect and should be " 145 Pgm().WritePdfBrowserInfos();
147 Pgm().GetSettingsManager().Save( commonSettings );
174 msg << timevalue / 60;
186 if( icon_scale_fourths <= 0 )
270 if( !editorname.IsEmpty() )
277 wxString mask( wxT(
"*" ) );
280 mask += wxT(
".exe" );
283 wxString wildcard =
_(
"Executable files (" ) + mask + wxT(
")|" ) + mask;
285 Pgm().ReadPdfBrowserInfos();
286 wxFileName fn =
Pgm().GetPdfBrowserName();
288 wxFileDialog dlg(
this,
_(
"Select Preferred PDF Browser" ), fn.GetPath(), fn.GetFullPath(),
289 wildcard, wxFD_OPEN | wxFD_FILE_MUST_EXIST );
291 if( dlg.ShowModal() == wxID_CANCEL )
void ResetToDefaults()
Resets all parameters to default values.
wxSpinCtrlDouble * m_canvasScaleCtrl
void ResetPanel() override
Reset the contents of this panel.
wxSpinCtrl * m_backupLimitTotalSize
unsigned long long limit_total_size
Maximum total size of backups (bytes), 0 for unlimited.
wxSpinCtrl * m_backupLimitTotalFiles
wxTextCtrl * m_textEditorPath
void OnCanvasScaleChange(wxCommandEvent &aEvent)
Event fired when the canvas scale field is modified.
const BITMAP_OPAQUE small_folder_xpm[1]
~PANEL_COMMON_SETTINGS() override
wxSpinCtrl * m_fileHistorySize
wxCheckBox * m_cbBackupAutosave
void OnScaleSlider(wxScrollEvent &aEvent) override
int KiIconScale(wxWindow *aWindow)
Return the automatic scale factor that would be used for a given window by KiScaledBitmap and KiScale...
wxCheckBox * m_checkBoxIconsInMenus
bool enabled
Automatically back up the project when files are saved.
void OnPDFViewerClick(wxCommandEvent &event) override
wxRadioButton * m_otherPDFViewer
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
wxCheckBox * m_cbBackupEnabled
wxCheckBox * m_canvasScaleAuto
wxBitmapButton * m_pdfViewerBtn
static double GetDefaultScaleFactor()
Get the "default" scaling factor to use if not other config is available.
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
wxChoice * m_antialiasingFallback
Class PANEL_COMMON_SETTINGS_BASE.
STEPPED_SLIDER * m_iconScaleSlider
double GetScaleFactor() const
Get the DPI scale from all known sources in order:
wxCheckBox * m_warpMouseOnMove
Class to handle configuration and automatic determination of the DPI scale to use for canvases.
bool TransferDataFromWindow() override
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
void OnTextEditorClick(wxCommandEvent &event) override
wxCheckBox * m_cbRememberOpenFiles
static constexpr int dpi_scaling_precision
void SetDpiConfig(bool aAuto, double aValue)
Set the common DPI config in a given config object.
void applySettingsToPanel(COMMON_SETTINGS &aSettings)
static constexpr double dpi_scaling_increment
wxChoice * m_antialiasing
static double GetMaxScaleFactor()
int clear_3d_cache_interval
wxRadioButton * m_defaultPDFViewer
bool use_system_pdf_viewer
wxTextCtrl * m_PDFViewerPath
static double GetMinScaleFactor()
void onUpdateUIPdfPath(wxUpdateUIEvent &event) override
int m_last_scale
saved icon scale when Auto selected
int min_interval
Minimum time, in seconds, between subsequent backups.
wxCheckBox * m_NonImmediateActions
wxCheckBox * m_iconScaleAuto
void OnIconScaleAuto(wxCommandEvent &aEvent) override
wxBitmapButton * m_textEditorBtn
wxStaticText * m_antialiasingFallbackLabel
void OnCanvasScaleAuto(wxCommandEvent &aEvent) override
Event fired when the canvas auto-scale option is changed.
bool TransferDataToWindow() override
bool backup_on_autosave
Trigger a backup on autosave.
PANEL_COMMON_SETTINGS(DIALOG_SHIM *aDialog, wxWindow *aParent)
int limit_daily_files
Maximum files to keep per day, 0 for unlimited.
wxSpinCtrl * m_Clear3DCacheFilesOlder
void SetStep(int aSize)
Set the step size.
int limit_total_files
Maximum number of backup archives to retain.
wxSpinCtrl * m_backupMinInterval
bool GetCanvasIsAutoScaled() const
Is the current value auto scaled, or is it user-set in the config.
wxSpinCtrl * m_backupLimitDailyFiles