|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef TITLEBLOCK_SLASH_TEMPLATE_VIEW_H
19 #define TITLEBLOCK_SLASH_TEMPLATE_VIEW_H
20 #include <QGraphicsView>
62 QList<TitleBlockCell *>
cut();
63 QList<TitleBlockCell *>
copy();
102 bool event(QEvent *)
override;
118 int indexOf(QGraphicsLayoutItem *);
121 const QList<QGraphicsItem *> &)
const;
QAction * delete_column_
Definition: templateview.h:139
virtual TitleBlockTemplateCellsSet cells(const QRectF &) const
Definition: templateview.cpp:442
int apply_rows_heights_count_
Definition: templateview.h:143
QList< TitleBlockCell > pastedCells()
Definition: templateview.cpp:189
Definition: gridlayoutanimation.h:26
static ModifyTemplateGridCommand * deleteRow(TitleBlockTemplate *, int=-1)
Definition: templatecommands.cpp:267
QGraphicsGridLayout * tbgrid_
Definition: templateview.h:131
void zoomIn()
Definition: templateview.cpp:106
Definition: templatecommands.h:290
void zoomOut()
Definition: templateview.cpp:114
QAction * add_column_after_
Definition: templateview.h:137
int value
Numeric value.
Definition: dimension.h:34
#define COL_OFFSET
Definition: templateview.cpp:28
QIcon EditTableInsertRowUnder
Definition: qeticons.cpp:80
QIcon EditTableDeleteColumn
Definition: qeticons.cpp:75
Definition: templatecommands.h:140
virtual void applyColumnsWidths(bool=true)
Definition: templateview.cpp:574
void selectedCellsChanged(QList< TitleBlockCell * >)
QET::TitleBlockColumnLength type
Kind of length.
Definition: dimension.h:33
virtual TitleBlockTemplateCellsSet selectedCellsSet() const
Definition: templateview.cpp:433
TitleBlockTemplateCellsSet makeCellsSetFromGraphicsItems(const QList< QGraphicsItem * > &) const
TitleBlockTemplateView::makeCellsSetFromGraphicsItems.
Definition: templateview.cpp:1073
void updateTotalWidthLabel()
Definition: templateview.cpp:1007
QAction * add_row_before_
Definition: templateview.h:136
int num_col
x coordinate of the cell within its parent title block template grid
Definition: titleblockcell.h:62
void splitSelectedCell()
Definition: templateview.cpp:406
virtual qreal templateHeight() const
Definition: templateview.cpp:505
QString toString() const
Definition: dimension.cpp:34
void zoomFit()
Definition: templateview.cpp:122
QAction * delete_row_
Definition: templateview.h:139
void addColumnAfter()
Definition: templateview.cpp:304
Definition: helpercell.h:27
QAction * add_column_before_
Definition: templateview.h:136
#define DEFAULT_PREVIEW_HELPER_CELL_HEIGHT
Definition: templateview.cpp:30
QIcon EditTableInsertColumnLeft
Definition: qeticons.cpp:77
Definition: templateview.h:32
void addColumnBefore()
Definition: templateview.cpp:282
void loadContentFromXml(const QDomElement &)
Definition: titleblockcell.cpp:157
Definition: splittedhelpercell.h:26
void addColumnAtEnd()
Definition: templateview.cpp:265
QString makePrettyToolTip(const QString &)
TitleBlockTemplateView::makePrettyToolTip.
Definition: templateview.cpp:1091
bool first_activation_
Boolean used to detect the first display of this widget.
Definition: templateview.h:144
int indexOf(QGraphicsLayoutItem *)
Definition: templateview.cpp:1044
void refresh()
Definition: templateview.cpp:771
int apply_columns_widths_count_
Definition: templateview.h:142
Definition: templatevisualcell.h:29
QList< QAction * > columnsActions() const
Definition: templateview.cpp:906
virtual qreal templateWidth() const
Definition: templateview.cpp:492
Definition: dimension.h:26
void editRow(HelperCell *=nullptr)
Definition: templateview.cpp:353
void columnsDimensionsChanged()
Definition: templateview.cpp:932
virtual void applyRowsHeights(bool=true)
Definition: templateview.cpp:639
void mergeSelectedCells()
Definition: templateview.cpp:395
~TitleBlockTemplateView() override
Definition: templateview.cpp:76
static bool canSplit(const TitleBlockTemplateCellsSet &splitted_cells, TitleBlockTemplate *tbtemplate)
Definition: templatecommands.cpp:782
virtual void fillWithEmptyCells()
Definition: templateview.cpp:803
The TitleBlockTemplate class This class represents an title block template for an electric diagram....
Definition: titleblocktemplate.h:36
#define DEFAULT_COLS_HELPER_CELLS_HEIGHT
Definition: templateview.cpp:31
QAction * add_row_after_
Definition: templateview.h:137
bool mayPaste()
Definition: templateview.cpp:180
@ Disabled
the cell span parameters should not applied at all
Definition: titleblockcell.h:34
void paste()
Definition: templateview.cpp:238
void setTitleBlockTemplate(TitleBlockTemplate *)
Definition: templateview.cpp:83
int lastContextMenuCellIndex() const
Definition: templateview.cpp:1033
static ModifyTemplateGridCommand * addColumn(TitleBlockTemplate *, int=-1)
Definition: templatecommands.cpp:246
void zoomReset()
Definition: templateview.cpp:130
#define DEFAULT_PREVIEW_WIDTH
Definition: templateview.cpp:29
TitleBlockTemplateView(QWidget *=nullptr)
Definition: templateview.cpp:40
@ Absolute
the length is absolute and should be applied as is
Definition: qet.h:146
void updateLayout()
Definition: templateview.cpp:915
virtual void analyzeSelectedCells(bool *, bool *, int *)
TitleBlockTemplateView::analyzeSelectedCells.
Definition: templateview.cpp:457
void addRowAfter()
Definition: templateview.cpp:315
virtual void addCells()
Definition: templateview.cpp:703
static bool canMerge(const TitleBlockTemplateCellsSet &, TitleBlockTemplate *)
Definition: templatecommands.cpp:642
int col_span
number of extra columns spanned by this cell
Definition: titleblockcell.h:64
void changePreviewWidth()
Definition: templateview.cpp:790
SplittedHelperCell * total_width_helper_cell_
Definition: templateview.h:134
QAction * change_preview_width_
Definition: templateview.h:140
static ModifyTemplateGridCommand * addRow(TitleBlockTemplate *, int=-1)
Definition: templatecommands.cpp:225
virtual void updateColumnsHelperCells()
Definition: templateview.cpp:687
int preview_width_
Definition: templateview.h:133
bool read_only_
Boolean stating whether this view allows template edition.
Definition: templateview.h:145
void selectionChanged()
Definition: templateview.cpp:98
int num_row
y coordinate of the cell within its parent title block template grid
Definition: titleblockcell.h:61
void requestGridModification(TitleBlockTemplateCommand *)
Definition: templateview.cpp:1023
Definition: templatecommands.h:177
virtual void init()
Definition: templateview.cpp:542
Definition: templatecommands.h:265
Definition: templatecommands.h:211
TitleBlockTemplateView(const TitleBlockTemplateView &)
void adjustSceneRect()
Definition: templateview.cpp:1112
QGraphicsWidget * form_
Definition: templateview.h:132
void previewWidthChanged(int, int)
void rowsDimensionsChanged()
Definition: templateview.cpp:924
void addRowAtEnd()
Definition: templateview.cpp:273
QAction * edit_row_dim_
Definition: templateview.h:138
QList< TitleBlockCell * > cut()
Definition: templateview.cpp:140
void gridModificationRequested(TitleBlockTemplateCommand *)
int row_span
number of extra rows spanned by this cell
Definition: titleblockcell.h:63
TitleBlockTemplateVisualCell * topLeftCell() const
Definition: templatecellsset.cpp:98
HelperCell * last_context_menu_cell_
Definition: templateview.h:141
#define ROW_OFFSET
Definition: templateview.cpp:27
void deleteColumn()
Definition: templateview.cpp:377
void addRowBefore()
Definition: templateview.cpp:293
void editColumn(HelperCell *=nullptr)
Definition: templateview.cpp:327
@ Vertical
Vertical segment.
Definition: qet.h:90
TitleBlockTemplate * tbtemplate_
Definition: templateview.h:130
QIcon EditTableInsertRowAbove
Definition: qeticons.cpp:79
void drawBackground(QPainter *, const QRectF &) override
Definition: templateview.cpp:418
QAction * edit_column_dim_
Definition: templateview.h:138
bool attributeIsAnInteger(const QDomElement &, const QString &, int *=nullptr)
Definition: qet.cpp:210
virtual void normalizeCells(QList< TitleBlockCell > &, int x=0, int y=0) const
TitleBlockTemplateView::normalizeCells Given a cells list, change their position so the top left one ...
Definition: templateview.cpp:840
QList< QAction * > rowsActions() const
Definition: templateview.cpp:899
TitleBlockTemplate * titleBlockTemplate() const
Definition: templateview.cpp:91
void wheelEvent(QWheelEvent *) override
Definition: templateview.cpp:519
virtual qreal zoomFactor() const
Definition: templateview.cpp:535
static ModifyTemplateGridCommand * deleteColumn(TitleBlockTemplate *, int=-1)
Definition: templatecommands.cpp:286
@ Horizontal
Horizontal segment.
Definition: qet.h:89
QIcon EditTableInsertColumnRight
Definition: qeticons.cpp:78
HelperCell * extra_cells_width_helper_cell_
Definition: templateview.h:135
virtual void loadTemplate(TitleBlockTemplate *)
Definition: templateview.cpp:863
virtual QSizeF templateSize() const
Definition: templateview.cpp:485
bool event(QEvent *) override
Definition: templateview.cpp:824
QList< TitleBlockCell * > copy()
Definition: templateview.cpp:156
void setReadOnly(bool)
Definition: templateview.cpp:975
virtual void updateRowsHelperCells()
Definition: templateview.cpp:672
void deleteRow()
Definition: templateview.cpp:386
void updateDisplayedMinMaxWidth()
Definition: templateview.cpp:940
Definition: templatecommands.h:66
QIcon tr
Definition: qeticons.cpp:206
#define DEFAULT_ROWS_HELPER_CELLS_WIDTH
Definition: templateview.cpp:32
Definition: templatecellsset.h:28
Definition: titleblockcell.h:26
void removeItem(QGraphicsLayoutItem *)
Definition: templateview.cpp:1055
virtual QList< TitleBlockCell * > selectedCells() const
Definition: templateview.cpp:426
void updateLastContextMenuCell(HelperCell *)
Definition: templateview.cpp:1105
void setPreviewWidth(int)
Definition: templateview.cpp:991
QIcon EditTableDeleteRow
Definition: qeticons.cpp:76