QElectroTech  0.8-dev
bordertitleblock.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 The QElectroTech Team
3  This file is part of QElectroTech.
4 
5  QElectroTech is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 2 of the License, or
8  (at your option) any later version.
9 
10  QElectroTech is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef BORDERTITLEBLOCK_H
19 #define BORDERTITLEBLOCK_H
20 #include "diagramcontext.h"
21 #include "titleblockproperties.h"
22 #include "borderproperties.h"
23 #include <QObject>
24 #include <QRectF>
25 #include <QDate>
26 #include "numerotationcontext.h"
27 class QPainter;
28 class DiagramPosition;
29 class TitleBlockTemplate;
36 class BorderTitleBlock : public QObject
37 {
38  Q_OBJECT
39 
40  public:
41  BorderTitleBlock(QObject * = nullptr);
42  ~BorderTitleBlock() override;
43 
44  private:
46 
47  //METHODS
48  public:
49  void draw(QPainter *painter);
50  void drawDxf(int, int, bool, QString &, int);
51 
52  //METHODS TO GET DIMENSION
53  //COLUMNS
55  int columnsCount() const { return(columns_count_); }
57  qreal columnsWidth() const { return(columns_width_); }
59  qreal columnsTotalWidth() const {
60  return(columns_count_ * columns_width_); }
62  qreal columnsHeaderHeight() const {
63  return(columns_header_height_); }
64 
65  //ROWS
67  int rowsCount() const { return(rows_count_); }
69  qreal rowsHeight() const { return(rows_height_); }
71  qreal rowsTotalHeight() const {
72  return(rows_count_ * rows_height_); }
74  qreal rowsHeaderWidth() const { return(rows_header_width_); }
75 
76  // border - title block = diagram
82  qreal diagramWidth() const {
83  return(columnsTotalWidth() + rowsHeaderWidth()); }
89  qreal diagramHeight() const {
90  return(rowsTotalHeight() + columnsHeaderHeight()); }
91 
92  QRectF titleBlockRect () const;
93 
95  private:
96  QRectF titleBlockRectForQPainter () const;
97 
98  public:
99  QRectF borderAndTitleBlockRect () const;
100  QRectF columnsRect () const;
101  QRectF rowsRect () const;
102  QRectF outsideBorderRect() const;
103  QRectF insideBorderRect() const;
104 
105  // methods to get title block basic data
107  QString author() const { return(btb_author_); }
109  QDate date() const { return(btb_date_); }
111  QString title() const { return(btb_title_); }
113  QString folio() const { return(btb_folio_); }
115  QString finalfolio() const { return(btb_final_folio_); }
117  QString plant() const { return(btb_plant_); }
119  QString locmach() const { return(btb_locmach_); }
121  QString indexrev() const { return(btb_indexrev_); }
123  QString fileName() const { return(btb_filename_); }
125  QString version() const { return(btb_version_); }
128  return (additional_fields_); }
130  QString autoPageNum() const { return(btb_auto_page_num_); }
132  int folioTotal() const { return(folio_total_);}
133 
134  // methods to get display options
136  bool titleBlockIsDisplayed() const {
137  return(display_titleblock_); }
140  bool columnsAreDisplayed() const { return(display_columns_); }
143  bool rowsAreDisplayed() const { return(display_rows_); }
145  bool borderIsDisplayed() const { return(display_border_); }
146 
147  // methods to set dimensions
148  void setColumnsCount(int);
149  void setRowsCount(int);
150  void setColumnsWidth(const qreal &);
151  void setRowsHeight(const qreal &);
152  void setColumnsHeaderHeight(const qreal &);
153  void setRowsHeaderWidth(const qreal &);
154  void setDiagramHeight(const qreal &);
155 
156  DiagramPosition convertPosition(const QPointF &);
157 
158  // methods to set title block basic data
159  void setAuthor(const QString &author);
160  void setDate(const QDate &date);
161  void setTitle(const QString &title);
162  void setFolio(const QString &folio);
163  void setFolioData(int, int, const QString& = nullptr,
164  const DiagramContext & = DiagramContext());
165  void setPlant(const QString &plant);
166  void setLocMach(const QString &locmach);
167  void setIndicerev(const QString &indexrev);
168  void setFileName(const QString &filename);
169  void setVersion(const QString &version);
170  void setAutoPageNum(const QString &auto_page_num);
171  void setPreviousFolioNum(const QString &previous);
172  void setNextFolioNum(const QString &next);
173 
174  void titleBlockToXml(QDomElement &);
175  void titleBlockFromXml(const QDomElement &);
176  void borderToXml(QDomElement &);
177  void borderFromXml(const QDomElement &);
178 
182  void importBorder(const BorderProperties &);
183 
186  QString titleBlockTemplateName() const;
187 
188  public slots:
189  void titleBlockTemplateChanged(const QString &);
191  const QString &,
192  const TitleBlockTemplate * = nullptr);
193 
194  // methods to set display options
195  void displayTitleBlock(bool);
196  void displayColumns(bool);
197  void displayRows(bool);
198  void displayBorder(bool);
199  void slot_setAutoPageNum (QString);
200 
201  private:
202  void updateRectangles();
204  const DiagramContext & = DiagramContext());
205  QString incrementLetters(const QString &);
206 
207  signals:
214  void borderChanged(QRectF old_border, QRectF new_border);
224  void diagramTitleChanged(const QString &);
229  void titleBlockFolioChanged(const QString &);
244  void needTitleBlockTemplate(const QString &);
245 
246  // attributes
247  private:
248  // titleblock basic data
249  QString btb_author_;
250  QDate btb_date_;
251  QString btb_title_;
252  QString btb_folio_;
253  QString btb_plant_;
254  QString btb_locmach_;
255  QString btb_indexrev_;
260  QString btb_filename_;
261  QString btb_version_;
264  Qt::Edge m_edge;
267 
268  // border dimensions (rows and columns)
269  // columns: number and dimensions
273 
274  // rows: number and dimensions
276  qreal rows_height_;
278 
279  // title block dimensions
281 
282  // rectangles used for drawing operations
284 
285  // display options
291 };
292 #endif
Createdxf::sheetHeight
static const double sheetHeight
Definition: createdxf.h:112
BorderProperties::rows_count
int rows_count
Rows count.
Definition: borderproperties.h:51
DiagramContext::keys
QList< QString > keys(KeyOrder=None) const
Definition: diagramcontext.cpp:49
BorderTitleBlock::m_edge
Qt::Edge m_edge
titleblock edge
Definition: bordertitleblock.h:264
BorderProperties
The BorderProperties class This class is a container for dimensions and display properties of a diagr...
Definition: borderproperties.h:29
BorderTitleBlock::version
QString version() const
Definition: bordertitleblock.h:125
BorderProperties::rows_header_width
qreal rows_header_width
Row headers width.
Definition: borderproperties.h:53
BorderTitleBlock::columnsWidth
qreal columnsWidth() const
Definition: bordertitleblock.h:57
BorderTitleBlock::rowsAreDisplayed
bool rowsAreDisplayed() const
Definition: bordertitleblock.h:143
BorderTitleBlock::btb_indexrev_
QString btb_indexrev_
titleblock index rev
Definition: bordertitleblock.h:255
BorderTitleBlock::date
QDate date() const
Definition: bordertitleblock.h:109
Createdxf::yScale
static double yScale
Definition: createdxf.h:114
BorderTitleBlock::exportBorder
BorderProperties exportBorder()
BorderTitleBlock::exportBorder.
Definition: bordertitleblock.cpp:333
BorderTitleBlock::titleblockInformation
DiagramContext titleblockInformation() const
BorderTitleBlock::titleblockInformation.
Definition: bordertitleblock.cpp:99
BorderTitleBlock::display_border_
bool display_border_
Definition: bordertitleblock.h:289
BorderTitleBlock::setAutoPageNum
void setAutoPageNum(const QString &auto_page_num)
BorderTitleBlock::setAutoPageNum.
Definition: bordertitleblock.cpp:1083
BorderTitleBlock::columns_count_
int columns_count_
columns count
Definition: bordertitleblock.h:270
BorderTitleBlock::titleBlockFolioChanged
void titleBlockFolioChanged(const QString &)
titleBlockFolioChanged Signal emitted after Folio has changed
BorderTitleBlock::author
QString author() const
Definition: bordertitleblock.h:107
BorderTitleBlock::rowsTotalHeight
qreal rowsTotalHeight() const
Definition: bordertitleblock.h:71
BorderTitleBlock::displayColumns
void displayColumns(bool)
BorderTitleBlock::displayColumns.
Definition: bordertitleblock.cpp:442
BorderTitleBlock::setFolioData
void setFolioData(int, int, const QString &=nullptr, const DiagramContext &=DiagramContext())
BorderTitleBlock::setFolioData.
Definition: bordertitleblock.cpp:1013
BorderTitleBlock::displayChanged
void displayChanged()
displayChanged Signal emitted after display options have changed
titleblockproperties.h
BorderTitleBlock::BorderTitleBlock
BorderTitleBlock(QObject *=nullptr)
BorderTitleBlock::BorderTitleBlock Simple constructor: build a border by recovering the dimensions in...
Definition: bordertitleblock.cpp:46
QET::version
const QString version
QElectroTech version (as string, used to mark projects and elements XML documents)
Definition: qet.h:32
BorderTitleBlock::diagramHeight
qreal diagramHeight() const
diagramHeight
Definition: bordertitleblock.h:89
BorderTitleBlock::indexrev
QString indexrev() const
Definition: bordertitleblock.h:121
TitleBlockProperties::collection
QET::QetCollection collection
Specify the location of the title block.
Definition: titleblockproperties.h:68
BorderTitleBlock::draw
void draw(QPainter *painter)
BorderTitleBlock::draw Draw the border and the titleblock.
Definition: bordertitleblock.cpp:504
diagramposition.h
BorderTitleBlock::btb_author_
QString btb_author_
titleblock author
Definition: bordertitleblock.h:249
BorderTitleBlock::borderAndTitleBlockRect
QRectF borderAndTitleBlockRect() const
BorderTitleBlock::borderAndTitleBlockRect.
Definition: bordertitleblock.cpp:134
TitleBlockTemplateRenderer::setContext
void setContext(const DiagramContext &context)
TitleBlockTemplateRenderer::setContext.
Definition: titleblocktemplaterenderer.cpp:48
BorderTitleBlock::btb_title_
QString btb_title_
titleblock title
Definition: bordertitleblock.h:251
TitleBlockProperties::auto_page_num
QString auto_page_num
Definition: titleblockproperties.h:63
BorderProperties::display_rows
bool display_rows
Whether to display row headers.
Definition: borderproperties.h:54
BorderTitleBlock::titleBlockFromXml
void titleBlockFromXml(const QDomElement &)
BorderTitleBlock::titleBlockFromXml Reads the title block values from XML.
Definition: bordertitleblock.cpp:212
BorderTitleBlock::folio_index_
int folio_index_
titleblock index
Definition: bordertitleblock.h:258
BorderTitleBlock::setNextFolioNum
void setNextFolioNum(const QString &next)
BorderTitleBlock::setNextFolioNum.
Definition: bordertitleblock.cpp:1103
BorderTitleBlock::setRowsHeaderWidth
void setRowsHeaderWidth(const qreal &)
BorderTitleBlock::setRowsHeaderWidth Change the width of the headers containing the line numbers....
Definition: bordertitleblock.cpp:853
borderproperties.h
BorderTitleBlock::display_rows_
bool display_rows_
Definition: bordertitleblock.h:288
BorderTitleBlock::title
QString title() const
Definition: bordertitleblock.h:111
TitleBlockProperties::fromXml
void fromXml(const QDomElement &)
Definition: titleblockproperties.cpp:105
BorderTitleBlock::outsideBorderRect
QRectF outsideBorderRect() const
BorderTitleBlock::outsideBorderRect.
Definition: bordertitleblock.cpp:171
BorderTitleBlock::setColumnsCount
void setColumnsCount(int)
BorderTitleBlock::setColumnsCount Allows you to change the number of columns. If this number of colum...
Definition: bordertitleblock.cpp:765
BorderTitleBlock::btb_locmach_
QString btb_locmach_
titleblock locmach
Definition: bordertitleblock.h:254
BorderTitleBlock::rowsRect
QRectF rowsRect() const
BorderTitleBlock::rowsRect.
Definition: bordertitleblock.cpp:157
TitleBlockProperties::date
QDate date
Date (displayed by the default template)
Definition: titleblockproperties.h:56
BorderTitleBlock::displayTitleBlock
void displayTitleBlock(bool)
BorderTitleBlock::displayTitleBlock.
Definition: bordertitleblock.cpp:431
BorderTitleBlock::titleBlockTemplateName
QString titleBlockTemplateName() const
BorderTitleBlock::titleBlockTemplateName.
Definition: bordertitleblock.cpp:387
BorderTitleBlock::additionalFields
DiagramContext additionalFields() const
Definition: bordertitleblock.h:127
BorderTitleBlock::borderToXml
void borderToXml(QDomElement &)
BorderTitleBlock::borderToXml Exports the border current settings to XML.
Definition: bordertitleblock.cpp:223
BorderTitleBlock::plant
QString plant() const
Definition: bordertitleblock.h:117
BorderTitleBlock::columnsHeaderHeight
qreal columnsHeaderHeight() const
Definition: bordertitleblock.h:62
BorderTitleBlock::titleBlockToXml
void titleBlockToXml(QDomElement &)
BorderTitleBlock::titleBlockToXml Exports the title block current values to XML.
Definition: bordertitleblock.cpp:203
BorderTitleBlock::setTitleBlockTemplate
void setTitleBlockTemplate(const TitleBlockTemplate *)
BorderTitleBlock::setTitleBlockTemplate.
Definition: bordertitleblock.cpp:377
qetapp.h
BorderTitleBlock::titleBlockTemplateRemoved
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
BorderTitleBlock::btb_version_
QString btb_version_
Definition: bordertitleblock.h:261
BorderTitleBlock::insideBorderRect
QRectF insideBorderRect() const
BorderTitleBlock::insideBorderRect.
Definition: bordertitleblock.cpp:185
TitleBlockProperties::context
DiagramContext context
Container for the additional, user-defined fields.
Definition: titleblockproperties.h:66
BorderProperties::rows_height
qreal rows_height
Rows height.
Definition: borderproperties.h:52
TitleBlockTemplate
The TitleBlockTemplate class This class represents an title block template for an electric diagram....
Definition: titleblocktemplate.h:36
BorderTitleBlock::BorderTitleBlock
BorderTitleBlock(const BorderTitleBlock &)
BorderTitleBlock::rowsCount
int rowsCount() const
Definition: bordertitleblock.h:67
TitleBlockProperties::title
QString title
Folio title (displayed by the default template)
Definition: titleblockproperties.h:54
BorderTitleBlock::incrementLetters
QString incrementLetters(const QString &)
BorderTitleBlock::incrementLetters increments string with Letters A to Z.
Definition: bordertitleblock.cpp:980
BorderTitleBlock::columnsCount
int columnsCount() const
Definition: bordertitleblock.h:55
BorderProperties::columns_header_height
qreal columns_header_height
Column headers height.
Definition: borderproperties.h:48
BorderTitleBlock::display_columns_
bool display_columns_
Definition: bordertitleblock.h:287
BorderTitleBlock::m_previous_folio_num
QString m_previous_folio_num
titleblock previous folio num
Definition: bordertitleblock.h:266
TitleBlockProperties
Definition: titleblockproperties.h:29
TitleBlockProperties::toXml
void toXml(QDomElement &) const
Definition: titleblockproperties.cpp:76
BorderProperties::display_columns
bool display_columns
Whether to display column headers.
Definition: borderproperties.h:49
QET::displayedVersion
const QString displayedVersion
QElectroTech displayed version.
Definition: qet.h:34
BorderTitleBlock::folio_total_
int folio_total_
titleblock total
Definition: bordertitleblock.h:259
BorderTitleBlock::needFolioData
void needFolioData()
needFolioData Signal emitted when the title block requires its data to be updated in order to generat...
BorderTitleBlock::setPlant
void setPlant(const QString &plant)
BorderTitleBlock::setPlant.
Definition: bordertitleblock.cpp:1043
BorderTitleBlock::rowsHeaderWidth
qreal rowsHeaderWidth() const
Definition: bordertitleblock.h:74
BorderTitleBlock::diagram_rect_
QRectF diagram_rect_
Definition: bordertitleblock.h:283
TitleBlockTemplateRenderer::context
DiagramContext context() const
TitleBlockTemplateRenderer::context.
Definition: titleblocktemplaterenderer.cpp:57
BorderTitleBlock::additional_fields_
DiagramContext additional_fields_
titleblock additional fields
Definition: bordertitleblock.h:263
TitleBlockProperties::locmach
QString locmach
Location(displayed by the default template)
Definition: titleblockproperties.h:59
BorderTitleBlock::diagramWidth
qreal diagramWidth() const
diagramWidth
Definition: bordertitleblock.h:82
MIN_ROW_HEIGHT
#define MIN_ROW_HEIGHT
Definition: bordertitleblock.cpp:32
BorderTitleBlock::setColumnsHeaderHeight
void setColumnsHeaderHeight(const qreal &)
BorderTitleBlock::setColumnsHeaderHeight Change the height of the headers containing the column numbe...
Definition: bordertitleblock.cpp:800
BorderTitleBlock::exportTitleBlock
TitleBlockProperties exportTitleBlock()
BorderTitleBlock::exportTitleBlock.
Definition: bordertitleblock.cpp:279
BorderTitleBlock::rowsHeight
qreal rowsHeight() const
Definition: bordertitleblock.h:69
BorderTitleBlock::drawDxf
void drawDxf(int, int, bool, QString &, int)
BorderTitleBlock::drawDxf.
Definition: bordertitleblock.cpp:615
TitleBlockProperties::version
QString version
Version (displayed by the default template)
Definition: titleblockproperties.h:61
BorderTitleBlock::btb_date_
QDate btb_date_
titleblock date
Definition: bordertitleblock.h:250
BorderTitleBlock::folio
QString folio() const
Definition: bordertitleblock.h:113
TitleBlockProperties::plant
QString plant
Plant (displayed by the default template)
Definition: titleblockproperties.h:58
BorderTitleBlock::rows_count_
int rows_count_
rows count
Definition: bordertitleblock.h:275
numerotationcontext.h
BorderTitleBlock::displayRows
void displayRows(bool)
BorderTitleBlock::displayRows.
Definition: bordertitleblock.cpp:453
BorderTitleBlock::borderChanged
void borderChanged(QRectF old_border, QRectF new_border)
borderChanged Signal emitted after the border has changed
BorderTitleBlock::setLocMach
void setLocMach(const QString &locmach)
BorderTitleBlock::setLocMach.
Definition: bordertitleblock.cpp:1051
bordertitleblock.h
BorderTitleBlock::setTitle
void setTitle(const QString &title)
BorderTitleBlock::setTitle.
Definition: bordertitleblock.cpp:916
BorderTitleBlock::btb_final_folio_
QString btb_final_folio_
titleblock final folio
Definition: bordertitleblock.h:256
MIN_COLUMN_WIDTH
#define MIN_COLUMN_WIDTH
Definition: bordertitleblock.cpp:31
BorderTitleBlock::setFileName
void setFileName(const QString &filename)
BorderTitleBlock::setFileName.
Definition: bordertitleblock.cpp:1067
BorderTitleBlock::btb_plant_
QString btb_plant_
titleblock plant
Definition: bordertitleblock.h:253
BorderTitleBlock::rows_height_
qreal rows_height_
rows height
Definition: bordertitleblock.h:276
BorderTitleBlock::setVersion
void setVersion(const QString &version)
BorderTitleBlock::setVersion.
Definition: bordertitleblock.cpp:1075
BorderTitleBlock::btb_folio_
QString btb_folio_
titleblock folio
Definition: bordertitleblock.h:252
BorderTitleBlock::columnsTotalWidth
qreal columnsTotalWidth() const
Definition: bordertitleblock.h:59
BorderProperties::columns_count
int columns_count
Columns count.
Definition: borderproperties.h:46
TitleBlockProperties::filename
QString filename
Filename (displayed by the default template)
Definition: titleblockproperties.h:57
BorderTitleBlock::titleBlockRectForQPainter
QRectF titleBlockRectForQPainter() const
BorderTitleBlock::titleBlockRectForQPainter.
Definition: bordertitleblock.cpp:115
BorderTitleBlock::folioTotal
int folioTotal() const
Definition: bordertitleblock.h:132
Createdxf::drawRectangle
static void drawRectangle(const QString &filepath, double, double, double, double, const int &colorcode)
Definition: createdxf.cpp:565
Diagram::margin
static const qreal margin
margin around the diagram
Definition: diagram.h:97
BorderTitleBlock::setIndicerev
void setIndicerev(const QString &indexrev)
BorderTitleBlock::setIndicerev.
Definition: bordertitleblock.cpp:1059
BorderTitleBlock::setColumnsWidth
void setColumnsWidth(const qreal &)
BorderTitleBlock::setColumnsWidth Change the width of the columns. If the width indicated is less tha...
Definition: bordertitleblock.cpp:784
Createdxf::xScale
static double xScale
Definition: createdxf.h:113
BorderTitleBlock::setDiagramHeight
void setDiagramHeight(const qreal &)
BorderTitleBlock::setDiagramHeight This method tries to get as close as possible to the given height ...
Definition: bordertitleblock.cpp:867
BorderTitleBlock::titleBlockRect
QRectF titleBlockRect() const
BorderTitleBlock::titleBlockRect.
Definition: bordertitleblock.cpp:81
BorderTitleBlock::columnsRect
QRectF columnsRect() const
BorderTitleBlock::columnsRect.
Definition: bordertitleblock.cpp:143
BorderTitleBlock::finalfolio
QString finalfolio() const
Definition: bordertitleblock.h:115
BorderTitleBlock::importTitleBlock
void importTitleBlock(const TitleBlockProperties &)
BorderTitleBlock::importTitleBlock.
Definition: bordertitleblock.cpp:304
BorderTitleBlock::slot_setAutoPageNum
void slot_setAutoPageNum(QString)
BorderTitleBlock::slot_setAutoPageNum.
Definition: bordertitleblock.cpp:479
BorderTitleBlock::needTitleBlockTemplate
void needTitleBlockTemplate(const QString &)
needTitleBlockTemplate Signal emitted when this object needs to set a specific title block template....
BorderTitleBlock::setDate
void setDate(const QDate &date)
BorderTitleBlock::setDate.
Definition: bordertitleblock.cpp:908
BorderTitleBlock::columnsAreDisplayed
bool columnsAreDisplayed() const
Definition: bordertitleblock.h:140
BorderTitleBlock::titleBlockIsDisplayed
bool titleBlockIsDisplayed() const
Definition: bordertitleblock.h:136
BorderTitleBlock::m_titleblock_template_renderer
TitleBlockTemplateRenderer * m_titleblock_template_renderer
Definition: bordertitleblock.h:290
BorderTitleBlock::btb_auto_page_num_
QString btb_auto_page_num_
titleblock auto page num
Definition: bordertitleblock.h:257
BorderTitleBlock::titleblock_height_
qreal titleblock_height_
Definition: bordertitleblock.h:280
TitleBlockProperties::display_at
Qt::Edge display_at
Edge to display the titleblock.
Definition: titleblockproperties.h:67
TitleBlockProperties::author
QString author
Author of the diagram/folio (displayed by the default template)
Definition: titleblockproperties.h:55
BorderTitleBlock::setRowsHeight
void setRowsHeight(const qreal &)
BorderTitleBlock::setRowsHeight Change the height of the lines. If the indicated height is lower than...
Definition: bordertitleblock.cpp:837
QET::Embedded
@ Embedded
From an embedded collection (a project for exemple)
Definition: qet.h:155
BorderTitleBlock
The BorderTitleBlock class This class represents the border and the titleblock which frame a particul...
Definition: bordertitleblock.h:37
MIN_COLUMN_COUNT
#define MIN_COLUMN_COUNT
Definition: bordertitleblock.cpp:29
BorderTitleBlock::diagramTitleChanged
void diagramTitleChanged(const QString &)
diagramTitleChanged Signal emitted after the title has changed
BorderTitleBlock::locmach
QString locmach() const
Definition: bordertitleblock.h:119
QETApp::diagramTextsFont
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
diagramcontext.h
BorderTitleBlock::m_next_folio_num
QString m_next_folio_num
titleblock next folio num
Definition: bordertitleblock.h:265
Createdxf::drawTextAligned
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
BorderTitleBlock::rows_header_width_
qreal rows_header_width_
rows header width
Definition: bordertitleblock.h:277
TitleBlockProperties::template_name
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
QETApp::defaultTitleBlockTemplate
static TitleBlockTemplate * defaultTitleBlockTemplate()
QETApp::defaultTitleBlockTemplate.
Definition: qetapp.cpp:1294
BorderTitleBlock::fileName
QString fileName() const
Definition: bordertitleblock.h:123
DiagramPosition
Definition: diagramposition.h:29
BorderTitleBlock::setAuthor
void setAuthor(const QString &author)
BorderTitleBlock::setAuthor.
Definition: bordertitleblock.cpp:900
BorderTitleBlock::autoPageNum
QString autoPageNum() const
Definition: bordertitleblock.h:130
createdxf.h
TitleBlockProperties::indexrev
QString indexrev
Revision Index (displayed by the default template)
Definition: titleblockproperties.h:60
BorderTitleBlock::setFolio
void setFolio(const QString &folio)
BorderTitleBlock::setFolio.
Definition: bordertitleblock.cpp:929
titleblocktemplate.h
BorderTitleBlock::display_titleblock_
bool display_titleblock_
Definition: bordertitleblock.h:286
BorderTitleBlock::borderFromXml
void borderFromXml(const QDomElement &)
BorderTitleBlock::borderFromXml Reads the border settings from XML.
Definition: bordertitleblock.cpp:241
autonum
Definition: assignvariables.cpp:30
BorderTitleBlock::columns_header_height_
qreal columns_header_height_
columns header height
Definition: bordertitleblock.h:272
BorderProperties::columns_width
qreal columns_width
Columns width.
Definition: borderproperties.h:47
BorderTitleBlock::setRowsCount
void setRowsCount(int)
BorderTitleBlock::setRowsCount Allows you to change the number of lines. If this number of lines is l...
Definition: bordertitleblock.cpp:818
BorderTitleBlock::displayBorder
void displayBorder(bool)
BorderTitleBlock::displayBorder.
Definition: bordertitleblock.cpp:468
BorderTitleBlock::importBorder
void importBorder(const BorderProperties &)
BorderTitleBlock::importBorder.
Definition: bordertitleblock.cpp:351
DiagramContext::addValue
bool addValue(const QString &, const QVariant &, bool show=true)
Definition: diagramcontext.cpp:91
TitleBlockProperties::folio
QString folio
Folio information (displayed by the default template)
Definition: titleblockproperties.h:62
BorderTitleBlock::btb_filename_
QString btb_filename_
titleblock filename
Definition: bordertitleblock.h:260
TitleBlockTemplateRenderer
The TitleBlockTemplateRenderer class.
Definition: titleblocktemplaterenderer.h:28
BorderTitleBlock::updateRectangles
void updateRectangles()
BorderTitleBlock::updateRectangles This method update the diagram rect according to the value of rows...
Definition: bordertitleblock.cpp:488
BorderTitleBlock::updateDiagramContextForTitleBlock
void updateDiagramContextForTitleBlock(const DiagramContext &=DiagramContext())
BorderTitleBlock::updateDiagramContextForTitleBlock Update the informations given to the titleblock t...
Definition: bordertitleblock.cpp:942
BorderTitleBlock::convertPosition
DiagramPosition convertPosition(const QPointF &)
BorderTitleBlock::convertPosition Convert a Point in cartesian coordinate (x : 12....
Definition: bordertitleblock.cpp:880
BorderTitleBlock::titleBlockTemplate
const TitleBlockTemplate * titleBlockTemplate()
BorderTitleBlock::titleBlockTemplate.
Definition: bordertitleblock.cpp:367
BorderTitleBlock::~BorderTitleBlock
~BorderTitleBlock() override
BorderTitleBlock::~BorderTitleBlock.
Definition: bordertitleblock.cpp:74
BorderTitleBlock::titleBlockTemplateChanged
void titleBlockTemplateChanged(const QString &)
BorderTitleBlock::titleBlockTemplateChanged This slot may be used to inform this class that the given...
Definition: bordertitleblock.cpp:399
DiagramContext
Definition: diagramcontext.h:56
diagram.h
BorderTitleBlock::borderIsDisplayed
bool borderIsDisplayed() const
Definition: bordertitleblock.h:145
BorderTitleBlock::columns_width_
qreal columns_width_
columns width
Definition: bordertitleblock.h:271
titleblocktemplaterenderer.h
MIN_ROW_COUNT
#define MIN_ROW_COUNT
Definition: bordertitleblock.cpp:30
BorderTitleBlock::setPreviousFolioNum
void setPreviousFolioNum(const QString &previous)
BorderTitleBlock::setPreviousFolioNum.
Definition: bordertitleblock.cpp:1091