KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TRANSLATED_KICAD_FIXTURE Struct Reference

Installs a wxTranslations instance that actually translates "KiCad". More...

Public Member Functions

 TRANSLATED_KICAD_FIXTURE ()
 
 ~TRANSLATED_KICAD_FIXTURE ()
 

Public Attributes

bool m_active = false
 

Detailed Description

Installs a wxTranslations instance that actually translates "KiCad".

wxTranslations::Set both takes ownership of the new object and deletes the previous one. Teardown restores a fresh catalog-less wxTranslations rather than a saved pointer, which both reproduces qa_common's default no-translation state for subsequent tests and avoids double-freeing a saved pointer.

Definition at line 117 of file test_design_block_io.cpp.

Constructor & Destructor Documentation

◆ TRANSLATED_KICAD_FIXTURE()

TRANSLATED_KICAD_FIXTURE::TRANSLATED_KICAD_FIXTURE ( )
inline

Definition at line 119 of file test_design_block_io.cpp.

References m_active.

◆ ~TRANSLATED_KICAD_FIXTURE()

TRANSLATED_KICAD_FIXTURE::~TRANSLATED_KICAD_FIXTURE ( )
inline

Definition at line 129 of file test_design_block_io.cpp.

Member Data Documentation

◆ m_active

bool TRANSLATED_KICAD_FIXTURE::m_active = false

Definition at line 131 of file test_design_block_io.cpp.

Referenced by TRANSLATED_KICAD_FIXTURE().


The documentation for this struct was generated from the following file: