KiCad PCB EDA Suite
Loading...
Searching...
No Matches
bin_mod.h
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 The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef BIN_MOD_H_
21#define BIN_MOD_H_
22
23#include <wx/string.h>
24
25#include <search_stack.h>
26
28
36struct BIN_MOD
37{
38 BIN_MOD( const char* aName );
39 ~BIN_MOD();
40
41 void Init();
42 void End();
43
49 void InitSettings( APP_SETTINGS_BASE* aPtr ) { m_config = aPtr; }
50
51 const char* m_name;
52
54 wxString m_help_file;
55
57};
58
59#endif // BIN_MOD_H_
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
Look for files in a number of paths.
~BIN_MOD()
Definition bin_mod.cpp:58
void End()
Definition bin_mod.cpp:46
APP_SETTINGS_BASE * m_config
maybe from $HOME/.${m_name}
Definition bin_mod.h:53
void Init()
Definition bin_mod.cpp:34
SEARCH_STACK m_search
Definition bin_mod.h:56
wxString m_help_file
Definition bin_mod.h:54
const char * m_name
name of this binary module, static C string.
Definition bin_mod.h:51
void InitSettings(APP_SETTINGS_BASE *aPtr)
Takes ownership of a new application settings object.
Definition bin_mod.h:49
BIN_MOD(const char *aName)
Definition bin_mod.cpp:27