KiCad PCB EDA Suite
kicad.cpp File Reference

Main KiCad Project manager file. More...

#include <wx/filename.h>
#include <wx/log.h>
#include <wx/stdpaths.h>
#include <wx/string.h>
#include <common.h>
#include <filehistory.h>
#include <hotkeys_basic.h>
#include <kiway.h>
#include <richio.h>
#include <systemdirsappend.h>
#include <wildcards_and_files_ext.h>
#include <stdexcept>
#include "pgm_kicad.h"
#include "kicad_manager_frame.h"
#include <kiface_i.h>

Go to the source code of this file.


struct  APP_KICAD
 Struct APP_KICAD is not publicly visible because most of the action is in PGM_KICAD these days. More...


KIFACE_IKiface ()
 Global KIFACE_I "get" accessor. More...
 The global Program "get" accessor. More...


static PGM_KICAD program

Detailed Description

Main KiCad Project manager file.

Definition in file kicad.cpp.

Function Documentation

◆ Kiface()

KIFACE_I& Kiface ( )

Global KIFACE_I "get" accessor.

Definition at line 52 of file kicad.cpp.

53 {
54  // This function should never be called. It is only referenced from
55  // EDA_BASE_FRAME::config() and this is only provided to satisfy the linker,
56  // not to be actually called.
57  wxLogFatalError( wxT( "Unexpected call to Kiface() in kicad/kicad.cpp" ) );
59  throw std::logic_error( "Unexpected call to Kiface() in kicad/kicad.cpp" );
60 }

◆ Pgm()

PGM_BASE& Pgm ( )

The global Program "get" accessor.

Implemented in: 1) common/single_top.cpp, 2) kicad/kicad.cpp, and 3) scripting/kiway.i

Definition at line 66 of file kicad.cpp.

67 {
68  return program;
69 }
static PGM_KICAD program
Definition: kicad.cpp:63

References program.

◆ PgmTop()

◆ Prj()

Variable Documentation

◆ program

PGM_KICAD program

Definition at line 63 of file kicad.cpp.

Referenced by APP_KICAD::OnExit(), APP_KICAD::OnInit(), Pgm(), and PgmTop().