Definition at line 107 of file ds_data_model_io.cpp.
◆ DS_DATA_MODEL_STRINGIO()
DS_DATA_MODEL_STRINGIO::DS_DATA_MODEL_STRINGIO |
( |
wxString * |
aOutputString | ) |
|
|
inline |
Definition at line 110 of file ds_data_model_io.cpp.
121 wxMessageBox( ioe.
What(),
_(
"Error writing drawing sheet file" ) );
virtual const wxString What() const
A composite of Problem() and Where()
STRING_FORMATTER * m_writer
Hold an error message and may be used when throwing exceptions containing meaningful error messages.
References _, and IO_ERROR::What().
◆ ~DS_DATA_MODEL_STRINGIO()
DS_DATA_MODEL_STRINGIO::~DS_DATA_MODEL_STRINGIO |
( |
| ) |
|
|
inline |
Definition at line 125 of file ds_data_model_io.cpp.
static wxString FROM_UTF8(const char *cstring)
Convert a UTF8 encoded C string to a wxString for all wxWidgets build modes.
STRING_FORMATTER * m_writer
References FROM_UTF8().
◆ Format() [1/3]
Definition at line 199 of file ds_data_model_io.cpp.
203 m_out->
Print( 0,
"(kicad_wks (version %d) (generator pl_editor)\n",
225 for(
unsigned ii = 0; ii < aSheet->
GetCount(); ii++ )
228 Format( aSheet, item, nestLevel );
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
double m_DefaultLineWidth
double m_DefaultTextThickness
void Format(DS_DATA_MODEL *aSheet) const
#define SEXPR_WORKSHEET_FILE_VERSION
This file contains the file format version information for the s-expression drawing sheet file format...
DS_DATA_ITEM * GetItem(unsigned aIdx) const
Drawing sheet structure type definitions.
unsigned GetCount() const
References double2Str, Format(), DS_DATA_MODEL::GetBottomMargin(), DS_DATA_MODEL::GetCount(), DS_DATA_MODEL::GetItem(), DS_DATA_MODEL::GetLeftMargin(), DS_DATA_MODEL::GetRightMargin(), DS_DATA_MODEL::GetTopMargin(), DS_DATA_MODEL::m_DefaultLineWidth, DS_DATA_MODEL::m_DefaultTextSize, DS_DATA_MODEL::m_DefaultTextThickness, SEXPR_WORKSHEET_FILE_VERSION, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DS_DATA_MODEL::Save(), and DS_DATA_MODEL::SaveInString().
◆ Format() [2/3]
Definition at line 158 of file ds_data_model_io.cpp.
162 m_out->
Print( 0,
"(kicad_wks (version %d) (generator pl_editor)\n",
166 Format( aModel, item, 1 );
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
void Format(DS_DATA_MODEL *aSheet) const
#define SEXPR_WORKSHEET_FILE_VERSION
This file contains the file format version information for the s-expression drawing sheet file format...
Drawing sheet structure type definitions.
References Format(), and SEXPR_WORKSHEET_FILE_VERSION.
◆ Format() [3/3]
◆ m_out
◆ m_output
wxString* DS_DATA_MODEL_STRINGIO::m_output |
|
private |
◆ m_writer
The documentation for this class was generated from the following file: