2020-05-20 03:34:55 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2020 KiCad Developers, see AUTHORS.txt for contributors.
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KICAD_SCHEMATIC_SETTINGS_H
|
|
|
|
#define KICAD_SCHEMATIC_SETTINGS_H
|
|
|
|
|
|
|
|
#include <convert_to_biu.h>
|
|
|
|
#include <default_values.h>
|
2020-06-08 02:19:46 +00:00
|
|
|
#include <settings/nested_settings.h>
|
|
|
|
#include <template_fieldnames.h>
|
2020-05-20 03:34:55 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* These settings were stored in SCH_BASE_FRAME previously.
|
|
|
|
* The backing store is currently the project file.
|
|
|
|
* They should likely move to a project settings file (JSON) once that framework exists.
|
|
|
|
*
|
|
|
|
* These are loaded from eeschema settings but then overwritten by the project settings.
|
|
|
|
* All of the values are stored in IU, but the backing file stores in mils.
|
|
|
|
*/
|
2020-06-20 14:36:16 +00:00
|
|
|
class SCHEMATIC_SETTINGS : public NESTED_SETTINGS
|
2020-05-20 03:34:55 +00:00
|
|
|
{
|
2020-06-20 14:36:16 +00:00
|
|
|
public:
|
2020-06-08 02:19:46 +00:00
|
|
|
SCHEMATIC_SETTINGS( JSON_SETTINGS* aParent, const std::string& aPath );
|
|
|
|
|
|
|
|
virtual ~SCHEMATIC_SETTINGS();
|
|
|
|
|
|
|
|
// Default sizes are all stored in IU here, and im mils in the JSON file
|
2020-05-20 03:34:55 +00:00
|
|
|
|
2020-08-30 17:57:10 +00:00
|
|
|
int m_DefaultLineWidth;
|
|
|
|
int m_DefaultWireThickness;
|
|
|
|
int m_DefaultBusThickness;
|
|
|
|
int m_DefaultTextSize;
|
|
|
|
double m_TextOffsetRatio;
|
|
|
|
int m_PinSymbolSize;
|
|
|
|
int m_JunctionSize;
|
2020-06-08 02:19:46 +00:00
|
|
|
|
2020-08-30 17:57:10 +00:00
|
|
|
wxString m_PageLayoutDescrFile;
|
2020-06-08 02:19:46 +00:00
|
|
|
|
2020-08-30 17:57:10 +00:00
|
|
|
wxString m_PlotDirectoryName;
|
2020-06-08 02:19:46 +00:00
|
|
|
|
2020-08-30 17:57:10 +00:00
|
|
|
wxString m_NetFormatName;
|
2020-06-08 02:19:46 +00:00
|
|
|
|
2020-08-30 17:57:10 +00:00
|
|
|
bool m_SpiceAdjustPassiveValues;
|
|
|
|
wxString m_SpiceCommandString; // A command string to run external spice
|
2020-06-08 02:19:46 +00:00
|
|
|
|
2020-08-30 17:57:10 +00:00
|
|
|
TEMPLATES m_TemplateFieldNames;
|
2020-05-20 03:34:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|