| 
    KiCad PCB EDA Suite
    
   | 
 
Hold the information shown in the lower right corner of a plot, printout, or editing view. More...
#include <title_block.h>
Public Member Functions | |
| TITLE_BLOCK () | |
| virtual | ~TITLE_BLOCK () | 
| void | SetTitle (const wxString &aTitle) | 
| const wxString & | GetTitle () const | 
| void | SetDate (const wxString &aDate) | 
| Set the date field, and defaults to the current time and date.   | |
| const wxString & | GetDate () const | 
| void | SetRevision (const wxString &aRevision) | 
| const wxString & | GetRevision () const | 
| void | SetCompany (const wxString &aCompany) | 
| const wxString & | GetCompany () const | 
| void | SetComment (int aIdx, const wxString &aComment) | 
| const wxString & | GetComment (int aIdx) const | 
| void | Clear () | 
| bool | TextVarResolver (wxString *aToken, const PROJECT *aProject, int aFlags=0) const | 
| virtual void | Format (OUTPUTFORMATTER *aFormatter) const | 
| Output the object to aFormatter in s-expression form.   | |
Static Public Member Functions | |
| static void | GetContextualTextVars (wxArrayString *aVars) | 
| static wxString | GetCurrentDate () | 
Private Types | |
| enum | TEXTS_IDX {  TITLE_IDX = 0 , DATE_IDX , REVISION_IDX , COMPANY_IDX , COMMENT1_IDX }  | 
Private Member Functions | |
| void | setTbText (int aIdx, const wxString &aText) | 
| const wxString & | getTbText (int aIdx) const | 
Private Attributes | |
| wxArrayString | m_tbTexts | 
Hold the information shown in the lower right corner of a plot, printout, or editing view.
Definition at line 40 of file title_block.h.
      
  | 
  private | 
| Enumerator | |
|---|---|
| TITLE_IDX | |
| DATE_IDX | |
| REVISION_IDX | |
| COMPANY_IDX | |
| COMMENT1_IDX | |
Definition at line 44 of file title_block.h.
      
  | 
  inline | 
Definition at line 54 of file title_block.h.
      
  | 
  inlinevirtual | 
Definition at line 55 of file title_block.h.
      
  | 
  inline | 
Definition at line 113 of file title_block.h.
References m_tbTexts.
      
  | 
  virtual | 
Output the object to aFormatter in s-expression form.
| aFormatter | The OUTPUTFORMATTER object to write to. | 
| IO_ERROR | on write error. | 
Definition at line 31 of file title_block.cpp.
References GetComment(), GetCompany(), GetDate(), GetRevision(), GetTitle(), m_tbTexts, OUTPUTFORMATTER::Print(), and OUTPUTFORMATTER::Quotew().
Referenced by SCH_IO_KICAD_SEXPR::Format(), and PCB_IO_KICAD_SEXPR::formatGeneral().
      
  | 
  inline | 
Definition at line 107 of file title_block.h.
References COMMENT1_IDX, and getTbText().
Referenced by BOOST_AUTO_TEST_CASE(), SCH_IO_KICAD_LEGACY::Format(), Format(), API_HANDLER_PCB::handleGetTitleBlockInfo(), SCH_EDIT_FRAME::InitSheet(), NETLIST_EXPORTER_XML::makeDesignHeader(), BOARD::operator==(), and TextVarResolver().
      
  | 
  inline | 
Definition at line 96 of file title_block.h.
References COMPANY_IDX, and getTbText().
Referenced by SCH_IO_KICAD_LEGACY::Format(), Format(), API_HANDLER_PCB::handleGetTitleBlockInfo(), SCH_EDIT_FRAME::InitSheet(), NETLIST_EXPORTER_XML::makeDesignHeader(), and TextVarResolver().
      
  | 
  static | 
Definition at line 75 of file title_block.cpp.
References alg::contains().
Referenced by BOARD::GetContextualTextVars(), SCHEMATIC::GetContextualTextVars(), DS_DRAW_ITEM_LIST::GetTextVars(), and BOARD::operator==().
      
  | 
  static | 
Definition at line 97 of file title_block.cpp.
Referenced by PROJECT::TextVarResolver(), and TextVarResolver().
      
  | 
  inline | 
Definition at line 76 of file title_block.h.
References DATE_IDX, and getTbText().
Referenced by SCH_IO_KICAD_LEGACY::Format(), Format(), API_HANDLER_PCB::handleGetTitleBlockInfo(), SCH_EDIT_FRAME::InitSheet(), NETLIST_EXPORTER_XML::makeDesignHeader(), and TextVarResolver().
      
  | 
  inline | 
Definition at line 86 of file title_block.h.
References getTbText(), and REVISION_IDX.
Referenced by AddGerberX2Header(), SCH_IO_KICAD_LEGACY::Format(), Format(), API_HANDLER_PCB::handleGetTitleBlockInfo(), SCH_EDIT_FRAME::InitSheet(), NETLIST_EXPORTER_XML::makeDesignHeader(), and TextVarResolver().
      
  | 
  inlineprivate | 
Definition at line 142 of file title_block.h.
References m_tbTexts.
Referenced by GetComment(), GetCompany(), GetDate(), GetRevision(), and GetTitle().
      
  | 
  inline | 
Definition at line 63 of file title_block.h.
References getTbText(), and TITLE_IDX.
Referenced by BOOST_AUTO_TEST_CASE(), SCH_IO_KICAD_LEGACY::Format(), Format(), API_HANDLER_PCB::handleGetTitleBlockInfo(), SCH_EDIT_FRAME::InitSheet(), NETLIST_EXPORTER_XML::makeDesignHeader(), and TextVarResolver().
      
  | 
  inline | 
Definition at line 101 of file title_block.h.
References COMMENT1_IDX, and setTbText().
Referenced by SCH_EDIT_FRAME::InitSheet(), SCH_IO_KICAD_LEGACY::loadPageSettings(), PCB_IO_KICAD_LEGACY::loadSHEET(), DIALOG_EESCHEMA_PAGE_SETTINGS::onSavePageSettings(), PCB_IO_KICAD_SEXPR_PARSER::parseTITLE_BLOCK(), and SCH_IO_KICAD_SEXPR_PARSER::parseTITLE_BLOCK().
      
  | 
  inline | 
Definition at line 91 of file title_block.h.
References COMPANY_IDX, and setTbText().
Referenced by SCH_EDIT_FRAME::InitSheet(), SCH_IO_KICAD_LEGACY::loadPageSettings(), PCB_IO_KICAD_LEGACY::loadSHEET(), DIALOG_EESCHEMA_PAGE_SETTINGS::onSavePageSettings(), PCB_IO_KICAD_SEXPR_PARSER::parseTITLE_BLOCK(), and SCH_IO_KICAD_SEXPR_PARSER::parseTITLE_BLOCK().
      
  | 
  inline | 
Set the date field, and defaults to the current time and date.
Definition at line 71 of file title_block.h.
References DATE_IDX, and setTbText().
Referenced by SCH_EDIT_FRAME::InitSheet(), SCH_IO_KICAD_LEGACY::loadPageSettings(), PCB_IO_KICAD_LEGACY::loadSHEET(), DIALOG_EESCHEMA_PAGE_SETTINGS::onSavePageSettings(), PCB_IO_KICAD_SEXPR_PARSER::parseTITLE_BLOCK(), and SCH_IO_KICAD_SEXPR_PARSER::parseTITLE_BLOCK().
      
  | 
  inline | 
Definition at line 81 of file title_block.h.
References REVISION_IDX, and setTbText().
Referenced by SCH_EDIT_FRAME::InitSheet(), SCH_IO_KICAD_LEGACY::loadPageSettings(), PCB_IO_KICAD_LEGACY::loadSHEET(), DIALOG_EESCHEMA_PAGE_SETTINGS::onSavePageSettings(), PCB_IO_KICAD_SEXPR_PARSER::parseTITLE_BLOCK(), and SCH_IO_KICAD_SEXPR_PARSER::parseTITLE_BLOCK().
      
  | 
  inlineprivate | 
Definition at line 134 of file title_block.h.
References m_tbTexts.
Referenced by SetComment(), SetCompany(), SetDate(), SetRevision(), and SetTitle().
      
  | 
  inline | 
Definition at line 58 of file title_block.h.
References setTbText(), and TITLE_IDX.
Referenced by SCH_EDIT_FRAME::InitSheet(), SCH_IO_KICAD_LEGACY::loadPageSettings(), PCB_IO_KICAD_LEGACY::loadSHEET(), DIALOG_EESCHEMA_PAGE_SETTINGS::onSavePageSettings(), PCB_IO_KICAD_SEXPR_PARSER::parseTITLE_BLOCK(), and SCH_IO_KICAD_SEXPR_PARSER::parseTITLE_BLOCK().
| bool TITLE_BLOCK::TextVarResolver | ( | wxString * | aToken, | 
| const PROJECT * | aProject, | ||
| int | aFlags = 0 ) const | 
Definition at line 109 of file title_block.cpp.
References ExpandTextVars(), GetComment(), GetCompany(), GetCurrentDate(), GetDate(), GetRevision(), and GetTitle().
Referenced by SCHEMATIC::ResolveTextVar().
      
  | 
  private | 
Definition at line 132 of file title_block.h.
Referenced by Clear(), Format(), getTbText(), and setTbText().