KiCad PCB EDA Suite
PANEL_COMMON_SETTINGS_BASE Class Referenceabstract

Class PANEL_COMMON_SETTINGS_BASE. More...

#include <panel_common_settings_base.h>

Inheritance diagram for PANEL_COMMON_SETTINGS_BASE:
RESETTABLE_PANEL PANEL_COMMON_SETTINGS

Public Member Functions

 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)
 
 ~PANEL_COMMON_SETTINGS_BASE ()
 
virtual void ResetPanel ()=0
 Reset the contents of this panel. More...
 
virtual wxString GetResetTooltip ()
 Get the tooltip the reset button should display when showing this panel. More...
 

Protected Member Functions

virtual void OnTextEditorClick (wxCommandEvent &event)
 
virtual void onUpdateUIPdfPath (wxUpdateUIEvent &event)
 
virtual void OnPDFViewerClick (wxCommandEvent &event)
 
virtual void OnCanvasScaleAuto (wxCommandEvent &event)
 

Protected Attributes

wxChoice * m_antialiasing
 
wxStaticText * m_antialiasingFallbackLabel
 
wxChoice * m_antialiasingFallback
 
wxTextCtrl * m_textEditorPath
 
wxBitmapButton * m_textEditorBtn
 
wxRadioButton * m_defaultPDFViewer
 
wxRadioButton * m_otherPDFViewer
 
wxTextCtrl * m_PDFViewerPath
 
wxBitmapButton * m_pdfViewerBtn
 
wxStaticBoxSizer * m_sbUserInterface
 
wxGridBagSizer * m_gbUserInterface
 
wxCheckBox * m_checkBoxIconsInMenus
 
wxStaticText * m_stIconTheme
 
wxRadioButton * m_rbIconThemeLight
 
wxRadioButton * m_rbIconThemeDark
 
wxRadioButton * m_rbIconThemeAuto
 
wxStaticText * m_staticTextCanvasScale
 
wxSpinCtrlDouble * m_canvasScaleCtrl
 
wxCheckBox * m_canvasScaleAuto
 
wxCheckBox * m_scaleFonts
 
wxStaticText * m_fontScalingHelp
 
wxCheckBox * m_warpMouseOnMove
 
wxCheckBox * m_NonImmediateActions
 
wxCheckBox * m_cbRememberOpenFiles
 
wxStaticText * m_staticTextautosave
 
wxSpinCtrl * m_SaveTime
 
wxStaticText * m_staticTextFileHistorySize
 
wxSpinCtrl * m_fileHistorySize
 
wxStaticText * m_staticTextClear3DCache
 
wxSpinCtrl * m_Clear3DCacheFilesOlder
 
wxStaticText * m_staticTextDays
 
wxCheckBox * m_cbBackupEnabled
 
wxCheckBox * m_cbBackupAutosave
 
wxStaticText * m_staticText9
 
wxSpinCtrl * m_backupLimitTotalFiles
 
wxStaticText * m_staticText10
 
wxSpinCtrl * m_backupLimitDailyFiles
 
wxStaticText * m_staticText11
 
wxSpinCtrl * m_backupMinInterval
 
wxStaticText * m_staticText15
 
wxStaticText * m_staticText16
 
wxSpinCtrl * m_backupLimitTotalSize
 
wxStaticText * m_staticText17
 

Detailed Description

Class PANEL_COMMON_SETTINGS_BASE.

Definition at line 40 of file panel_common_settings_base.h.

Constructor & Destructor Documentation

◆ PANEL_COMMON_SETTINGS_BASE()

PANEL_COMMON_SETTINGS_BASE::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 
)

Definition at line 12 of file panel_common_settings_base.cpp.

12  : RESETTABLE_PANEL( parent, id, pos, size, style, name )
13 {
14  wxBoxSizer* bPanelSizer;
15  bPanelSizer = new wxBoxSizer( wxHORIZONTAL );
16 
17  wxBoxSizer* bLeftSizer;
18  bLeftSizer = new wxBoxSizer( wxVERTICAL );
19 
20  wxStaticBoxSizer* bAntiAliasing;
21  bAntiAliasing = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Antialiasing") ), wxVERTICAL );
22 
23  wxGridBagSizer* gbSizer11;
24  gbSizer11 = new wxGridBagSizer( 6, 4 );
25  gbSizer11->SetFlexibleDirection( wxBOTH );
26  gbSizer11->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27  gbSizer11->SetEmptyCellSize( wxSize( -1,2 ) );
28 
29  wxStaticText* antialiasingLabel;
30  antialiasingLabel = new wxStaticText( bAntiAliasing->GetStaticBox(), wxID_ANY, _("Accelerated graphics:"), wxDefaultPosition, wxDefaultSize, 0 );
31  antialiasingLabel->Wrap( -1 );
32  gbSizer11->Add( antialiasingLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
33 
34  wxString m_antialiasingChoices[] = { _("No Antialiasing"), _("Fast Antialiasing"), _("High Quality Antialiasing") };
35  int m_antialiasingNChoices = sizeof( m_antialiasingChoices ) / sizeof( wxString );
36  m_antialiasing = new wxChoice( bAntiAliasing->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_antialiasingNChoices, m_antialiasingChoices, 0 );
37  m_antialiasing->SetSelection( 0 );
38  gbSizer11->Add( m_antialiasing, wxGBPosition( 0, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
39 
40  m_antialiasingFallbackLabel = new wxStaticText( bAntiAliasing->GetStaticBox(), wxID_ANY, _("Fallback graphics:"), wxDefaultPosition, wxDefaultSize, 0 );
41  m_antialiasingFallbackLabel->Wrap( -1 );
42  gbSizer11->Add( m_antialiasingFallbackLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
43 
44  wxString m_antialiasingFallbackChoices[] = { _("No Antialiasing"), _("Fast Antialiasing"), _("High Quality Antialiasing") };
45  int m_antialiasingFallbackNChoices = sizeof( m_antialiasingFallbackChoices ) / sizeof( wxString );
46  m_antialiasingFallback = new wxChoice( bAntiAliasing->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_antialiasingFallbackNChoices, m_antialiasingFallbackChoices, 0 );
47  m_antialiasingFallback->SetSelection( 0 );
48  gbSizer11->Add( m_antialiasingFallback, wxGBPosition( 1, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
49 
50 
51  gbSizer11->AddGrowableCol( 1 );
52 
53  bAntiAliasing->Add( gbSizer11, 0, wxEXPAND|wxBOTTOM, 5 );
54 
55 
56  bLeftSizer->Add( bAntiAliasing, 0, wxEXPAND|wxALL, 5 );
57 
58  wxStaticBoxSizer* sizerHelperApps;
59  sizerHelperApps = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Helper Applications") ), wxVERTICAL );
60 
61  wxBoxSizer* bSizer61;
62  bSizer61 = new wxBoxSizer( wxHORIZONTAL );
63 
64  wxStaticText* textEditorLabel;
65  textEditorLabel = new wxStaticText( sizerHelperApps->GetStaticBox(), wxID_ANY, _("Text editor:"), wxDefaultPosition, wxDefaultSize, 0 );
66  textEditorLabel->Wrap( -1 );
67  bSizer61->Add( textEditorLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
68 
69  m_textEditorPath = new wxTextCtrl( sizerHelperApps->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
70  m_textEditorPath->SetMinSize( wxSize( 280,-1 ) );
71 
72  bSizer61->Add( m_textEditorPath, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
73 
74  m_textEditorBtn = new wxBitmapButton( sizerHelperApps->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
75  bSizer61->Add( m_textEditorBtn, 0, wxALIGN_CENTER_VERTICAL, 5 );
76 
77 
78  sizerHelperApps->Add( bSizer61, 0, wxEXPAND|wxRIGHT, 5 );
79 
80 
81  sizerHelperApps->Add( 0, 12, 0, wxEXPAND, 5 );
82 
83  wxBoxSizer* bSizer8;
84  bSizer8 = new wxBoxSizer( wxVERTICAL );
85 
86  m_defaultPDFViewer = new wxRadioButton( sizerHelperApps->GetStaticBox(), wxID_ANY, _("System default PDF viewer"), wxDefaultPosition, wxDefaultSize, 0 );
87  bSizer8->Add( m_defaultPDFViewer, 1, wxTOP|wxRIGHT|wxLEFT, 5 );
88 
89 
90  sizerHelperApps->Add( bSizer8, 0, wxEXPAND|wxBOTTOM, 3 );
91 
92  wxBoxSizer* bSizer7;
93  bSizer7 = new wxBoxSizer( wxHORIZONTAL );
94 
95  m_otherPDFViewer = new wxRadioButton( sizerHelperApps->GetStaticBox(), wxID_ANY, _("Other:"), wxDefaultPosition, wxDefaultSize, 0 );
96  bSizer7->Add( m_otherPDFViewer, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
97 
98  m_PDFViewerPath = new wxTextCtrl( sizerHelperApps->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
99  m_PDFViewerPath->SetMinSize( wxSize( 280,-1 ) );
100 
101  bSizer7->Add( m_PDFViewerPath, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
102 
103  m_pdfViewerBtn = new wxBitmapButton( sizerHelperApps->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
104  bSizer7->Add( m_pdfViewerBtn, 0, wxALIGN_CENTER_VERTICAL, 5 );
105 
106 
107  sizerHelperApps->Add( bSizer7, 0, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
108 
109 
110  bLeftSizer->Add( sizerHelperApps, 0, wxEXPAND|wxALL, 5 );
111 
112  m_sbUserInterface = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("User Interface") ), wxVERTICAL );
113 
114  m_gbUserInterface = new wxGridBagSizer( 10, 0 );
115  m_gbUserInterface->SetFlexibleDirection( wxVERTICAL );
116  m_gbUserInterface->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
117 
118  m_checkBoxIconsInMenus = new wxCheckBox( m_sbUserInterface->GetStaticBox(), wxID_ANY, _("Show icons in menus"), wxDefaultPosition, wxDefaultSize, 0 );
119  m_gbUserInterface->Add( m_checkBoxIconsInMenus, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM, 5 );
120 
121  m_stIconTheme = new wxStaticText( m_sbUserInterface->GetStaticBox(), wxID_ANY, _("Icon theme:"), wxDefaultPosition, wxDefaultSize, 0 );
122  m_stIconTheme->Wrap( -1 );
123  m_gbUserInterface->Add( m_stIconTheme, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
124 
125  m_rbIconThemeLight = new wxRadioButton( m_sbUserInterface->GetStaticBox(), wxID_ANY, _("Light"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
126  m_rbIconThemeLight->SetToolTip( _("Use icons designed for light window backgrounds") );
127 
128  m_gbUserInterface->Add( m_rbIconThemeLight, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
129 
130  m_rbIconThemeDark = new wxRadioButton( m_sbUserInterface->GetStaticBox(), wxID_ANY, _("Dark"), wxDefaultPosition, wxDefaultSize, 0 );
131  m_rbIconThemeDark->SetToolTip( _("Use icons designed for dark window backgrounds") );
132 
133  m_gbUserInterface->Add( m_rbIconThemeDark, wxGBPosition( 1, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
134 
135  m_rbIconThemeAuto = new wxRadioButton( m_sbUserInterface->GetStaticBox(), wxID_ANY, _("Automatic"), wxDefaultPosition, wxDefaultSize, 0 );
136  m_rbIconThemeAuto->SetValue( true );
137  m_rbIconThemeAuto->SetToolTip( _("Automatically choose light or dark icons based on the system color theme") );
138 
139  m_gbUserInterface->Add( m_rbIconThemeAuto, wxGBPosition( 1, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
140 
141  m_staticTextCanvasScale = new wxStaticText( m_sbUserInterface->GetStaticBox(), wxID_ANY, _("Canvas scale:"), wxDefaultPosition, wxDefaultSize, 0 );
142  m_staticTextCanvasScale->Wrap( -1 );
143  m_gbUserInterface->Add( m_staticTextCanvasScale, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
144 
145  m_canvasScaleCtrl = new wxSpinCtrlDouble( m_sbUserInterface->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 0, 1 );
146  m_canvasScaleCtrl->SetDigits( 0 );
147  m_gbUserInterface->Add( m_canvasScaleCtrl, wxGBPosition( 3, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
148 
149  m_canvasScaleAuto = new wxCheckBox( m_sbUserInterface->GetStaticBox(), wxID_ANY, _("Automatic"), wxDefaultPosition, wxDefaultSize, 0 );
150  m_gbUserInterface->Add( m_canvasScaleAuto, wxGBPosition( 3, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxLEFT, 15 );
151 
152 
153  m_sbUserInterface->Add( m_gbUserInterface, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
154 
155 
156  m_sbUserInterface->Add( 0, 10, 0, wxEXPAND, 5 );
157 
158  m_scaleFonts = new wxCheckBox( m_sbUserInterface->GetStaticBox(), wxID_ANY, _("Apply icon scaling to fonts"), wxDefaultPosition, wxDefaultSize, 0 );
159  m_sbUserInterface->Add( m_scaleFonts, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
160 
161  m_fontScalingHelp = new wxStaticText( m_sbUserInterface->GetStaticBox(), wxID_ANY, _("(This workaround will improve some GTK HiDPI font scaling issues.)"), wxDefaultPosition, wxDefaultSize, 0 );
162  m_fontScalingHelp->Wrap( -1 );
163  m_sbUserInterface->Add( m_fontScalingHelp, 0, wxLEFT, 8 );
164 
165 
166  bLeftSizer->Add( m_sbUserInterface, 1, wxEXPAND|wxALL, 5 );
167 
168 
169  bPanelSizer->Add( bLeftSizer, 1, wxBOTTOM|wxEXPAND, 5 );
170 
171  wxBoxSizer* rightSizer;
172  rightSizer = new wxBoxSizer( wxVERTICAL );
173 
174  wxStaticBoxSizer* sbSizer4;
175  sbSizer4 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Editing") ), wxVERTICAL );
176 
177  m_warpMouseOnMove = new wxCheckBox( sbSizer4->GetStaticBox(), wxID_ANY, _("Warp mouse to origin of moved object"), wxDefaultPosition, wxDefaultSize, 0 );
178  m_warpMouseOnMove->SetValue(true);
179  sbSizer4->Add( m_warpMouseOnMove, 0, wxBOTTOM|wxRIGHT, 5 );
180 
181  m_NonImmediateActions = new wxCheckBox( sbSizer4->GetStaticBox(), wxID_ANY, _("First hotkey selects tool"), wxDefaultPosition, wxDefaultSize, 0 );
182  m_NonImmediateActions->SetToolTip( _("If not checked, hotkeys will immediately perform an action even if the relevant tool was not previously selected.") );
183 
184  sbSizer4->Add( m_NonImmediateActions, 0, wxBOTTOM|wxRIGHT, 5 );
185 
186 
187  rightSizer->Add( sbSizer4, 0, wxEXPAND|wxALL, 5 );
188 
189  wxStaticBoxSizer* sbSizer5;
190  sbSizer5 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Session") ), wxVERTICAL );
191 
192  m_cbRememberOpenFiles = new wxCheckBox( sbSizer5->GetStaticBox(), wxID_ANY, _("Remember open files for next project launch"), wxDefaultPosition, wxDefaultSize, 0 );
193  m_cbRememberOpenFiles->SetValue(true);
194  m_cbRememberOpenFiles->SetToolTip( _("If checked, launching a project will also launch tools such as eeschema and pcbnew with previously open files") );
195 
196  sbSizer5->Add( m_cbRememberOpenFiles, 0, wxBOTTOM|wxRIGHT, 5 );
197 
198 
199  sbSizer5->Add( 0, 5, 0, 0, 5 );
200 
201  wxGridBagSizer* gbSizer1;
202  gbSizer1 = new wxGridBagSizer( 4, 5 );
203  gbSizer1->SetFlexibleDirection( wxBOTH );
204  gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
205  gbSizer1->SetEmptyCellSize( wxSize( -1,2 ) );
206 
207  m_staticTextautosave = new wxStaticText( sbSizer5->GetStaticBox(), wxID_ANY, _("&Auto save:"), wxDefaultPosition, wxDefaultSize, 0 );
208  m_staticTextautosave->Wrap( -1 );
209  gbSizer1->Add( m_staticTextautosave, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
210 
211  m_SaveTime = new wxSpinCtrl( sbSizer5->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 10, 0 );
212  m_SaveTime->SetToolTip( _("Delay after the first change to create a backup file of the board on disk.\nIf set to 0, auto backup is disabled") );
213 
214  gbSizer1->Add( m_SaveTime, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
215 
216  wxStaticText* minutesLabel;
217  minutesLabel = new wxStaticText( sbSizer5->GetStaticBox(), wxID_ANY, _("minutes"), wxDefaultPosition, wxDefaultSize, 0 );
218  minutesLabel->Wrap( -1 );
219  gbSizer1->Add( minutesLabel, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
220 
221  m_staticTextFileHistorySize = new wxStaticText( sbSizer5->GetStaticBox(), wxID_ANY, _("File history size:"), wxDefaultPosition, wxDefaultSize, 0 );
222  m_staticTextFileHistorySize->Wrap( -1 );
223  gbSizer1->Add( m_staticTextFileHistorySize, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
224 
225  m_fileHistorySize = new wxSpinCtrl( sbSizer5->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 100, 0 );
226  gbSizer1->Add( m_fileHistorySize, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
227 
228  m_staticTextClear3DCache = new wxStaticText( sbSizer5->GetStaticBox(), wxID_ANY, _("3D cache file duration:"), wxDefaultPosition, wxDefaultSize, 0 );
229  m_staticTextClear3DCache->Wrap( -1 );
230  gbSizer1->Add( m_staticTextClear3DCache, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
231 
232  m_Clear3DCacheFilesOlder = new wxSpinCtrl( sbSizer5->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 120, 30 );
233  m_Clear3DCacheFilesOlder->SetToolTip( _("3D cache files older than this are deleted.\nIf set to 0, cache clearing is disabled") );
234 
235  gbSizer1->Add( m_Clear3DCacheFilesOlder, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
236 
237  m_staticTextDays = new wxStaticText( sbSizer5->GetStaticBox(), wxID_ANY, _("days"), wxDefaultPosition, wxDefaultSize, 0 );
238  m_staticTextDays->Wrap( -1 );
239  gbSizer1->Add( m_staticTextDays, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
240 
241 
242  gbSizer1->AddGrowableCol( 1 );
243 
244  sbSizer5->Add( gbSizer1, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
245 
246 
247  rightSizer->Add( sbSizer5, 0, wxALL|wxEXPAND, 5 );
248 
249  wxStaticBoxSizer* sbSizer41;
250  sbSizer41 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Project Backup") ), wxVERTICAL );
251 
252  wxGridBagSizer* gbSizer3;
253  gbSizer3 = new wxGridBagSizer( 0, 0 );
254  gbSizer3->SetFlexibleDirection( wxBOTH );
255  gbSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
256 
257  m_cbBackupEnabled = new wxCheckBox( sbSizer41->GetStaticBox(), wxID_ANY, _("Automatically backup projects"), wxDefaultPosition, wxDefaultSize, 0 );
258  m_cbBackupEnabled->SetToolTip( _("Automatically create backup archives of the current project when saving files") );
259 
260  gbSizer3->Add( m_cbBackupEnabled, wxGBPosition( 0, 0 ), wxGBSpan( 1, 3 ), wxBOTTOM|wxRIGHT, 5 );
261 
262  m_cbBackupAutosave = new wxCheckBox( sbSizer41->GetStaticBox(), wxID_ANY, _("Create backups when auto save occurs"), wxDefaultPosition, wxDefaultSize, 0 );
263  m_cbBackupAutosave->SetToolTip( _("Create backups when the auto save feature is enabled. If not checked, backups will only be created when you manually save a file.") );
264 
265  gbSizer3->Add( m_cbBackupAutosave, wxGBPosition( 1, 0 ), wxGBSpan( 1, 3 ), wxBOTTOM|wxRIGHT, 5 );
266 
267  m_staticText9 = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("Maximum backups to keep:"), wxDefaultPosition, wxDefaultSize, 0 );
268  m_staticText9->Wrap( -1 );
269  m_staticText9->SetToolTip( _("How many backup files total to keep (set to 0 for no limit)") );
270 
271  gbSizer3->Add( m_staticText9, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
272 
273  m_backupLimitTotalFiles = new wxSpinCtrl( sbSizer41->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 1000, 0 );
274  gbSizer3->Add( m_backupLimitTotalFiles, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
275 
276  m_staticText10 = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("Maximum backups per day:"), wxDefaultPosition, wxDefaultSize, 0 );
277  m_staticText10->Wrap( -1 );
278  m_staticText10->SetToolTip( _("How many backup files to keep each day (set to 0 for no limit)") );
279 
280  gbSizer3->Add( m_staticText10, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
281 
282  m_backupLimitDailyFiles = new wxSpinCtrl( sbSizer41->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 1000, 0 );
283  gbSizer3->Add( m_backupLimitDailyFiles, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
284 
285  m_staticText11 = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("Minimum time between backups:"), wxDefaultPosition, wxDefaultSize, 0 );
286  m_staticText11->Wrap( -1 );
287  m_staticText11->SetToolTip( _("Number of minutes since the last backup before another will be created the next time you save (set to 0 for no minimum)") );
288 
289  gbSizer3->Add( m_staticText11, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
290 
291  m_backupMinInterval = new wxSpinCtrl( sbSizer41->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 3600, 0 );
292  gbSizer3->Add( m_backupMinInterval, wxGBPosition( 4, 1 ), wxGBSpan( 1, 1 ), wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
293 
294  m_staticText15 = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("minutes"), wxDefaultPosition, wxDefaultSize, 0 );
295  m_staticText15->Wrap( -1 );
296  gbSizer3->Add( m_staticText15, wxGBPosition( 4, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
297 
298  m_staticText16 = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("Maximum total backup size:"), wxDefaultPosition, wxDefaultSize, 0 );
299  m_staticText16->Wrap( -1 );
300  m_staticText16->SetToolTip( _("If the total size of backup files grows above this limit, old backups will be deleted (set to 0 for no limit)") );
301 
302  gbSizer3->Add( m_staticText16, wxGBPosition( 5, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
303 
304  m_backupLimitTotalSize = new wxSpinCtrl( sbSizer41->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 1000, 0 );
305  gbSizer3->Add( m_backupLimitTotalSize, wxGBPosition( 5, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 );
306 
307  m_staticText17 = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("MB"), wxDefaultPosition, wxDefaultSize, 0 );
308  m_staticText17->Wrap( -1 );
309  gbSizer3->Add( m_staticText17, wxGBPosition( 5, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
310 
311 
312  gbSizer3->AddGrowableCol( 1 );
313 
314  sbSizer41->Add( gbSizer3, 0, wxEXPAND|wxBOTTOM, 5 );
315 
316 
317  rightSizer->Add( sbSizer41, 1, wxALL|wxEXPAND, 5 );
318 
319 
320  bPanelSizer->Add( rightSizer, 0, wxALL|wxEXPAND, 5 );
321 
322 
323  this->SetSizer( bPanelSizer );
324  this->Layout();
325  bPanelSizer->Fit( this );
326 
327  // Connect Events
328  m_textEditorBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_COMMON_SETTINGS_BASE::OnTextEditorClick ), NULL, this );
329  m_PDFViewerPath->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_COMMON_SETTINGS_BASE::onUpdateUIPdfPath ), NULL, this );
330  m_pdfViewerBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_COMMON_SETTINGS_BASE::OnPDFViewerClick ), NULL, this );
331  m_pdfViewerBtn->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_COMMON_SETTINGS_BASE::onUpdateUIPdfPath ), NULL, this );
332  m_canvasScaleAuto->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_COMMON_SETTINGS_BASE::OnCanvasScaleAuto ), NULL, this );
333 }
virtual void onUpdateUIPdfPath(wxUpdateUIEvent &event)
RESETTABLE_PANEL(wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxSize(-1,-1), long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString)
virtual void OnPDFViewerClick(wxCommandEvent &event)
virtual void OnTextEditorClick(wxCommandEvent &event)
#define _(s)
const char * name
Definition: DXF_plotter.cpp:56
virtual void OnCanvasScaleAuto(wxCommandEvent &event)

References _, m_antialiasing, m_antialiasingFallback, m_antialiasingFallbackLabel, m_backupLimitDailyFiles, m_backupLimitTotalFiles, m_backupLimitTotalSize, m_backupMinInterval, m_canvasScaleAuto, m_canvasScaleCtrl, m_cbBackupAutosave, m_cbBackupEnabled, m_cbRememberOpenFiles, m_checkBoxIconsInMenus, m_Clear3DCacheFilesOlder, m_defaultPDFViewer, m_fileHistorySize, m_fontScalingHelp, m_gbUserInterface, m_NonImmediateActions, m_otherPDFViewer, m_pdfViewerBtn, m_PDFViewerPath, m_rbIconThemeAuto, m_rbIconThemeDark, m_rbIconThemeLight, m_SaveTime, m_sbUserInterface, m_scaleFonts, m_staticText10, m_staticText11, m_staticText15, m_staticText16, m_staticText17, m_staticText9, m_staticTextautosave, m_staticTextCanvasScale, m_staticTextClear3DCache, m_staticTextDays, m_staticTextFileHistorySize, m_stIconTheme, m_textEditorBtn, m_textEditorPath, m_warpMouseOnMove, OnCanvasScaleAuto(), OnPDFViewerClick(), OnTextEditorClick(), and onUpdateUIPdfPath().

◆ ~PANEL_COMMON_SETTINGS_BASE()

PANEL_COMMON_SETTINGS_BASE::~PANEL_COMMON_SETTINGS_BASE ( )

Definition at line 335 of file panel_common_settings_base.cpp.

336 {
337  // Disconnect Events
338  m_textEditorBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_COMMON_SETTINGS_BASE::OnTextEditorClick ), NULL, this );
339  m_PDFViewerPath->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_COMMON_SETTINGS_BASE::onUpdateUIPdfPath ), NULL, this );
340  m_pdfViewerBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_COMMON_SETTINGS_BASE::OnPDFViewerClick ), NULL, this );
341  m_pdfViewerBtn->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_COMMON_SETTINGS_BASE::onUpdateUIPdfPath ), NULL, this );
342  m_canvasScaleAuto->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_COMMON_SETTINGS_BASE::OnCanvasScaleAuto ), NULL, this );
343 
344 }
virtual void onUpdateUIPdfPath(wxUpdateUIEvent &event)
virtual void OnPDFViewerClick(wxCommandEvent &event)
virtual void OnTextEditorClick(wxCommandEvent &event)
virtual void OnCanvasScaleAuto(wxCommandEvent &event)

References m_canvasScaleAuto, m_pdfViewerBtn, m_PDFViewerPath, m_textEditorBtn, OnCanvasScaleAuto(), OnPDFViewerClick(), OnTextEditorClick(), and onUpdateUIPdfPath().

Member Function Documentation

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( )
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_HOTKEYS_EDITOR, and PANEL_COLOR_SETTINGS.

Definition at line 52 of file resettable_panel.h.

53  {
54  return _( "Reset all settings on this page to their default" );
55  }
#define _(s)

References _.

◆ OnCanvasScaleAuto()

virtual void PANEL_COMMON_SETTINGS_BASE::OnCanvasScaleAuto ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_COMMON_SETTINGS.

Definition at line 93 of file panel_common_settings_base.h.

93 { event.Skip(); }

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

◆ OnPDFViewerClick()

virtual void PANEL_COMMON_SETTINGS_BASE::OnPDFViewerClick ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_COMMON_SETTINGS.

Definition at line 92 of file panel_common_settings_base.h.

92 { event.Skip(); }

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

◆ OnTextEditorClick()

virtual void PANEL_COMMON_SETTINGS_BASE::OnTextEditorClick ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_COMMON_SETTINGS.

Definition at line 90 of file panel_common_settings_base.h.

90 { event.Skip(); }

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

◆ onUpdateUIPdfPath()

virtual void PANEL_COMMON_SETTINGS_BASE::onUpdateUIPdfPath ( wxUpdateUIEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_COMMON_SETTINGS.

Definition at line 91 of file panel_common_settings_base.h.

91 { event.Skip(); }

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

◆ ResetPanel()

Member Data Documentation

◆ m_antialiasing

wxChoice* PANEL_COMMON_SETTINGS_BASE::m_antialiasing
protected

◆ m_antialiasingFallback

◆ m_antialiasingFallbackLabel

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_antialiasingFallbackLabel
protected

◆ m_backupLimitDailyFiles

wxSpinCtrl* PANEL_COMMON_SETTINGS_BASE::m_backupLimitDailyFiles
protected

◆ m_backupLimitTotalFiles

wxSpinCtrl* PANEL_COMMON_SETTINGS_BASE::m_backupLimitTotalFiles
protected

◆ m_backupLimitTotalSize

wxSpinCtrl* PANEL_COMMON_SETTINGS_BASE::m_backupLimitTotalSize
protected

◆ m_backupMinInterval

wxSpinCtrl* PANEL_COMMON_SETTINGS_BASE::m_backupMinInterval
protected

◆ m_canvasScaleAuto

◆ m_canvasScaleCtrl

◆ m_cbBackupAutosave

wxCheckBox* PANEL_COMMON_SETTINGS_BASE::m_cbBackupAutosave
protected

◆ m_cbBackupEnabled

wxCheckBox* PANEL_COMMON_SETTINGS_BASE::m_cbBackupEnabled
protected

◆ m_cbRememberOpenFiles

wxCheckBox* PANEL_COMMON_SETTINGS_BASE::m_cbRememberOpenFiles
protected

◆ m_checkBoxIconsInMenus

wxCheckBox* PANEL_COMMON_SETTINGS_BASE::m_checkBoxIconsInMenus
protected

◆ m_Clear3DCacheFilesOlder

wxSpinCtrl* PANEL_COMMON_SETTINGS_BASE::m_Clear3DCacheFilesOlder
protected

◆ m_defaultPDFViewer

wxRadioButton* PANEL_COMMON_SETTINGS_BASE::m_defaultPDFViewer
protected

◆ m_fileHistorySize

wxSpinCtrl* PANEL_COMMON_SETTINGS_BASE::m_fileHistorySize
protected

◆ m_fontScalingHelp

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_fontScalingHelp
protected

◆ m_gbUserInterface

wxGridBagSizer* PANEL_COMMON_SETTINGS_BASE::m_gbUserInterface
protected

◆ m_NonImmediateActions

wxCheckBox* PANEL_COMMON_SETTINGS_BASE::m_NonImmediateActions
protected

◆ m_otherPDFViewer

◆ m_pdfViewerBtn

wxBitmapButton* PANEL_COMMON_SETTINGS_BASE::m_pdfViewerBtn
protected

◆ m_PDFViewerPath

◆ m_rbIconThemeAuto

◆ m_rbIconThemeDark

◆ m_rbIconThemeLight

◆ m_SaveTime

wxSpinCtrl* PANEL_COMMON_SETTINGS_BASE::m_SaveTime
protected

◆ m_sbUserInterface

wxStaticBoxSizer* PANEL_COMMON_SETTINGS_BASE::m_sbUserInterface
protected

◆ m_scaleFonts

◆ m_staticText10

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticText10
protected

Definition at line 80 of file panel_common_settings_base.h.

Referenced by PANEL_COMMON_SETTINGS_BASE().

◆ m_staticText11

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticText11
protected

Definition at line 82 of file panel_common_settings_base.h.

Referenced by PANEL_COMMON_SETTINGS_BASE().

◆ m_staticText15

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticText15
protected

Definition at line 84 of file panel_common_settings_base.h.

Referenced by PANEL_COMMON_SETTINGS_BASE().

◆ m_staticText16

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticText16
protected

Definition at line 85 of file panel_common_settings_base.h.

Referenced by PANEL_COMMON_SETTINGS_BASE().

◆ m_staticText17

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticText17
protected

Definition at line 87 of file panel_common_settings_base.h.

Referenced by PANEL_COMMON_SETTINGS_BASE().

◆ m_staticText9

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticText9
protected

Definition at line 78 of file panel_common_settings_base.h.

Referenced by PANEL_COMMON_SETTINGS_BASE().

◆ m_staticTextautosave

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticTextautosave
protected

Definition at line 69 of file panel_common_settings_base.h.

Referenced by PANEL_COMMON_SETTINGS_BASE().

◆ m_staticTextCanvasScale

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticTextCanvasScale
protected

◆ m_staticTextClear3DCache

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticTextClear3DCache
protected

Definition at line 73 of file panel_common_settings_base.h.

Referenced by PANEL_COMMON_SETTINGS_BASE().

◆ m_staticTextDays

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticTextDays
protected

Definition at line 75 of file panel_common_settings_base.h.

Referenced by PANEL_COMMON_SETTINGS_BASE().

◆ m_staticTextFileHistorySize

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_staticTextFileHistorySize
protected

Definition at line 71 of file panel_common_settings_base.h.

Referenced by PANEL_COMMON_SETTINGS_BASE().

◆ m_stIconTheme

wxStaticText* PANEL_COMMON_SETTINGS_BASE::m_stIconTheme
protected

◆ m_textEditorBtn

wxBitmapButton* PANEL_COMMON_SETTINGS_BASE::m_textEditorBtn
protected

◆ m_textEditorPath

◆ m_warpMouseOnMove

wxCheckBox* PANEL_COMMON_SETTINGS_BASE::m_warpMouseOnMove
protected

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