37#include <wx/filename.h> 
   38#include <wx/stdpaths.h> 
   39#include <wx/snglinst.h> 
   40#include <wx/html/htmlwin.h> 
   68                              int aCtlBits = 0 )
 override 
 
 
 
  112        wxFileName filename( aFileName );
 
  114        if( filename.FileExists() )
 
 
 
  162            auto app = wxApp::GetInstance();
 
  170        catch( 
const std::exception& e )
 
  172            wxLogError( wxT( 
"Unhandled exception class: %s  what: %s" ),
 
  177            wxLogError( ioe.
What() );
 
  181            wxLogError( wxT( 
"Unhandled exception of unknown type" ) );
 
 
  192        return wxApp::OnExit();
 
 
  201            ret = wxApp::OnRun();
 
  203        catch( 
const std::exception& e )
 
  205            wxLogError( wxT( 
"Unhandled exception class: %s  what: %s" ),
 
  211            wxLogError( ioe.
What() );
 
  215            wxLogError( wxT( 
"Unhandled exception of unknown type" ) );
 
 
 
  232    Pgm().
App().SetTopWindow( aFrame );      
 
 
  240#ifndef TEST_APP_NO_MAIN 
  242int main( 
int argc, 
char** argv )
 
  244    wxInitialize( argc, argv );
 
  252    auto ret = wxEntry( argc, argv );
 
 
Hold an error message and may be used when throwing exceptions containing meaningful error messages.
 
virtual const wxString What() const
A composite of Problem() and Where()
 
KIFACE_BASE(const char *aKifaceName, KIWAY::FACE_T aId)
 
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
 
virtual bool OpenProjectFiles(const std::vector< wxString > &aFileList, int aCtl=0)
Open a project or set of files given by aFileList.
 
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
 
FACE_T
Known KIFACE implementations.
 
Class that handles delegation of command lines to one of a number of "sub-utilities".
 
int HandleCommandLine(int argc, char **argv) const
Take in a command line and:
 
Container for data for KiCad programs.
 
virtual wxApp & App()
Return a bare naked wxApp which may come from wxPython, SINGLE_TOP, or kicad.exe.
 
bool InitPgm(bool aHeadless=false, bool aSkipPyInit=false, bool aIsUnitTest=false)
Initialize this program.
 
This file is part of the common library.
 
#define KFCTL_STANDALONE
Running as a standalone Top.
 
void SetPgm(PGM_BASE *pgm)
 
PGM_BASE & Pgm()
The global program "get" accessor.
 
wxString From_UTF8(const char *cstring)
 
Implement a bare naked wxApp (so that we don't become dependent on functionality in a wxApp derivativ...
 
bool OnKifaceStart(PGM_BASE *aProgram, int aCtlBits, KIWAY *aKiway) override
Typically start_common() is called from here.
 
wxWindow * CreateKiWindow(wxWindow *aParent, int aClassId, KIWAY *aKiway, int aCtlBits=0) override
Create a wxWindow for the current project.
 
void * IfaceOrAddress(int aDataId) override
Return a pointer to the requested object.
 
IFACE(const char *aName, KIWAY::FACE_T aType)
 
void OnKifaceEnd() override
Called just once just before the DSO is to be unloaded.
 
void MacOpenFile(const wxString &aFileName) override
Specific to MacOSX (not used under Linux or Windows).
 
IMPLEMENT_APP_NO_MAIN(APP_TEST)
 
IFACE KIFACE_BASE kiface("pcb_test_frame", KIWAY::FACE_PCB)
 
KIWAY Kiway(KFCTL_STANDALONE)
 
void SetTopFrame(wxFrame *aFrame)
 
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.