KiCad PCB EDA Suite
pgm_base.cpp File Reference

For the main application: init functions, and language selection (locale handling) More...

#include <fctsys.h>
#include <wx/html/htmlwin.h>
#include <wx/fs_zip.h>
#include <wx/dir.h>
#include <wx/filename.h>
#include <wx/snglinst.h>
#include <wx/stdpaths.h>
#include <wx/sysopt.h>
#include <wx/richmsgdlg.h>
#include <pgm_base.h>
#include <draw_frame.h>
#include <eda_base_frame.h>
#include <macros.h>
#include <config_params.h>
#include <id.h>
#include <build_version.h>
#include <hotkeys_basic.h>
#include <gestfich.h>
#include <menus_helpers.h>
#include <confirm.h>
#include <dialog_configure_paths.h>
#include <lockfile.h>
#include <systemdirsappend.h>
#include <trace_helpers.h>
#include <gal/gal_display_options.h>

Go to the source code of this file.

Classes

struct  LANGUAGE_DESCR
 A small class to handle the list of existing translations. More...
 

Macros

#define KICAD_COMMON   wxT( "kicad_common" )
 

Variables

static const wxChar languageCfgKey [] = wxT( "LanguageID" )
 
static const wxChar pathEnvVariables [] = wxT( "EnvironmentVariables" )
 
static const wxChar showEnvVarWarningDialog [] = wxT( "ShowEnvVarWarningDialog" )
 
static const wxChar traceEnvVars [] = wxT( "KIENVVARS" )
 
static LANGUAGE_DESCR s_Languages []
 Variable s_Languages Note: because this list is not created on the fly, wxTranslation must be called when a language name must be displayed after translation. More...
 

Detailed Description

For the main application: init functions, and language selection (locale handling)

Definition in file pgm_base.cpp.

Macro Definition Documentation

#define KICAD_COMMON   wxT( "kicad_common" )

Definition at line 60 of file pgm_base.cpp.

Referenced by PGM_BASE::InitPgm().

Variable Documentation

const wxChar languageCfgKey[] = wxT( "LanguageID" )
static

Definition at line 66 of file pgm_base.cpp.

Referenced by PGM_BASE::SetLanguage().

const wxChar pathEnvVariables[] = wxT( "EnvironmentVariables" )
static
LANGUAGE_DESCR s_Languages[]
static
Initial value:
=
{
{ wxLANGUAGE_DEFAULT, ID_LANGUAGE_DEFAULT, lang_def_xpm, _( "Default" ) },
{ wxLANGUAGE_ENGLISH, ID_LANGUAGE_ENGLISH, lang_en_xpm, wxT( "English" ), true },
{ wxLANGUAGE_FRENCH, ID_LANGUAGE_FRENCH, lang_fr_xpm, _( "French" ) },
{ wxLANGUAGE_FINNISH, ID_LANGUAGE_FINNISH, lang_fi_xpm, _( "Finnish" ) },
{ wxLANGUAGE_SPANISH, ID_LANGUAGE_SPANISH, lang_es_xpm, _( "Spanish" ) },
{ wxLANGUAGE_PORTUGUESE, ID_LANGUAGE_PORTUGUESE, lang_pt_xpm, _( "Portuguese" ) },
{ wxLANGUAGE_ITALIAN, ID_LANGUAGE_ITALIAN, lang_it_xpm, _( "Italian" ) },
{ wxLANGUAGE_GERMAN, ID_LANGUAGE_GERMAN, lang_de_xpm, _( "German" ) },
{ wxLANGUAGE_GREEK, ID_LANGUAGE_GREEK, lang_gr_xpm, _( "Greek" ) },
{ wxLANGUAGE_SLOVENIAN, ID_LANGUAGE_SLOVENIAN, lang_sl_xpm, _( "Slovenian" ) },
{ wxLANGUAGE_SLOVAK, ID_LANGUAGE_SLOVAK, lang_sk_xpm, _( "Slovak" ) },
{ wxLANGUAGE_HUNGARIAN, ID_LANGUAGE_HUNGARIAN, lang_hu_xpm, _( "Hungarian" ) },
{ wxLANGUAGE_POLISH, ID_LANGUAGE_POLISH, lang_pl_xpm, _( "Polish" ) },
{ wxLANGUAGE_CZECH, ID_LANGUAGE_CZECH, lang_cs_xpm, _( "Czech" ) },
{ wxLANGUAGE_RUSSIAN, ID_LANGUAGE_RUSSIAN, lang_ru_xpm, _( "Russian" ) },
{ wxLANGUAGE_KOREAN, ID_LANGUAGE_KOREAN, lang_ko_xpm, _( "Korean" ) },
{ wxLANGUAGE_CHINESE_SIMPLIFIED, ID_LANGUAGE_CHINESE_SIMPLIFIED, lang_zh_xpm,
_( "Chinese simplified" ) },
{ wxLANGUAGE_CHINESE_TRADITIONAL, ID_LANGUAGE_CHINESE_TRADITIONAL, lang_zh_xpm,
_( "Chinese traditional" ) },
{ wxLANGUAGE_CATALAN, ID_LANGUAGE_CATALAN, lang_ca_xpm, _( "Catalan" ) },
{ wxLANGUAGE_DUTCH, ID_LANGUAGE_DUTCH, lang_nl_xpm, _( "Dutch" ) },
{ wxLANGUAGE_JAPANESE, ID_LANGUAGE_JAPANESE, lang_jp_xpm, _( "Japanese" ) },
{ wxLANGUAGE_BULGARIAN, ID_LANGUAGE_BULGARIAN, lang_bg_xpm, _( "Bulgarian" ) },
{ wxLANGUAGE_LITHUANIAN, ID_LANGUAGE_LITHUANIAN, lang_lt_xpm, _( "Lithuanian" ) }
}

Variable s_Languages Note: because this list is not created on the fly, wxTranslation must be called when a language name must be displayed after translation.

Do not change this behavior, because m_Lang_Label is also used as key in config

Definition at line 123 of file pgm_base.cpp.

const wxChar showEnvVarWarningDialog[] = wxT( "ShowEnvVarWarningDialog" )
static

Definition at line 68 of file pgm_base.cpp.

Referenced by PGM_BASE::loadCommonSettings(), and PGM_BASE::SaveCommonSettings().

const wxChar traceEnvVars[] = wxT( "KIENVVARS" )
static