KiCad PCB EDA Suite
PANEL_COMMON_SETTINGS Class Reference

#include <panel_common_settings.h>

Inheritance diagram for PANEL_COMMON_SETTINGS:
PANEL_COMMON_SETTINGS_BASE

Public Member Functions

 PANEL_COMMON_SETTINGS (DIALOG_SHIM *aDialog, wxWindow *aParent)
 
 ~PANEL_COMMON_SETTINGS () override
 

Protected Types

enum  { wxID_AUTOPAN = 1000 }
 

Protected Member Functions

bool TransferDataFromWindow () override
 
bool TransferDataToWindow () override
 
void OnScaleSlider (wxScrollEvent &aEvent) override
 
void OnIconScaleAuto (wxCommandEvent &aEvent) override
 
void OnTextEditorClick (wxCommandEvent &event) override
 
void OnPDFViewerClick (wxCommandEvent &event) override
 
void onUpdateUIPdfPath (wxUpdateUIEvent &event) override
 
void OnCanvasScaleChange (wxCommandEvent &aEvent)
 Event fired when the canvas scale field is modified. More...
 
void OnCanvasScaleAuto (wxCommandEvent &aEvent) override
 Event fired when the canvas auto-scale option is changed. More...
 

Protected Attributes

DIALOG_SHIMm_dialog
 
int m_last_scale
 saved icon scale when Auto selected More...
 
wxStaticText * m_staticTextautosave
 
wxSpinCtrl * m_SaveTime
 
wxStaticText * m_staticTextFileHistorySize
 
wxSpinCtrl * m_fileHistorySize
 
wxChoice * m_antialiasing
 
wxChoice * m_antialiasingFallback
 
wxTextCtrl * m_textEditorPath
 
wxBitmapButton * m_textEditorBtn
 
wxRadioButton * m_defaultPDFViewer
 
wxRadioButton * m_otherPDFViewer
 
wxTextCtrl * m_PDFViewerPath
 
wxBitmapButton * m_pdfViewerBtn
 
wxStaticText * m_staticTexticonscale
 
STEPPED_SLIDERm_iconScaleSlider
 
wxCheckBox * m_iconScaleAuto
 
wxStaticText * m_staticTextCanvasScale
 
wxSpinCtrlDouble * m_canvasScaleCtrl
 
wxCheckBox * m_canvasScaleAuto
 
wxCheckBox * m_checkBoxIconsInMenus
 
wxCheckBox * m_ZoomCenterOpt
 
wxCheckBox * m_MousewheelPANOpt
 
wxCheckBox * m_AutoPANOpt
 
wxCheckBox * m_PreferSelectToDrag
 
wxCheckBox * m_warpMouseOnMove
 
wxCheckBox * m_NonImmediateActions
 

Detailed Description

Definition at line 33 of file panel_common_settings.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
wxID_AUTOPAN 

Definition at line 46 of file panel_common_settings_base.h.

Constructor & Destructor Documentation

◆ PANEL_COMMON_SETTINGS()

PANEL_COMMON_SETTINGS::PANEL_COMMON_SETTINGS ( DIALOG_SHIM aDialog,
wxWindow *  aParent 
)

Definition at line 38 of file panel_common_settings.cpp.

39  : PANEL_COMMON_SETTINGS_BASE( aParent ),
40  m_dialog( aDialog ),
41  m_last_scale( -1 )
42 {
43  m_canvasScaleCtrl->SetRange(
48 
49  m_canvasScaleCtrl->SetToolTip(
50  _( "Set the scale for the canvas."
51  "\n\n"
52  "On high-DPI displays on some platforms, KiCad cannot determine the "
53  "scaling factor. In this case you may need to set this to a value to "
54  "match your system's DPI scaling. 2.0 is a common value. "
55  "\n\n"
56  "If this does not match the system DPI scaling, the canvas will "
57  "not match the window size and cursor position." ) );
58 
59  m_canvasScaleAuto->SetToolTip(
60  _( "Use an automatic value for the canvas scale."
61  "\n\n"
62  "On some platforms, the automatic value is incorrect and should be "
63  "set manually." ) );
64 
66 
67  m_textEditorBtn->SetBitmap( KiBitmap( folder_xpm ) );
68  m_pdfViewerBtn->SetBitmap( KiBitmap( folder_xpm ) );
69 
70  m_canvasScaleCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_COMMON_SETTINGS::OnCanvasScaleChange ), NULL, this );
71 }
void OnCanvasScaleChange(wxCommandEvent &aEvent)
Event fired when the canvas scale field is modified.
static double GetDefaultScaleFactor()
Get the "default" scaling factor to use if not other config is available.
PANEL_COMMON_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
Definition: bitmap.cpp:79
static constexpr int dpi_scaling_precision
static constexpr double dpi_scaling_increment
static double GetMaxScaleFactor()
static double GetMinScaleFactor()
int m_last_scale
saved icon scale when Auto selected
#define _(s)
void SetStep(int aSize)
Set the step size.

References _, dpi_scaling_increment, dpi_scaling_precision, DPI_SCALING::GetDefaultScaleFactor(), DPI_SCALING::GetMaxScaleFactor(), DPI_SCALING::GetMinScaleFactor(), KiBitmap(), PANEL_COMMON_SETTINGS_BASE::m_canvasScaleAuto, PANEL_COMMON_SETTINGS_BASE::m_canvasScaleCtrl, PANEL_COMMON_SETTINGS_BASE::m_iconScaleSlider, PANEL_COMMON_SETTINGS_BASE::m_pdfViewerBtn, PANEL_COMMON_SETTINGS_BASE::m_textEditorBtn, OnCanvasScaleChange(), and STEPPED_SLIDER::SetStep().

◆ ~PANEL_COMMON_SETTINGS()

PANEL_COMMON_SETTINGS::~PANEL_COMMON_SETTINGS ( )
override

Definition at line 74 of file panel_common_settings.cpp.

75 {
76  m_canvasScaleCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_COMMON_SETTINGS::OnCanvasScaleChange ), NULL, this );
77 }
void OnCanvasScaleChange(wxCommandEvent &aEvent)
Event fired when the canvas scale field is modified.

References PANEL_COMMON_SETTINGS_BASE::m_canvasScaleCtrl, and OnCanvasScaleChange().

Member Function Documentation

◆ OnCanvasScaleAuto()

void PANEL_COMMON_SETTINGS::OnCanvasScaleAuto ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

Event fired when the canvas auto-scale option is changed.

Reimplemented from PANEL_COMMON_SETTINGS_BASE.

Definition at line 223 of file panel_common_settings.cpp.

224 {
225  const bool automatic = m_canvasScaleAuto->GetValue();
226 
227  if( automatic )
228  {
229  // set the scale to the auto value, without consulting the config
230  DPI_SCALING dpi( nullptr, this );
231 
232  // update the field (no events sent)
233  m_canvasScaleCtrl->SetValue( dpi.GetScaleFactor() );
234  }
235 }
Class to handle configuration and automatic determination of the DPI scale to use for canvases.
Definition: dpi_scaling.h:35

References DPI_SCALING::GetScaleFactor(), PANEL_COMMON_SETTINGS_BASE::m_canvasScaleAuto, and PANEL_COMMON_SETTINGS_BASE::m_canvasScaleCtrl.

◆ OnCanvasScaleChange()

void PANEL_COMMON_SETTINGS::OnCanvasScaleChange ( wxCommandEvent &  aEvent)
protected

Event fired when the canvas scale field is modified.

Definition at line 217 of file panel_common_settings.cpp.

218 {
219  m_canvasScaleAuto->SetValue( false );
220 }

References PANEL_COMMON_SETTINGS_BASE::m_canvasScaleAuto.

Referenced by PANEL_COMMON_SETTINGS(), and ~PANEL_COMMON_SETTINGS().

◆ OnIconScaleAuto()

void PANEL_COMMON_SETTINGS::OnIconScaleAuto ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_COMMON_SETTINGS_BASE.

Definition at line 202 of file panel_common_settings.cpp.

203 {
204  if( m_iconScaleAuto->GetValue() )
205  {
206  m_last_scale = m_iconScaleAuto->GetValue();
207  m_iconScaleSlider->SetValue( 25 * KiIconScale( GetParent() ) );
208  }
209  else
210  {
211  if( m_last_scale >= 0 )
212  m_iconScaleSlider->SetValue( m_last_scale );
213  }
214 }
int KiIconScale(wxWindow *aWindow)
Return the automatic scale factor that would be used for a given window by KiScaledBitmap and KiScale...
Definition: bitmap.cpp:89
int m_last_scale
saved icon scale when Auto selected

References KiIconScale(), PANEL_COMMON_SETTINGS_BASE::m_iconScaleAuto, PANEL_COMMON_SETTINGS_BASE::m_iconScaleSlider, and m_last_scale.

◆ OnPDFViewerClick()

void PANEL_COMMON_SETTINGS::OnPDFViewerClick ( wxCommandEvent &  event)
overrideprotectedvirtual

Reimplemented from PANEL_COMMON_SETTINGS_BASE.

Definition at line 251 of file panel_common_settings.cpp.

252 {
253  wxString mask( wxT( "*" ) );
254 
255 #ifdef __WINDOWS__
256  mask += wxT( ".exe" );
257 #endif
258 
259  wxString wildcard = _( "Executable files (" ) + mask + wxT( ")|" ) + mask;
260 
262  wxFileName fn = Pgm().GetPdfBrowserName();
263 
264  wxFileDialog dlg( this, _( "Select Preferred PDF Browser" ), fn.GetPath(), fn.GetFullPath(),
265  wildcard, wxFD_OPEN | wxFD_FILE_MUST_EXIST );
266 
267  if( dlg.ShowModal() == wxID_CANCEL )
268  return;
269 
270  m_otherPDFViewer->SetValue( true );
271  m_PDFViewerPath->SetValue( dlg.GetPath() );
272 }
PGM_BASE & Pgm()
The global Program "get" accessor.
Definition: kicad.cpp:65
VTBL_ENTRY const wxString & GetPdfBrowserName() const
Definition: pgm_base.h:236
#define _(s)
VTBL_ENTRY void ReadPdfBrowserInfos()
Function ReadPdfBrowserInfos reads the PDF browser choice from the common configuration.
Definition: eda_doc.cpp:42

References _, PGM_BASE::GetPdfBrowserName(), PANEL_COMMON_SETTINGS_BASE::m_otherPDFViewer, PANEL_COMMON_SETTINGS_BASE::m_PDFViewerPath, Pgm(), and PGM_BASE::ReadPdfBrowserInfos().

◆ OnScaleSlider()

void PANEL_COMMON_SETTINGS::OnScaleSlider ( wxScrollEvent &  aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_COMMON_SETTINGS_BASE.

Definition at line 196 of file panel_common_settings.cpp.

197 {
198  m_iconScaleAuto->SetValue( false );
199 }

References PANEL_COMMON_SETTINGS_BASE::m_iconScaleAuto.

◆ OnTextEditorClick()

void PANEL_COMMON_SETTINGS::OnTextEditorClick ( wxCommandEvent &  event)
overrideprotectedvirtual

Reimplemented from PANEL_COMMON_SETTINGS_BASE.

Definition at line 238 of file panel_common_settings.cpp.

239 {
240  // Ask the user to select a new editor, but suggest the current one as the default.
241  wxString editorname = Pgm().AskUserForPreferredEditor( m_textEditorPath->GetValue() );
242 
243  // If we have a new editor name request it to be copied to m_editor_name and saved
244  // to the preferences file. If the user cancelled the dialog then the previous
245  // value will be retained.
246  if( !editorname.IsEmpty() )
247  m_textEditorPath->SetValue( editorname );
248 }
PGM_BASE & Pgm()
The global Program "get" accessor.
Definition: kicad.cpp:65
VTBL_ENTRY const wxString AskUserForPreferredEditor(const wxString &aDefaultEditor=wxEmptyString)
Shows a dialog that instructs the user to select a new preferred editor.
Definition: pgm_base.cpp:216

References PGM_BASE::AskUserForPreferredEditor(), PANEL_COMMON_SETTINGS_BASE::m_textEditorPath, and Pgm().

◆ onUpdateUIPdfPath()

void PANEL_COMMON_SETTINGS::onUpdateUIPdfPath ( wxUpdateUIEvent &  event)
overrideprotectedvirtual

Reimplemented from PANEL_COMMON_SETTINGS_BASE.

Definition at line 275 of file panel_common_settings.cpp.

276 {
277  bool enabled = m_otherPDFViewer->GetValue();
278  m_PDFViewerPath->Enable( enabled );
279  m_pdfViewerBtn->Enable( enabled );
280 }

References PANEL_COMMON_SETTINGS_BASE::m_otherPDFViewer, PANEL_COMMON_SETTINGS_BASE::m_pdfViewerBtn, and PANEL_COMMON_SETTINGS_BASE::m_PDFViewerPath.

◆ TransferDataFromWindow()

bool PANEL_COMMON_SETTINGS::TransferDataFromWindow ( )
overrideprotected

Definition at line 158 of file panel_common_settings.cpp.

159 {
160  wxConfigBase* commonSettings = Pgm().CommonSettings();
161 
162  commonSettings->Write( AUTOSAVE_INTERVAL_KEY, m_SaveTime->GetValue() * 60 );
163 
164  commonSettings->Write( FILE_HISTORY_SIZE_KEY, m_fileHistorySize->GetValue() );
165 
166  commonSettings->Write( GAL_ANTIALIASING_MODE_KEY, m_antialiasing->GetSelection() );
167 
168  commonSettings->Write( CAIRO_ANTIALIASING_MODE_KEY, m_antialiasingFallback->GetSelection() );
169 
170  const int scale_fourths = m_iconScaleAuto->GetValue() ? -1 : m_iconScaleSlider->GetValue() / 25;
171  commonSettings->Write( ICON_SCALE_KEY, scale_fourths );
172 
173  {
174  DPI_SCALING dpi( commonSettings, this );
175  dpi.SetDpiConfig( m_canvasScaleAuto->GetValue(), m_canvasScaleCtrl->GetValue() );
176  }
177 
178  commonSettings->Write( USE_ICONS_IN_MENUS_KEY, m_checkBoxIconsInMenus->GetValue() );
179  commonSettings->Write( ENBL_ZOOM_NO_CENTER_KEY, !m_ZoomCenterOpt->GetValue() );
180  commonSettings->Write( ENBL_MOUSEWHEEL_PAN_KEY, m_MousewheelPANOpt->GetValue() );
181  commonSettings->Write( ENBL_AUTO_PAN_KEY, m_AutoPANOpt->GetValue() );
182  commonSettings->Write( PREFER_SELECT_TO_DRAG_KEY, m_PreferSelectToDrag->GetValue() );
183  commonSettings->Write( WARP_MOUSE_ON_MOVE_KEY, m_warpMouseOnMove->GetValue() );
184  commonSettings->Write( IMMEDIATE_ACTIONS_KEY, !m_NonImmediateActions->GetValue() );
185 
186  Pgm().SetEditorName( m_textEditorPath->GetValue() );
187 
188  Pgm().SetPdfBrowserName( m_PDFViewerPath->GetValue() );
191 
192  return true;
193 }
#define IMMEDIATE_ACTIONS_KEY
Definition: pgm_base.h:59
VTBL_ENTRY void SetEditorName(const wxString &aFileName)
Definition: pgm_base.cpp:171
#define PREFER_SELECT_TO_DRAG_KEY
Definition: pgm_base.h:60
VTBL_ENTRY void ForceSystemPdfBrowser(bool aFlg)
Function ForceSystemPdfBrowser forces the use of system PDF browser, even if a preferred PDF browser ...
Definition: pgm_base.h:255
PGM_BASE & Pgm()
The global Program "get" accessor.
Definition: kicad.cpp:65
VTBL_ENTRY void WritePdfBrowserInfos()
Function WritePdfBrowserInfos saves the PDF browser choice to the common configuration.
Definition: eda_doc.cpp:55
#define ENBL_ZOOM_NO_CENTER_KEY
Definition: pgm_base.h:50
Class to handle configuration and automatic determination of the DPI scale to use for canvases.
Definition: dpi_scaling.h:35
#define ENBL_AUTO_PAN_KEY
Definition: pgm_base.h:53
VTBL_ENTRY void SetPdfBrowserName(const wxString &aFileName)
Definition: pgm_base.h:238
#define ENBL_MOUSEWHEEL_PAN_KEY
Definition: pgm_base.h:51
#define FILE_HISTORY_SIZE_KEY
Definition: pgm_base.h:54
#define ICON_SCALE_KEY
Definition: pgm_base.h:47
VTBL_ENTRY wxConfigBase * CommonSettings() const
Definition: pgm_base.h:204
#define AUTOSAVE_INTERVAL_KEY
Definition: pgm_base.h:49
#define GAL_ANTIALIASING_MODE_KEY
Definition: pgm_base.h:56
#define USE_ICONS_IN_MENUS_KEY
Definition: pgm_base.h:46
#define CAIRO_ANTIALIASING_MODE_KEY
Definition: pgm_base.h:57
#define WARP_MOUSE_ON_MOVE_KEY
Definition: pgm_base.h:58

References AUTOSAVE_INTERVAL_KEY, CAIRO_ANTIALIASING_MODE_KEY, PGM_BASE::CommonSettings(), ENBL_AUTO_PAN_KEY, ENBL_MOUSEWHEEL_PAN_KEY, ENBL_ZOOM_NO_CENTER_KEY, FILE_HISTORY_SIZE_KEY, PGM_BASE::ForceSystemPdfBrowser(), GAL_ANTIALIASING_MODE_KEY, ICON_SCALE_KEY, IMMEDIATE_ACTIONS_KEY, PANEL_COMMON_SETTINGS_BASE::m_antialiasing, PANEL_COMMON_SETTINGS_BASE::m_antialiasingFallback, PANEL_COMMON_SETTINGS_BASE::m_AutoPANOpt, PANEL_COMMON_SETTINGS_BASE::m_canvasScaleAuto, PANEL_COMMON_SETTINGS_BASE::m_canvasScaleCtrl, PANEL_COMMON_SETTINGS_BASE::m_checkBoxIconsInMenus, PANEL_COMMON_SETTINGS_BASE::m_defaultPDFViewer, PANEL_COMMON_SETTINGS_BASE::m_fileHistorySize, PANEL_COMMON_SETTINGS_BASE::m_iconScaleAuto, PANEL_COMMON_SETTINGS_BASE::m_iconScaleSlider, PANEL_COMMON_SETTINGS_BASE::m_MousewheelPANOpt, PANEL_COMMON_SETTINGS_BASE::m_NonImmediateActions, PANEL_COMMON_SETTINGS_BASE::m_PDFViewerPath, PANEL_COMMON_SETTINGS_BASE::m_PreferSelectToDrag, PANEL_COMMON_SETTINGS_BASE::m_SaveTime, PANEL_COMMON_SETTINGS_BASE::m_textEditorPath, PANEL_COMMON_SETTINGS_BASE::m_warpMouseOnMove, PANEL_COMMON_SETTINGS_BASE::m_ZoomCenterOpt, Pgm(), PREFER_SELECT_TO_DRAG_KEY, DPI_SCALING::SetDpiConfig(), PGM_BASE::SetEditorName(), PGM_BASE::SetPdfBrowserName(), USE_ICONS_IN_MENUS_KEY, WARP_MOUSE_ON_MOVE_KEY, and PGM_BASE::WritePdfBrowserInfos().

◆ TransferDataToWindow()

bool PANEL_COMMON_SETTINGS::TransferDataToWindow ( )
overrideprotected

Definition at line 80 of file panel_common_settings.cpp.

81 {
82  wxConfigBase* commonSettings = Pgm().CommonSettings();
83 
84  int timevalue;
85  wxString msg;
86 
87  commonSettings->Read( AUTOSAVE_INTERVAL_KEY, &timevalue );
88  msg << timevalue / 60;
89  m_SaveTime->SetValue( msg );
90 
91  int fileHistorySize;
92  commonSettings->Read( FILE_HISTORY_SIZE_KEY, &fileHistorySize, DEFAULT_FILE_HISTORY_SIZE );
93  m_fileHistorySize->SetValue( fileHistorySize );
94 
95  int antialiasingMode;
96  commonSettings->Read( GAL_ANTIALIASING_MODE_KEY, &antialiasingMode, 0 );
97  m_antialiasing->SetSelection( antialiasingMode );
98 
99  commonSettings->Read( CAIRO_ANTIALIASING_MODE_KEY, &antialiasingMode, 0 );
100  m_antialiasingFallback->SetSelection( antialiasingMode );
101 
102  int icon_scale_fourths;
103  commonSettings->Read( ICON_SCALE_KEY, &icon_scale_fourths );
104 
105  if( icon_scale_fourths <= 0 )
106  {
107  m_iconScaleAuto->SetValue( true );
108  m_iconScaleSlider->SetValue( 25 * KiIconScale( GetParent() ) );
109  }
110  else
111  {
112  m_iconScaleAuto->SetValue( false );
113  m_iconScaleSlider->SetValue( icon_scale_fourths * 25 );
114  }
115 
116  {
117  const DPI_SCALING dpi( commonSettings, this );
118  m_canvasScaleCtrl->SetValue( dpi.GetScaleFactor() );
119  m_canvasScaleAuto->SetValue( dpi.GetCanvasIsAutoScaled() );
120  }
121 
122  bool option;
123  commonSettings->Read( USE_ICONS_IN_MENUS_KEY, &option );
124  m_checkBoxIconsInMenus->SetValue( option );
125 
126  commonSettings->Read( ENBL_ZOOM_NO_CENTER_KEY, &option );
127  m_ZoomCenterOpt->SetValue( !option );
128 
129  commonSettings->Read( ENBL_MOUSEWHEEL_PAN_KEY, &option );
130  m_MousewheelPANOpt->SetValue( option );
131 
132  commonSettings->Read( ENBL_AUTO_PAN_KEY, &option );
133  m_AutoPANOpt->SetValue( option );
134 
135  if( !commonSettings->Read( PREFER_SELECT_TO_DRAG_KEY, &option ) )
136  {
137  // Legacy versions stored the property only for PCBNew, so see if we have it there
138  std::unique_ptr<wxConfigBase> pcbSettings = GetNewConfig( wxT( "pcbnew" ) );
139  pcbSettings->Read( "DragSelects", &option, true );
140  }
141  m_PreferSelectToDrag->SetValue( option );
142 
143  commonSettings->Read( WARP_MOUSE_ON_MOVE_KEY, &option );
144  m_warpMouseOnMove->SetValue( option );
145 
146  commonSettings->Read( IMMEDIATE_ACTIONS_KEY, &option );
147  m_NonImmediateActions->SetValue( !option );
148 
149  m_textEditorPath->SetValue( Pgm().GetEditorName( false ) );
150  m_defaultPDFViewer->SetValue( Pgm().UseSystemPdfBrowser() );
151  m_otherPDFViewer->SetValue( !Pgm().UseSystemPdfBrowser() );
152  m_PDFViewerPath->SetValue( Pgm().GetPdfBrowserName() );
153 
154  return true;
155 }
#define IMMEDIATE_ACTIONS_KEY
Definition: pgm_base.h:59
#define PREFER_SELECT_TO_DRAG_KEY
Definition: pgm_base.h:60
std::unique_ptr< wxConfigBase > GetNewConfig(const wxString &aProgName)
Create a new wxConfig so we can put configuration files in a more proper place for each platform.
Definition: common.cpp:256
int KiIconScale(wxWindow *aWindow)
Return the automatic scale factor that would be used for a given window by KiScaledBitmap and KiScale...
Definition: bitmap.cpp:89
PGM_BASE & Pgm()
The global Program "get" accessor.
Definition: kicad.cpp:65
#define ENBL_ZOOM_NO_CENTER_KEY
Definition: pgm_base.h:50
Class to handle configuration and automatic determination of the DPI scale to use for canvases.
Definition: dpi_scaling.h:35
#define ENBL_AUTO_PAN_KEY
Definition: pgm_base.h:53
#define ENBL_MOUSEWHEEL_PAN_KEY
Definition: pgm_base.h:51
#define FILE_HISTORY_SIZE_KEY
Definition: pgm_base.h:54
#define ICON_SCALE_KEY
Definition: pgm_base.h:47
VTBL_ENTRY wxConfigBase * CommonSettings() const
Definition: pgm_base.h:204
#define AUTOSAVE_INTERVAL_KEY
Definition: pgm_base.h:49
#define GAL_ANTIALIASING_MODE_KEY
Definition: pgm_base.h:56
#define DEFAULT_FILE_HISTORY_SIZE
IDs range for menuitems file history: The default range file history size is 9 (compatible with defau...
Definition: id.h:69
#define USE_ICONS_IN_MENUS_KEY
Definition: pgm_base.h:46
#define CAIRO_ANTIALIASING_MODE_KEY
Definition: pgm_base.h:57
#define WARP_MOUSE_ON_MOVE_KEY
Definition: pgm_base.h:58

References AUTOSAVE_INTERVAL_KEY, CAIRO_ANTIALIASING_MODE_KEY, PGM_BASE::CommonSettings(), DEFAULT_FILE_HISTORY_SIZE, ENBL_AUTO_PAN_KEY, ENBL_MOUSEWHEEL_PAN_KEY, ENBL_ZOOM_NO_CENTER_KEY, FILE_HISTORY_SIZE_KEY, GAL_ANTIALIASING_MODE_KEY, DPI_SCALING::GetCanvasIsAutoScaled(), GetNewConfig(), DPI_SCALING::GetScaleFactor(), ICON_SCALE_KEY, IMMEDIATE_ACTIONS_KEY, KiIconScale(), PANEL_COMMON_SETTINGS_BASE::m_antialiasing, PANEL_COMMON_SETTINGS_BASE::m_antialiasingFallback, PANEL_COMMON_SETTINGS_BASE::m_AutoPANOpt, PANEL_COMMON_SETTINGS_BASE::m_canvasScaleAuto, PANEL_COMMON_SETTINGS_BASE::m_canvasScaleCtrl, PANEL_COMMON_SETTINGS_BASE::m_checkBoxIconsInMenus, PANEL_COMMON_SETTINGS_BASE::m_defaultPDFViewer, PANEL_COMMON_SETTINGS_BASE::m_fileHistorySize, PANEL_COMMON_SETTINGS_BASE::m_iconScaleAuto, PANEL_COMMON_SETTINGS_BASE::m_iconScaleSlider, PANEL_COMMON_SETTINGS_BASE::m_MousewheelPANOpt, PANEL_COMMON_SETTINGS_BASE::m_NonImmediateActions, PANEL_COMMON_SETTINGS_BASE::m_otherPDFViewer, PANEL_COMMON_SETTINGS_BASE::m_PDFViewerPath, PANEL_COMMON_SETTINGS_BASE::m_PreferSelectToDrag, PANEL_COMMON_SETTINGS_BASE::m_SaveTime, PANEL_COMMON_SETTINGS_BASE::m_textEditorPath, PANEL_COMMON_SETTINGS_BASE::m_warpMouseOnMove, PANEL_COMMON_SETTINGS_BASE::m_ZoomCenterOpt, Pgm(), PREFER_SELECT_TO_DRAG_KEY, USE_ICONS_IN_MENUS_KEY, and WARP_MOUSE_ON_MOVE_KEY.

Member Data Documentation

◆ m_antialiasing

wxChoice* PANEL_COMMON_SETTINGS_BASE::m_antialiasing
protectedinherited

◆ m_antialiasingFallback

wxChoice* PANEL_COMMON_SETTINGS_BASE::m_antialiasingFallback
protectedinherited

◆ m_AutoPANOpt

wxCheckBox* PANEL_COMMON_SETTINGS_BASE::m_AutoPANOpt
protectedinherited

◆ m_canvasScaleAuto

◆ m_canvasScaleCtrl

wxSpinCtrlDouble* PANEL_COMMON_SETTINGS_BASE::m_canvasScaleCtrl
protectedinherited

◆ m_checkBoxIconsInMenus

wxCheckBox* PANEL_COMMON_SETTINGS_BASE::m_checkBoxIconsInMenus
protectedinherited

◆ m_defaultPDFViewer

wxRadioButton* PANEL_COMMON_SETTINGS_BASE::m_defaultPDFViewer
protectedinherited

◆ m_dialog

DIALOG_SHIM* PANEL_COMMON_SETTINGS::m_dialog
protected

Definition at line 59 of file panel_common_settings.h.

◆ m_fileHistorySize

wxSpinCtrl* PANEL_COMMON_SETTINGS_BASE::m_fileHistorySize
protectedinherited

◆ m_iconScaleAuto

◆ m_iconScaleSlider

◆ m_last_scale

int PANEL_COMMON_SETTINGS::m_last_scale
protected

saved icon scale when Auto selected

Definition at line 61 of file panel_common_settings.h.

Referenced by OnIconScaleAuto().

◆ m_MousewheelPANOpt

wxCheckBox* PANEL_COMMON_SETTINGS_BASE::m_MousewheelPANOpt
protectedinherited

◆ m_NonImmediateActions

wxCheckBox* PANEL_COMMON_SETTINGS_BASE::m_NonImmediateActions
protectedinherited

◆ m_otherPDFViewer

wxRadioButton* PANEL_COMMON_SETTINGS_BASE::m_otherPDFViewer
protectedinherited

◆ m_pdfViewerBtn

wxBitmapButton* PANEL_COMMON_SETTINGS_BASE::m_pdfViewerBtn
protectedinherited

◆ m_PDFViewerPath

◆ m_PreferSelectToDrag

wxCheckBox* PANEL_COMMON_SETTINGS_BASE::m_PreferSelectToDrag
protectedinherited

◆ m_SaveTime

wxSpinCtrl* PANEL_COMMON_SETTINGS_BASE::m_SaveTime
protectedinherited

◆ m_staticTextautosave

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticTextautosave
protectedinherited

◆ m_staticTextCanvasScale

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticTextCanvasScale
protectedinherited

◆ m_staticTextFileHistorySize

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticTextFileHistorySize
protectedinherited

◆ m_staticTexticonscale

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticTexticonscale
protectedinherited

◆ m_textEditorBtn

wxBitmapButton* PANEL_COMMON_SETTINGS_BASE::m_textEditorBtn
protectedinherited

◆ m_textEditorPath

wxTextCtrl* PANEL_COMMON_SETTINGS_BASE::m_textEditorPath
protectedinherited

◆ m_warpMouseOnMove

wxCheckBox* PANEL_COMMON_SETTINGS_BASE::m_warpMouseOnMove
protectedinherited

◆ m_ZoomCenterOpt

wxCheckBox* PANEL_COMMON_SETTINGS_BASE::m_ZoomCenterOpt
protectedinherited

The documentation for this class was generated from the following files: