61 m_WSunits2Iu( 1000.0 ),
62 m_DefaultLineWidth( 0.0 ),
64 m_DefaultTextThickness( 0.0 ),
100#define MILS_TO_MM (25.4/1000)
129 m_list.push_back( aItem );
135 auto newEnd = std::remove(
m_list.begin(),
m_list.end(), aItem );
144 while( idx <
m_list.size() )
146 if(
m_list[idx] == aItem )
159 if( aIdx <
m_list.size() )
170 if( fullFileName.IsEmpty() )
173 wxFileName fn = fullFileName;
175 if( fn.IsAbsolute() )
179 if( !aProjectPath.IsEmpty() )
181 fn.MakeAbsolute( aProjectPath );
183 if( wxFileExists( fn.GetFullPath() ) )
184 return fn.GetFullPath();
190 if( !
name.IsEmpty() )
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
Drawing sheet structure type definitions.
Handle the graphic items list to draw/plot the frame and title block.
std::vector< DS_DATA_ITEM * > m_list
void SetupDrawEnvironment(const PAGE_INFO &aPageInfo, double aMilsToIU)
static DS_DATA_MODEL & GetTheInstance()
static function: returns the instance of DS_DATA_MODEL used in the application
DS_DATA_ITEM * GetItem(unsigned aIdx) const
void Append(DS_DATA_ITEM *aItem)
int GetItemIndex(DS_DATA_ITEM *aItem) const
void ClearList()
Erase the list of items.
void Remove(DS_DATA_ITEM *aItem)
static void SetAltInstance(DS_DATA_MODEL *aLayout=nullptr)
Set an alternate instance of DS_DATA_MODEL.
static const wxString ResolvePath(const wxString &aPath, const wxString &aProjectPath)
Resolve a path which might be project-relative or contain env variable references.
int m_fileFormatVersionAtLoad
SEARCH_STACK & KifaceSearch()
Only for DSO specific 'non-library' files.
Describe the page size and margins of a paper page on which to eventually print or plot.
const VECTOR2I & GetSizeMils() const
const wxString ExpandEnvVarSubstitutions(const wxString &aString, const PROJECT *aProject)
Replace any environment variable & text variable references with their values.
#define TB_DEFAULT_TEXTSIZE
static DS_DATA_MODEL * wksAltInstance
static DS_DATA_MODEL wksTheInstance