QElectroTech
0.70
|
#include <bordertitleblock.h>
Public Slots | |
void | titleBlockTemplateChanged (const QString &) |
void | titleBlockTemplateRemoved (const QString &, const TitleBlockTemplate *=nullptr) |
void | displayTitleBlock (bool) |
void | displayColumns (bool) |
void | displayRows (bool) |
void | displayBorder (bool) |
void | slot_setAutoPageNum (QString) |
BorderTitleBlock::slot_setAutoPageNum. More... | |
Signals | |
void | borderChanged (QRectF old_border, QRectF new_border) |
void | displayChanged () |
void | diagramTitleChanged (const QString &) |
void | titleBlockFolioChanged (const QString &) |
titleBlockFolioChanged Signal emitted after Folio has changed More... | |
void | needFolioData () |
void | needTitleBlockTemplate (const QString &) |
Private Member Functions | |
BorderTitleBlock (const BorderTitleBlock &) | |
QRectF | titleBlockRectForQPainter () const |
BorderTitleBlock::titleBlockRectForQPainter. More... | |
void | updateRectangles () |
BorderTitleBlock::updateRectangles This method update the diagram rect according to the value of rows and columns (number and size) More... | |
void | updateDiagramContextForTitleBlock (const DiagramContext &=DiagramContext()) |
QString | incrementLetters (const QString &) |
Private Attributes | |
QString | btb_author_ |
QDate | btb_date_ |
QString | btb_title_ |
QString | btb_folio_ |
QString | btb_plant_ |
QString | btb_locmach_ |
QString | btb_indexrev_ |
QString | btb_final_folio_ |
QString | btb_auto_page_num_ |
int | folio_index_ |
int | folio_total_ |
QString | btb_filename_ |
QString | btb_version_ |
DiagramContext | additional_fields_ |
Qt::Edge | m_edge |
QString | m_next_folio_num |
QString | m_previous_folio_num |
int | columns_count_ |
qreal | columns_width_ |
qreal | columns_header_height_ |
int | rows_count_ |
qreal | rows_height_ |
qreal | rows_header_width_ |
qreal | titleblock_height_ |
QRectF | diagram_rect_ |
bool | display_titleblock_ |
bool | display_columns_ |
bool | display_rows_ |
bool | display_border_ |
TitleBlockTemplateRenderer * | titleblock_template_renderer_ |
This class represents the border and the titleblock which frame a particular electric diagram.
Definition at line 35 of file bordertitleblock.h.
BorderTitleBlock::BorderTitleBlock | ( | QObject * | parent = nullptr | ) |
Constructeur simple : construit une bordure en recuperant les dimensions dans la configuration de l'application.
parent | QObject parent de ce BorderTitleBlock |
Definition at line 39 of file bordertitleblock.cpp.
References QETApp::defaultTitleBlockTemplate(), display_border_, display_titleblock_, importBorder(), importTitleBlock(), setFolioData(), setTitleBlockTemplate(), titleblock_template_renderer_, and updateRectangles().
|
override |
Destructeur - ne fait rien
Definition at line 66 of file bordertitleblock.cpp.
|
private |
|
inline |
Definition at line 111 of file bordertitleblock.h.
References additional_fields_.
Referenced by autonum::AssignVariables::assignTitleBlockVar().
|
inline |
Definition at line 91 of file bordertitleblock.h.
References btb_author_.
Referenced by DiagramFolioList::drawBackground(), exportTitleBlock(), and setAuthor().
|
inline |
Definition at line 113 of file bordertitleblock.h.
References btb_auto_page_num_.
Referenced by exportTitleBlock().
QRectF BorderTitleBlock::borderAndTitleBlockRect | ( | ) | const |
BorderTitleBlock::borderAndTitleBlockRect.
Definition at line 106 of file bordertitleblock.cpp.
References diagram_rect_, and titleBlockRect().
Referenced by Diagram::adjustSceneRect(), Diagram::imageSize(), and Diagram::toPaintDevice().
|
signal |
Signal emitted after the border has changed
old_border | Former border |
new_border | New border |
Referenced by updateRectangles().
void BorderTitleBlock::borderFromXml | ( | const QDomElement & | xml_elmt | ) |
Reads the border settings from XML.
xml_elmt | the XML element values will be read from |
Definition at line 202 of file bordertitleblock.cpp.
References displayColumns(), displayRows(), setColumnsCount(), setColumnsWidth(), setDiagramHeight(), setRowsCount(), setRowsHeight(), and updateRectangles().
Referenced by Diagram::fromXml().
|
inline |
Definition at line 125 of file bordertitleblock.h.
References display_border_.
Referenced by Diagram::applyProperties().
void BorderTitleBlock::borderToXml | ( | QDomElement & | xml_elmt | ) |
Exports the border current settings to XML.
xml_elmt | the XML element attributes will be added to |
Definition at line 185 of file bordertitleblock.cpp.
References columnsAreDisplayed(), columnsCount(), columnsWidth(), diagramHeight(), rowsAreDisplayed(), rowsCount(), and rowsHeight().
Referenced by Diagram::toXml().
|
inline |
Definition at line 121 of file bordertitleblock.h.
References display_columns_.
Referenced by Diagram::borderOptions(), borderToXml(), and exportBorder().
|
inline |
Definition at line 54 of file bordertitleblock.h.
References columns_count_.
Referenced by borderToXml(), exportBorder(), and setColumnsCount().
|
inline |
Definition at line 60 of file bordertitleblock.h.
References columns_header_height_.
Referenced by diagramHeight(), DiagramFolioList::drawBackground(), and exportBorder().
QRectF BorderTitleBlock::columnsRect | ( | ) | const |
BorderTitleBlock::columnsRect.
Definition at line 115 of file bordertitleblock.cpp.
References columns_count_, columns_header_height_, columns_width_, display_columns_, Diagram::margin, and rows_header_width_.
Referenced by DiagramView::mouseDoubleClickEvent().
|
inline |
Definition at line 58 of file bordertitleblock.h.
References columns_count_, and columns_width_.
Referenced by diagramWidth(), and DiagramFolioList::drawBackground().
|
inline |
Definition at line 56 of file bordertitleblock.h.
References columns_width_.
Referenced by borderToXml(), convertPosition(), exportBorder(), and setColumnsWidth().
DiagramPosition BorderTitleBlock::convertPosition | ( | const QPointF & | pos | ) |
BorderTitleBlock::convertPosition Convert a Point in cartesian coordinate (x : 12.5, 56.9) to a point in grid coordinate (ex : B2)
pos | : position to convert |
Definition at line 683 of file bordertitleblock.cpp.
References columnsWidth(), incrementLetters(), insideBorderRect(), and rowsHeight().
Referenced by Diagram::convertPosition().
|
inline |
Definition at line 93 of file bordertitleblock.h.
References btb_date_.
Referenced by DiagramFolioList::drawBackground(), exportTitleBlock(), and setDate().
|
inline |
Definition at line 76 of file bordertitleblock.h.
References columnsHeaderHeight(), and rowsTotalHeight().
Referenced by borderToXml(), and updateRectangles().
|
signal |
Signal emitted after the title has changed
Referenced by setTitle().
|
inline |
Definition at line 74 of file bordertitleblock.h.
References columnsTotalWidth(), and rowsHeaderWidth().
Referenced by updateRectangles().
|
slot |
db | true pour afficher la bordure du schema, false sinon Note : si l'affichage de la bordure est ainsi desactivee, les lignes et colonnes ne seront pas dessinees. |
Definition at line 400 of file bordertitleblock.cpp.
References display_border_, and displayChanged().
Referenced by Diagram::applyProperties(), and Diagram::setBorderOptions().
|
signal |
Signal emitted after display options have changed
Referenced by displayBorder(), displayColumns(), displayRows(), displayTitleBlock(), and importTitleBlock().
|
slot |
dc | true pour afficher les entetes des colonnes, false sinon |
Definition at line 380 of file bordertitleblock.cpp.
References display_columns_, and displayChanged().
Referenced by borderFromXml(), importBorder(), and Diagram::setBorderOptions().
|
slot |
dr | true pour afficher les entetes des lignes, false sinon |
Definition at line 389 of file bordertitleblock.cpp.
References display_rows_, and displayChanged().
Referenced by borderFromXml(), and importBorder().
|
slot |
di | true pour afficher le cartouche, false sinon |
Definition at line 371 of file bordertitleblock.cpp.
References display_titleblock_, and displayChanged().
Referenced by Diagram::applyProperties(), and Diagram::setBorderOptions().
void BorderTitleBlock::draw | ( | QPainter * | painter | ) |
BorderTitleBlock::draw Draw the border and the titleblock.
painter,QPainter | to use for draw this. |
Definition at line 431 of file bordertitleblock.cpp.
References columns_count_, columns_header_height_, columns_width_, diagram_rect_, QETApp::diagramTextsFont(), display_border_, display_columns_, display_rows_, display_titleblock_, incrementLetters(), m_edge, rows_count_, rows_header_width_, rows_height_, titleblock_template_renderer_, and titleBlockRectForQPainter().
Referenced by DiagramFolioList::drawBackground(), and Diagram::drawBackground().
void BorderTitleBlock::drawDxf | ( | int | width, |
int | height, | ||
bool | keep_aspect_ratio, | ||
QString & | file_path, | ||
int | color | ||
) |
Definition at line 515 of file bordertitleblock.cpp.
References columns_count_, columns_header_height_, columns_width_, diagram_rect_, display_border_, display_columns_, display_rows_, display_titleblock_, Createdxf::drawRectangle(), Createdxf::drawTextAligned(), incrementLetters(), rows_count_, rows_header_width_, rows_height_, Createdxf::sheetHeight, titleblock_template_renderer_, titleBlockRect(), Createdxf::xScale, and Createdxf::yScale.
BorderProperties BorderTitleBlock::exportBorder | ( | ) |
Definition at line 288 of file bordertitleblock.cpp.
References BorderProperties::columns_count, BorderProperties::columns_header_height, BorderProperties::columns_width, columnsAreDisplayed(), columnsCount(), columnsHeaderHeight(), columnsWidth(), BorderProperties::display_columns, BorderProperties::display_rows, BorderProperties::rows_count, BorderProperties::rows_header_width, BorderProperties::rows_height, rowsAreDisplayed(), rowsCount(), rowsHeaderWidth(), and rowsHeight().
Referenced by QETDiagramEditor::rowColumnGroupTriggered().
TitleBlockProperties BorderTitleBlock::exportTitleBlock | ( | ) |
Definition at line 237 of file bordertitleblock.cpp.
References additional_fields_, TitleBlockProperties::author, author(), TitleBlockProperties::auto_page_num, autoPageNum(), TitleBlockProperties::collection, TitleBlockProperties::context, TitleBlockProperties::date, date(), TitleBlockProperties::display_at, QET::Embedded, TitleBlockProperties::filename, fileName(), TitleBlockProperties::folio, folio(), TitleBlockProperties::indexrev, indexrev(), TitleBlockProperties::locmach, locmach(), m_edge, TitleBlockProperties::plant, plant(), TitleBlockProperties::template_name, TitleBlockProperties::title, title(), titleBlockTemplateName(), TitleBlockProperties::version, and version().
Referenced by DiagramView::handleTitleBlockDrop(), SearchAndReplaceWorker::replaceAdvanced(), SearchAndReplaceWidget::searchTerms(), and titleBlockToXml().
|
inline |
Definition at line 107 of file bordertitleblock.h.
References btb_filename_.
Referenced by exportTitleBlock().
|
inline |
Definition at line 99 of file bordertitleblock.h.
References btb_final_folio_.
Referenced by DiagramFolioList::drawBackground(), and GenericPanel::updateDiagramItem().
|
inline |
Definition at line 97 of file bordertitleblock.h.
References btb_folio_.
Referenced by exportTitleBlock(), nomenclature::getElementInfo(), DynamicElementTextItem::setConnectionForReportFormula(), setFolio(), DynamicElementTextItem::setupFormulaConnection(), and ProjectView::updateTabTitle().
|
inline |
Definition at line 115 of file bordertitleblock.h.
References folio_total_.
Referenced by autonum::AssignVariables::AssignVariables().
void BorderTitleBlock::importBorder | ( | const BorderProperties & | bp | ) |
bp | les nouvelles proprietes de la bordure |
Definition at line 304 of file bordertitleblock.cpp.
References BorderProperties::columns_count, BorderProperties::columns_header_height, BorderProperties::columns_width, BorderProperties::display_columns, BorderProperties::display_rows, displayColumns(), displayRows(), BorderProperties::rows_count, BorderProperties::rows_header_width, BorderProperties::rows_height, setColumnsCount(), setColumnsHeaderHeight(), setColumnsWidth(), setRowsCount(), setRowsHeaderWidth(), and setRowsHeight().
Referenced by BorderTitleBlock().
void BorderTitleBlock::importTitleBlock | ( | const TitleBlockProperties & | ip | ) |
BorderTitleBlock::importTitleBlock.
ip | the new properties of titleblock |
Definition at line 262 of file bordertitleblock.cpp.
References additional_fields_, TitleBlockProperties::author, TitleBlockProperties::auto_page_num, TitleBlockProperties::context, TitleBlockProperties::date, TitleBlockProperties::display_at, displayChanged(), QET::displayedVersion, TitleBlockProperties::filename, TitleBlockProperties::folio, TitleBlockProperties::indexrev, TitleBlockProperties::locmach, m_edge, needFolioData(), needTitleBlockTemplate(), TitleBlockProperties::plant, setAuthor(), setAutoPageNum(), setDate(), setFileName(), setFolio(), setIndicerev(), setLocMach(), setPlant(), setTitle(), setVersion(), TitleBlockProperties::template_name, and TitleBlockProperties::title.
Referenced by BorderTitleBlock(), and titleBlockFromXml().
|
private |
Definition at line 771 of file bordertitleblock.cpp.
Referenced by convertPosition(), draw(), and drawDxf().
|
inline |
Definition at line 105 of file bordertitleblock.h.
References btb_indexrev_.
Referenced by DiagramFolioList::drawBackground(), exportTitleBlock(), and setIndicerev().
QRectF BorderTitleBlock::insideBorderRect | ( | ) | const |
BorderTitleBlock::insideBorderRect.
Definition at line 150 of file bordertitleblock.cpp.
References columns_count_, columns_header_height_, columns_width_, display_columns_, display_rows_, Diagram::margin, rows_count_, rows_header_width_, and rows_height_.
Referenced by convertPosition(), Diagram::drawBackground(), and DiagramEventAddShape::updateHelpCross().
|
inline |
Definition at line 103 of file bordertitleblock.h.
References btb_locmach_.
Referenced by DiagramFolioList::drawBackground(), exportTitleBlock(), and setLocMach().
|
signal |
Signal emitted when the title block requires its data to be updated in order to generate the folio field.
Referenced by importTitleBlock().
|
signal |
Signal emitted when this object needs to set a specific title block template. This object cannot handle the job since it does not know of its parent project.
Referenced by importTitleBlock().
QRectF BorderTitleBlock::outsideBorderRect | ( | ) | const |
BorderTitleBlock::outsideBorderRect.
Definition at line 137 of file bordertitleblock.cpp.
References columns_count_, columns_header_height_, columns_width_, Diagram::margin, rows_count_, rows_header_width_, and rows_height_.
|
inline |
Definition at line 101 of file bordertitleblock.h.
References btb_plant_.
Referenced by DiagramFolioList::drawBackground(), exportTitleBlock(), and setPlant().
|
inline |
Definition at line 123 of file bordertitleblock.h.
References display_rows_.
Referenced by borderToXml(), and exportBorder().
|
inline |
Definition at line 64 of file bordertitleblock.h.
References rows_count_.
Referenced by borderToXml(), exportBorder(), and setRowsCount().
|
inline |
Definition at line 70 of file bordertitleblock.h.
References rows_header_width_.
Referenced by diagramWidth(), DiagramFolioList::drawBackground(), and exportBorder().
|
inline |
Definition at line 66 of file bordertitleblock.h.
References rows_height_.
Referenced by borderToXml(), convertPosition(), exportBorder(), and setRowsHeight().
QRectF BorderTitleBlock::rowsRect | ( | ) | const |
Definition at line 126 of file bordertitleblock.cpp.
References columns_header_height_, display_rows_, Diagram::margin, rows_count_, rows_header_width_, and rows_height_.
Referenced by DiagramView::mouseDoubleClickEvent().
|
inline |
Definition at line 68 of file bordertitleblock.h.
References rows_count_, and rows_height_.
Referenced by diagramHeight(), and DiagramFolioList::drawBackground().
void BorderTitleBlock::setAuthor | ( | const QString & | author | ) |
author | the new value of the "Author" field |
Definition at line 703 of file bordertitleblock.cpp.
References author(), and btb_author_.
Referenced by importTitleBlock().
void BorderTitleBlock::setAutoPageNum | ( | const QString & | auto_page_num | ) |
BorderTitleBlock::setAutoPageNum.
auto_page_num | the new value of the "auto_page_num" field |
Definition at line 858 of file bordertitleblock.cpp.
References btb_auto_page_num_.
Referenced by importTitleBlock().
void BorderTitleBlock::setColumnsCount | ( | int | nb_c | ) |
Permet de changer le nombre de colonnes. Si ce nombre de colonnes est inferieur au minimum requis, c'est ce minimum qui est utilise.
nb_c | nouveau nombre de colonnes |
Definition at line 603 of file bordertitleblock.cpp.
References columns_count_, columnsCount(), MIN_COLUMN_COUNT, and updateRectangles().
Referenced by borderFromXml(), and importBorder().
void BorderTitleBlock::setColumnsHeaderHeight | ( | const qreal & | new_chh | ) |
Change la hauteur des en-tetes contenant les numeros de colonnes. Celle-ci doit rester comprise entre 5 et 50 px.
new_chh | nouvelle hauteur des en-tetes de colonnes |
Definition at line 627 of file bordertitleblock.cpp.
References columns_header_height_, and updateRectangles().
Referenced by importBorder().
void BorderTitleBlock::setColumnsWidth | ( | const qreal & | new_cw | ) |
Change la largeur des colonnes. Si la largeur indiquee est inferieure au minimum requis, c'est ce minimum qui est utilise.
new_cw | nouvelle largeur des colonnes |
Definition at line 616 of file bordertitleblock.cpp.
References columns_width_, columnsWidth(), MIN_COLUMN_WIDTH, and updateRectangles().
Referenced by borderFromXml(), and importBorder().
void BorderTitleBlock::setDate | ( | const QDate & | date | ) |
date | the new value of the "Date" field |
Definition at line 711 of file bordertitleblock.cpp.
References btb_date_, and date().
Referenced by importTitleBlock().
void BorderTitleBlock::setDiagramHeight | ( | const qreal & | height | ) |
Cette methode essaye de se rapprocher le plus possible de la hauteur donnee en parametre en modifiant le nombre de lignes en cours.
Definition at line 672 of file bordertitleblock.cpp.
References rows_height_, and setRowsCount().
Referenced by borderFromXml().
void BorderTitleBlock::setFileName | ( | const QString & | filename | ) |
BorderTitleBlock::setFileName.
filename | the new value of the "filename" field |
Definition at line 842 of file bordertitleblock.cpp.
References btb_filename_.
Referenced by importTitleBlock().
void BorderTitleBlock::setFolio | ( | const QString & | folio | ) |
folio | the new value of the "Folio" field |
Definition at line 732 of file bordertitleblock.cpp.
References btb_folio_, folio(), and titleBlockFolioChanged().
Referenced by importTitleBlock().
void BorderTitleBlock::setFolioData | ( | int | index, |
int | total, | ||
const QString & | autonum = nullptr , |
||
const DiagramContext & | project_properties = DiagramContext() |
||
) |
index | numero du schema (de 1 a total) |
total | nombre total de schemas dans le projet |
project_properties | Project-wide properties, to be merged with diagram-wide ones. |
Definition at line 793 of file bordertitleblock.cpp.
References btb_final_folio_, btb_folio_, folio_index_, folio_total_, and updateDiagramContextForTitleBlock().
Referenced by BorderTitleBlock().
void BorderTitleBlock::setIndicerev | ( | const QString & | indexrev | ) |
BorderTitleBlock::setIndicerev.
indexrev | the new value of the "indexrev" field |
Definition at line 834 of file bordertitleblock.cpp.
References btb_indexrev_, and indexrev().
Referenced by importTitleBlock().
void BorderTitleBlock::setLocMach | ( | const QString & | locmach | ) |
locmach | the new value of the "locmach" field |
Definition at line 826 of file bordertitleblock.cpp.
References btb_locmach_, and locmach().
Referenced by importTitleBlock().
void BorderTitleBlock::setNextFolioNum | ( | const QString & | next | ) |
BorderTitleBlock::setNextFolioNum.
next | the new value of the "next-folio-num" field |
Definition at line 878 of file bordertitleblock.cpp.
References DiagramContext::addValue(), TitleBlockTemplateRenderer::context(), m_next_folio_num, TitleBlockTemplateRenderer::setContext(), and titleblock_template_renderer_.
void BorderTitleBlock::setPlant | ( | const QString & | plant | ) |
plant | the new value of the "plant" field |
Definition at line 818 of file bordertitleblock.cpp.
References btb_plant_, and plant().
Referenced by importTitleBlock().
void BorderTitleBlock::setPreviousFolioNum | ( | const QString & | previous | ) |
BorderTitleBlock::setPreviousFolioNum.
previous | the new value of the "previous-folio-num" field |
Definition at line 866 of file bordertitleblock.cpp.
References DiagramContext::addValue(), TitleBlockTemplateRenderer::context(), m_previous_folio_num, TitleBlockTemplateRenderer::setContext(), and titleblock_template_renderer_.
void BorderTitleBlock::setRowsCount | ( | int | nb_r | ) |
Permet de changer le nombre de lignes. Si ce nombre de lignes est inferieur au minimum requis, cette fonction ne fait rien
nb_r | nouveau nombre de lignes |
Definition at line 639 of file bordertitleblock.cpp.
References MIN_ROW_COUNT, rows_count_, rowsCount(), and updateRectangles().
Referenced by borderFromXml(), importBorder(), and setDiagramHeight().
void BorderTitleBlock::setRowsHeaderWidth | ( | const qreal & | new_rhw | ) |
Change la largeur des en-tetes contenant les numeros de lignes. Celle-ci doit rester comprise entre 5 et 50 px.
new_rhw | nouvelle largeur des en-tetes des lignes |
Definition at line 663 of file bordertitleblock.cpp.
References rows_header_width_, and updateRectangles().
Referenced by importBorder().
void BorderTitleBlock::setRowsHeight | ( | const qreal & | new_rh | ) |
Change la hauteur des lignes. Si la hauteur indiquee est inferieure au minimum requis, c'est ce minimum qui est utilise.
new_rh | nouvelle hauteur des lignes |
Definition at line 652 of file bordertitleblock.cpp.
References MIN_ROW_HEIGHT, rows_height_, rowsHeight(), and updateRectangles().
Referenced by borderFromXml(), and importBorder().
void BorderTitleBlock::setTitle | ( | const QString & | title | ) |
title | the new value of the "Title" field |
Definition at line 719 of file bordertitleblock.cpp.
References btb_title_, diagramTitleChanged(), and title().
Referenced by importTitleBlock().
void BorderTitleBlock::setTitleBlockTemplate | ( | const TitleBlockTemplate * | titleblock_template | ) |
titleblock_template | The new titleblock template to use to render the titleblock |
Definition at line 327 of file bordertitleblock.cpp.
References titleblock_template_renderer_.
Referenced by BorderTitleBlock(), and titleBlockTemplateRemoved().
void BorderTitleBlock::setVersion | ( | const QString & | version | ) |
version | the new value of the "version" field |
Definition at line 850 of file bordertitleblock.cpp.
References btb_version_, and version().
Referenced by importTitleBlock().
|
slot |
BorderTitleBlock::slot_setAutoPageNum.
pageAutoNum | Set Page (Folio) Auto Num |
Definition at line 411 of file bordertitleblock.cpp.
References btb_auto_page_num_.
|
inline |
Definition at line 95 of file bordertitleblock.h.
References btb_title_.
Referenced by exportTitleBlock(), setTitle(), and Diagram::title().
|
signal |
titleBlockFolioChanged Signal emitted after Folio has changed
Referenced by ProjectView::addDiagram(), DynamicElementTextItem::removeConnectionForReportFormula(), DynamicElementTextItem::setConnectionForReportFormula(), setFolio(), and DynamicElementTextItem::setupFormulaConnection().
void BorderTitleBlock::titleBlockFromXml | ( | const QDomElement & | xml_elmt | ) |
Reads the title block values from XML.
xml_elmt | the XML element values will be read from |
Definition at line 175 of file bordertitleblock.cpp.
References TitleBlockProperties::fromXml(), and importTitleBlock().
Referenced by Diagram::fromXml().
|
inline |
Definition at line 119 of file bordertitleblock.h.
References display_titleblock_.
Referenced by Diagram::applyProperties(), and Diagram::borderOptions().
QRectF BorderTitleBlock::titleBlockRect | ( | ) | const |
BorderTitleBlock::titleBlockRect.
Definition at line 73 of file bordertitleblock.cpp.
References diagram_rect_, m_edge, and titleblock_template_renderer_.
Referenced by borderAndTitleBlockRect(), drawDxf(), DiagramView::mouseDoubleClickEvent(), and titleBlockRectForQPainter().
|
private |
BorderTitleBlock::titleBlockRectForQPainter.
Definition at line 91 of file bordertitleblock.cpp.
References diagram_rect_, m_edge, titleblock_template_renderer_, and titleBlockRect().
Referenced by draw().
const TitleBlockTemplate * BorderTitleBlock::titleBlockTemplate | ( | ) |
Definition at line 319 of file bordertitleblock.cpp.
References titleblock_template_renderer_.
Referenced by titleBlockTemplateName().
|
slot |
This slot may be used to inform this class that the given title block template has changed. The title block-dedicated rendering cache will thus be flushed.
template_name | Name of the title block template that has changed |
Definition at line 345 of file bordertitleblock.cpp.
References titleblock_template_renderer_, and titleBlockTemplateName().
Referenced by Diagram::titleBlockTemplateChanged().
QString BorderTitleBlock::titleBlockTemplateName | ( | ) | const |
Definition at line 334 of file bordertitleblock.cpp.
References titleblock_template_renderer_, and titleBlockTemplate().
Referenced by exportTitleBlock(), Diagram::setTitleBlockTemplate(), titleBlockTemplateChanged(), Diagram::titleBlockTemplateChanged(), titleBlockTemplateRemoved(), Diagram::titleBlockTemplateRemoved(), and Diagram::usesTitleBlockTemplate().
|
slot |
This slot has to be used to inform this class that the given title block template is about to be removed and is no longer accessible. This class will either use the provided optional TitleBlockTemplate or the default title block provided by QETApp::defaultTitleBlockTemplate()
template_name | Name of the title block template that has changed |
new_template | (Optional) title block template to use instead |
Definition at line 358 of file bordertitleblock.cpp.
References QETApp::defaultTitleBlockTemplate(), setTitleBlockTemplate(), and titleBlockTemplateName().
Referenced by Diagram::setTitleBlockTemplate(), and Diagram::titleBlockTemplateRemoved().
void BorderTitleBlock::titleBlockToXml | ( | QDomElement & | xml_elmt | ) |
Exports the title block current values to XML.
xml_elmt | the XML element attributes will be added to |
Definition at line 167 of file bordertitleblock.cpp.
References exportTitleBlock(), and TitleBlockProperties::toXml().
Referenced by Diagram::toXml().
|
private |
Update the informations given to the titleblock template by regenerating a DiagramContext object.
initial_context | Base diagram context that will be overridden by diagram-wide values |
Definition at line 744 of file bordertitleblock.cpp.
References additional_fields_, DiagramContext::addValue(), btb_author_, btb_auto_page_num_, btb_date_, btb_filename_, btb_final_folio_, btb_indexrev_, btb_locmach_, btb_plant_, btb_title_, btb_version_, folio_index_, folio_total_, DiagramContext::keys(), m_next_folio_num, m_previous_folio_num, and titleblock_template_renderer_.
Referenced by setFolioData().
|
private |
BorderTitleBlock::updateRectangles This method update the diagram rect according to the value of rows and columns (number and size)
Definition at line 419 of file bordertitleblock.cpp.
References borderChanged(), diagram_rect_, diagramHeight(), diagramWidth(), and Diagram::margin.
Referenced by borderFromXml(), BorderTitleBlock(), setColumnsCount(), setColumnsHeaderHeight(), setColumnsWidth(), setRowsCount(), setRowsHeaderWidth(), and setRowsHeight().
|
inline |
Definition at line 109 of file bordertitleblock.h.
References btb_version_.
Referenced by exportTitleBlock(), and setVersion().
|
private |
Definition at line 231 of file bordertitleblock.h.
Referenced by additionalFields(), exportTitleBlock(), importTitleBlock(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 218 of file bordertitleblock.h.
Referenced by author(), setAuthor(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 226 of file bordertitleblock.h.
Referenced by autoPageNum(), setAutoPageNum(), slot_setAutoPageNum(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 219 of file bordertitleblock.h.
Referenced by date(), setDate(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 229 of file bordertitleblock.h.
Referenced by fileName(), setFileName(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 225 of file bordertitleblock.h.
Referenced by finalfolio(), setFolioData(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 221 of file bordertitleblock.h.
Referenced by folio(), setFolio(), and setFolioData().
|
private |
Definition at line 224 of file bordertitleblock.h.
Referenced by indexrev(), setIndicerev(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 223 of file bordertitleblock.h.
Referenced by locmach(), setLocMach(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 222 of file bordertitleblock.h.
Referenced by plant(), setPlant(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 220 of file bordertitleblock.h.
Referenced by setTitle(), title(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 230 of file bordertitleblock.h.
Referenced by setVersion(), updateDiagramContextForTitleBlock(), and version().
|
private |
Definition at line 238 of file bordertitleblock.h.
Referenced by columnsCount(), columnsRect(), columnsTotalWidth(), draw(), drawDxf(), insideBorderRect(), outsideBorderRect(), and setColumnsCount().
|
private |
Definition at line 240 of file bordertitleblock.h.
Referenced by columnsHeaderHeight(), columnsRect(), draw(), drawDxf(), insideBorderRect(), outsideBorderRect(), rowsRect(), and setColumnsHeaderHeight().
|
private |
Definition at line 239 of file bordertitleblock.h.
Referenced by columnsRect(), columnsTotalWidth(), columnsWidth(), draw(), drawDxf(), insideBorderRect(), outsideBorderRect(), and setColumnsWidth().
|
private |
Definition at line 251 of file bordertitleblock.h.
Referenced by borderAndTitleBlockRect(), draw(), drawDxf(), titleBlockRect(), titleBlockRectForQPainter(), and updateRectangles().
|
private |
Definition at line 257 of file bordertitleblock.h.
Referenced by borderIsDisplayed(), BorderTitleBlock(), displayBorder(), draw(), and drawDxf().
|
private |
Definition at line 255 of file bordertitleblock.h.
Referenced by columnsAreDisplayed(), columnsRect(), displayColumns(), draw(), drawDxf(), and insideBorderRect().
|
private |
Definition at line 256 of file bordertitleblock.h.
Referenced by displayRows(), draw(), drawDxf(), insideBorderRect(), rowsAreDisplayed(), and rowsRect().
|
private |
Definition at line 254 of file bordertitleblock.h.
Referenced by BorderTitleBlock(), displayTitleBlock(), draw(), drawDxf(), and titleBlockIsDisplayed().
|
private |
Definition at line 227 of file bordertitleblock.h.
Referenced by setFolioData(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 228 of file bordertitleblock.h.
Referenced by folioTotal(), setFolioData(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 232 of file bordertitleblock.h.
Referenced by draw(), exportTitleBlock(), importTitleBlock(), titleBlockRect(), and titleBlockRectForQPainter().
|
private |
Definition at line 233 of file bordertitleblock.h.
Referenced by setNextFolioNum(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 233 of file bordertitleblock.h.
Referenced by setPreviousFolioNum(), and updateDiagramContextForTitleBlock().
|
private |
Definition at line 243 of file bordertitleblock.h.
Referenced by draw(), drawDxf(), insideBorderRect(), outsideBorderRect(), rowsCount(), rowsRect(), rowsTotalHeight(), and setRowsCount().
|
private |
Definition at line 245 of file bordertitleblock.h.
Referenced by columnsRect(), draw(), drawDxf(), insideBorderRect(), outsideBorderRect(), rowsHeaderWidth(), rowsRect(), and setRowsHeaderWidth().
|
private |
Definition at line 244 of file bordertitleblock.h.
Referenced by draw(), drawDxf(), insideBorderRect(), outsideBorderRect(), rowsHeight(), rowsRect(), rowsTotalHeight(), setDiagramHeight(), and setRowsHeight().
|
private |
Definition at line 248 of file bordertitleblock.h.
|
private |
Definition at line 258 of file bordertitleblock.h.
Referenced by BorderTitleBlock(), draw(), drawDxf(), setNextFolioNum(), setPreviousFolioNum(), setTitleBlockTemplate(), titleBlockRect(), titleBlockRectForQPainter(), titleBlockTemplate(), titleBlockTemplateChanged(), titleBlockTemplateName(), and updateDiagramContextForTitleBlock().