KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_app_main.cpp File Reference
#include <typeinfo>
#include <string_utils.h>
#include <wx/filename.h>
#include <wx/stdpaths.h>
#include <wx/snglinst.h>
#include <wx/html/htmlwin.h>
#include <pgm_base.h>
#include <kiface_base.h>
#include <kiway.h>
#include <kiway_player.h>
#include <confirm.h>
#include <settings/settings_manager.h>
#include <qa_utils/utility_registry.h>

Go to the source code of this file.

Classes

struct  IFACE
 
struct  PGM_TEST_FRAME
 
struct  APP_TEST
 Implement a bare naked wxApp (so that we don't become dependent on functionality in a wxApp derivative that we cannot deliver under wxPython). More...
 

Functions

IFACE KIFACE_BASE kiface ("pcb_test_frame", KIWAY::FACE_PCB)
 
 IFACE (const char *aName, KIWAY::FACE_T aType)
 
bool OnKifaceStart (PGM_BASE *aProgram, int aCtlBits, KIWAY *aKiway) override
 
void OnKifaceEnd () override
 
wxWindow * CreateKiWindow (wxWindow *aParent, int aClassId, KIWAY *aKiway, int aCtlBits=0) override
 
void * IfaceOrAddress (int aDataId) override
 Return a pointer to the requested object.
 
KIFACE_BASEKiface ()
 Global KIFACE_BASE "get" accessor.
 
void SetTopFrame (wxFrame *aFrame)
 
 IMPLEMENT_APP_NO_MAIN (APP_TEST)
 
int main (int argc, char **argv)
 

Variables

KIWAY Kiway (KFCTL_STANDALONE)
 
PGM_TEST_FRAME program
 

Function Documentation

◆ CreateKiWindow()

wxWindow * kiface::CreateKiWindow ( wxWindow *  aParent,
int  aClassId,
KIWAY aKiway,
int  aCtlBits = 0 
)
override

Definition at line 13 of file test_app_main.cpp.

◆ IFACE()

kiface::IFACE ( const char *  aName,
KIWAY::FACE_T  aType 
)

Definition at line 2 of file test_app_main.cpp.

◆ IfaceOrAddress()

void * kiface::IfaceOrAddress ( int  aDataId)
override

Return a pointer to the requested object.

The safest way to use this is to retrieve a pointer to a static instance of an interface, similar to how the KIFACE interface is exported. But if you know what you are doing use it to retrieve anything you want.

Parameters
aDataIdidentifies which object you want the address of.
Returns
the requested object which must be cast into the know type.

Definition at line 30 of file test_app_main.cpp.

◆ IMPLEMENT_APP_NO_MAIN()

IMPLEMENT_APP_NO_MAIN ( APP_TEST  )

◆ kiface()

◆ Kiface()

KIFACE_BASE & Kiface ( )

Global KIFACE_BASE "get" accessor.

Definition at line 132 of file test_app_main.cpp.

References kiface().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 242 of file test_app_main.cpp.

References PGM_BASE::InitPgm(), and Pgm().

◆ OnKifaceEnd()

void kiface::OnKifaceEnd ( )
override

Definition at line 11 of file test_app_main.cpp.

Referenced by MOCK_BASE_CLASS().

◆ OnKifaceStart()

bool kiface::OnKifaceStart ( PGM_BASE aProgram,
int  aCtlBits,
KIWAY aKiway 
)
override

Definition at line 6 of file test_app_main.cpp.

Referenced by MOCK_BASE_CLASS().

◆ SetTopFrame()

void SetTopFrame ( wxFrame *  aFrame)

Definition at line 230 of file test_app_main.cpp.

References PGM_BASE::App(), and Pgm().

Variable Documentation

◆ Kiway

◆ program