60 setTbText( TITLE_IDX, aTitle );
65 return getTbText( TITLE_IDX );
73 setTbText( DATE_IDX, aDate );
78 return getTbText( DATE_IDX );
83 setTbText( REVISION_IDX, aRevision );
88 return getTbText( REVISION_IDX );
93 setTbText( COMPANY_IDX, aCompany );
98 return getTbText( COMPANY_IDX );
103 aIdx += COMMENT1_IDX;
104 return setTbText( aIdx, aComment );
109 aIdx += COMMENT1_IDX;
110 return getTbText( aIdx );
118 static void GetContextualTextVars( wxArrayString* aVars );
119 bool TextVarResolver( wxString* aToken,
const PROJECT* aProject,
int aFlags = 0 )
const;
129 static wxString GetCurrentDate();
136 if( (
int)m_tbTexts.GetCount() <= aIdx )
137 m_tbTexts.Add( wxEmptyString, aIdx + 1 - m_tbTexts.GetCount() );
139 m_tbTexts[aIdx] = aText;
144 static const wxString m_emptytext;
146 if( (
int)m_tbTexts.GetCount() > aIdx )
147 return m_tbTexts[aIdx];
Container for project specific data.
Hold the information shown in the lower right corner of a plot, printout, or editing view.
const wxString & GetCompany() const
void SetRevision(const wxString &aRevision)
void SetComment(int aIdx, const wxString &aComment)
const wxString & GetRevision() const
void setTbText(int aIdx, const wxString &aText)
void SetTitle(const wxString &aTitle)
const wxString & GetDate() const
const wxString & GetComment(int aIdx) const
void SetCompany(const wxString &aCompany)
const wxString & GetTitle() const
void SetDate(const wxString &aDate)
Set the date field, and defaults to the current time and date.
const wxString & getTbText(int aIdx) const
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.