KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_update_check_prompt.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2023 Mark Roszko <[email protected]>
5 * Copyright (C) 2023 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
28#include <pgm_base.h>
29
32{
33#ifndef KICAD_UPDATE_CHECK
34 m_cbKiCadUpdates->Hide();
35#endif
36}
37
38
40{
43
44 settings->m_PcmUpdateCheck = m_cbPCMUpdates->GetValue();
45#ifndef KICAD_UPDATE_CHECK
46 settings->m_KiCadUpdateCheck = m_cbKiCadUpdates->GetValue();
47#endif
48
49 return true;
50}
51
52
54{
55 // Since this is a first time start dialog, just default to both checks true
56 m_cbPCMUpdates->SetValue( true );
57 m_cbKiCadUpdates->SetValue( true );
58
59 return true;
60}
Class DIALOG_UPDATE_CHECK_PROMPT_BASE.
virtual SETTINGS_MANAGER & GetSettingsManager() const
Definition: pgm_base.h:142
T * GetAppSettings()
Returns a handle to the a given settings by type If the settings have already been loaded,...
PGM_BASE & Pgm()
The global Program "get" accessor.
Definition: pgm_base.cpp:1060
see class PGM_BASE