4
* This program source code file is part of KiCad, a free EDA CAD application.
6
* Copyright (C) 2014 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
7
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
9
* This program is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU General Public License
11
* as published by the Free Software Foundation; either version 2
12
* of the License, or (at your option) any later version.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, you may find one here:
21
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
22
* or you may search the http://www.gnu.org website for the version 2 license,
23
* or you may write to the Free Software Foundation, Inc.,
24
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
34
* extends PGM_BASE to bring in FileHistory() and PdfBrowser() which were moved
35
* from EDA_APP into KIFACE_I. KIFACE_I is not applicable in the project manager
36
* since it is not a KIFACE. This header is in the kicad directory since nobody
37
* else needs to know about it.
39
class PGM_KICAD : public PGM_BASE
43
m_bm( "kicad" ) // indicates a "$HOME/.kicad wxConfig like" config file.
51
bool OnPgmInit( wxApp* aWxApp ); // overload PGM_BASE virtual
52
void OnPgmExit(); // overload PGM_BASE virtual
53
void MacOpenFile( const wxString& aFileName ); // overload PGM_BASE virtual
55
wxFileHistory& GetFileHistory() { return m_bm.m_history; }
57
wxConfigBase* PgmSettings() { return m_bm.m_config; }
59
SEARCH_STACK& SysSearch() { return m_bm.m_search; }
63
// The PGM_* classes can have difficulties at termination if they
64
// are not destroyed soon enough. Relying on a static destructor can be
65
// too late for contained objects like wxSingleInstanceChecker.
72
extern PGM_KICAD& Pgm();
74
#endif // PGM_KICAD_H_