18 #ifndef TITLEBLOCK_SLASH_TEMPLATE_VIEW_H 19 #define TITLEBLOCK_SLASH_TEMPLATE_VIEW_H 20 #include <QGraphicsView> 61 QList<TitleBlockCell *>
cut();
62 QList<TitleBlockCell *>
copy();
101 bool event(QEvent *)
override;
102 virtual void normalizeCells(QList<TitleBlockCell> &,
int x = 0,
int y = 0)
const;
115 int indexOf(QGraphicsLayoutItem *);
virtual qreal templateHeight() const
QAction * add_column_after_
void updateLastContextMenuCell(HelperCell *)
int apply_columns_widths_count_
void updateDisplayedMinMaxWidth()
~TitleBlockTemplateView() override
virtual qreal templateWidth() const
virtual void normalizeCells(QList< TitleBlockCell > &, int x=0, int y=0) const
void changePreviewWidth()
bool read_only_
Boolean stating whether this view allows template edition.
int indexOf(QGraphicsLayoutItem *)
QAction * edit_column_dim_
QString makePrettyToolTip(const QString &)
HelperCell * last_context_menu_cell_
virtual TitleBlockTemplateCellsSet cells(const QRectF &) const
virtual void fillWithEmptyCells()
void selectedCellsChanged(QList< TitleBlockCell *>)
QAction * add_column_before_
HelperCell * extra_cells_width_helper_cell_
TitleBlockTemplate * tbtemplate_
void mergeSelectedCells()
int apply_rows_heights_count_
SplittedHelperCell * total_width_helper_cell_
void previewWidthChanged(int, int)
TitleBlockTemplateView(QWidget *=nullptr)
virtual void updateRowsHelperCells()
void setTitleBlockTemplate(TitleBlockTemplate *)
virtual void applyRowsHeights(bool=true)
virtual void analyzeSelectedCells(bool *, bool *, int *)
virtual void updateColumnsHelperCells()
virtual void applyColumnsWidths(bool=true)
TitleBlockTemplateCellsSet makeCellsSetFromGraphicsItems(const QList< QGraphicsItem *> &) const
void drawBackground(QPainter *, const QRectF &) override
void wheelEvent(QWheelEvent *) override
int lastContextMenuCellIndex() const
void gridModificationRequested(TitleBlockTemplateCommand *)
TitleBlockTemplate * titleBlockTemplate() const
void removeItem(QGraphicsLayoutItem *)
QAction * add_row_before_
void updateTotalWidthLabel()
QList< TitleBlockCell * > cut()
QAction * change_preview_width_
virtual qreal zoomFactor() const
QGraphicsGridLayout * tbgrid_
void editColumn(HelperCell *=nullptr)
QList< QAction * > columnsActions() const
QList< TitleBlockCell * > copy()
virtual void loadTemplate(TitleBlockTemplate *)
virtual TitleBlockTemplateCellsSet selectedCellsSet() const
void rowsDimensionsChanged()
virtual QList< TitleBlockCell * > selectedCells() const
bool first_activation_
Boolean used to detect the first display of this widget.
void editRow(HelperCell *=nullptr)
virtual QSizeF templateSize() const
QList< QAction * > rowsActions() const
void requestGridModification(TitleBlockTemplateCommand *)
bool event(QEvent *) override
void setPreviewWidth(int)
QList< TitleBlockCell > pastedCells()
void columnsDimensionsChanged()