|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef BORDERTITLEBLOCK_H
19 #define BORDERTITLEBLOCK_H
49 void draw(QPainter *painter);
50 void drawDxf(
int,
int,
bool, QString &,
int);
static const double sheetHeight
Definition: createdxf.h:112
int rows_count
Rows count.
Definition: borderproperties.h:51
QList< QString > keys(KeyOrder=None) const
Definition: diagramcontext.cpp:49
Qt::Edge m_edge
titleblock edge
Definition: bordertitleblock.h:264
The BorderProperties class This class is a container for dimensions and display properties of a diagr...
Definition: borderproperties.h:29
QString version() const
Definition: bordertitleblock.h:125
qreal rows_header_width
Row headers width.
Definition: borderproperties.h:53
qreal columnsWidth() const
Definition: bordertitleblock.h:57
bool rowsAreDisplayed() const
Definition: bordertitleblock.h:143
QString btb_indexrev_
titleblock index rev
Definition: bordertitleblock.h:255
QDate date() const
Definition: bordertitleblock.h:109
static double yScale
Definition: createdxf.h:114
BorderProperties exportBorder()
BorderTitleBlock::exportBorder.
Definition: bordertitleblock.cpp:333
DiagramContext titleblockInformation() const
BorderTitleBlock::titleblockInformation.
Definition: bordertitleblock.cpp:99
bool display_border_
Definition: bordertitleblock.h:289
void setAutoPageNum(const QString &auto_page_num)
BorderTitleBlock::setAutoPageNum.
Definition: bordertitleblock.cpp:1083
int columns_count_
columns count
Definition: bordertitleblock.h:270
void titleBlockFolioChanged(const QString &)
titleBlockFolioChanged Signal emitted after Folio has changed
QString author() const
Definition: bordertitleblock.h:107
qreal rowsTotalHeight() const
Definition: bordertitleblock.h:71
void displayColumns(bool)
BorderTitleBlock::displayColumns.
Definition: bordertitleblock.cpp:442
void setFolioData(int, int, const QString &=nullptr, const DiagramContext &=DiagramContext())
BorderTitleBlock::setFolioData.
Definition: bordertitleblock.cpp:1013
void displayChanged()
displayChanged Signal emitted after display options have changed
BorderTitleBlock(QObject *=nullptr)
BorderTitleBlock::BorderTitleBlock Simple constructor: build a border by recovering the dimensions in...
Definition: bordertitleblock.cpp:46
const QString version
QElectroTech version (as string, used to mark projects and elements XML documents)
Definition: qet.h:32
qreal diagramHeight() const
diagramHeight
Definition: bordertitleblock.h:89
QString indexrev() const
Definition: bordertitleblock.h:121
QET::QetCollection collection
Specify the location of the title block.
Definition: titleblockproperties.h:68
void draw(QPainter *painter)
BorderTitleBlock::draw Draw the border and the titleblock.
Definition: bordertitleblock.cpp:504
QString btb_author_
titleblock author
Definition: bordertitleblock.h:249
QRectF borderAndTitleBlockRect() const
BorderTitleBlock::borderAndTitleBlockRect.
Definition: bordertitleblock.cpp:134
void setContext(const DiagramContext &context)
TitleBlockTemplateRenderer::setContext.
Definition: titleblocktemplaterenderer.cpp:48
QString btb_title_
titleblock title
Definition: bordertitleblock.h:251
QString auto_page_num
Definition: titleblockproperties.h:63
bool display_rows
Whether to display row headers.
Definition: borderproperties.h:54
void titleBlockFromXml(const QDomElement &)
BorderTitleBlock::titleBlockFromXml Reads the title block values from XML.
Definition: bordertitleblock.cpp:212
int folio_index_
titleblock index
Definition: bordertitleblock.h:258
void setNextFolioNum(const QString &next)
BorderTitleBlock::setNextFolioNum.
Definition: bordertitleblock.cpp:1103
void setRowsHeaderWidth(const qreal &)
BorderTitleBlock::setRowsHeaderWidth Change the width of the headers containing the line numbers....
Definition: bordertitleblock.cpp:853
bool display_rows_
Definition: bordertitleblock.h:288
QString title() const
Definition: bordertitleblock.h:111
void fromXml(const QDomElement &)
Definition: titleblockproperties.cpp:105
QRectF outsideBorderRect() const
BorderTitleBlock::outsideBorderRect.
Definition: bordertitleblock.cpp:171
void setColumnsCount(int)
BorderTitleBlock::setColumnsCount Allows you to change the number of columns. If this number of colum...
Definition: bordertitleblock.cpp:765
QString btb_locmach_
titleblock locmach
Definition: bordertitleblock.h:254
QRectF rowsRect() const
BorderTitleBlock::rowsRect.
Definition: bordertitleblock.cpp:157
QDate date
Date (displayed by the default template)
Definition: titleblockproperties.h:56
void displayTitleBlock(bool)
BorderTitleBlock::displayTitleBlock.
Definition: bordertitleblock.cpp:431
QString titleBlockTemplateName() const
BorderTitleBlock::titleBlockTemplateName.
Definition: bordertitleblock.cpp:387
DiagramContext additionalFields() const
Definition: bordertitleblock.h:127
void borderToXml(QDomElement &)
BorderTitleBlock::borderToXml Exports the border current settings to XML.
Definition: bordertitleblock.cpp:223
QString plant() const
Definition: bordertitleblock.h:117
qreal columnsHeaderHeight() const
Definition: bordertitleblock.h:62
void titleBlockToXml(QDomElement &)
BorderTitleBlock::titleBlockToXml Exports the title block current values to XML.
Definition: bordertitleblock.cpp:203
void setTitleBlockTemplate(const TitleBlockTemplate *)
BorderTitleBlock::setTitleBlockTemplate.
Definition: bordertitleblock.cpp:377
void titleBlockTemplateRemoved(const QString &, const TitleBlockTemplate *=nullptr)
BorderTitleBlock::titleBlockTemplateRemoved This slot has to be used to inform this class that the gi...
Definition: bordertitleblock.cpp:414
QString btb_version_
Definition: bordertitleblock.h:261
QRectF insideBorderRect() const
BorderTitleBlock::insideBorderRect.
Definition: bordertitleblock.cpp:185
DiagramContext context
Container for the additional, user-defined fields.
Definition: titleblockproperties.h:66
qreal rows_height
Rows height.
Definition: borderproperties.h:52
The TitleBlockTemplate class This class represents an title block template for an electric diagram....
Definition: titleblocktemplate.h:36
BorderTitleBlock(const BorderTitleBlock &)
int rowsCount() const
Definition: bordertitleblock.h:67
QString title
Folio title (displayed by the default template)
Definition: titleblockproperties.h:54
QString incrementLetters(const QString &)
BorderTitleBlock::incrementLetters increments string with Letters A to Z.
Definition: bordertitleblock.cpp:980
int columnsCount() const
Definition: bordertitleblock.h:55
qreal columns_header_height
Column headers height.
Definition: borderproperties.h:48
bool display_columns_
Definition: bordertitleblock.h:287
QString m_previous_folio_num
titleblock previous folio num
Definition: bordertitleblock.h:266
Definition: titleblockproperties.h:29
void toXml(QDomElement &) const
Definition: titleblockproperties.cpp:76
bool display_columns
Whether to display column headers.
Definition: borderproperties.h:49
const QString displayedVersion
QElectroTech displayed version.
Definition: qet.h:34
int folio_total_
titleblock total
Definition: bordertitleblock.h:259
void needFolioData()
needFolioData Signal emitted when the title block requires its data to be updated in order to generat...
void setPlant(const QString &plant)
BorderTitleBlock::setPlant.
Definition: bordertitleblock.cpp:1043
qreal rowsHeaderWidth() const
Definition: bordertitleblock.h:74
QRectF diagram_rect_
Definition: bordertitleblock.h:283
DiagramContext context() const
TitleBlockTemplateRenderer::context.
Definition: titleblocktemplaterenderer.cpp:57
DiagramContext additional_fields_
titleblock additional fields
Definition: bordertitleblock.h:263
QString locmach
Location(displayed by the default template)
Definition: titleblockproperties.h:59
qreal diagramWidth() const
diagramWidth
Definition: bordertitleblock.h:82
#define MIN_ROW_HEIGHT
Definition: bordertitleblock.cpp:32
void setColumnsHeaderHeight(const qreal &)
BorderTitleBlock::setColumnsHeaderHeight Change the height of the headers containing the column numbe...
Definition: bordertitleblock.cpp:800
TitleBlockProperties exportTitleBlock()
BorderTitleBlock::exportTitleBlock.
Definition: bordertitleblock.cpp:279
qreal rowsHeight() const
Definition: bordertitleblock.h:69
void drawDxf(int, int, bool, QString &, int)
BorderTitleBlock::drawDxf.
Definition: bordertitleblock.cpp:615
QString version
Version (displayed by the default template)
Definition: titleblockproperties.h:61
QDate btb_date_
titleblock date
Definition: bordertitleblock.h:250
QString folio() const
Definition: bordertitleblock.h:113
QString plant
Plant (displayed by the default template)
Definition: titleblockproperties.h:58
int rows_count_
rows count
Definition: bordertitleblock.h:275
void displayRows(bool)
BorderTitleBlock::displayRows.
Definition: bordertitleblock.cpp:453
void borderChanged(QRectF old_border, QRectF new_border)
borderChanged Signal emitted after the border has changed
void setLocMach(const QString &locmach)
BorderTitleBlock::setLocMach.
Definition: bordertitleblock.cpp:1051
void setTitle(const QString &title)
BorderTitleBlock::setTitle.
Definition: bordertitleblock.cpp:916
QString btb_final_folio_
titleblock final folio
Definition: bordertitleblock.h:256
#define MIN_COLUMN_WIDTH
Definition: bordertitleblock.cpp:31
void setFileName(const QString &filename)
BorderTitleBlock::setFileName.
Definition: bordertitleblock.cpp:1067
QString btb_plant_
titleblock plant
Definition: bordertitleblock.h:253
qreal rows_height_
rows height
Definition: bordertitleblock.h:276
void setVersion(const QString &version)
BorderTitleBlock::setVersion.
Definition: bordertitleblock.cpp:1075
QString btb_folio_
titleblock folio
Definition: bordertitleblock.h:252
qreal columnsTotalWidth() const
Definition: bordertitleblock.h:59
int columns_count
Columns count.
Definition: borderproperties.h:46
QString filename
Filename (displayed by the default template)
Definition: titleblockproperties.h:57
QRectF titleBlockRectForQPainter() const
BorderTitleBlock::titleBlockRectForQPainter.
Definition: bordertitleblock.cpp:115
int folioTotal() const
Definition: bordertitleblock.h:132
static void drawRectangle(const QString &filepath, double, double, double, double, const int &colorcode)
Definition: createdxf.cpp:565
static const qreal margin
margin around the diagram
Definition: diagram.h:97
void setIndicerev(const QString &indexrev)
BorderTitleBlock::setIndicerev.
Definition: bordertitleblock.cpp:1059
void setColumnsWidth(const qreal &)
BorderTitleBlock::setColumnsWidth Change the width of the columns. If the width indicated is less tha...
Definition: bordertitleblock.cpp:784
static double xScale
Definition: createdxf.h:113
void setDiagramHeight(const qreal &)
BorderTitleBlock::setDiagramHeight This method tries to get as close as possible to the given height ...
Definition: bordertitleblock.cpp:867
QRectF titleBlockRect() const
BorderTitleBlock::titleBlockRect.
Definition: bordertitleblock.cpp:81
QRectF columnsRect() const
BorderTitleBlock::columnsRect.
Definition: bordertitleblock.cpp:143
QString finalfolio() const
Definition: bordertitleblock.h:115
void importTitleBlock(const TitleBlockProperties &)
BorderTitleBlock::importTitleBlock.
Definition: bordertitleblock.cpp:304
void slot_setAutoPageNum(QString)
BorderTitleBlock::slot_setAutoPageNum.
Definition: bordertitleblock.cpp:479
void needTitleBlockTemplate(const QString &)
needTitleBlockTemplate Signal emitted when this object needs to set a specific title block template....
void setDate(const QDate &date)
BorderTitleBlock::setDate.
Definition: bordertitleblock.cpp:908
bool columnsAreDisplayed() const
Definition: bordertitleblock.h:140
bool titleBlockIsDisplayed() const
Definition: bordertitleblock.h:136
TitleBlockTemplateRenderer * m_titleblock_template_renderer
Definition: bordertitleblock.h:290
QString btb_auto_page_num_
titleblock auto page num
Definition: bordertitleblock.h:257
qreal titleblock_height_
Definition: bordertitleblock.h:280
Qt::Edge display_at
Edge to display the titleblock.
Definition: titleblockproperties.h:67
QString author
Author of the diagram/folio (displayed by the default template)
Definition: titleblockproperties.h:55
void setRowsHeight(const qreal &)
BorderTitleBlock::setRowsHeight Change the height of the lines. If the indicated height is lower than...
Definition: bordertitleblock.cpp:837
@ Embedded
From an embedded collection (a project for exemple)
Definition: qet.h:155
The BorderTitleBlock class This class represents the border and the titleblock which frame a particul...
Definition: bordertitleblock.h:37
#define MIN_COLUMN_COUNT
Definition: bordertitleblock.cpp:29
void diagramTitleChanged(const QString &)
diagramTitleChanged Signal emitted after the title has changed
QString locmach() const
Definition: bordertitleblock.h:119
static QFont diagramTextsFont(qreal=-1.0)
QETApp::diagramTextsFont The font to use By default the font is "sans Serif" and size 9.
Definition: qetapp.cpp:1111
QString m_next_folio_num
titleblock next folio num
Definition: bordertitleblock.h:265
static void drawTextAligned(const QString &fileName, const QString &text, double x, double y, double height, double rotation, double oblique, int hAlign, int vAlign, double xAlign, double xScale, int colour, bool leftAlign=false, float scale=0)
Definition: createdxf.cpp:781
qreal rows_header_width_
rows header width
Definition: bordertitleblock.h:277
QString template_name
Name of the template used to render the title block - an empty string means "the default template pro...
Definition: titleblockproperties.h:65
static TitleBlockTemplate * defaultTitleBlockTemplate()
QETApp::defaultTitleBlockTemplate.
Definition: qetapp.cpp:1294
QString fileName() const
Definition: bordertitleblock.h:123
Definition: diagramposition.h:29
void setAuthor(const QString &author)
BorderTitleBlock::setAuthor.
Definition: bordertitleblock.cpp:900
QString autoPageNum() const
Definition: bordertitleblock.h:130
QString indexrev
Revision Index (displayed by the default template)
Definition: titleblockproperties.h:60
void setFolio(const QString &folio)
BorderTitleBlock::setFolio.
Definition: bordertitleblock.cpp:929
bool display_titleblock_
Definition: bordertitleblock.h:286
void borderFromXml(const QDomElement &)
BorderTitleBlock::borderFromXml Reads the border settings from XML.
Definition: bordertitleblock.cpp:241
Definition: assignvariables.cpp:30
qreal columns_header_height_
columns header height
Definition: bordertitleblock.h:272
qreal columns_width
Columns width.
Definition: borderproperties.h:47
void setRowsCount(int)
BorderTitleBlock::setRowsCount Allows you to change the number of lines. If this number of lines is l...
Definition: bordertitleblock.cpp:818
void displayBorder(bool)
BorderTitleBlock::displayBorder.
Definition: bordertitleblock.cpp:468
void importBorder(const BorderProperties &)
BorderTitleBlock::importBorder.
Definition: bordertitleblock.cpp:351
bool addValue(const QString &, const QVariant &, bool show=true)
Definition: diagramcontext.cpp:91
QString folio
Folio information (displayed by the default template)
Definition: titleblockproperties.h:62
QString btb_filename_
titleblock filename
Definition: bordertitleblock.h:260
The TitleBlockTemplateRenderer class.
Definition: titleblocktemplaterenderer.h:28
void updateRectangles()
BorderTitleBlock::updateRectangles This method update the diagram rect according to the value of rows...
Definition: bordertitleblock.cpp:488
void updateDiagramContextForTitleBlock(const DiagramContext &=DiagramContext())
BorderTitleBlock::updateDiagramContextForTitleBlock Update the informations given to the titleblock t...
Definition: bordertitleblock.cpp:942
DiagramPosition convertPosition(const QPointF &)
BorderTitleBlock::convertPosition Convert a Point in cartesian coordinate (x : 12....
Definition: bordertitleblock.cpp:880
const TitleBlockTemplate * titleBlockTemplate()
BorderTitleBlock::titleBlockTemplate.
Definition: bordertitleblock.cpp:367
~BorderTitleBlock() override
BorderTitleBlock::~BorderTitleBlock.
Definition: bordertitleblock.cpp:74
void titleBlockTemplateChanged(const QString &)
BorderTitleBlock::titleBlockTemplateChanged This slot may be used to inform this class that the given...
Definition: bordertitleblock.cpp:399
Definition: diagramcontext.h:56
bool borderIsDisplayed() const
Definition: bordertitleblock.h:145
qreal columns_width_
columns width
Definition: bordertitleblock.h:271
#define MIN_ROW_COUNT
Definition: bordertitleblock.cpp:30
void setPreviousFolioNum(const QString &previous)
BorderTitleBlock::setPreviousFolioNum.
Definition: bordertitleblock.cpp:1091